How to make a call via pc by ADB command on android?
You should do (replace <serialno> by the serial number of your device or emulator, for example emulator-5554):
$ adb -s <serialno> shell am start -a android.intent.action.CALL -d tel:555-5555
and see this in the logcat:
Starting: Intent { act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx }
You can do this one by:
- Enter into your adb in cmd
- Enter adb devices. What ever id you will get that will be you device number
- Enter (Without quotes):
adb -s "Your devices number" shell am start -a android.intent.action.CALL -d tel:"phone no. to call"
That's it and you will get the response as:
Starting: Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxx }
One can use this command make a call to a number via Android triggered by PC.
adb shell am start -a android.intent.action.CALL -d tel:+CCXXXXXXXXXX
- cc=country code
- XXXXXXXXXX=Phone Number