Scripts[LIST]dalvik2cache init.d script (all devices) - link
Bind mounts the dalvik-cache directory to the cache partition. Useful on devices where the cache is sizable and unlikely to be used for OTAs (custom ROM, etc.), and the data partition is not. Every little bit counts![/B][/SIZE]
the lead up::
I have a Gen 1 Moto G whopping 8 GB model,,,
'/data' partition is roughly 5.52 GB available space on a empty device,,, '/cache' partition is 662 MB
on android 5.1.x Roms ART dalvik cache partition, '/data/dalvik-cache' is running at about 1013 MB
Is it even possible to use your script on this device since ART is 60% larger than the size of /cache partition?
wouldn't the optimization process fail during boot? or would it only store what it can in /cache and rest in original '/data/dalvik-cache' ?
also the '/data' partition is f2fs where as '/cache' is ext4, would there be any noticeable difference in speed?
As a second option I was thinking of maybe using the script to have TitaniumBackup use the '/cache' partition
I currently have is storing about 581 MB
If I go this route would I link it as '/sdcard/TitaniumBackup' or as '/storage/emulated/0/TitaniumBackup' ?
what I'm doing right now with /cache is storing a 2nd gapps package and a 2nd ROM as a safety net when flashing new ROMS
My '/data' normally runs @ 5 GB of it's generous 5.52 GB capacity with backups, apps to try, kernels, themes, etc, etc.
I have to get creative backing up things to cloud, otg or pc storage, especially with a full TWRP backup weighing in at 1.25GB thanks to ART optimizations I can't just go and have a quick restore lounging around on my device anymore.