Save Google Play Music to External SD(SOLVED FINALLY)

Search This thread

capitoldach

Member
Aug 12, 2010
24
2
HTC Leo
HTC Sensation
or relabel if only a couple songs

bluez3023's instructions seem to have worked a treat on my newly rooted Samsung Galaxy S4. Thanks!!!

If you don't mind relabeling songs you can also pin them use root explorer, es file...etc go to data/data/com.google.android.music copy paste to sd card, then unpin them to remove from internal storage when finished. If you only have a few songs and don't mind missing artwork. If you do you can manually do that to. Nust another option. Of course your way is probably better for bulk transfer.
 

.dan

Senior Member
Apr 12, 2010
249
34
OK! Got it to work by de-capatializing the A in android. Forgot that Linux is case-sensitive.

However, the reason I wanted to get this to work is so that nandroid backups would exclude cached music in the data partition. However, what happens is that all the content "appears" to remain in the data partition, but actually physically resides in the new SD card location. But, unfortunately, this makes no difference to the recovery partitions that generate the nandroid backup, as the cache files are seen as still residing in the data partition due to the symlink.

are you confirming that even after this symlinking, that when performing a nandroid backup, it still backs up google music cache and pinned music?
 

floepie

Senior Member
Feb 28, 2006
1,990
455
Amsterdam
are you confirming that even after this symlinking, that when performing a nandroid backup, it still backs up google music cache and pinned music?

I haven't done any additional testing since my quoted comment, but yeah, even after symlink-ing nandroid backups did contain the music cache files.
 

.dan

Senior Member
Apr 12, 2010
249
34
I haven't done any additional testing since my quoted comment, but yeah, even after symlink-ing nandroid backups did contain the music cache files.

Btw I have a nexus 4 and I did some testing and can say that nandroids were not backing up my pinned music via twrp. Success!

When I deliberately increased the amount of pinned music my backup size did not grow.

Sent from my Nexus 4 using Tapatalk
 

tayeke

New member
Dec 10, 2013
1
0
Verified on Samsung Galaxy Tab 2 (verizon)

Thank you so much this worked for me on my Galaxy Tab 2. I've been checking the data every couple songs and it's definitely filling my external sd card now!!

If anyone cares my reference was: mount -o bind /storage/extSdCard/GoogleMusic/ /data/data/com.google.android.music/
 

mo770

New member
Jan 3, 2014
1
0
dowloading purchased music

bluez3023's instructions seem to have worked a treat on my newly rooted Samsung Galaxy S4. Thanks!!!

I'm just going to use my ipod touch for music. Thank you for the info but it seems RIDIC 2 to have 2 do all of this extraneous stuff to simply listen to music. I like my Galaxy 4, but Apple has Android beat regarding purchasing & simply listening to music. Thanks! Mo
 

hlvs

Member
Aug 31, 2012
12
1
Hello,
I'm running the CM11 on a galaxy S2 so I have android 4.4. Unless this, I don't have the possibility to set the external SD as storage folder for google play music.
Do you know if there is anyway to have this setting? Or any other way to store the offline library in the external SD card for kit kat device?
 

oias.heeda

Senior Member
Aug 9, 2010
354
80
Sydney
Will this also work for internal sd card. As in Nexus 7, or does it have to physically be another sd card?

Sent from my Nexus 7 using Tapatalk
 

deeevan

Senior Member
Mar 22, 2013
583
196
I haven't done any additional testing since my quoted comment, but yeah, even after symlink-ing nandroid backups did contain the music cache files.

Btw I have a nexus 4 and I did some testing and can say that nandroids were not backing up my pinned music via twrp. Success!

When I deliberately increased the amount of pinned music my backup size did not grow.

Sent from my Nexus 4 using Tapatalk

Hi.. slight grave dig. I was just about to create a symbolic link when I thought I'd do a search to see who else did it, what problems were encountered etc. My main reason for doing this was so my music (30GB) isn't lost when I wipe the data partition for a new ROM, but then I realised any data partition backups will also contain that 30GB and my phone just doesn't have the space for that!

