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

后端 未结 6 400
旧巷少年郎
旧巷少年郎 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:23

    You can do this one by:

    1. Enter into your adb in cmd
    2. Enter adb devices. What ever id you will get that will be you device number
    3. 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 }
    

提交回复
热议问题