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).
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.
Things I have tried :
service call media.player
but could not find any useful reference about the syntax. I can see with dumpsys media.player
references about AwesomePlayer but couln't get anything going.dalvikvm
but my knowledge of Android and java is too limited (class compiled but complained about missing dependencies at runtime)Any ideas?
As seen in this other thread
you can do this with a single shell command if you have a file there:
am start -a android.intent.action.VIEW -d /sdcard/somthing/example.wav -t audio/wav
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With