Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. assert(getprop("ro.product.device") == "whyred" || getprop("ro.build.product") == "whyred" || abort("E3004: This package is for device: whyred; this device is " + getprop("ro.product.device") + "."););
  2. assert(whyred.verify_trustzone("TZ.BF.4.0.7-196300") == "1" || abort("Modem firmware from MIUI V10.3.1.0.PEIMIXM or newer stock ROMs is prerequisite to be compatible with this build."););
  3. ui_print("Target: xiaomi/whyred/whyred:9/PKQ1.180904.001/V10.3.1.0.PEIMIXM:user/release-keys");
  4. ifelse(is_mounted("/system"), unmount("/system"));
  5. package_extract_dir("install", "/tmp/install");
  6. set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
  7. set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
  8. mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
  9. run_program("/tmp/install/bin/backuptool.sh", "backup", "/system");
  10. unmount("/system");
  11. ui_print("*****************************************************");
  12. ui_print(" ");
  13. ui_print(" dMP dMP .aMMMb dMP dMP .aMMMb .aMMMb ");
  14. ui_print(" dMP dMP dMP'dMP dMP dMP dMP'dMP dMP'VMP ");
  15. ui_print(" dMMMMMP dMMMMMP dMP dMP dMP dMP dMP ");
  16. ui_print(" dMP dMP dMP dMP YMvAP' cMP.aMP dMP.aMP ");
  17. ui_print(" dMP dMP dMP dMP VP' VMMMP' VMMMP' ");
  18. ui_print(" ");
  19. ui_print("*****************************************************");
  20. ui_print("****************** Android 9.0 Pie ******************");
  21. ui_print("**************** Welcome to Havoc-OS ****************");
  22. ui_print("*****************************************************");
  23. ui_print(" Android Version : 9");
  24. ui_print(" Build ID : PQ3B.190801.002");
  25. ui_print(" Build Date : Fri Sep 13 15:41:01 IST 2019");
  26. ui_print(" Security Patch : 2019-09-05");
  27. ui_print(" Device : whyred");
  28. ui_print(" Manufacturer : Xiaomi");
  29. ui_print("*****************************************************");
  30. ui_print("*****************************************************");
  31. show_progress(0.650000, 0);
  32. ui_print("Patching system image unconditionally...");
  33. block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
  34. abort("E1001: Failed to update system image.");
  35. show_progress(0.100000, 0);
  36. ui_print("Patching vendor image unconditionally...");
  37. block_image_update("/dev/block/bootdevice/by-name/vendor", package_extract_file("vendor.transfer.list"), "vendor.new.dat.br", "vendor.patch.dat") ||
  38. abort("E2001: Failed to update vendor image.");
  39. show_progress(0.020000, 10);
  40. mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
  41. run_program("/tmp/install/bin/backuptool.sh", "restore", "/system");
  42. unmount("/system");
  43. show_progress(0.050000, 5);
  44. package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
  45. show_progress(0.200000, 10);
  46. set_progress(1.000000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement