I want to press "Shuffle all" button in the player's menu with any way if it's even possible.
I know how to emulate keypresses, so it's possible to do this with DPAD emulation (if your device is rooted) via simple shell command input keyevent
, but this way is very slow and unreliable.
Also I found how to run google music player in PLAYBACK view via intents and start playing, but it's not what I really wanted. In case if someone will be interested, run this shell command:
am start -a com.google.android.music.PLAYBACK_VIEWER -c android.intent.category.DEFAULT
I couldn't find intents for shuffling in google's music player on my own. Maybe there are other ways to emulate this action or maybe there are intents which I missed?