[MOD][Xposed] XGPM - Google Play Music mods

Search This thread

GoJo ^^

Senior Member
Dec 2, 2011
3,369
170
It's supposed to be system-wide setting. It depends on what ROM do you have and if the option is available to you as a trigger in the settings menu (probably under Audio section, I don't remember exactly). For example AICP offers it where CM I think doesn't have the settings for "Prevent lowering media volume on notification"

I'm actually using Resurrection Rom but I don't see it.. Other than in DoNotDisturb mode.

And as I said, Poweramp has an option for it, so NO it's not just depending on rom!
 

ban.codrut

Senior Member
Jan 11, 2015
447
124
I'm actually using Resurrection Rom but I don't see it.. Other than in DoNotDisturb mode.

And as I said, Poweramp has an option for it, so NO it's not just depending on rom!
The system wide one it is !
Does Resurrection remix have like an extra settings menu ?
Anyway, you should ask the RM community for it then, NOT HERE !!
#OffTopic
 

Reconfigured

Senior Member
Aug 2, 2011
264
60
28
Mumbai
@Maxr1998 hi... I'm get thing some cutout for artist name. Screenshot attached...
 

Attachments

  • Screenshot_20161215-003216.jpg
    Screenshot_20161215-003216.jpg
    106.1 KB · Views: 368

greg285

Senior Member
Jul 19, 2012
376
73
Hi @Maxr1998

Is there a way to get the google music play queue themed ?
https://i.stack.imgur.com/mg6O9.png

I'm still on resurrection remix MM rom for the moment using the n-ify module with his new notification design and the queue is not themed ...(base notification is white and play queue is black)
Was wondering if the queue can be themed in this module-- i also ask if we can hide the queue in the resurrection remix rom thread in case of.
 

Maxr1998

Senior Member
Apr 15, 2013
2,148
3,209
22
Augsburg
maxr1998.de
What do you mean by " the new interface doesn't work in landscape" ?
Screenshot taken from. CM14.1 , that's Android 7.1.
My custom design for the new playing screen only gets applied in portrait.

@Maxr1998 hi... I'm get thing some cutout for artist name. Screenshot attached...
Gonna look at it.

Is there a way this could automatically set "Downloaded Only" mode. I'd like that automatically set when I get into my car.
You mean via Tasker or something like that? Not sure..

Can you add in the scroll bar where you can see a bubble letter?
Probably not. I have too little time to work on the mods atm..

Hi @Maxr1998

Is there a way to get the google music play queue themed ?
https://i.stack.imgur.com/mg6O9.png

I'm still on resurrection remix MM rom for the moment using the n-ify module with his new notification design and the queue is not themed ...(base notification is white and play queue is black)
Was wondering if the queue can be themed in this module-- i also ask if we can hide the queue in the resurrection remix rom thread in case of.
I think that's not the XGPM queue though.. you tried XMediaNotificationTrackSelector? Should do the same but better.

@ban.codrut Hi, may I ask how you got this working on Android 7.1? I thought Xposed wasn't released yet for Nougat? Or am I missing something?

Running stock 7.1.1 on LG Nexus 5X 32GB
Doesn't work on Nougat yet because of the lack of Xposed.. I guess he just uses a theme.
 
  • Like
Reactions: ViperVision

greg285

Senior Member
Jul 19, 2012
376
73
I think that's not the XGPM queue though.. you tried XMediaNotificationTrackSelector? Should do the same but better.
.


Indeed that's resurection remix feature.

No big deal. I disabled it by long pressing the music playing notification.
But If it can be themed to white I would use it ;)

Sent from my A0001 using XDA
 

Maxr1998

Senior Member
Apr 15, 2013
2,148
3,209
22
Augsburg
maxr1998.de
Pushed XGPM 1.12 to Xposed repo.
  • Fixed artist name being cut off in new design NowPlaying screen
  • Fixed three columns for album and other cards
  • Fixed a few crashes and added compatibility for new GPM version
  • Updated build tools and support libraries

@Maxr1998 hi... I'm getting some cutout for artist name. Screenshot attached...
Fixed, see above.
 

