[MOD][XPOSED] Music2SD (v1.8) - Make Google Play Music save music where you want

Search This thread

Capt4Chris

Senior Member
Mar 9, 2011
75
16
Nashville, TN
Didn't work afterall

Well, after a while the pinned music stopped working no matter what I did. I just got a message saying something like "couldn't play the requested music".

I tried deleting all my music, restarting my phone and re-downloading but it still didn't work.

So I deleted everything again, turned off the Music2SD in Xposed, restarted my phone again. When I downloaded everything to my internal storage, it's working as expected now. Sadly, I only have 4 GBs to work with instead of the 18 on my SD Card.

I guess at this point I'll wait to see if any updates are released to Google Music or Music2SD and try again.

UPDATE: Well, I was able to get the official option to show up in Google Play Music! The HTC Evo 4G LTE had a somewhat unusual file structure. HTC very recently changed it to the standard file structure and once I updated my device, the option showed up!

For those that want more detail: out of the box, the Evo LTE had about 2 GBs of storage allocated for apps and the rest of it (like 12 GBs) was a logical partition of internal storage and called it the "SD Card" storage. The device also allows an actual, physical SD Card which was like "SD Card1" or something. With the newer, more standard method, all the internal storage is now combined into 14 GBs along with the physical SD card.
 
Last edited:

elmerohueso

Senior Member
Nov 29, 2010
568
224
Provo
Well, I can see them pinned, but only when I have the drop-down set to "All Music". It's quite odd...

I believe this was broken in a recent Music2SD update. On my Nexus 4, Music2SD is now storing music in the main "com.google.android,music" folder, instead of a "music " subfolder. This results in Play Music not being able to find the downloaded music.

Rolling back to Music2SD 1.7.1 resolved the issue for me.

Music2SD Version 1.7.1:
Stores music in "\sdcard\Android\data\com.google.android,music\music". Play Music shows music as pinned, and music is shown in "On Device" music.
.
Music2SD Version 1.8:
Stores music in "\sdcard\Android\data\com.google.android,music", instead of a "music " subfolder. Play Music show music as pinned, but does not show any "On Device" music.

Yes, I do realize that my Nexus 4 doesn't have external storage, but Music2SD allows me to put music on the /sdcard partition, making it available to other apps, like my alarm.
 
Last edited:

Dwillian

Senior Member
Jul 23, 2013
554
248
Kent, WA
Apologies for the off-topic, but this is driving me crazy: does anyone know why, despite being on KitKat and having the latest Google Play Music installed (5.4.1409N), I can't see the option to keep the downloaded music on the SD card?
(Yes, I do have a SD card...)

Thanks!

Sent from my GT-N7000 using Tapatalk

I have same problem on Motorola Droid RAZR running CyanogenMod 11 (KitKat 4.4.2). Google blames CM and CM blames Google.

Music2SD worked initially, but after reboot Google Play Music doesn't see downloaded songs even though they are still on my external SD card.

Frustrating.

Sent from my XT912 using Tapatalk

---------- Post added at 07:31 AM ---------- Previous post was at 07:25 AM ----------

I can't quite find this option on GMusic. I've checked all of the settings. Running 4.4.2 on DroidRzr XT912. Can you take a screenshot of where you see it?

Option doesn't show on my xt912 running 4.4.2 (CyanogenMod 11). Google says it is because I'm running a custom ROM. They didn't seem inclined to look into the problem any further (I actually talked to a real person at Google support about this very issue).

Very frustrating.

Sent from my XT912 using Tapatalk
 

Dwillian

Senior Member
Jul 23, 2013
554
248
Kent, WA
I believe this was broken in a recent Music2SD update. On my Nexus 4, Music2SD is now storing music in the main "com.google.android,music" folder, instead of a "music " subfolder. This results in Play Music not being able to find the downloaded music.

Rolling back to Music2SD 1.7.1 resolved the issue for me.

Music2SD Version 1.7.1:
Stores music in "\sdcard\Android\data\com.google.android,music\music". Play Music shows music as pinned, and music is shown in "On Device" music.
.
Music2SD Version 1.8:
Stores music in "\sdcard\Android\data\com.google.android,music", instead of a "music " subfolder. Play Music show music as pinned, but does not show any "On Device" music.

