[Desire Android Development] suiller:
:: UPDATED 69a2sd SCRIPT, INCLUDED IN BOTH ROMS ::

This script will replace amarullz one or any other a2sd way, simply because I needed something easier to manage installed apps and above all because this is basically a selective moving script

To achieve best performance, as default, only dalvik-cache + 3rd part app (excluded google/Os, launchers and keyboards) will be moved under ext partition

Q: how it works?

A: as default after every boot 3rd part app + dalvik cache are moved into sd-ext partition freeing space under real /data partition, the "bad" effect of this script is that free space calculation on /data isn't much accurate, anyway this is a good choice in general for who thinks that could be enough having about 500-700Mb of free extra space to manage app

---

Q: but if I want to keep dalvik cache on nand?

A: easy, simply create under /data an empty file called .nodalvik (for ex from adb or shell: echo>/data/.nodalvik), upon reboot dalvik will be re-generated under nand instead ext partition

---

Q: but if I want to keep apps on nand and dalvik on ext partition?

A: as above remove under /data the file called .nodalvik and create a new one called .nodata (for ex from adb or shell: echo>/data/.nodata)

---

Q: actions are revertible?

A: of course, you can switch from dalvik to ext (or data to ext) back to nand & vice-versa... without loosing anything

---

Q: I'd like to start with my choice upon a clean rom install (full wipe), can I?

A: sure, simply create an empty file called .nodalvik or .nodata & push it under /data folder directly in the .zip rom file

If you have an old ext partition, I mean populated with a different a2sd script, you have to do a full wipe before proceed... yep also ext partition

from date of this post the new script is included into the slim roms

anyway a copy is under official repository (included into latest mini-sdk... look in the signature below)

if you don't consider to convert to new a2sd script or simply don't intend to use any ext partition open rom .zip file with 7zip (www.7-zip.org) and remove under /system/etc/init.d folder the 69a2sd script.

important notes:

requires full wipe if coming from another a2sd way (I know it's annoying but I need feedback from clean installations)

don't download/install app all together, install max 40-50 app per time then reboot so the script will move newer app, dont' install big app all together (such as games)

probably is enough a 512-768Mb partition (personally I have a 512Mb ext partition with more than 130 app installed)

first reboots can take some more time because app are moved to ext partition

if you need to know how free space exactly you have simply from terminal launch the command: df

pay attention

that reverting from data => ext to data => nand, I mean after you populated it a lot, you should consider remaining free space available on nand for moving back app to nand

the most important

: before reboot (after installation group) go under settings and be sure that there is no 3rd part app moved as "vfat" (many games do it as default), if there is some app on vfat move back to nand, than you can safely reboot