我正在尝试在根shell中使用isms发送短信,但仍然没有成功。我试过了
service call isms 4 s16 "+mynumber" s16 "" s16 "hello world!" s16 "" s16 ""但我在LogCat上看到了这一点,短信并没有从设备上发出。
W/Parcel ( 1056): Attempt to read object from Parcel 0x52ecfdac at offset 124 that is not in the object list有没有办法在不使用SmsManager的情况下用外壳发送短信呢?
谢谢
发布于 2013-02-13 12:33:52
试试这个:
adb shell am start -a android.intent.action.SENDTO -d sms:CCXXXXXXXXXX --es sms_body "smsHere" --ez exit_on_sent true
adb shell input keyevent 22
adb shell input keyevent 66其中,CCXXXXXXXXXX是国家/地区代码,后跟电话号码。
发布于 2013-07-19 05:05:05
试试这个命令(适用于我):service call isms 5 s16 "PhoneNumber“i32 0 i32 0 s16 "BodyText”
发布于 2016-03-26 20:49:50
对我来说,服务调用isms不起作用。我为两个不同的芯片组开发了一个应用程序,Mediatek和Spreatrum。对于联发科技(MTK),我发现有一个API是addon,它包含SMSManagerEx,可以在双卡中发送短信。但是展讯没有API,所以我不得不使用反射,就像Maher在这篇post中提到的那样。我也有我的评论,从特定的模拟发送短信代码,而不提示默认的短信应用程序。
https://stackoverflow.com/questions/14846128
复制相似问题