From 57a2cd5315ff53b1d36c196e9799759e4fde385c Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Mon, 10 Aug 2020 17:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E9=80=9A=E8=BF=87=20ADB?= =?UTF-8?q?=20Shell=20=E8=B0=83=E8=8A=82=E9=9F=B3=E9=87=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Android/Shell/通过_ADB_Shell_调节音量.md | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Software/System/Android/Shell/通过_ADB_Shell_调节音量.md diff --git a/Software/System/Android/Shell/通过_ADB_Shell_调节音量.md b/Software/System/Android/Shell/通过_ADB_Shell_调节音量.md new file mode 100644 index 0000000..0116130 --- /dev/null +++ b/Software/System/Android/Shell/通过_ADB_Shell_调节音量.md @@ -0,0 +1,38 @@ +# 通过 ADB Shell 调节音量 + +## 方法一 + +可以通过模拟音量建的方法进行调节: + +```bash +adb shell input keyevent +``` + +## 方法二 + +```bash +adb shell media volume --stream --adj +``` + +一般而言,stream 有如下配置 + +* stream0=STREAM_VOICE_CALL +* stream1=STREAM_SYSTEM +* stream2=STREAM_RING +* stream4=STREAM_ALARM +* stream5=STREAM_NOTIFICATION +* stream6=STREAM_BLUETOOTH_SCO +* stream7=STREAM_SYSTEM_ENFORCED +* stream8=STREAM_DTMF +* stream9=STREAM_TTS +* stream10=STREAM_ACCESSIBILITY +* stream11=STREAM_VR_TTS +* stream12=STREAM_NAVI_TTS +* stream13=STREAM_TUNER +* stream14=STREAM_ICALL +* stream15=STREAM_CARPLAY_ALT +* stream16=STREAM_MOIVE +* stream17=STREAM_USB_MUSIC +* stream18=STREAM_QQ_MUSIC +* stream19=STREAM_BT_MUSIC +* stream20=STREAM_XMLY_MUSIC