velvet_man

Member
Nov 12, 2010
18
4
Hyrule
The system wide one it is !
Does Resurrection remix have like an extra settings menu ?
Anyway, you should ask the RM community for it then, NOT HERE !!
#OffTopic

I just want to ask this again because the original poster maybe didn't make it clear enough. I found this module from a google search to see if I could play music on GPM while playing a game. Right now, as soon as I open a game, it takes over audio focus and the music stops playing.

If I use the PowerAmp app to play music instead of GPM, I can use PowerAmp's audio focus setting to disable this behavior and it works great. It's not system wide (it doesn't have to be apparently because it works perfectly with PowerAmp), and no root, custom ROMs, or Xposed modules are required. It works completely stock. The only problem with PowerAmp is that it doesn't find GPM songs properly. I can point it to the folders, but then the songs show up as random strings of numbers instead of proper song and artist titles.

So that leaves two options: 1. get rid of GPM, clear it off my phone, and manually add songs back onto my phone as MP3s that will work with PowerAmp. Then I have all of my music and I can set PowerAmp to keep the music playing when I open a game. BUT, then I have to manually synch my music (with USB cords, etc), so I think a better option would be...

2. Find a way to add this audio focus option to GPM so that I can keep my music the way it is (i.e. able to play downloaded, stream music, or download on the fly at any time, etc). I figured this is the kind of feature that should be possible with Xposed. I used to root and use Xposed, but with my 6P, it's been so perfect out of the box that I haven't bothered rooting for the first time in years. But I'd gladly root and install Xposed and all that if I could get this audio focus feature in GPM.

And I know you said it should be a system-wide setting and to take it up with custom ROM devs. I heard you. What I'm saying is that, if PowerAmp can make this work completely stock—no custom ROMs, not even rooted—then an Xposed module should be able to do it, too. And since this is a GPM modding module, this seems like the best place to ask.
 
Last edited:

Maxr1998

Senior Member
Apr 15, 2013
2,148
3,209
22
Augsburg
maxr1998.de
I just want to ask this again because the original poster maybe didn't make it clear enough. I found this module from a google search to see if I could play music on GPM while playing a game. Right now, as soon as I open a game, it takes over audio focus and the music stops playing.

If I use the PowerAmp app to play music instead of GPM, I can use PowerAmp's audio focus setting to disable this behavior and it works great. It's not system wide (it doesn't have to be apparently because it works perfectly with PowerAmp), and no root, custom ROMs, or Xposed modules are required. It works completely stock. The only problem with PowerAmp is that it doesn't find GPM songs properly. I can point it to the folders, but then the songs show up as random strings of numbers instead of proper song and artist titles.

So that leaves two options: 1. get rid of GPM, clear it off my phone, and manually add songs back onto my phone as MP3s that will work with PowerAmp. Then I have all of my music and I can set PowerAmp to keep the music playing when I open a game. BUT, then I have to manually synch my music (with USB cords, etc), so I think a better option would be...

2. Find a way to add this audio focus option to GPM so that I can keep my music the way it is (i.e. able to play downloaded, stream music, or download on the fly at any time, etc). I figured this is the kind of feature that should be possible with Xposed. I used to root and use Xposed, but with my 6P, it's been so perfect out of the box that I haven't bothered rooting for the first time in years. But I'd gladly root and install Xposed and all that if I could get this audio focus feature in GPM.

And I know you said it should be a system-wide setting and to take it up with custom ROM devs. I heard you. What I'm saying is that, if PowerAmp can make this work completely stock—no custom ROMs, not even rooted—then an Xposed module should be able to do it, too. And since this is a GPM modding module, this seems like the best place to ask.
Looked at the code another time, certainly possible. Download 1.12.1 from Xposed repo and tell me if that works for you ;)
 

velvet_man

Member
Nov 12, 2010
18
4
Hyrule
Looked at the code another time, certainly possible. Download 1.12.1 from Xposed repo and tell me if that works for you ;)

