Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ifelse(is_mounted("/system"), unmount("/system"));
- mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", "");
- unmount("/system");
- ui_print(" _____________________ ");
- ui_print(" / www.slimroms.net|");
- ui_print(" / |");
- ui_print(" / ___________________|");
- ui_print(" / / ___ ");
- ui_print(" / / ___/ \ ");
- ui_print(" / / / \___/____ ____ ");
- ui_print(" / / | |___/ \_/ |");
- ui_print(" ___________/ / | | | |");
- ui_print("| / | | | | | |");
- ui_print("| / | | | | | |");
- ui_print("|_____________/ \___^___^___^___^___/");
- ui_print(" ");
- if is_mounted("/data") then
- package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
- package_extract_file("META-INF/org/slimroms/releasekey", "/tmp/releasekey");
- set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
- 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");
- else
- mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data", "");
- package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
- package_extract_file("META-INF/org/slimroms/releasekey", "/tmp/releasekey");
- set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
- 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");
- unmount("/data");
- endif;
- show_progress(0.750000, 0);
- block_image_update("/dev/block/mmcblk0p24", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
- mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", "");
- delete("/system/bin/otasigcheck.sh");
- unmount("/system");
- show_progress(0.020000, 10);
- mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", "");
- unmount("/system");
- show_progress(0.050000, 5);
- ui_print("Flashing Boot Image...");
- package_extract_file("boot.img", "/dev/block/mmcblk0p8");
- show_progress(0.200000, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement