運行adb logcat|grep -i currentCallState
您將獲得日誌:
D/PhoneUtils(1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils(1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils(1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils(1242): setAudioMode() currentCallState : DIALING
D/PhoneUtils(1242): setAudioMode() currentCallState : ALERTING
D/PhoneUtils(1242): setAudioMode() currentCallState : ACTIVE
D/PhoneUtils(1242): setAudioMode() currentCallState : DISCONNECTING
D/PhoneUtils(1242): setAudioMode() currentCallState : IDLE
撥號 - 正在撥號 ALERTING - 振鈴 斷開連接 - 被點擊斷開 IDLE - 返回到正常狀態
感謝這個答案,那是相當有用的。儘管我發現使用adb shell命令'dumpsys telephony.registry'更簡單一些,它提供了非常詳細的信息 – PTS