How to pick up a call by adb

2019-04-24 22:14发布

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

5条回答
2楼-- · 2019-04-24 22:31

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
查看更多
劫难
3楼-- · 2019-04-24 22:48

adb shell input keyevent KEYCODE_CALL

查看更多
欢心
4楼-- · 2019-04-24 22:48

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

查看更多
不美不萌又怎样
5楼-- · 2019-04-24 22:52

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

查看更多
爷、活的狠高调
6楼-- · 2019-04-24 22:53

That works for me:

 adb shell input keyevent 5
查看更多
登录 后发表回答