title: How to change the volume using adb shell service call audio
body: <p>I am trying to change the volume on my android device using</p>
  
  <pre><code>service call audio 9 i32 50
  </code></pre>
  
  <p>to set the volume to 50%. Additionally, when I do:</p>
  
  <pre><code>service call audio 16
  </code></pre>
  
  <p>I was able to see that the hex value is 32. However, I don't see any changes on the device. The volume has not been changed.</p>
  
  <p>On the other side, when I change the volume on the device by pushing the volume-up button, I don't read any changes when I do <code>service call audio 16</code>.</p>
  
  <p>I want to change the volume by setting a direct value without using <code>input keyevent KEY_VOLUME_UP (or DOWN)</code>.</p>
  
  <p>Any help?</p>
  
  <p>Thanks!</p>