Checking the status of a phone call remotely

前端 未结 6 1366
情深已故
情深已故 2020-12-18 13:59

I want to check after starting a phone call what the status of the call is via a connected PC, if possible with the ADB. I\'m starting a call by entering a phone number with

6条回答
  •  清歌不尽
    2020-12-18 14:46

    To call TelephonyManager.getCallState() from adb shell use:

    adb shell service call phone 30
    

    For proper parsing of the service call command output on the device side and without external dependencies see my answer here

    Also read Calling Android services from ADB shell for more details.

提交回复
热议问题