I want to set volume of Android 11 device via adb command to 5.Does anyone know such commands?
Below command works well for Android 8,9,10 but fails to work for Android 11.
adb -s <deviceId> shell media volume --show --stream 3 --set 5
I don't sure struct of "media volume" via command. But in android 11, you can using below command:
adb shell service call audio 10 i32 'x' i32 0 i32 1
Ex: adb shell service call audio 10 i32 3 i32 0 i32 1
2.1m questions
2.1m answers
60 comments
57.0k users