How to enable Speakerphone on android through adb shell?

905 views Asked by At

I am working on a testing tool and I am able to initiate and terminate voice call from default Dialer app in android using following commands.

adb shell am start -a android.intent.action.CALL -d tel:+919999999999

adb shell input keyevent KEYCODE_ENDCALL

I need to enable Speakerphone through adb interface after initiating voice call. How can I achieve this? My android device may not have root permission.

0

There are 0 answers