ADB Command to send SMS



If you want to automate the sms activity below is the command which you can automate it.
An intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity.Here in below example it starts the message app and then the SENDTO action will send the message to specific number.

Command:

adb shell am start -a android.intent.action.SENDTO -d sms:81XXXXXX33 --es sms_body HELLO --ez exit_on_sent true
adb shell input keyevent 22
adb shell input keyevent 66 


No comments:

Post a Comment

Feature Posts

Python Appium - Step by step procedure for capturing screenshot

 Why To capture screenshot? It is as important as your logs. If there is any failure for any test scenario, we can provide screenshot for th...