I am having one android target.
I have some audio file in mnt/sdcard0.
How can I play through adb command?
Music player application is already installed in the target.
use the following adb shell command:
adb shell am start -a android.intent.action.VIEW -d file:///storage/sdcard0/test.wav -t audio/wav
There are two other command line programs which may work via a adb shell or even remotely using an ssh connection. Neither need an installed music player app.
adb shell stagefright -a -o file.mp3
and
adb shell tinyplay file.wav
(drop adb shell
if not using an adb
connection)
Note that tinyplay
can only play stereo wav files. I found out about the stagefright
command from a3nm's blog: Android from the command-line.
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