Advertisement
nospamdan

SlimLP updater-script

Jan 3rd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. ifelse(is_mounted("/system"), unmount("/system"));
  2. mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", "");
  3. unmount("/system");
  4. ui_print(" _____________________ ");
  5. ui_print(" / www.slimroms.net|");
  6. ui_print(" / |");
  7. ui_print(" / ___________________|");
  8. ui_print(" / / ___ ");
  9. ui_print(" / / ___/ \ ");
  10. ui_print(" / / / \___/____ ____ ");
  11. ui_print(" / / | |___/ \_/ |");
  12. ui_print(" ___________/ / | | | |");
  13. ui_print("| / | | | | | |");
  14. ui_print("| / | | | | | |");
  15. ui_print("|_____________/ \___^___^___^___^___/");
  16. ui_print(" ");
  17. if is_mounted("/data") then
  18. package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
  19. package_extract_file("META-INF/org/slimroms/releasekey", "/tmp/releasekey");
  20. set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
  21. run_program("/tmp/otasigcheck.sh") == "0" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
  22. else
  23. mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data", "");
  24. package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
  25. package_extract_file("META-INF/org/slimroms/releasekey", "/tmp/releasekey");
  26. set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
  27. run_program("/tmp/otasigcheck.sh") == "0" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
  28. unmount("/data");
  29. endif;
  30. show_progress(0.750000, 0);
  31. block_image_update("/dev/block/mmcblk0p24", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
  32. mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", "");
  33. delete("/system/bin/otasigcheck.sh");
  34. unmount("/system");
  35. show_progress(0.020000, 10);
  36. mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", "");
  37. unmount("/system");
  38. show_progress(0.050000, 5);
  39. ui_print("Flashing Boot Image...");
  40. package_extract_file("boot.img", "/dev/block/mmcblk0p8");
  41. show_progress(0.200000, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement