HTC’s New Ad Campaign And What It Really Means

HTC has just released three new blind test adverts comparing app loading … more

XDA Picks: Best Apps of the Week (June 27 – July 4)

Apps are at the front and center of any smartphone experience, and with over a … more

HTC One M9 Developer Edition Android 5.1 OTA

The Developer Edition of the HTC One M9 is receiving an over-the-air update to Android 5.1. … more

Index Project For XDA Device Subforums

Another ambitious project from the collaborative efforts of Recognized Contributors and Forum … more

Move All yourCaches to SD card at once.

67 posts
Thanks Meter: 1
By necromancerr, Member on 16th January 2009, 08:06 AM
Post Reply Subscribe to Thread Email Thread
I wrote a small script with help of stericson that will move all your caches to sd card. Right now, it will move caches for following apps;
3)street view
4)imeem music
5)tune wiki player

all these tutorials used from, i just used all and wrote a script to make my job easier.

This script will make a folder called cache in your sd card, and 5 sub folder, for each apps.

copy the file to your sd card in home directory. make sure you have root.
go to terminal, and type in following commands
#mkdir /data/local/bin
#cp /sdcard/ /data/local/bin
#chmod 0755 /data/local/bin/

it'll execute itself, if you get any error messages saying "bla bla bla" dir doesnt exist, that is because either you don't have that app installed or you have never used that app before and it doesnt have any cache to transfer.

Leave comments or suggestions. i will make maps work this weekend. i dnt have time right now.

i am not responsible if it bricks your phone. I am pretty sure it wont though
Last edited by necromancerr; 16th January 2009 at 08:09 AM.
16th January 2009, 08:12 AM |#2  
robpet2's Avatar
Senior Member
Flag Virginia
Thanks Meter: 77
thanks for this... btw can you add the steel cache also... will try this scrip as soon as i finish updating my pc.
16th January 2009, 08:20 AM |#3  
OP Member
Thanks Meter: 1
Originally Posted by robpet2

thanks for this... btw can you add the steel cache also... will try this scrip as soon as i finish updating my pc.

yes will add more, but those are all for the weekend.
16th January 2009, 08:23 AM |#4  
robpet2's Avatar
Senior Member
Flag Virginia
Thanks Meter: 77
take your time bro...
I probably wont use it my self till after chrome is added.... but the noobs need this bad... lol
16th January 2009, 08:44 AM |#5  
Flag Seattle
Thanks Meter: 6
Donate to Me
Worked. thank you.
16th January 2009, 08:46 AM |#6  
Senior Member
Thanks Meter: 24
Can you upload it somwhere else? I cannot access rapidshare at the moment.

16th January 2009, 02:18 PM |#7  
Junior Member
Flag Tempe, AZ
Thanks Meter: 0
Hey Birba, copy and paste the below into notepad, save as

chmod 0777 /data/local/bin/

mkdir /sdcard/cache

rm -R /data/data/
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/

rm -R /data/data/
mkdir /sdcard/cache/webviewCache
ln -s /sdcard/cache/webviewCache /data/data/

rm -R /data/data/
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache /data/data/

rm -R /data/data/com.imeem.gynoid/cache
mkdir /sdcard/cache/imeemCache
ln -s /sdcard/cache/imeemCache /data/data/com.imeem.gynoid/cache

rm -R /data/data/
mkdir /sdcard/cache/tunewikiCache
ln -s /sdcard/cache/tunewikiCache /data/data/

Oh and thank you for this necro, much appreciated for those of us who get hand cramps typing out all these commands on the G1 keyboard
Last edited by betawind; 16th January 2009 at 02:19 PM. Reason: Thanking necro :)
16th January 2009, 03:55 PM |#8  
pixel-painter's Avatar
Senior Member
Flag Sammamish
Thanks Meter: 23
Doesn't it seem like it would be a good idea to copy the cache over before you delete it

I'm a bit of linux noob.. but perhaps instead of deleting you could change it to mv and then you would not need to make the directory on the SD card either


rm -R /data/data/
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/

would become

mv /data/data/ /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/
Last edited by pixel-painter; 16th January 2009 at 04:05 PM.
16th January 2009, 06:11 PM |#9  
Preech2003's Avatar
Senior Member
Flag Maryland/Washington , D.C.
Thanks Meter: 2
Sd card myheim!!!
OK please help i have searched all over. I have 2 Questions & Requests:

1. How do I install a script file? I know it automaticlly changes the Registry of the android OS or the Internal/FileSystem whateva its called but how to i install it??? Please help & Be detailed.

2. This is the big one. If a script file does automaticlly change the Internal file system (Android Registry) without using the Abd Shell. Can u please make the upload the script files to "INSTALL & RUN APPS FROM THE SD CARD" its been very difficult using the "adb shell" on my desktop.

Ive tried everything. I even tried to use the "ASTRO" file browser to modify the correct files but evenwith root it wont allow you to modify or switch files.

PLease Help. My SD Card is already perfectly partioned and ready to go.
16th January 2009, 09:09 PM |#10  
Thanks Meter: 1
Thanks, that was an excellent post.

For steel, you can probably add this in the script file:

rm -r /data/data/com.kolbysoft.steel/cache/webviewCache
mkdir /sdcard/cache/steelCache
ln -s /sdcard/cache/steelCache /data/data/com.kolbysoft.steel/cache/webviewCache

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

Advanced Search
Display Modes