How to make a call via pc by ADB command on android?

后端 未结 6 414
旧巷少年郎
旧巷少年郎 2020-12-07 16:16

I would like to make call via ADB command on android\'s command line.

How should I use ADB command in order to make a call via PC?

please provide source code

6条回答
  •  孤街浪徒
    2020-12-07 16:21

    You should do (replace by the serial number of your device or emulator, for example emulator-5554):

    $ adb -s  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 }
    

提交回复
热议问题