How To Use Isms To Send A Sms
I am trying to use isms in a root shell to send a SMS but still no luck. I have tried service call isms 4 s16 '+mynumber' s16 '' s16 'hello world!' s16 '' s16 '' but I am seeing t
Solution 1:
Try this:
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
Where CCXXXXXXXXXX is country-code followed by phone number.
Solution 2:
Try this command (it works for me) : service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText"
Solution 3:
For me service call isms, didn't work. I developed an application for two different chipsets, Mediatek and Spreatrum. For Mediatek(MTK), I found there API which is addon, which contains SMSManagerEx, that can send sms in dual sim. But for spreadtrum there was no API so I had to use reflection as mentioned by Maher in this post. I have my comment there as well, that sends sms from specific sim from code without prompting the default sms app.
Post a Comment for "How To Use Isms To Send A Sms"