#
# Factory Reset Package
#
ui_print("==== Factory Reset Package ====");
# added check for WT6000 and Freeport
getprop("ro.product.device") == "WT6000" || getprop("ro.product.device") == "freeport_mx6dq" ||
abort("This package is for \"WT6000\" or \"freeport_mx6dq\" devices; this is a \"" + getprop("ro.product.device") + "\".");
show_progress(0.200000, 0);
ui_print("formatting enterprise partition...");
format("ext4", "EMMC", "/dev/block/platform/soc0/soc.0/by-name/enterprise", "0", "/enterprise");
ui_print("done.");
show_progress(0.20000, 0);
ui_print("formatting cache partition...");
unmount("/cache");
format("ext4", "EMMC", "/dev/block/platform/soc0/soc.0/by-name/cache", "0", "/cache");
ui_print("done.");
show_progress(0.300000, 0);
ui_print("formatting data partition...");
#unmount("/data");
format("ext4", "EMMC", "/dev/block/platform/soc0/soc.0/by-name/userdata", "0", "/data");
show_progress(0.300000, 0);
ui_print("done.");

