如何使用isms发送短信

时间:2013-02-13 03:54:42

标签: android sms root

我试图在root 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

有没有办法使用Shell发送短信而不使用SmsManager来执行此操作..

由于

3 个答案:

答案 0 :(得分:0)

试试这个:

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是国家/地区代码,后跟电话号码。

答案 1 :(得分:0)

尝试此命令(适用于我): service call isms 5 s16“PhoneNumber”i32 0 i32 0 s16“BodyText”

答案 2 :(得分:0)

对我来说 服务电话 ,没有用。我为两个不同的芯片组开发了一个应用程序,Mediatek和Spreatrum。对于Mediatek(MTK),我发现有一个API,它是包含SMSManagerEx的插件,可以在双SIM卡中发送短信。但是对于扩展,没有API,所以我不得不使用Maher在post中提到的反射。 我也有我的评论,从代码中发送短信来自代码而不提示默认的短信应用程序。