[Script] Make Play Music Cache to External SD - Samsung Galaxy S Blaze 4G

Many of you have probably moved on to some variant of Jellybean and have maybe found other ways to do this (I in fact was on CM10 and had swapped internal and external cards--bad battery life brought me back to a stock based ROM) but I have struggled to find a good way on stock based ROMs to get Google Play music to cache to the external card. There were several suggestions, but none seemed to work for me. For those who might still be interested I found this thread by DeathmonkeyGTX which was based on this thread by Skittles. Took a few attempts and an edited script but I managed to make it work! I would assume this will work on any rooted ICS stock ROM, but was tested on Tweaked 2.2.
I have attached the edited script file that worked for me. And here are the copied instructions:
Prerequisites: Rooted phone; copy the .txt attached to this post to the root of the internal NAND flash, i.e. /sdcard/. Then make a folder in the root of your external_sd called "MusicCache." without the quotes or period.
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. 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.
4. 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".
Then Select "Su" and "Boot" and hit save.
5.. Go to settings app->apps->google play music-> and hit clear data.
6. Reboot your phone.
To verify this worked I checked the external_sd card after syncing an album to my phone. It was an album I was previously warned I didn't have enough space to save all of the songs.

Hello there I noticed that you found a way to save your music from the Play service to the external sd card. I followed all your steps and it is still not working, the music is saving in the default location. I have the Samsung Galaxy Blaze 4G, running the official CM10, stable version.

Good, but you misspelled sdcard in the script!