Yes, I do realize that my Nexus 4 doesn't have external storage, but Music2SD allows me to put music on the /sdcard partition, making it available to other apps, like my alarm.

1.7.1 worked until I rebooted. Tracks are still on external SD card but play music says there is no music on my phone.

I also noticed that some tracks have also been added to my internal SD card. That shouldn't happen should it?

Sent from my XT912 using Tapatalk
 
Last edited:

elmerohueso

Senior Member
Nov 29, 2010
568
224
Provo
1.7.1 worked until I rebooted. Tracks are still on external SD card but play music says there is no music on my phone.

I also noticed that some tracks have also been added to my internal SD card. That shouldn't happen should it?

Sent from my XT912 using Tapatalk

Try clearing data for the module, then rolling back to 1.6.1. That one's now working for me after a reboot.
 
  • Like
Reactions: Dwillian

neogenesis213

Member
May 11, 2009
23
3
Module redundant

This was a good module in its hay day but its now redundant with latest Play Music.

Open up Play Music App
Go to Settings --> Storage Location (under Downloading) --> select external storage.
....... Voila
 

stuartv

Senior Member
May 30, 2012
373
54
This was a good module in its hay day but its now redundant with latest Play Music.

Open up Play Music App
Go to Settings --> Storage Location (under Downloading) --> select external storage.
....... Voila

I wish. On my Note 10.1 that option wasn't even shown. But, I am rooted, so I thought that might be part of it. So, I used the Xposed module RootCloak to hide root from the Play Music app. Now, the option for Storage Location shows, but it is greyed out and won't let me change it. I have a 64 GB micro SD card installed that is almost empty.
 

Dwillian

Senior Member
Jul 23, 2013
554
248
Kent, WA
This was a good module in its hay day but its now redundant with latest Play Music.

Open up Play Music App
Go to Settings --> Storage Location (under Downloading) --> select external storage.
....... Voila

Not true on most devices that do not have factory installed versions of KitKat (Android 4.4.x). Option is not available on Droid RAZR Maxx running KitKat custom Rom (CyanogenMod 11) for example.

Sent from my Droid RAZR Maxx (XT912) running CyanogenMod 11.
(Please click thanks/thumbs-up if this information is useful to you)
 

poodleDoo

Senior Member
Mar 16, 2012
134
41
Either I am doing something wrong and can't figure out what, or there's something preventing this module from working as designed.
Nexus 5 stock rom, rooted obviously.
Using meenova adapter and a 32GB micro sd, and chainfire's StickMount (/dev/block/sda1).
Music2sd only shows /emulated/legacy/0 and internal storage, no trace of the external sd card..

Should the card be formatted in a particular way? i.e. ext4, vfat, 4k block size...
I have used Music2sd 1.6.1, 1.7 and 1.7 to not avail.

Mount shows:
/dev/block/sda1 /data/media/0/usbStorage/sda1 vfat rw,nosuid,nodev,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

df does not list it, but I can use root explorer and other apps to access the contents of the card.
As a matter of fact, m2sd created the data directories and subdirs on it...
Any ideas?
Thx
 

Dwillian

Senior Member
Jul 23, 2013
554
248
Kent, WA
Try clearing data for the module, then rolling back to 1.6.1. That one's now working for me after a reboot.

Thank you very much. Music2SD version 1.6.1 seems to be working great on my Droid Razr MAXX.. Even after reboots and custom rom updates Google Play Music is still storing tracks on my external SD card. It would be very nice if the bugs in the more recent versions could be fixed.
 

mistr_e

Member
Nov 8, 2008
12
3
Either I am doing something wrong and can't figure out what, or there's something preventing this module from working as designed.
Nexus 5 stock rom, rooted obviously.
Using meenova adapter and a 32GB micro sd, and chainfire's StickMount (/dev/block/sda1).
Music2sd only shows /emulated/legacy/0 and internal storage, no trace of the external sd card..

