getprop("ro.product.device") == "rover" || abort("E3004: This package is for \"rover\" devices; this is a \"" + getprop("ro.product.device") + "\".");
show_progress(1.000000, 0);
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("  TicWatch Pro 3 ULTRA");
ui_print("        rover");
ui_print("       STOCK OEM");
ui_print("      BY: BadWolf");
ui_print("     wear.lunawolf.es ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
package_extract_file("install/bin/delete.sh", "/tmp/install/bin/delete.sh");
package_extract_file("install/bin/busybox", "/tmp/busybox");
run_program("/sbin/chmod", "777", "/tmp/busybox");
ui_print("Flashing STOCK OEM FOR ULTRA...");
package_extract_file("oem.img", "/dev/block/bootdevice/by-name/oem");
ui_print(" ");
show_progress(0.020000, 10);
ui_print(" ");
show_progress(0.200000, 10);show_progress(0.200000, 10);
ui_print("Delete packages cache for avoid mistake on apps and cleanning dalvik");
package_extract_file("install/bin/delete.sh", "/tmp/delete.sh");
run_program("/sbin/sh", "/tmp/delete.sh");
run_program("/tmp/busybox", "rm", "-rf", "/data/system/dropbox");
run_program("/tmp/busybox", "rm", "-rf", "/data/system/package_cache");
run_program("/tmp/busybox", "rm", "-rf", "/data/resource-cache");
run_program("/tmp/busybox", "rm", "-rf", "/data/dalvik-cache");
ui_print("DONE");
set_progress(1.000000);
