如何使SMS与ADB Show在消息应用中发送的SMS
我正在使用Android 10的三星手机 我在网上找到了此ADB命令
adb shell service call isms 7 i32 0 s16 "com.android.mms.service" s16 "${phone}" s16 "null" s16 "'${text}'" s16 "null" s16 "null"
,如果我尊重角色限制,它将发送SMS。但是,SMS并未显示在电话的消息应用程序中,
我找不到有关所有标志及其含义的文档。请帮助我,告诉我如何在消息应用程序中显示它。如果ADB无法做到这一点,还有其他方法吗?
I'm using a Samsung phone with Android 10
I found this adb command online
adb shell service call isms 7 i32 0 s16 "com.android.mms.service" s16 "${phone}" s16 "null" s16 "'${text}'" s16 "null" s16 "null"
This works, it sends the SMS if i respect the character limit. However, the SMS does not show up in the phone's messages app
I can't find documentation about all those flags and what they mean. Please help me and tell me how I can make it show in the messages app. If this is not possible with adb, is there any other way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过在最后提供另一个参数来实现这一点
这篇文章< /a> 帮助我
基于 此文档似乎我需要提供persistMessageForNonDefaultSmsApp布尔值
不确定这是否是方法去吧,我不是 Android 开发者,但它可以工作:/
I was able to achieve this by providing another argument at the end
this article helped me
Based on this documentation it seems i needed to provide the persistMessageForNonDefaultSmsApp boolean
Not sure if this was the way to go, I'm not an android dev, but it works :/