I have a task at work to investigate if it is possible to send AT commands to an android device via ADB shell. So far,I have tried to echo out the AT commands but it passes them as normal strings. Any help please anyone.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
yes you can run AT commands from adb shell too...
to run AT command from ADB
PS: smd11 is port used by RIL.This varies from device to device.
ALso to run AT commands from android application check this tutorial
http://tech-papers.org/executing-at-commands-android-application/
Echo them where? In Android you talk to the rild (Radio Interface Layer) daemon, which in turns talks to a proprietary library, which sends commands to the actual hardware. Check rild source code for details. You could probably write a command line program that talks to the rild and execute it via adb shell, if that fits your needs.
In order to find out which port to use : You can check
Use
logcat -b radio | grep dev
to see wich tty the radio is using.Please try this:
On your phone, the serial line must not necessarily be called
ttyUSB0
. If this is not working or not available, check out the other entries of the/dev/
directory.So it could also be
/dev/ttyGS0
or/dev/SMD0
(as found out by @Sani).For further information, please check out this Guide
NOTE:
There might also be phones, that do not respond to AT commands on any of their serial
(tty)
devices.I just tried my own procedure on a Samsung Galaxy S4 and did not have any success.