That's awesome. Thanks! I will definitely try that out as soon as I can. Apparently I should have checked on the status of Xposed before posting. I tried to install it only to find out it hasn't been released for 7.1 yet. I'll report back once Xposed for 7.1 is out.
 

androidsnyder

Member
Jul 14, 2014
10
1
OnePlus One features not working

First when I go to use the new player, it now covers the Cast button and makes it unusable which isn't a big issue but I'd rather it be always there.

After trying the colour option, it has reset my Repeat and Shuffle buttons to gray which is very hard to see on most apps. No reboots or force stops change it. Would rather not clear data as I have a lot of music downloaded.

In the new design I am unable to use the Repeat or Shuffle buttons, I click them and it minimizes the Now Playing tab.
Within the new design the upper bar where it usually shows the track name and artist it's grayed out and looks like it's unusable. Which is just a personal preference.

Running 6.0.1, COS 13.1.2, rooted, Xposed 87, OPO, XGPM 1.12.1
 
Last edited:

gello924

Member
Mar 21, 2011
44
4
Ft. Lauderdale
Really Annoying!

Good day folks, can anyone tell me what I need to do to prevent my phone from restarting every time I skip a track? If I just let the music queue run I can skip maybe 3 to 4 tracks before a restart, otherwise the more I skip the more I restart. At first I thought it was only happening from the songs list inside the app, but it's happening from the widget and the notification controls as well. I just installed last night, but everything else seems to be working fine.
I'm using a SGS5 G900M, stock 6.0.1, nova launcher, rooted, xposed 87.1 custom framework by wanam. XMNTS also installed.
 

Spott07

Senior Member
Jun 14, 2015
275
161
Idaho
Good day folks, can anyone tell me what I need to do to prevent my phone from restarting every time I skip a track? If I just let the music queue run I can skip maybe 3 to 4 tracks before a restart, otherwise the more I skip the more I restart. At first I thought it was only happening from the songs list inside the app, but it's happening from the widget and the notification controls as well. I just installed last night, but everything else seems to be working fine.
I'm using a SGS5 G900M, stock 6.0.1, nova launcher, rooted, xposed 87.1 custom framework by wanam. XMNTS also installed.
That sounds like a pretty big problem.

If you want help, please post your Xposed log and your device logcat, otherwise all we can do is guess wildly.
 

Maxr1998

Senior Member
Apr 15, 2013
2,148
3,209
22
Augsburg
maxr1998.de
First when I go to use the new player, it now covers the Cast button and makes it unusable which isn't a big issue but I'd rather it be always there.

After trying the colour option, it has reset my Repeat and Shuffle buttons to gray which is very hard to see on most apps. No reboots or force stops change it. Would rather not clear data as I have a lot of music downloaded.

In the new design I am unable to use the Repeat or Shuffle buttons, I click them and it minimizes the Now Playing tab.
Within the new design the upper bar where it usually shows the track name and artist it's grayed out and looks like it's unusable. Which is just a personal preference.

Running 6.0.1, COS 13.1.2, rooted, Xposed 87, OPO, XGPM 1.12.1
I will fix the new design issues soon. Cast button still works fine for me though. What do you mean with the grayed out bar? The color depends on the cover image.

Good day folks, can anyone tell me what I need to do to prevent my phone from restarting every time I skip a track? If I just let the music queue run I can skip maybe 3 to 4 tracks before a restart, otherwise the more I skip the more I restart. At first I thought it was only happening from the songs list inside the app, but it's happening from the widget and the notification controls as well. I just installed last night, but everything else seems to be working fine.
I'm using a SGS5 G900M, stock 6.0.1, nova launcher, rooted, xposed 87.1 custom framework by wanam. XMNTS also installed.
Logs please? Doesn't happen for me. How long are your queues?
 
  • Like
Reactions: androidsnyder

androidsnyder

Member
Jul 14, 2014
10
1
I will fix the new design issues soon. Cast button still works fine for me though. What do you mean with the grayed out bar? The color depends on the cover image.

Cast button for me is hidden behind the Queue button and is totally inaccessible, as shown in the picture.

The grayed out bar is at the top of the picture attached where the song title and stuff usually would go.

