Moving Android cache to SD Card

There are a number of ways;
* install “Terminal Emulator” app to run commands on the phone
* Install “SSH Droid” and use ssh on linux/ putty on windows
* Use Android ADB Command Line Tool

Some Android devices, which have little internal memory or when download data and application data fills the cache area, will issue “insufficient space” warning.  A quick workaround would be to move device cache and/or application caches to SC card.

It is assumed that the device is already rooted and a way to run commands on the device is available. i.e “Terminal Emulator” app, Android ADB.

Basically, the idea is to create a cache folder on SD card, remove the cache folder on internal memory and then link the internal folder to the folder on SD card so SD card space is used.

To move the cache folder

1
2
3
4
5
umount /cache
mount -o rw,remount -t rootfs rootfs /
rmdir /cache
mkdir /sdcard/cache
ln -s /sdcard/cache /cache

Browser Cache

1
2
3
4
cd /data/data/com.android.browser/cache
rm -R webviewCache
mkdir /sdcard/cache/webviewCache
ln -s /sdcard/cache/webviewCache webviewCache

Google Maps

1
2
3
4
cd /data/data/com.google.android.apps.maps
rm -R files
mkdir /sdcard/cache/files/maps
ln -s /sdcard/cache/files/maps files

Google StreetView

1
2
3
4
cd /data/data/com.google.android.street
rm -R cache
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache cache

Market Cache

1
2
3
4
cd /data/data/com.android.vending
rm -R cache
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache cache

imeem Cache

1
2
3
4
cd /data/data/com.imeem.gynoid
rm -R cache
mkdir /sdcard/cache/imeemCache
ln -s /sdcard/cache/imeemCache cache

Tunewiki Cache

1
2
3
4
cd /data/data/com.tunewiki.lyricplayer.android/cache
rm -R webviewCache
mkdir /sdcard/cache/tunewikiCache
ln -s /sdcard/cache/tunewikiCache webviewCache

Steel Browser Cache

1
2
3
4
cd /data/data/com.kolbysoft.steel/cache
rm -R webviewCache
mkdir /sdcard/cache/steelCache
ln -s /sdcard/cache/steelCache webviewCache

OR

1
2
3
4
5
cd /data/data/com.kolbysoft.steel
mkdir cache
cd cache
mkdir /sdcard/cache/steelCache
ln -s /sdcard/cache/steelCache webviewCache

MeetMe Cache

1
2
3
4
cd /data/data/com.stylem.meetme
rm -R cache
mkdir /sdcard/cache/meetmeCache
ln -s /sdcard/cache/meetmeCache cache

MySpace

1
2
3
4
cd /data/data/com.myspace.android
mkdir /system/sd/cache/files/myspace
rm -R files
ln -s /sdcard/cache/files/myspace files

Gmail

1
2
3
cd /data/data/com.google.android.gm/cache
rm -R webviewCache
ln -s /sdcard/cache/webviewCache webviewCache

Voice Search

1
2
3
cd /data/data/com.google.android.voicesearch/cache
rm -R webviewCache
ln -s /sdcard/cache/webviewCache webviewCache

My Maps Editor

1
2
3
cd /data/data/com.google.android.apps.mymaps/cache
rm -R webviewCache
ln -s /sdcard/cache/webviewCache webviewCache

Credits:

Thanks to birdman81484 for imeemm, Tunewiki, Steel Browser, MeetMe, MySpace cache folders

NB:

What if the cell is connected to the PC via USB and the SD mounted as a external storage device? This would be a problem, I suppose.

I’ve installed Link2SD and created an ext2 partition… it’s possible to move the cache into the ext2 partition (this would prevent any issue)? How to do it the right way?

 

 

Advertisements

One thought on “Moving Android cache to SD Card

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s