Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send AT Commands to Android Phone

Tags:

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 release your new Android (it seems it is so hard!)

  2. LoopBack on USB.(i think Bluetooth is same)

About second solution , when you connect your phone to PC with USB cable , you will see a GSM modem on Device Manager that help you to send AT Command to GSM Modem.

If we find a solution to loop back on mobile phone , we can send AT commands to GSM Modem.

Question is : HOW to loop back and what tty file on kernel will help us?

like image 242
M.Movaffagh Avatar asked Nov 27 '11 06:11

M.Movaffagh


People also ask

What are Android AT commands?

The AT commands were able to bypass Android security mechanisms, exfiltrate sensitive device information, perform screen unlocks, and inject touch events and much more. The team used the phone's USB interface, i.e., the attacker can use USB docks, chargers or charging stations to use phone's secret AT commands.

What is AT commands in mobile communication?

AT commands are instructions used to control a modem. AT is the abbreviation of ATtention. Every command line starts with "AT" or "at". That's why modem commands are called AT commands.

How can I use my phone as a GSM modem?

Download GSM Modem Emulator for Android Click menu 'Configure Default App' to configure app as default SMS app. 2. Click menu 'Start/stop control panel' to start working. Attention: Please enable WIFI on Android phone then SMSDeliverer is able to connect android phone by local intranet IP address.

What is 3GPP AT commands Samsung?

The 3GPP TS specification permits ATD to be used in a special mode for dialing directly from phone books. This mode is not required as Qt Extended implements its own algorithm for converting phone book entries to numbers.


1 Answers

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)

like image 164
rattisuk Avatar answered Sep 22 '22 23:09

rattisuk