Android AT Team

I want to use the AT command in my application to set the order of the GSM modem.

I searched Google, but I did not find a good answer!

Do you have a solution?

and can I use ADB to send an AT command to Android?

+7
source share
1 answer

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)

+7
source

All Articles