The colour for the repeat and shuffle buttons doesn't depend on the cover art as i turned the feature off and they stay permanently grayed out now, NOTE that this is in the stock design Now Playing page but they are also grey in the new design page as well. The way it happened was i tried the feature, didn't like it and disabled it, then they wouldn't restore to orange. Should add a feature where it will set the buttons to stock orange so if anyone else has this they can go back to normal. I would think that would be a simple code.

Link to picture: https://goo.gl/photos/RV6T41Rz8ur1moLL9
link to picture of stock design: https://goo.gl/photos/5SyVKTysAACcjyrc8
 

Attachments

  • Screenshot_20170126-123608.png
    Screenshot_20170126-123608.png
    241.7 KB · Views: 120
  • Screenshot_20170126-130239.jpg
    Screenshot_20170126-130239.jpg
    76 KB · Views: 118
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 80
    XGPM
    …mods for Google Play Music

    This module adds a few modifications to the Google Play Music app. It allows you to
    • Show "My library" as default screen
    • Switch to specific tracks from the music notification (with XMediaNotificationTrackSelector)
    • Remove disturbing buttons from the navigation drawer
    • Add back the playlists item to the navigation drawer
    • Show three columns of albums in many screens
    • Now Playing screen:
      • Tint icons with colors extracted from the cover with the help of the Palette API
      • Resize covers to make less cropped & better visible
      • Remove the drop shadow from the cover view
      • Open Equalizer from a new button
    • Replace any kinds of images in the app, e.g. covers and artist images

    Screenshots:
    NowPlaying.png

    NavDrawer.png

    Video of the track selector by Miroslav Vitula, the designer
    Video of the track selector by me
    Video of track selector by Matthew Brack
    Old video review by XDA (TK)
    Video review by Picaso Ent


    Download:
    In Xposed repository: http://repo.xposed.info/module/de.maxr1998.xposed.gpm

    Changelog:
    All times in CET.
    1.12.1: 2017-01-19 21:10
    • Added option to disable audio focus gain
    1.12: 2017-01-17 22:22
    • Fixed artist name being cut off in new design NowPlaying screen
    • Fixed three columns for album and other cards
    • Fixed a few crashes and added compatibility for new GPM version
    • Updated build tools and support libraries
    Old versions:

    1.11: 2016-11-14 23:00
    • Fixed quite a few crashes and added compatibility for GPM 7.0!
    • Fixed notification track selector
    • Updated SDK to Nougat 7.1.1
    1.10: 2016-08-26 13:25
    • Added landscape layout for new design with permanent queue
    • Enabled a few experimental GPM Features
    • Fixed title in collapsed header for new design, animate header color instead of changing it abruptly
    • Fixed cast button visibility behaving weirdly
    • Fixed a few crashes and added compatibility for new GPM version
    • Updated build tools and support libraries
    1.9.2: 2016-07-24 14:13
    • Fix cover loading for local files, improve caching and speed, show grey square instead of blank space if no cover is available (Thanks to @Massi-X)
    • Fix any UI bugs in preference screen by switching back to CheckBoxPreferences
    • Update build tools, target API and support libraries
    • Add Italian translation by @Massi-X
    1.9.1: 2016-05-17 01:44
    • Same as 1.9, but fixed settings crash because of ProGuard
    1.9: 2016-05-17 01:16
    • Added custom NowPlaying screen design
    • Added option to remove "My Library" tabs
    • Added option to enable Google's new voice control
    • Added option to enable Google's new "Adaptive home" as soon as it's finished
    • Added tinting for playback mode buttons and EdgeEffects of ViewPager
    • Added donate option
    • Added Podcast screen to hideable navigation drawer items
    • Fixed default screen option
    • Added workaround for a SwitchPreference bug below Android Lollipop which caused settings screen to act weirdly
    1.8.8: 2016-04-19 21:51
    • Fixed support for GPM 6.7
    1.8.7: 2016-04-18 21:40
    • Force-enable Podcasts!
    1.8.6: 2016-04-10 22:01
    • Updated tools and libraries
    • Fixed hiding launcher icon
    1.8.5: 2016-03-20 23:31
    • Fixed support for GPM 6.5
    1.8.4: 2016-02-20 23:56
    • Fixed support for GPM 6.4
    • Crash fix
    1.8.3: 2016-02-08 00:24
    • NowPlaying screen tinting rewritten, more reliable now
    • Fixed crash for very long playlists because of TrackSelector
    1.8.2: 2016-02-02 21:55
    • Fixed support for GPM 6.3+
    1.8.1: 2016-01-29 17:46
    • Crash fixes
    • Updated libs
    1.8: 2016-01-10 22:03
    • Improve loading of cover arts (hopefully!)
    • Notification track selector is now an independent Xposed module, install it from Xposed Repo!
    1.7: 2016-01-05 23:56
    • New and fixed notification track selector with an unlimited, scrollable list with title, artist, cover art and duration
    • Option to remove "Play Music for…" and recommendations from "Listen now" screen
    • Fixed nav drawer text and icon for playlist
    1.6: 2015-11-29 21:12
    • Now working on Android 6.0
    • No reboots to apply settings anymore!
    • Fixed notification track selector for newest GPM
    • Added option to remove more items from the navigation drawer
    • Added back the playlists item to the navigation drawer
    • Universal art replacer off by default; added description for it in app
    • Added option to launch GPM from app
    • Updated dependencies
    1.5.1: 2015-09-07 01:16
    • Notification layout fixes
    • Touch feedback for tracks
    1.5: 2015-09-06 13:52
    1.4: 2015-08-27 23:27
    • Fixed Navigation drawer item hiding, should also be more update-proof now, since I rewrote the algorithm
    • Added option to replace all Album/Artist arts
    • Built with Marshmallow SDK and support libs
    • Rewrote backend to only use one Xposed loader now
    1.3.2: 2015-06-27 20:41
    1.3.1: 2015-06-25 21:42
    1.3: 2015-07-24 22:11
    1.2.1: 2015-04-24 21:54
    1.2: 2015-04-18 21:25
    • Replaced the ugly overflow button with one from material design icons
    1.1: 2015-04-18 21:05
    • Added equalizer shortcut in NowPlaying screen
    1.0.1: 2015-04-18 00:00
    • Fixed ClassNotFoundException because of ProGuard
    1.0: 2015-04-15 20:41
    • Initial release
    13
    So, as I recently switched to Spotify and Google announced YT Music as a soon-to-be successor to GPM, I'm sorry to inform you that I'll have to abandon the XGPM Xposed module. Additionally, I didn't have much time in the last few months to work on this anyway, so I guess this was kinda expected from most of you. I just committed the last set of changes I did in the last months, which should make the app work again with the latest GPM version. Some things might still be broken, e.g. the new NowPlaying screen, but it mostly works. You can download the last build here. Thanks for your continued support & bug reports!
    10
    I'm too tired for a full changelog, basically fixes notification and Android M support, other changes on GitHub.
    Note that there might still be some bugs.
    9
    Small update, apk attached.

    • I fixed the navigation drawer manipulation, a method return type change resulted in a ClassCastException
    • I fixed the new design crash which was caused by a weird NPE and Google's removal of voice control
    • Google removed the voice control feature again, probably because "Ok Google" can do the same, so I removed support for it as well
    • I enabled some features which are still hardcoded to false in the code (1 & 2), or disabled server side in some countries (3):
      - The upcoming Sleep timer (yay!)
      - The new full width search bar (like in Google Play)
      - The sound search if you couldn't use it before
    • In the next days, preferably tomorrow, I will add switches for the features, and also try to fix the empty bottom bar EDIT: Done!
    • I saw the other reports, I will check if I fixed them already or still have to do that
    9
    Just pushed 1.11 to the Xposed repo. This fixes A LOT of issues, and supports GPM 7.0 (download from apkmirror if not available yet from Play Store).
    If you also don't really like the new home screen, you can revert to the old one ;)
    A known issue is that the new design isn't working in landscape anymore, I'm still not sure how to fix that yet.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone