[MOD] D2P - free some space on /data, for most ICS ROMs
This is an init.d script inspired by bodhisattva99's work that can be found here:
Props to him for the idea.
This script does the same as his, but my zip does not flash a new zImage (the partition can be mounted anywhere with one single command, thanks, Chainfire!).
I do not own an SGS2, so this is untested by me personally, but it was tested by AColwill on A LOT of ROMs and he noticed seemingly better boot times than with the original script. However, he discovered that this also doesn't work on GB and earlier ICS builds.
If you do happen to flash it on an unsupported build, the script should simply print out that your ROM isn't supported to /data/d2p.log, exit, and let the boot process continue.
What does it do?
Basically, what it does is it puts Dalvik cache on /preload (which is about 500 MB in size and otherwise totally unused), freeing up space on /data for even more apps.
It will not wipe any of your data, it will just put Dalvik cache on /preload. First boot will take a while since Dalvik cache needs to rebuild, afterwards, it should work like a charm, leaving you with a few hundreds of megabytes more on /data.
- A recovery image
- A rooted ROM
Huge thanks to:
- testing, testing, testing and some more testing
- providing proper hosting for the zip
brabo, GShellz admin
- the bash wizard
- providing me with the preload parition ID
mattgirv (from #villainrom, Freenode) - compiling bash for me, help with cross-compiling
sircrazy, GShellz admin
- help with cross-compiling
Disclamer: I'm not responsible if something goes wrong and wreaks havoc upon you, your phone, your card, any part of your phone, your friends, your family, your close or distant relatives and/or your pet, but I will gladly provide assistance if it does.