Jump to content
Sign in to follow this  

[Solved] Call Poweramp "Intent" from Shell ?

Recommended Posts

Posted (edited)


So, these "API_Commands" Poweramp has, that are typically called via Tasker, suchas:


•Action: com.maxmpz.audioplayer.API_COMMAND
•Target: Service
*Extra: cmd:1 => play/pause
Extra: cmd:4 => skip song
Extra: cmd:5 => prev song


I've been wondering:

How can they be called via "shell" broadcast ?

sudo am broadcast --el "cmd 1" -a com.maxmpz.audioplayer.API_COMMAND

am start -a com.maxmpz.audioplayer.API_COMMAND --es "cmd" "1"

doesn't work (error "bad component")

Neither does using am start -n com.maxmpz.audioplayer ..." or  am start -a android.intent.action.MAIN -n com.maxmpz.audioplayer/.PowerampAPIActivity --es "cmd" "1"

or even am start -a "android.intent.action.VIEW" -c "com.maxmpz.audioplayer.API_COMMAND" --es "cmd" "1"

help at all...


PBMC in conjunction with the (now defunct?) "Poweramp Shortcuts" does it like this (not a shell cmd, obviously):


Anyone here who got this to work ?


PS: I don't want to use tasker. I'm trying to keep a minimal setup on this device, and if I can call api actions with shell then that is more than enough.

Edited by pasc

Share this post

Link to post
Share on other sites
Posted (edited)

Nevermind, I got it. Used "krow.dev.scheme" to fetch the proper intent (by experimening), then read out "/data/data/krow.dev.scheme/files/default.realm.managment/log_b" et voilà, done)

Then execute it like this:

sudo "am broadcast 'intent:#Intent;action=com.maxmpz.audioplayer.API_COMMAND;package=com.maxmpz.audioplayer;i.cmd=1;end'"

Edited by pasc

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...