Should the card be formatted in a particular way? i.e. ext4, vfat, 4k block size...
I have used Music2sd 1.6.1, 1.7 and 1.7 to not avail.

Mount shows:
/dev/block/sda1 /data/media/0/usbStorage/sda1 vfat rw,nosuid,nodev,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

df does not list it, but I can use root explorer and other apps to access the contents of the card.
As a matter of fact, m2sd created the data directories and subdirs on it...
Any ideas?
Thx

I'm seeing the exact same thing on my Nexus 5 and Nexus 7 rooted stock rom. I don't have a solution but would love some suggestions.
 
Last edited:

alex0815

Member
Feb 15, 2008
5
0
complete resync every boot

The linking to the sd-card works as expected, but on every reboot the pinned music get's deleted and starts re-downloading. I habe this problem on two devices (xperia v - cm11 latest nightly and an android based car-stereo).

thanks for any help in advance

Alex
 

IanPPK

Member
Jun 17, 2012
41
0
Jacksonville, FL
The linking to the sd-card works as expected, but on every reboot the pinned music get's deleted and starts re-downloading. I habe this problem on two devices (xperia v - cm11 latest nightly and an android based car-stereo).

thanks for any help in advance

Alex

I have the same issue on my Atrix HD, but I think it may have to do with the fact that I have FolderMount Installed as well, which for some reason makes the rootdir of my SD the last mounted folder. I mount the SD as a result to /storage/sdcard1 as opposed to through /mnt/external1, but the folder still resyncs.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    NOTE: You do not need this app if you do not have external storage or if you are on KitKat or above.

    This application requires root and the Xposed Framework - http://forum.xda-developers.com/showthread.php?t=1574401

    Do you not have enough room on your Internal Storage or Device Storage for your music, but have plenty of space on your SD Card? No more with Music2SD! You can now force Google Play Music to store your music where you want it.

    How To Get Started:
    1. Install Xposed Framework Installer.- http://forum.xda-developers.com/showthread.php?t=1574401
    2. Install Xposed Framework.
    3. Install Music2SD
    4. Open Music2SD and Select a Download Storage Location.
    5. Open Xposed Framework and Enable the Music2SD Module.
    6. Restart your phone/tablet.
    7. Start downloading music!

    Currently Tested on:
    • Galaxy S4 (Running CyanogenMod 10.2)
    • Galaxy Note 2 (Running CyanogenMod 10.1)
    • Galaxy Note 10.1 (Running CyanogenMod 10.1)
    • Galaxy Note (Running CyanogenMod 10.1)
    • Infuse 4G (Running Beanstalk)
    • Nexus S 4G (Running CyanogenMod 10.2)
    • Motorola Droid (Running CyanogenMod 9)

    Google Play Store
    Source Code
    3
    I have not been able to get it to work on a verizon s3. Music is still downloading to internal storage. Do I need to delete any folders on internal storage for it to work?

    Same thing here on Sprint S3, acted as if it worked. Started re downloading but still went to internal. Any suggestions on this?

    No folders have moved at all. Should I create the parent folders then just cut and paste the files into the created folders?

    I have found an issue with Music2SD. You must create the parent folders in your SD Card first. I will release an update to fix this most likely tonight. To get it working right now simply create the following folders in the root of your SD Card: /Android/data/com.google.android.music/

    will it save from the point of the mod and you need to manually move the old folder or does the folder get moved by the app?

    The folders don't get moved I will try to add this in the next update.

    Installed this on my Samsung Galaxy S4 and am not seeing the "SD Card" option as shown within your video. My internal is at /storage/emulated/0/ ( /mnt/sdcard/ ) and my external is at /storage/extSdCard/ ( /mnt/extSdCard/ ).

    What file system are you using on your SD Card. Because Android does not have a built-in API for getting the location of the SD Card I'm left to parsing out the "mount" command and parsing out mount points that are using a FAT file system. On top of that the location for an SD Card is different per Manufacturer per rom. (If anyone know a better way of getting this information, please feel free to let me know.) :)
    2
    Change Log:
    Version 1.8
    • Fixed Method overwriting for newer version of Google Play Music.
    Version 1.7.1
    • German Localization added.
    • Added exception handling for StatFS.
    Version 1.7
    • Localization Update (Support for English, French, Italian, Japanese, Korean, Portuguese, Russian, and Spanish)
    • German Support coming soon. (Waiting on translation.)
    • Free disk space fixed. Now using StatFs built in API.
    Version 1.6.1
    • Major Bug Fix
    • SD Card Support now sends "df" command.
    Version 1.6
    • Storage Location Selector now shows path and free disk space.
    • Storage Locations that would show up as "Device" will now show up as "External"
    • Will now display removable mounts with read/write permissions that do no show up under the environment variables as "Unknown Storage". Use caution when using these.
    • Tested and works with Meenova Mini MicroSD Card Reader.
    Version 1.5.2
    • Fixes support for "mount" commands with "on" and "type" verbiage. For real this time.
    • Fixed reported NullPointer Exceptions.
    • Added additional information "SD Card Support" to help pin point device/rom specific issues.
    Version 1.5.1
    • Fixed support for "mount" commands with "on" and "type" verbiage.
    Version 1.5
    • Fixed Force Close issue.
    Version 1.4
    • Improved SD Card detection. Now doesn't look at File System, but instead looks at Environment Variables and compares them to what is mounted and has read/write access.
    • Music2SD Debugger built-in.
    • Added Admod Ads.
    Version 1.3
    • Fixed an issue with older devices that emulates a SD Card. For example the Nexus S 4G was showing Device Storage and External Storage.
    • Now checks for root access and Xposed Framework on app start.
    • Now uses root access to automatically create the necessary directories on your SD Card.
    Version 1.2
    • Code clean up.
    • Support for multiple external storage locations.
    • Tablets now work in Landscape.
    Version 1.1
    • Fixed NullPointerException while searching for SD Card on non-rooted device. (You must be rooted to use this application!)
    Version 1.0
    • Initial Release

    License:
    Code:
    Copyright (c) 2014, Lepidus Development LLC
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without modification,
    are permitted provided that the following conditions are met:
    
      Redistributions of source code must retain the above copyright notice, this
      list of conditions and the following disclaimer.
    
      Redistributions in binary form must reproduce the above copyright notice, this
      list of conditions and the following disclaimer in the documentation and/or
      other materials provided with the distribution.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
    ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
    ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2
    Version 1.3 is now on the Google Play Store and on the main post. The source code has also been updated on GitHub.
    • Fixed an issue with older devices that emulates a SD Card. For example the Nexus S 4G was showing Device Storage and External Storage.
    • Now checks for root access and Xposed Framework on app start.
    • Now uses root access to automatically create the necessary directories on your SD Card.


    I actually had code in there to create the subdirectories. However apparently the WRITE_EXTERNAL_STORAGE permission only gives you permission to write on the device storage and not the actual SD Card. After doing some research the only way to write to the SD card is to be a system app with WRITE_MEDIA_STORAGE permission or to do it through root. Seeing as I can't sign my app as a system app, I went with doing it through root. (This is why Music2SD asks for root when you open the app now.)


    I also created a video showing how to setup Music2SD, it's on the Google Play Store listing and below:


    IMPORTANT: If you have an issue where your external storage is not showing up there will be a new application in the main post called Music2SD-Debugger.apk. Please install and run this application. It's a simple app that gets the output of the "mount" command and puts it into an email. All you have to do is send the email and then I will analyze it and improve the SD Card detection. Android does not come with a built in method for detecting and getting the path of external storage devices, which is why I'm left to these weird and hacky methods of getting the SD Card path.
    1
    Seem to have found a problem with the Music2SD app. At first the application did what it did , changing the location of Google music data to my exsd card. After updating the new version of Google Music v5.2.1233L it's seem that the Music2SD is not working and Google Music is now redownload all my music that was in my sd crad into my internal memory (5 Gb of music T_T )

    Sent from my SPH-L710 using Tapatalk

    Seems fine on my device. Both with caching new songs and downloading albums for offline play.

    Sent from my GT-N7100 using Tapatalk
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