getprop("ro.platform.name") == "helios" || abort("E3004: This package is for \"helios\" platform devices; this is a \"" + getprop("ro.platform.name") + "\".");
ui_print("==== Factory Reset V4 ====");
show_progress(0.400000, 10);
ui_print("Formatting data partition...");
format("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "-16384", "/data");
ui_print("done.");
show_progress(0.250000, 5);
ui_print("unmount");
unmount("/enterprise");
ui_print("Formatting enterprise partition...");
format("ext4", "EMMC", "/dev/block/bootdevice/by-name/enterprise", "0", "/enterprise");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/enterprise", "/enterprise");
ui_print("done.");
show_progress(0.200000, 5);
ui_print("Formatting modemst1...");
format("ext4", "EMMC", "/dev/block/bootdevice/by-name/modemst1", "0", "/modemst1");
ui_print("done.");
ui_print("Formatting modemst2...");
format("ext4", "EMMC", "/dev/block/bootdevice/by-name/modemst2", "0", "/modemst2");
ui_print("done.");
set_progress(1.000000);
