![](/img/trans.png)
[英]What is adb command to list all the browsers installed on android device?
[英]adb command to set volume of android 11 device
我想通過 adb 命令將 Android 11 設備的音量設置為 5。有人知道這樣的命令嗎?
以下命令適用於 Android 8,9,10,但不適用於 Android 11。
adb -s <deviceId> shell media volume --show --stream 3 --set 5
android 11 中setStreamVolume
的代碼為10
。 因此,您可以使用以下命令設置音量 -
adb shell service call audio 10 i32 3 i32 <required volume>
例子:
adb shell service call audio 10 i32 3 i32 15
對我來說, 0
是最小音量, 15
是最大音量。
我不確定通過命令的“媒體卷”結構。 但在 android 11 中,您可以使用以下命令:
adb shell service call audio 10 i32 'x' i32 0 i32 1
例如:adb shell 服務呼叫音頻 10 i32 3 i32 0 i32 1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.