[Asus  Eee Pad Transformer Prime] meldrak:
I made a script to move application cache from data to microSD.

The reasons:

- Internal memory of TF201 lags and make annoying ANR

- I don't want to use the data2sd version that keep SD always inserted

- browser2ram show the way but only for browser and consume RAM

Version 2.x use an EXT4 partition on your SD:

- This version needs an additional EXT4 partition on your MicroSD to works

- First primary partition is your usual NTFS, FAT32 or exFat, and second one must be at least 768Mb or 1Gb

- You must be root, have a unsecured kernel, have a proper busybox build and using STOCK 4.1 rom

- I also include a second script "obb2sd" in this zip, it will bind big OBB database from internal to external

but only activate if your MicroSD is at least 32Gb (bind /sdcard/Android/obb/ to /Removable/MicroSD/.obb/)

Benefits of using an EXT4 partition instead:

- No more permissions errors that cause FC in some application (1.x version of my script)

- Better speed, EXT4 is tweaked for cache utilization

- Works with symlinks instead of bind mount

- No options to script just run "cache2sd", all application cache is moved to SD

- EXT partition not visible from media scanning, so less battery drain

Limitation of using EXT4 partition:

- MicroSD should not be removed but you could do it

- New installed apps will not set up automatically cache to SD

=> So every time you umount/mount your MicroSD, install a new app, just run command "cache2sd" and "obb2sd" or let an app like Tasker do it for you !!! Or reboot device !!!

How to use / it works:

- Coming from 1.x version, please uninstall it before (see 2nd post)

- Flash "TF_stock4.1_cache2sd.ext.zip" from recovery and it will activate itself if a second partition is present on MicroSD

- At first run the second partition will be erased and formatted as EXT4 and aligned to sector if needed

- /cache mount point to internal memory (mmcblk0p2) is replace during boot by MicroSD ext partition (mmcblk1p2)

- It will make a symlink from app cache (/data/data/app.name/cache) to your ext SD newly mounted as /cache

FAQ:

- Will it work on other rom like ported 4.2 or AOSP 4.4?

maybe it should but I haven't tested it, don't flash zip as it include binary for 4.1,

just download xbin_binary.zip and put cache2sd script to /system/xbin/

and before running it check that your rom have these binary installed e2fsck, mke2fs, tune2fs in /system/bin/

check log in /data/local/link2sd.log !!!! and let me know :D

- Gain will not be the same for each app as they use or not cache, but overall performance is really improved

you can say goodbye to almost all lags with a stock rom !!!

- Old version 1 is still available at 2nd post and don't use ext4 partition and have some bugs

Without running my script:

View attachment 3058685

With cache2sd activated on EXT4 partition:

View attachment 3058684

.

XDA:DevDB Information

CACHE2SD Boost system by moving app's cache to SD, Tool/Utility for the Asus Eee Pad Transformer Prime

Contributors

meldrak

Source Code: http://xdaforums.com/showpost.php?p=40887418&postcount=2

Version Information

Status: Stable

Current Stable Version: 2.1

Created 2013-10-15

Last Updated 2014-12-11