Dr Jorge
Dr Jorge

Reputation: 363

Adb command to cancel/hang up incoming call

On the adb shell I run the command "adb -s shell am start -a android.intent.action.CALL -d tel:123456" to simulate a fake incoming call to my testing device. It works great. But I also want to simulate a missed call from the ADB shell, as I would by telnet with the command "gsm cancel +123456", for example. I cannot find anywhere how to do this... Is this even possible with ADB? If so, how?

P.S: the command "adb -s shell input keyevent 6" is not an answer!

Upvotes: 2

Views: 9768

Answers (1)

Mike
Mike

Reputation: 119

to hang up use

adb shell input keyevent KEYCODE_ENDCALL

or

adb shell input keyevent 6

(without "-s")

Upvotes: 9

Related Questions