11

Can I pick up a call by any adb command? I know that you can dial a number by "adb shell service call phone 2 s16 "+15084157509".

Can phone service do pick-up call or can I send some adb command to manipulate activity?

much appreciated

Jimmy Wu
  • 111
  • 1
  • 1
  • 3
  • Related: [How to make a call via pc by ADB command on android?](https://stackoverflow.com/q/4923550/3258851); [How can incoming calls be answered programmatically in Android 5.0 (Lollipop)?](https://stackoverflow.com/q/26924618/3258851) – Marc.2377 Jun 12 '19 at 20:51

5 Answers5

5

adb shell input keyevent KEYCODE_CALL

diaBlo35
  • 131
  • 2
  • 3
4

To call TelephonyManager.answerRingingCall() use adb shell service call phone 5 command.

Alex P.
  • 30,437
  • 17
  • 118
  • 169
2

That works for me:

 adb shell input keyevent 5
MDobroch
  • 71
  • 1
  • 1
  • 11
-2

Set the following property on far end to auto answer the incoming call in 2 seconds

adb shell setprop persist.sys.tel.autoanswer.ms 2000

To turn off auto answer,

adb shell setprop persist.sys.tel.autoanswer.ms 0
Naveen Jay
  • 31
  • 5
-3

adb -s emulator-5554 shell am start -a android.intent.action.CALL -d tel:555-5555

K_Anas
  • 31,226
  • 9
  • 68
  • 81