getprop("ro.build.platform") == "helios" || abort("E3004: This package is for \"helios\" platform devices; this is a \"" + getprop("ro.build.platform") + "\".");
ui_print("==== Android 13 Enterprise Reset V2 ====");
if getprop("ro.build.version.release") == "13" then
  show_progress(0.600000, 10);
  ui_print("Formatting data partition...");
  format("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "0", "/data");
  ui_print("done.");
  show_progress(0.200000, 5);
  if getprop("ro.boot.baseband") == "msm" then 
    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.");
  else
    ui_print("done");
  endif;
else
  ui_print("This package is not supported for this OS");
endif;
set_progress(1.000000);
