.

Android Automation : ADB commands for Calling / Messaging(SMS)


Refer this post:

 > If you want to automate call / sms feature in android Android

  > If you are looking for a device independent solutions.


  > If you are looking for the Libraries that can do so.



 Well, all the searching comes to an end with some fantastic ADB commands that we can use. 

I will demonstrate a command to make an outgoing call from the android phone.

Make sure it has SIM with network to do so

If you have multiple SIMS then do the proper setting to select a default provider for the call.



Solution:

adb shell am start -a android.intent.action.CALL tel:9650740760

Similarly what if we want to Send an SMS:

Here is adb command for that as well
adb shell am start -a android.intent.action.SENDTO -d sms:91********** --es sms_body "SMS BODY GOES HERE" --ez exit_on_sent true 

No comments :

Post a Comment

Recent Posts