How glad am I to have found this old thread!
I have a Galaxy S2 LTE running stock 4.1.2, on which it's of course not possible to create links between the internal "USB" storage (where my Play Music files were stored) and the external SD.
And this solution worked! So thanks a bunch rbeier1221! Thanks to the OP's of the linked threads as well, but yours is the one that popped up in my Google search, and the guide I followed, so you get the thank you-post.
Though I did skip the steps to download the attached script and install Scriptmanager. And if anyone else should manage to google their way to this thread, and just happens to have ROM Toolbox on their phone, you can just type in the mount command along with your file paths in the Scripter utility (or import an existing script I'm guessing would work just as well).

Related

[Tutorial] Change the internal ringtones of your rom

After you have read and follow this tutorial, you will be able to do the following:
*Remove ringtones, alarms, and notification tones that you don't use
*Add your own ringtones, alarms, and notification tones that you WILL use
**This is not the same as downloading and using a ringtone from the internet, or wherever. Those methods allow the phone to play the file from your memory card. With this method, we are physically removing or adding directly in the ROM itself.
**Make a backup! I am NOT responsible for ANYTHING that YOU do.
YOU HAVE BEEN WARNED. Now, Let's proceed.
Alright... So you wanna do this, here is what you will need:
*ADB Installed and working
*Root Manager of some sort (I use Android Commander)
*Format Factory - This is freeware, so it's not warez.
Step 1. Download and install Format Factory. This is the program I use for everything. If you have one of your own preference, it can be substituted.
IMPORTANT: When installing Format Factory, choose CUSTOM install, and uncheck the toolbar boxes. Otherwise, you are gonna get toolbars installed. You have been warned.
Step 2. Open Format Factory and click "All to OGG", located under the "Audio" tab on the left. (OGG is universal from Android to Android. That's why this is the chosen option. Also, the sound quality is not noticeably different, and uses less space than an MP3)
Step 3. Now a new screen appears. Click "Add File", and navigate to your audio files that you want as ringtones, alarm, etc. Once selected, click "OK"
DO NOT CHANGE THE OGG SETTINGS. DEFAULT SETTINGS WORK FINE
Step 4. Now you should be back at your main window, as if you just started the program. You should now see your selected files listed in the right window of the program. On the top bar, click "Start."
**Once the conversion process is finished, you may close the program. By default, your saved files will go to documents/FFOutput
Step 5. Open your Root Explorer program, I use Android Commander
**In Android Commander, the left window is your PC, the right is your phone
Step 6. With your Root Explorer program, navigate to your newly created OGG files. Once you see them listed, select them. In Android commander, to select a file, you must put a check mark in the box associated with that file.
Step 7. Move these newly selected files to your phone, by clicking the "Copy" button above the left window in Android Commander. In the right window, you will want to make sure that you are within your "/system/media/***" folder, to insure these files are copied to the correct location.
Step 8. Reboot and test.
Please note: "***" represents the respective folders. i.e. "ringtones", "notifications", etc.
If you want to remove audio files that you do not use, just select them, and click "Delete" from within their respective folders, using Android Commander.
**Once they are deleted, if you have no backup, they are gone!
I hope this has helped some of you, who wish to do this. If it has, please click THANKS.
Constructive criticism is always welcome. any questions, just ask.
I would suggest backing up the first first...
adb pull /system/media media-backup
You could replace steps 5-8 with this if you know how to use adb.
From cmd prompt:
adb remount /system
adb push drive:\path\to\folder-with-oggs /system/media/(ringtones/alarms/ui)
adb reboot
Can I just ask what's the advantage of doing this versus using a tone off of your SD card? Seems like a lot of extra work.
designgears said:
I would suggest backing up the first first...
adb pull /system/media media-backup
You could replace steps 5-8 with this if you know how to use adb.
From cmd prompt:
adb remount /system
adb push drive:\path\to\folder-with-oggs /system/media/(ringtones/alarms/ui)
adb reboot
Click to expand...
Click to collapse
Got that in the OP, to backup your stuff first. ..And thanks for the command prompt commands. I'll give those a shot.
harlenm said:
Can I just ask what's the advantage of doing this versus using a tone off of your SD card? Seems like a lot of extra work.
Click to expand...
Click to collapse
The advantage to doing this is nothing more than getting rid of extra stuff on your phone. Once the files are converted, you can put them aside somewhere and always have them.
This is with the understanding that you already have these ringtones on your memory card... This is a way to get them off your memory card, and on your phone. This in turn keeps your memory card clean.
I personally like this, because the only stuff that is on my phone is what I use, and nothing more. Even programs I don't use, get stripped from whatever ROM I am using.
FUNCTION > FORM
Ty for ya time there TribalartGod.
Works well....AND i have been trying to find something like this android commander.
So double thanks to ya
tribalartgod said:
Got that in the OP, to backup your stuff first. ..And thanks for the command prompt commands. I'll give those a shot.
The advantage to doing this is nothing more than getting rid of extra stuff on your phone. Once the files are converted, you can put them aside somewhere and always have them.
This is with the understanding that you already have these ringtones on your memory card... This is a way to get them off your memory card, and on your phone. This in turn keeps your memory card clean.
I personally like this, because the only stuff that is on my phone is what I use, and nothing more. Even programs I don't use, get stripped from whatever ROM I am using.
FUNCTION > FORM
Click to expand...
Click to collapse
android reads your sd card for media just like it does on the system partition.
if you wanna keep your sdcard clean of ringtones/alarms/notifications files
just make a folder on your sd card called media then create the other folders to mimic android's system partition.
so it would be
media/audio/alarms
media/audio/notifications
media/audio/ringtones
that way the media scanner has to do less searching
and if you have small system partitions like older phones this really helps to strip them out the rom and put them on the sd card.
Thx for the info. Works great for my wife's Samsung infuse. I rooted it but for some reason it wont let me set custom ringtones without loading a custom rom. So this method worked great to replace her ringtones on rooted stock rom. Unfortunately there really isn't a solid custom rom for the infuse with what I tested so far.
Sent from my Inspire 4G using xda premium
Great tut. Ill keep it in mind as I normally just use a zip that drops my ringtones into the proper folder and deletes the ones I don't use. Or use root explorer to delete them if there are new ones not in my list.
Extract ringtones
After reading this i thought i could be able to extract ringtones from any rom from the system/media/ringtones/ but unfortunately i couldnt find any of them there.Where else could they be?
vinayakmt said:
After reading this i thought i could be able to extract ringtones from any rom from the system/media/ringtones/ but unfortunately i couldnt find any of them there.Where else could they be?
Click to expand...
Click to collapse
I'm no longer on this device...but what Rom are you trying to pull them from? I can still help. Pm me if need be
LG-P769 - Needs MIUI
I've been wondering how to do this. Now I have only my sd tones as I deleted the ones I didn't like (all of them moslty). Thanks!
Nice!
Sent from my SGH-I997 using xda app-developers app

[Q] How to connect/access g2x thru computer

I have hellfire phoenix v1.9 running on my g2x. I wanted to add a ringtone from my computer into the g2x.
I have installed the android platform driver and then when I connect, I see drives E and F, but cannot explore them.
I searched and found a suggestion to turn on usb storage--but I find no options on the hellfire phoenix v1.9 to do this.
Also, toggling the usb debugging mode does not change anything.
All I am trying to do is to find the native ringtone folder and add my ringtone which I made in a .ogg format.
Please help
The simplest way for you to do this is put the file on your SD card and using either root explorer or ES file manager. You'll want to mount system as writeable via the settings and go to System\media\audio\ringtones\
Note you don't have to make the .ogg files it will still work with MP3's except alarms for some reason. You will also need to reboot before it shows up in your list.
Sorry, but I cannot understand when you say,
--You'll want to mount system as writeable via the settings and go to System\media\audio\ringtones\---
Is there a way to move this .ogg or .mp3 file into the ringtones folder (which exists in System\media\audio\ringtones. I can see all the ringtones once I use file explorer.
Even if I copy the file into a external sd, since it is not as intuitive as cut/copy and paste into the folder--how is this done.
What I was hoping was to be able to open this folder thru the computer when connected thru USB and just drag and drop it into the folder of ringtones. If this is not possible assuming the ringtone I want moved is called vintage.ogg , can this be done with ADB commands? Please help
sksriniv said:
Sorry, but I cannot understand when you say,
--You'll want to mount system as writeable via the settings and go to System\media\audio\ringtones\---
Is there a way to move this .ogg or .mp3 file into the ringtones folder (which exists in System\media\audio\ringtones. I can see all the ringtones once I use file explorer.
Even if I copy the file into a external sd, since it is not as intuitive as cut/copy and paste into the folder--how is this done.
What I was hoping was to be able to open this folder thru the computer when connected thru USB and just drag and drop it into the folder of ringtones. If this is not possible assuming the ringtone I want moved is called vintage.ogg , can this be done with ADB commands? Please help
Click to expand...
Click to collapse
Normally it's read only, as in you can look but you can't touch. Writable means you write to it, you can alter or otherwise put information/files there.
And, yes it's as simple as copy and paste, unless you don't know what you're doing in the first place.
Using ES file explorer is the simplest method. Even if you use ADB you still would have to give it the command to mount the system as writable. If you Droid explorer you still need to have the system mounted as writable.
I don't know if it works on all roms, but Gingerbread based roms if you make a directory named ringtones in the Root of the SD card the phone should read it from there, or it does on mine.
Yes, I did everything--thought it was going to work, but it failed.
Steps I took--
Copied a sound.ogg file into the ext sdcard
Installed ES file explorer and under preferences set permissions to write (because I am rooted)
Copied the file from edt sd card
then switched to the systems\media\audio\ringtones folder, was able to see all the ringtones currently present.
Pasted my sound.ogg file---it said "multiple operations completed, but failed to paste sound.ogg Unclear why..
Should I have rebooted after setting permissions to write, before executing the copy and paste operation?
Thanks for the prior help--but need some more..
Use an app called software data cable......works like a charm.....remember u need to be on the same network......it uses FTP service.
Sent from my LG-P999 using xda premium
I use a really useful app called Airdroid which you can find on the Google market. It allows you to establish a Wifi connection through your computer's web browser to your phone. I then transfer whatever music, files, shows or anything I want through it.
Thanks everybody
Just followed my previous steps as outlined. Being a noob, I had to do things gingerly, not to screw up. As I guessed, I have to reboot, before the ability to write takes effect (on es file explorer). Then it is just a matter of copy and paste.
Thanks all

[solved] crashing accessibility app

To the Admins, I'm not entirely sure where you guys would want this thread...troubleshooting seemed to be the most sensible.
all right everyone, I'll explain here how I fixed this, but keep in mind I have the ATT LG G2 running KitKat with TWRP 2.7.0.0 and I'm rooted. I only recommend this for advanced users. If you aren't an advanced user, well, make sure you have a backup. I'm sure there was a faster way to fix this, but my goal wasn't to find the fastest way initially, it was to find a working way. For example, you could just ADB everything. You could also, assuming you know how to use your OS to search that deep into the device files, done a rename, copy/paste etc. etc. Not all devices are made equal, so be CAREFUL! BTW, I was in debugging mode + charge only.
WARNING: I AM ONLY OFFERING THIS FOR INSIGHT TO ADVANCED USERS THAT KNOW WHAT THEY ARE DOING - I DON'T OFFICIALLY RECOMMEND THAT ANYONE DO THIS. I AM NOT RESPONSIBLE FOR ANY TRANSMUTATION FROM LG G2 TO BRICK.
Here's what I did:
1) I opened accessibility while hooked up to the debugger in Android Studio to see that it was producing a Null Pointer Exception.
2) I have a slightly modified version of the TOT file so that I can run TWRP and still be rooted in KitKat.
3) I am rooted, so I used Root Explorer to search for accessibility and found that the file is called "LGSettingsAccessibility.apk" and .odex - it's under (WITH ROOT ONLY) /system/priv-app/
4) I searched for a system dump copy online...I found this site: http://hunterspad.com/Domains/StorageCow/Xda/Users/garyd9/Extracted System/priv-app/
I found that by typing "LGSettingsAccessibility.apk" and initially found a Google Drive version but it was posted in September of 2013 - unlikely to be the odex and apk from KitKat hahaha. I used a Google Search that searched custom range between Feb 1st and today. I found 2 links, one of which is the above.
NOTE: I don't recommend anyone do the following unless you KNOW what you are doing and definitely have a backup to restore to if things go wrong
5) I sent the link for each file to myself on Google Hangouts. I used Hangouts to download the March 14th upload of the LGAccessibilitySettings.apk and LGAcessibility.odex
5.5) I copied each of the original files (.apk and .odex) from /system/priv-app/ to my /sdcard/LGBackup folder I created using the Root Explorer app.
6) I went into the app "Root Explorer" again after downloading both files (DID NOT INSTALL IT, though it probably won't let you anyway). I checked both files and copied them.
7) I went back to /system/priv-app/ and renamed the existing files to be replaced with the extension ".bak" so that the system no longer points to those files (NOTE: Root Explorer asked me to remount as R/W (read and write vs. read-only) a good feature of root explorer to be in read-only by default; dangerous territory.
8) Bottom right corner of Root Explorer it was waiting for me to "Copy Here" when arriving at the location where I wanted to copy the files: /system/priv-app/ and after copying them I decided to be a fool and install the apk and it told me something like "app not found" or something.
9) FINALLY went into Settings and touched Accessibility and VOILA! It worked! A lot of luck involved - the odexed and apk files may not have been the proper version. I could have checked with relative ease (though likely time-consuming) by using some of my android dev skills/utilities.
WARNING: I AM ONLY RECOMMENDING THIS FOR ADVANCED USERS THAT KNOW WHAT THEY ARE DOING.
Thanks to garyd9 on XDA - without your uploaded files on storage cow, I couldn't have fixed this problem!

