Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm testing some settings on a phone, and unfortunately the only control I have is through adb right now. My issue is that while I can start playback of a music file through the following command, I have no way of stopping it so I can perform the next iteration.

adb shell am start -a android.intent.action.View -d "file:///sdcard/Music/mediatest.mp3" -n "com.android.music/.MediaPlaybackActivity"

I don't know if it's possible to end the playback using another adb command, but it doesn't look like it to me - I see there are no Intents that seem to perform that function, nor any activities that are made to stop the media playback.

share|improve this question
When you run the command, does the terminal "lock up" until the song has finished, or does it execute instantly and then return to the terminal prompt? –  IQAndreas May 16 at 7:19

1 Answer 1

I stopped music player using "top" command inside adb shell and killing the process id of music app with superuser(ROOT) access.

share|improve this answer
More in depth instructions would make this a nice answer. –  Peanut Nov 2 '13 at 2:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.