Send AT Commands to Android Phone

后端 未结 1 618
灰色年华
灰色年华 2020-12-04 15:46

I want to Send AT Command to Android phone.

I know SDK does not support this.

but there are two solution :

  1. change the code of Kernel and re

相关标签:
1条回答
  • 2020-12-04 16:36

    first you have to root the phone then in adb shell

    su

    echo -e "AT\r" > /dev/smd0

    if you want to see answer use

    cat /dev/smd0

    i've test this command in samsung mini,cooper,s+ and it works.

    if you use htc (htc rhyme tested) try to adb shell and type this command "radiooptions 13 AT" if you want to see answer type "logcat -b radio"

    try echo to /dev/smd0 for other devices

    *you can use this command in sdk java code by using Runtime.exec (require su)

    0 讨论(0)
提交回复
热议问题