title: Android adb shell command to play sound from the command line
body: <p>I have a set of rooted android devices I can access through adb over tcp/ip.
  I am trying to identify a specific one by playing a sound from the command line (one of the .ogg files from /system/media/audio).</p>
  
  <p>I know I could probably build an app for this but it feels like an overkill to use an APK, and I'm hoping there is a more native way. I already know how to start intents from the command line.</p>
  
  <p>Things I have tried :</p>
  
  <ul>
  <li>Investigated using <code>service call media.player</code> but could not find any useful reference about the syntax. I can see with <code>dumpsys media.player</code> references about AwesomePlayer but couln't get anything going.</li>
  <li>Tried to find a compiled version of "<a href="https://android.googlesource.com/platform/frameworks/base/+/master/cmds/media/" rel="nofollow">/system/bin/media</a>" from the android source code, as it is missing from the device, but without any luck so far.</li>
  <li>Tried to build a command line java app to call android.media.MediaPlayer with <code>dalvikvm</code> but my knowledge of Android and java is too limited (class compiled but complained about missing dependencies at runtime)</li>
  </ul>
  
  <p>Any ideas?</p>