1. Are you ready for the Galaxy S20? Here is everything we know so far!

DEVs Save End User Headaches Add This to update-script

Discussion in 'Android Devices' started by punkmaxx, Sep 20, 2011.

  1. punkmaxx

    punkmaxx Android Enthusiast
    Thread Starter

    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);


  2. b_randon14

    b_randon14 Android Expert

    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!!!
  3. Austrie

    Austrie Android Expert

    When I told you about the bootlooping, you acted like I was crazy because of that bug report. :cool:

Share This Page