Checking the status of a phone call remotely

前端 未结 6 1358
情深已故
情深已故 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:53

    I just found my own answer. Using "dumpsys telephony.registry" gives me every information I need. It contains the variable "mCallState" which is just what I need.

    Update: ok not 100% what I need, for some reason the callstate does not change when a connection is established. If someone has more ideas I'd love to know.

    Update 2: Apparently this is a security measurement in Android, you can not get the current call status during the call, you only get to know that the user is making one but not if there is already an active connection present or still dialing.

提交回复
热议问题