Format All - Edify

Discussion in 'MIUI Mods' started by marhey, Mar 17, 2011.

  1. marhey

    marheyMembers

    Dec 25, 2010
    133
    0
    26
    I am attempting to make the Format All in Edify rather than Amend. Here is the updater-script:

    ui_print("***********************************************");
    ui_print("Performing Wipe All");
    ui_print("Mounting mount points...");
    run_program("/sbin/mount", "/dev/block/stl9", "/system");
    run_program("/sbin/mount", "/dev/block/stl10", "/data");
    run_program("/sbin/mount", "/dev/block/stl11", "/cache");
    show_progress(0.1, 0);
    delete_recursive("/boot");
    delete_recursive("/cache");
    delete_recursive("/data");
    delete_recursive("/system");
    show_progress(0.1, 10);
    ui_print("Unmounting mount points...");
    run_program("/sbin/umount", "/system");
    run_program("/sbin/umount", "/data");
    run_program("/sbin/umount", "/cache");
    ui_print("Update Complete.");

    I pulled a binary from a kernel but I am still getting "installation aborted". Any help in getting this running would be greatly appreciated. I made the updater-script in notepad++ but I think it is saved as the wrong file type.

    Here is the zip:
    http://db.tt/ioMPkUH

    Thanks in advance.
     
  2. roenano

    roenanoMembers

    Nov 7, 2010
    722
    26
    65
    Israel
    Try this out:
    Code:
    format("yaffs2", "MTD", "system");
    format("yaffs2", "MTD", "userdata");
    run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
    run_program("/sbin/busybox", "rm", "-rf", "/sd-ext/*");
    run_program("/sbin/busybox", "rm", "-rf", "/sdcard/.android_secure/*");
    run_program("/sbin/busybox", "umount", "/sd-ext");
    run_program("/sbin/e2fsck", "-pv", "/dev/block/mmcblk0p2");
     

Share Our Site