show_progress(0.500000, 0);
ui_print("==== Full Reset ====");
ui_print("formatting data partition...");
unmount("/data");
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "0", "/data");
ui_print("done.");
show_progress(0.100000, 0);
ui_print("formatting cache partition...");
unmount("/cache");
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/cache", "0", "/cache");
ui_print("done.");
show_progress(0.100000, 0);
ui_print("formatting enterprise partition...");
unmount("/enterprise");
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/enterprise", "0", "/enterprise");
ui_print("done.");
show_progress(0.100000, 0);
ui_print("formatting internal SD partition...");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
run_program("/system/bin/newfs_msdos","-F","32","-O","android","-c","8","/dev/block/platform/msm_sdcc.1/mmcblk0p23");
ui_print("done.");
show_progress(0.100000, 0);
ui_print("formatting external SD partition...");
run_program("/system/bin/newfs_msdos","-F","32","-O","android","-c","8","/dev/block/platform/msm_sdcc.3/mmcblk1p1");
ui_print("done.");
show_progress(0.100000, 0);
show_progress(0.100000, 0);
unmount("/system");