Android workaround for the NFS Most Wanted "not enough free space" problem

ATTENTION! Back up your original apk file BEFORE the mod as you WILL need it AFTER the mod is done..
Ok guys, so i decided to play NFS Most Wanted on my new device (LG L Fino) so i installed from market and started the app.. Ok BUT as many of you i was facing the "Not enough memory on device,clear up some memory to proceed" message. So i got angry and decided to see if there is a workaround of the problem. Well generally the problem itself is that my device (like many others) uses ONE memory chip which is split into TWO 2GB parts, the first is system only, and the second is user- accessible, BUT 1,2GB of that "user space" is flooded by system junk and bloatware etc etc.. So all you have left in the so-called Emulated SD is actually some 0.8 gigabyte which is not sufficient in any way, when you want to install NFS Nost Wanted, because when you start the app first time it asks you to download some 2055mb's game data and says you have 0mb free on device, when the actuall gamedata size is only 670mb.. So i found this workaround and i decided to share right away.. Enough talking - lets get to business:
Prerequisites:
ROOT IS A MUST HAVE FOR THIS JOB
Install RAR app from rarlabs (search on google play)
Install ES File Explorer
Install NFS Most Wanted from google play
Make sure of having at least 700mb free on internal mem.
Lets start.
First open ES File explorer and turn Root Explorer "on"
Then navigate to root/data/app and find a file named " com.ea.games.nfs13_na-1.apk "
Now COPY that file to the root of your ext SD (for the sakes of easy navigation)
Next click and hold on the file till you have it marked then from the popup menu (right lower corner) choose "Open as" (not extract) then choose "ES Archive manager" and once inside, navigate to /assets/downloadcontent .
There you will find a file named: "config.properties"
Copy that to the root of you ext SD and open it with text editor.
what you need is to find the two lines that read
TOTAL_SPACE_MB=2055
# TOTAL_SPACE_MB_MIN=440
and edit them to look like this:
TOTAL_SPACE_MB=0205
# TOTAL_SPACE_MB_MIN=044
Now close the file and save the changes.
Next open the RAR app and navigate to the root of your ext SD then click and hold the edited text file till a menu pops up, select "Copy to buffer"
Then click and hold at the apk file, select "Open as archive" (NOT EXTRACT!) and again navigate through assets/downloadcontent, then click and hold on a random file and from the popup menu select Paste, it should ask you if you want to overwrite, choose YES and close RAR.
Final step is to open ES File Explorer again, navigate to root of ext SD, COPY the now edited APK then navigate to root and /data/app and PASTE. Select YES to overwrite file.
Now click and hold the apk one last time, and from the popup menu (lower right corner) choose "Properties"
Right next to "Permissions" there should be a button named "Change" go ahead and push the button. Now you have to fix those permissions, you should see 9 checkboxes. CHECK the three ones that are underneath "Read" and check ONLY the topmost thats underneath "Write". ALL OTHER HAVE TO BE UNCHECKED!
it should now look like this:
.......................Read.........Write.........Execute
Owner:........(*)...............(*)...................( )
.
Group:.........(*)................( )...................( )
.
Others:........(*)................( )...................( )
Click Ok, close ES File explorer, run game, download 650mb gamedata and have fun (optional is when you download gamedata to use app like GL to SD)
if you mess up the process, start over-rinse-repeat
I hope i helped someone and if yes please feel free to hit thanks button ( no it doesn't bite)
Greetings from Bulgaria
Edit: I found out a bug and i don't know if it's only with my copy of the game after modding or if everyone of you who tried this has it. So...
THE BUG is that after i modified the already installed apk in order to download data, i happened to restart my device and when it booted it seemed like my copy of the game somehow "partially uninstalled" itself.. After a little digging i found out that it actually did uninstall itself, BUT only the apk - that meaning the data and savegame ARE still there..
THE SOLUTION is before doing the above mentioned walktrought you have to backup you Original apk first (using the backup app tool of ES File Explorer) and after that you have to reboot your device, install the original apk (it will tell you that this update has nothing new in it, thus not requiring any new permissions - install anyway) and you're good to go with a stable installed game..
BUG 2: after all done right, it happens that my copy of GL to SD app is not showing the most wanted in "linked apps" section and neither it is showing it in the "Move data" list.. Don't you worry, the game is still "in there" even when it does not show up on the lists, click the "mount" button and play as normal - it is working..
If there is some trouble i will be glad to help, just write a reply here and i will check my thread regularly.
Have a nice time guys... (Aaandd girls)
xD thanks a ton man, this helped me

[GUIDE] Manually install Play Store on Fuhu Nabi Jr Edition SNBJR-MT5C-US

This guide is for helping people that want to install Google play store at fuhu Nabi Jr Edition SNBJR-MT5C-US that have some expert skills. It is not an automated procedure yet.
This edition is equipped with an MTK processor and is not recognized by Nabilab tools so this procedure has to be entirely manual executed.
Root your device
Root device using Kingo Root
Enter Daddy mode
Boot rooted device and enter Daddy mode
Install Es File Explorer
Allow unknown sources to be installed
Install File Explorer from direct downloading apk
Make system rw
Enter Root Explorer option in Es File Explorer and select to mount system as rw
Download zip
Download zip from link below and extract contents using Es File Explorer
Link = https://www.androidfilehost.com/?fid=24665509702140403
copy files to system folder
Copy files within each folder of extracted zip to own folder Inside system folder
copy files to data folder
Copy files within each folder of extracted zip to own folder Inside data folder
reboot
Reboot device and cross finger.
Do these procedures at your own risk
So after following this procedure, is the play store supposed to just show up in the list of apps? No installation or anything?
Works!
Thank you very much. I have the SNBJR-MT5C 8GB version, which I brought from Aliexpress.
A number of things dont work as I am not located in the USA so could not enter billing information, so many of the built in apps dont work at all.
Device Rooted.
Installed the files, and Google Play works! It asked me to create/use a google account, all looking good so far!!
Thank you!
Only thing left is to figure out how to remove/hide some of the built in apps in Nabi mode which are not appropraite for my kid, or are too advanced etc, or dont work due to billing issue.
...
Only thing left is to figure out how to remove/hide some of the built in apps in Nabi mode which are not appropraite for my kid, or are too advanced etc, or dont work due to billing issue.
Click to expand...
Click to collapse
Well, to do this uninstall you may use some apps available on playstore like 'es file manager' or 'titanium backup'; the ones I use most for this task.
The problem is that I do not have much luck on restoring deleted apps afterwards on this device.
You should try to disable the app on Android Apps settings before attempt to delete them.
slplsnphx said:
So after following this procedure, is the play store supposed to just show up in the list of apps? No installation or anything?
Click to expand...
Click to collapse
Yes !
Simple like that.
Play Store is available on drawer list of apps.
Bit of help
Hi,
I just picked up two of the 8 gig models for my boys. I want to get the google app store going on both so i can get the nick jr app on there. I would love to flash the nabi jr nickelodeon edition on here if possible, not sure if it is. I'd like to follow this guide. Any problems if i follow this guide and then do a system update via nabi update, or should i disable that?
I'd be willing to provide any stock files if that would help make a recovery? Should I do twrp to make a backup for myself anyways?
Any thoughts would be appreciated.
Cheers,
Kutas
_Kutas_ said:
Hi,
I just picked up two of the 8 gig models for my boys. I want to get the google app store going on both so i can get the nick jr app on there. I would love to flash the nabi jr nickelodeon edition on here if possible, not sure if it is. I'd like to follow this guide. Any problems if i follow this guide and then do a system update via nabi update, or should i disable that?
I'd be willing to provide any stock files if that would help make a recovery? Should I do twrp to make a backup for myself anyways?
Any thoughts would be appreciated.
Cheers,
Kutas
Click to expand...
Click to collapse
This procedure will not install TWRP, just play store.
It will not allow to flash another nabi rom.
By the way, since it is a different processor, they are not compatible.
We would need to port TWRP to this device and compile an specific kernel for this device...
This made my kid very happy.
arvati said:
This guide is for helping people that want to install Google play store at fuhu Nabi Jr Edition SNBJR-MT5C-US that have some expert skills. It is not an automated procedure yet.
This edition is equipped with an MTK processor and is not recognized by Nabilab tools so this procedure has to be entirely manual executed.
Root your device
Root device using Kingo Root
Enter Daddy mode
Boot rooted device and enter Daddy mode
Install Es File Explorer
Allow unknown sources to be installed
Install File Explorer from direct downloading apk
Make system rw
Enter Root Explorer option in Es File Explorer and select to mount system as rw
Download zip
Download zip from link below and extract contents using Es File Explorer
Link = https://www.androidfilehost.com/?fid=24665509702140403
copy files to system folder
Copy files within each folder of extracted zip to own folder Inside system folder
copy files to data folder
Copy files within each folder of extracted zip to own folder Inside data folder
reboot
Reboot device and cross finger.
Do these procedures at your own risk
Click to expand...
Click to collapse
I know this is an old thread with nobody paying attention to it anymore but I just revisited this topic to try again. Followed instructions (I'm pretty sure correctly). Good new is I do have play store in the list of apps but when I try to login to my Google account it just immediately gives the message "there was a problem communicating with Google servers" or something like that. Any idea what the problem might be.

Categories

Resources