你如何利用亚行外壳打开设备的扬声器为Android(How do you turn on devic

2019-10-21 00:03发布

没见过就使用“亚行壳”转向了Android设备的扬声器的任何命令,好奇,如果有一种方法?

#call phone
adb shell am start -a android.intent.action.CALL -d tel:X-XXX-XXXX

# ******* put speaker on here *******

sleep X

#end call
adb shell input keyevent KEYCODE_ENDCALL

Answer 1:

要设置扬声器上从adb shell使用:

  • 在安卓4.4.4: adb shell service call audio 35 i32 1
  • 在安卓5.1.0: adb shell service call audio 36 i32 1
  • 在安卓6.0.1: adb shell service call audio 30 i32 1
  • 在安卓7.0+: adb shell service call audio 29 i32 1

更换10将其取消。



文章来源: How do you turn on device speakers for Android using adb shell
标签: android adb