Coding/Tip
[Android] ADB로 전화 걸기
chobocho
2017. 6. 15. 00:51
[전화걸기]
adb shell am start -a android.intent.action.CALL -d tel:123-4567
[통화종료]
adb shell input keyevent KEYCODE_ENDCALL
or
adb shell input keyevent 6
[전화수신]
adb shell input keyevent 5
[5초간 대기 - DOS command]
timeout /t 5
[ 전화를 걸고 10초 뒤에 종료하는 스크립트 ]
adb shell am start -a android.intent.action.CALL -d tel:123-4567
timeout /t 10
adb shell input keyevent KEYCODE_ENDCALL
[ 자료출처 ]
https://stackoverflow.com/questions/4923550/how-to-make-a-call-via-pc-by-adb-command-on-android
https://stackoverflow.com/questions/25587147/adb-command-to-cancel-hang-up-incoming-call
https://stackoverflow.com/questions/166044/sleeping-in-a-batch-file