Is there any Adb command to set the volume to a particular value? I know that we can do
adb shell input keyevent
for volume up and down b
On a rooted phone you can call setMasterVolume() with service call audio i32 . The codes are version specific. Let's say you want to set volume to 50% on a KitKat device. The command will be:
setMasterVolume()
service call audio i32 . The codes are version specific. Let's say you want to set volume to 50% on a KitKat device. The command will be:
i32
service call audio 9 i32 50