If I'm reading the thread corectly, @floepie you used the mount -o bind command and nandroid backups included the cache. What about you @.dan ? Did you use mount -o bind or ln -s?

I was going to do ln -s since it's a once-off task that will survive reboots and doesn't need something to rerun scripts.

---------- Post added at 01:31 PM ---------- Previous post was at 01:31 PM ----------

Will this also work for internal sd card. As in Nexus 7, or does it have to physically be another sd card?

Sent from my Nexus 7 using Tapatalk

These steps should work fine on an internal SD card
 

The0Code

Senior Member
Nov 2, 2010
196
5
Anyway to get this working on a Nexus 5? Moving roms takes too much repinning for me at this point :/
 

Top Liked Posts

  • There are no posts matching your filters.
  • 60
    SAVE YOUR GOOGLE PLAY MUSIC OFFLINE MUSIC TO EXTERNAL SDCARD
    So I've been researching this issue for a long long time and have tried so many different approaches. I've finally found one that works! You can now save your google play music to your external sd instead of the internal sdcard.

    This is based on the post found here. Please go and thank the original author. This will probably work on any phone.

    So what this basically does is mount the google play music cache to a directory on your external SD on boot.

    Requirements:
    1. Root
    2. external SD(obviously)


    Steps

    1. Using whatever task manager you have or just go into settings->apps->running, close google play music.
    2. Open your file manager and browse to /sdcard/Android/data/com.google.android.music/cache and delete all of the files found in music dir and artwork dir in this directory. This is very important step. If you do not delete your cache then your files will take up space but will no longer be available after this process.
    3. Browse to the root diretory of your external sdcard and create a directory called "MusicCache".
    4. Browse to the root of your internal sdcard and create a text file called "MusicScript.txt".
    5. Using your favourite text editor open the the file and past the following: "mount -o bind /emmc/MusicCache/ /sdcard/Android/data/com.google.Android.music/" and the save the file. Please note that if your using stock room, then /emmc/ might be /external-sd/. Please make sure to check the directory name for your external sd and replace /emmc/ with whatever your external sd directory is named.
    6. Go to the google play store and install script manager - Smanager. Open smanager, and on first open you should see an option to select root, check that option and click ok and make sure to grant root to the app when the su dialog appears.
    7. In Smanager browse to the root of your sdcard and click on and hold the "MusicScript.txt" to open a options dialog. Select "open as" and then select "Script/Executable".
    8. Then Select "Su" and "Boot" and hit save.
    9. You might not need this stop but it might solve some issues. Go to settings app->apps->google play music-> and hit clear data.
    10. Reboot your phone.
    11. Open up google play music and click on Choose on device music, and you should see the total space available equal to what is available on your external SD Card
    12. (Optional) Hamster dance.

    Note: While downloading all of your music offline you may want to go to the settings app->developer options->check Keep Awake to keep the phone awake while charging so that the phone won't go to sleep. I did this so that I could finish up the download while keeping my phone charger connected. You should definitely turn this option off after your done.


    **I assume no responsibility if this damages your device in any way**
    8
    Galaxy S3 Jelly Bean

    SGH-T999 (4.1.1)
    Google Play Music (Version 4.4.811H.526848)

    1.
    Open Settings > Application manager > All > Google Play Music
    2. Select "Force stop" and "Clear data"
    3. Open ROM Toolbox > Root Browser
    4. Create the following folder on your SD card /mnt/extSdCard/GoogleMusic/files
    5. Tap and hold the folder named "files" until menu appears, and select "Create shortcut" at the bottom of the list
    6. Navigate to /data/data/com.google.android.music/
    7. Select "Create" and the "files" folder should be linked
    8. Open "Play Music" app and sync
    9. Select "Choose on device music" and it should show the available space on your sd card
    10. Profit

    tl;dr the directory where music is stored has changed from /data/data/com.google.android.music/cache to /data/data/com.google.android.music/files for both music and artwork
    8
    I think you all are really over-thinking this...

    I found the absolute best and easiest way is by using symlinks. This can be accomplished with ROM Toolbox [Root Browser], without the need of scripting/commands/etc.

    0. Open ROM Toolbox > Root Browser
    1. Make a folder in your desired location (sdcard) called "Music" or something to that sort.
    2. Tap and hold, select the option "Create Shortcut" at the bottom
    3. Navigate to /data/data/com.google.android.music/
    4. Paste (to create the shortcut)
    5. Delete the "cache" folder in this directory
    6. Rename the shortcut to "cache"
    7. Enjoy!
    6
    Using Root Explorer on Samsung Galaxy S3 on Sprint (Stock)

    SGH-T999 (4.1.1)
    Google Play Music (Version 4.4.811H.526848)

    1.
    Open Settings > Application manager > All > Google Play Music
    2. Select "Force stop" and "Clear data"
    3. Open ROM Toolbox > Root Browser
    4. Create the following folder on your SD card /mnt/extSdCard/GoogleMusic/files
    5. Tap and hold the folder named "files" until menu appears, and select "Create shortcut" at the bottom of the list
    6. Navigate to /data/data/com.google.android.music/
    7. Select "Create" and the "files" folder should be linked
    8. Open "Play Music" app and sync
    9. Select "Choose on device music" and it should show the available space on your sd card
    10. Profit

    tl;dr the directory where music is stored has changed from /data/data/com.google.android.music/cache to /data/data/com.google.android.music/files for both music and artwork

    Thank you very much. I did this almost to the letter on my Samsung S3 on Sprint using stock rom. I used root explorer to create the folders. Here were the different steps from the above list.

    Google Play Music (Version 4.4.811H.526848)

    1.
    Open Settings > Application manager > All > Google Play Music
    2. Select "Force stop" and "Clear data"
    3. Open Root Explorer
    4. Create the following folder path on your SD card (/mnt/extSdCard) :/GoogleMusic/files
    5. Tap and hold the folder named "files" until menu appears, and select "Link to this folder" at the bottom of the list
    6. Navigate to /data/data/com.google.android.music/
    7. Hit the "Create Link" button at the bottom and the "files" folder should be linked to the location sitting on your external sdcard.
    8. Open "Play Music" app and sync
    9. Select "Choose on device music" and it should show the available space on your sd card
    10. Verify files and folders after initial sync has completed. You should see the artwork and mp3 files if you're temporarily caching files in there.

    I did the above because I didn't want all my cached music to hang around on the internal storage. I've got a 32gb class 10 card coming and that should give enough headroom for my use! :) Without the Google music option to temporarily cache music, the playback is pretty inconsistent here in the NH area. Caching it tends to allow the player to...well...play!

    Thanks to the OP of the instructions. I just wanted to throw my experience with Root explorer in there for anyone if they need it.
    5
    I found the absolute best and easiest way is by using symlinks. This can be accomplished with ROM Toolbox [Root Browser], without the need of scripting/commands/etc.

    0. Open ROM Toolbox > Root Browser
    1. Make a folder in your desired location (sdcard) called "Music" or something to that sort.
    2. Tap and hold, select the option "Create Shortcut" at the bottom
    3. Navigate to /data/data/com.google.android.music/
    4. Paste (to create the shortcut)
    5. Delete the "cache" folder in this directory
    6. Rename the shortcut to "cache"
    7. Enjoy!

    I wanted to say thanks, I did this (Downloaded Rom Toolbox Lite) and used the Root Browser, on my Rooted Galaxy S3 running stock Rogers ICS. Took under 2 minutes, and verified it's working.

    I tried to do it using root explorer but the shortcuts seems to have a bug and wasn't able to create it, downloading root browser was the trick.

    thanks!