Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,442 Members 39,868 Now Online
XDA Developers Android and Mobile Development Forum

Move All yourCaches to SD card at once.

Tip us?
 
necromancerr
Old
(Last edited by necromancerr; 16th January 2009 at 08:09 AM.)
#1  
Member - OP
Thanks Meter 1
Posts: 67
Join Date: Dec 2008
Default Move All yourCaches to SD card at once.

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;
1)Market
2)browser
3)street view
4)imeem music
5)tune wiki player

all these tutorials used from www.modmygphone.com, 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.

Instructions:
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/transfer.sh /data/local/bin
#chmod 0755 /data/local/bin/transfer.sh
#transfer.sh

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.

http://rapidshare.com/files/184145725/transfer.sh

i am not responsible if it bricks your phone. I am pretty sure it wont though
Samsung Vibrant w/ Bionix 1.6
HTC G1 - Rooted 1.3 with Dev Bootloader
Custom theme and custom boot image.
 
robpet2
Old
#2  
robpet2's Avatar
Senior Member
Thanks Meter 77
Posts: 2,747
Join Date: Sep 2006
Location: Virginia
thanks for this... btw can you add the steel cache also... will try this scrip as soon as i finish updating my pc.
Samsung Galaxy S 3 - Verizon Pebble Blue 32GB
Aokp JB Build 3
PARANOIDANDROID 2.13 rom
* CleanRom 2.5 * - CURRENT
SynergyROM VZW S3 v1.7 (Bounce back rom )

HTC EVO 4G VIEW TABLET - ROOTED - for sale

gtalk/fring: kaysesoze
Follow Me on Twitter
GOOGLE+
Donate
 
necromancerr
Old
#3  
Member - OP
Thanks Meter 1
Posts: 67
Join Date: Dec 2008
Quote:
Originally Posted by robpet2 View Post
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.
Samsung Vibrant w/ Bionix 1.6
HTC G1 - Rooted 1.3 with Dev Bootloader
Custom theme and custom boot image.
 
robpet2
Old
#4  
robpet2's Avatar
Senior Member
Thanks Meter 77
Posts: 2,747
Join Date: Sep 2006
Location: Virginia
take your time bro...
I probably wont use it my self till after chrome is added.... but the noobs need this bad... lol
Samsung Galaxy S 3 - Verizon Pebble Blue 32GB
Aokp JB Build 3
PARANOIDANDROID 2.13 rom
* CleanRom 2.5 * - CURRENT
SynergyROM VZW S3 v1.7 (Bounce back rom )

HTC EVO 4G VIEW TABLET - ROOTED - for sale

gtalk/fring: kaysesoze
Follow Me on Twitter
GOOGLE+
Donate
 
octoberriot
Old
#5  
Member
Thanks Meter 5
Posts: 47
Join Date: Apr 2008
Location: Seattle

 
DONATE TO ME
Worked. thank you.
 
Birba
Old
#6  
Senior Member
Thanks Meter 24
Posts: 286
Join Date: Feb 2006
Can you upload it somwhere else? I cannot access rapidshare at the moment.

Thanks
 
betawind
Old
(Last edited by betawind; 16th January 2009 at 02:19 PM.) Reason: Thanking necro :)
#7  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Dec 2007
Location: Tempe, AZ
Hey Birba, copy and paste the below into notepad, save as transfer.sh

chmod 0777 /data/local/bin/transfer.sh

mkdir /sdcard/cache

rm -R /data/data/com.android.vending/cache
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache

rm -R /data/data/com.android.browser/cache/webviewCache
mkdir /sdcard/cache/webviewCache
ln -s /sdcard/cache/webviewCache /data/data/com.android.browser/cache/webviewCache


rm -R /data/data/com.google.android.street/cache
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache /data/data/com.google.android.street/cache


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/com.tunewiki.lyricplayer.android/cache/webviewCache
mkdir /sdcard/cache/tunewikiCache
ln -s /sdcard/cache/tunewikiCache /data/data/com.tunewiki.lyricplayer.android/cache/webviewCache


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
 
pixel-painter
Old
(Last edited by pixel-painter; 16th January 2009 at 04:05 PM.)
#8  
pixel-painter's Avatar
Senior Member
Thanks Meter 21
Posts: 215
Join Date: Jan 2009
Location: Sammamish
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

so


rm -R /data/data/com.android.vending/cache
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache

would become

mv /data/data/com.android.vending/cache /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache
 
Preech2003
Old
#9  
Preech2003's Avatar
Senior Member
Thanks Meter 2
Posts: 110
Join Date: Jul 2007
Location: Maryland/Washington , D.C.
Default 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.
PREECH aka DiostolicHeaven

www.BlackFreedomUnity.com

"Harsh Depictions Of Positive Realities"

The Truth Is Out There......
site coming soon....

HTC Universal 4 Life!!!....or until it breaks

"HTC OMNI" coming soon.....

*Universal Status:

T-Mobile Silver MDA Pro (G3)
8GB SD Card
WM6 Rom 2.09.01. BL+
T-Mobile UK Radio 1.10.00
 
ghassan99
Old
#10  
Member
Thanks Meter 1
Posts: 75
Join Date: Aug 2006
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


-Gus

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Try to Keep Up with Just Swipe Game

Sometimes, the simplest of games are the ones that end up beingthe most addictive and end up consuming … more

MultiROM Ported to the Moto E

Few categoriesof Android development are as intrinsically interestingas the ability to boot into multiple … more

XDA Xposed Tuesday: How to Control Google Play Wake Locks – XDA Developer TV

Xposed Modules are usually pretty simple. There are a few … more

Make Text Entry More Efficient with Macro Text Expansion

One of the best things about the modern day smartphone is its ability to save us … more