FORUMS

How to Root the LG G4 and Install TWRP Recovery – XDA TV

A rooting method has finally been found for the flagship LG G4. In this … more

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Save Google Play Music to External SD(SOLVED FINALLY)

37 posts
Thanks Meter: 63
 
By skittles, Member on 20th July 2012, 03:22 PM
Post Reply Subscribe to Thread Email Thread
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**
Last edited by skittles; 20th July 2012 at 04:12 PM.
The Following 60 Users Say Thank You to skittles For This Useful Post: [ View ]
 
 
20th July 2012, 04:07 PM |#2  
Senior Member
Thanks Meter: 28
 
More
Quote:
Originally Posted by skittles

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. I just slightly modified this to work for our phones.

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.


**I assume no responsibility if this damages your device in any way**

Thanks! I've been trying to figure out how to do this. I figured I'd just have to wait for Google to get their act together. But external storage has clearly not been a priority for them.

Sent from my SGH-I777 using xda premium
20th July 2012, 04:13 PM |#3  
Simba501's Avatar
Recognized Contributor
Thanks Meter: 1,156
 
More
Nice!
20th July 2012, 04:14 PM |#4  
OP Member
Thanks Meter: 63
 
More
Quote:
Originally Posted by switters1

Thanks! I've been trying to figure out how to do this. I figured I'd just have to wait for Google to get their act together. But external storage has clearly not been a priority for them.

Sent from my SGH-I777 using xda premium

I'm glad I could help someone. I've been mostly a lurker on this board. But I've benefited so much that I felt I had to give back once I got this working. I've been at this issue for a long long time.

BTW, did it work for you?
20th July 2012, 05:03 PM |#5  
mfreywald's Avatar
Senior Member
Thanks Meter: 24
 
More
Awesome, I'm going to give this a try when I get home from work today. I'll let you know if I got it working. Very cool of you to share this.

Sent from my SGH-I777 using xda premium
26th July 2012, 08:25 PM |#6  
Senior Member
Flag Kailua, Hawai'i
Thanks Meter: 13
 
More
Very cool, I'll definitely try this later today

Sent from my SGH-I777
27th July 2012, 12:23 AM |#7  
mzaur's Avatar
Senior Member
NJ
Thanks Meter: 58
 
More
Just use Directory Bind...much easier
27th July 2012, 12:26 AM |#8  
OP Member
Thanks Meter: 63
 
More
Quote:
Originally Posted by mzaur

Just use Directory Bind...much easier

From my understanding directory bind did not work for google music.
27th July 2012, 12:37 AM |#9  
Senior Member
Flag Kapowsin, WA
Thanks Meter: 380
 
More
AOKP. not sure if CM has it. Swap storage location.

But thats a nice find for those that dont.
27th July 2012, 12:40 AM |#10  
OP Member
Thanks Meter: 63
 
More
Quote:
Originally Posted by MotoMudder77

AOKP. not sure if CM has it. Swap storage location.

But thats a nice find for those that dont.

I have AOKP and no such swap storage location settings. I've looked for this before.
27th July 2012, 08:10 PM |#11  
Member
Flag Cincinnati, Ohio
Thanks Meter: 1
 
More
Can't get it working
I'm on a htc evo lte and i cant seem to get this to work. In the root directory my sd cards are sdcard and sdcard2 but sdcard is mounted to /mnt/sdcard and sdcard2 is mounted to /mnt/sdcard/ext_sd how would the script look for me?

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes