• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root DEVs Save End User Headaches Add This to update-script

punkmaxx

Android Enthusiast
DEVs Save End User Headaches Add This to the beginning of your update-script in your ROM, it clears /cache and Dalvik Cache while telling the user what is happening.

ui_print("Cleaning and /cache...");
run_program("/sbin/mount", "/dev/block/mmcblk0p11", "/cache");
format("ext3", "EMMC", "/dev/block/mmcblk0p11");
run_program("/sbin/umount", "/dev/block/mmcblk0p11", "/cache");
ui_print("Cleaning dalvik-cache on /data");
run_program("/sbin/mount", "/dev/block/mmcblk0p8", "/data");
run_program("/sbin/busybox", "rm", "-rf", "/data/dalvik-cache");
run_program("/sbin/umount", "/dev/block/mmcblk0p8", "/data");
show_progress(0.500000, 0);
 
Yeah lol i learned on the intercept to always have the update script clear the cache and dalvik cache lol!! And at least on the triumph we can wipe data while having the 1%battery mod without bootlooping lol!!!
 
Yeah lol i learned on the intercept to always have the update script clear the cache and dalvik cache lol!! And at least on the triumph we can wipe data while having the 1%battery mod without bootlooping lol!!!
When I told you about the bootlooping, you acted like I was crazy because of that bug report. :cool:
 
Back
Top Bottom