How to increase target device Volume to maximum using adb command on android pie version. I have tried below commands in adb, but volume did not volume got increased.
adb shell service call audio 7 i32 3 i32 0 i32 1
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this community
adb sheel media volume
available. To get a well-formatted values of volume streams:for s in $(seq 0 100); do media volume --stream $s --get 2>/dev/null | awk -F'[()= ]' '{if($3=="control") printf "%-22s %-3s: ",$7,$5} {if($2=="volume") printf "%-3s %s \n",$4,$7}' | grep ^STREAM || break; done
. You will get all stream names/numbers, their current values and possible values.media volume --stream 3 --set 25
. Where3
is media volume stream and25
is its maximum value. It's also possible to useservice call
as explained in above linked answer. Are you trying to change in-call earpiece volume or some other?