[Asus  Eee Pad Transformer Prime] meldrak:
Version 1.x

Here is the old version 1.5 with no needs of additionnal ext4 partition

How it works:

Cache2sd is a binary to be called in a terminal or adb

Works on stocks ROM JB 4.1 and 4.2

Works on SD formated in EXFAT, NTFS and FAT32

you must be root and have a proper busybox build

it will make a bind from app cache (/data/data/app.name/cache) to your external SD (Android/cache/app.name)

If you remove your SD, application are still useable if you reboot your device or disable cache2sd by command line

Configuration:

- Just flash the one of the zip in TWRP recovery

TF_cache2sd_autostart.zip with init.d autostart (by default only browsers are cache2sd until you configure it)

TF_cache2sd_binary.zip (you'll have to run it manually)

- First time type cache2sd -c to configure it

sh-3.2# cache2sd -c

Cache2sd for Internet (browsers, playstore, downloads) is enable
Activate it Y/N : y

Cache2sd for Google Apps (maps, gmail, youtube, etc...) is enable
Activate it Y/N : y

Cache2sd for All Apps (except system's apps) is disable
Activate it Y/N : n

Android Data (/sdcard/Android/data/) to extSD is enable
Activate it Y/N : y

sh-3.2#

use All Apps with caution, it may cause FC with some apps, you should consider using data2sd kernel if you can

- Activate it with cache2sd -m

sh-3.2# cache2sd -m
Cache2sd enable
sh-3.2#

- Check current active binds cache2sd -a

sh-3.2# cache2sd -a
/data/data/com.google.android.apps.maps/cache
/data/data/com.google.android.apps.plus/cache
/data/data/com.google.android.gm/cache
/data/data/com.google.android.googlequicksearchbox/cache
/data/data/com.google.android.music/cache
/data/data/com.google.android.youtube/cache
/data/data/com.android.browser/cache
/data/data/com.android.vending/cache
/data/data/com.android.providers.downloads/cache
sh-3.2#

- and desactivate it with cache2sd -u

sh-3.2# cache2sd -u
Cache2sd disable
sh-3.2#

Bugs:

-

downloads from playstore don't begin or block

(generaly after 10 consecutive downloads)

resolve it by clearing cache of app "Download Manager" in Android settings (rebooting or doing the same as below will work too)

- some

apps may Force Close

with cache2sd enable

try to resolve it by disabling it with cache2sd -u run again your app and reactivate it with cache2sd -m

if FC again tell me wich app, I'll add it to exclude list

- running apps with cache2sd enable and MicroSD umounted may

cause a reboot

(depends of apps)

so if you need to use tablet without your sd for a moment disable it with cache2sd -u or see tips

To report me a problem:

- provide me the log, get the file with command "cache2sd -l"

- give me your SD details with command "adb shell mount | grep vold"

- give me your ROM version with command "adb shell cat /system/build.prop | grep ro.build.version"

To remove the autostart script:

- 1st reboot without SD inserted, so script will revert cache to internal

- remove the script with command "adb shell rm -f /system/etc/init.d/S99cache2sd"

- type cache2sd -r to disable/erase all cache and revert to internal memory

Tips:

you can change SD mount point with command cache2sd -sd

/system must be ReadWrite access before doing it

sh-3.2# cache2sd -sd

MicroSD mount point is set to /Removable/MicroSD
If you need you can change it to:
1. /Removable/MicroSD (stock rom)
2. /storage/sdcard1 (cyanogen rom)
Your choice (1 by default) :

Better to use script with tasker and set "cache2sd -m" with event sdcard is mounted

and "cache2sd -u" when sdcard umount or ejected. You'll nerver have to reboot tablet in this case

You also can create desktop shortcuts with script manager

(Don't forget to run script as root with tasker, script manager and other like apps)

If you have FC on a app, maybe some sub folders have been created with wrong permissions

so disable cache2sd et re enable it, to auto apply good permissions to folders

- Check log with cache2sd -l

sh-3.2# cache2sd -l
Starting on Wed Aug 21 16:33:52 CEST 2013
SD found after 0 sec. in /Removable/MicroSD
com.google.android.apps.books doesn't exist yet
com.google.android.apps.currents doesn't exist yet
Binding com.google.android.apps.maps
Binding com.google.android.apps.plus
com.google.android.apps.unveil doesn't exist yet
Binding com.google.android.gm
Binding com.google.android.googlequicksearchbox
com.google.android.keep doesn't exist yet
Binding com.google.android.music
com.google.android.videos doesn't exist yet
Binding com.google.android.youtube
com.google.earth doesn't exist yet
Binding com.android.browser
com.android.chrome doesn't exist yet
Binding com.android.vending
Binding com.android.providers.downloads
Finished on Wed Aug 21 16:33:52 CEST 2013
sh-3.2#

v1.1 changelog - v1.2 changelog - v1.3 changelog - v1.4 changelog - v1.5 changelog