first you need to shorten the phone and then in the adb shell
su echo -e "AT\r" > /dev/smd0
if you want to use the answer
cat /dev/smd0
I tested this command in samsung mini, cooper, s + and it works.
if you use htc (checked by htc rhyme) try adb shell and enter this command "radiooptions 13 AT" if you want to see the response type "logcat -b radio"
try echo to / dev / smd0 for other devices
* you can use this command in java sdk code using Runtime.exec (require su)
example: echo -e "ATD123456789; \ r"> / dev / smd0 ----> (call 123456789)
rattisuk
source share