ui_print("Target: 1476761072");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" RRRRRRRRRRRRRRRRR RRRRRRRRRRRRRRRRR ");
ui_print(" R::::::::::::::::R R::::::::::::::::R ");
ui_print(" R::::::RRRRRR:::::R R::::::RRRRRR:::::R ");
ui_print(" RR:::::R R:::::R RR:::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");
ui_print(" R:::::::::::::RR R:::::::::::::RR ");
ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" RR:::::R R:::::R RR:::::R R:::::R");
ui_print(" R::::::R R:::::R R::::::R R:::::R");
ui_print(" R::::::R R:::::R R::::::R R:::::R");
ui_print(" RRRRRRRR RRRRRRR RRRRRRRR RRRRRRR");
ui_print(" ");
ui_print(" ");
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Verifying the updated system image...");
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "58,0,32767,32768,32770,32921,32923,33435,65535,65536,65538,98304,98306,98457,98459,98971,131071,131072,131074,163840,163842,163993,163995,164507,196607,196608,196610,229376,229378,229529,229531,230043,254534,262144,262146,294912,294914,295065,295067,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,590338,622079") == "59e89db3ffb06e47ada9cc702f0f6ffe23455202" then
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "86,32767,32768,32770,32921,32923,33435,65535,65536,65538,66050,97792,98304,98306,98457,98459,98971,131071,131072,131074,131586,163328,163840,163842,163993,163995,164507,196607,196608,196610,197122,228864,229376,229378,229529,229531,230043,254534,255046,261632,262144,262146,262658,294400,294912,294914,295065,295067,295579,327168,327680,327682,328194,359936,360448,360450,360962,392704,393216,393218,393730,425472,425984,425986,426498,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622079,622080") == "243655f02337041e8492bdd59d398f1a9ac41f2c" then
ui_print("Verified the updated system image.");
else
abort("system partition has unexpected non-zero contents after OTA update");
endif;
else
abort("system partition has unexpected contents after OTA update");
endif;
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
STATUS ERROR 7 I ALREADY DELETED THE ASSERT THING AND STILL GETTTING ERROR 7
PD: IM RUNNING THE 6.0.1 STOCK MARHSMELLOW
SM-G900M
can u guys help me and in case of tell me what to do to fix this problem and same problem while flashing CM13
Thanks
Hi!
In order to flash any custom ROM, you must have the following pre requisites:
Unlocked bootloader
have a custom recovery: CWM or TWRP
Do you have both of them?
Reyse said:
Hi!
In order to flash any custom ROM, you must have the following pre requisites:
Unlocked bootloader
have a custom recovery: CWM or TWRP
Do you have both of them?
Click to expand...
Click to collapse
I'm root, but I don't know what method use to unlock Bootloader! Can you help me
Alfred1516 said:
I'm root, but I don't know what method use to unlock Bootloader! Can you help me
Click to expand...
Click to collapse
I guess you are trying to flash RR with stock recovery, aren't you?
Reyse said:
I guess you are trying to flash RR with stock recovery, aren't you?
Click to expand...
Click to collapse
No,i already fix it by changing the Updater script and try the ROM for 12h and then left to CM14.1
Alfred1516 said:
No,i already fix it by changing the Updater script and try the ROM for 12h and then left to CM14.1
Click to expand...
Click to collapse
Sorry, how did you fix the problem?
Reyse said:
Sorry, how did you fix the problem?
Click to expand...
Click to collapse
I went to the Updater script and deleted the 2 lines that said "thus package are not compatible" and change the asseet for the name of my device
Related
Hi Guys, for starters I have a CM7 Mirage-kang Build for NC, now been having some issues with Superuser lately and found out that it has problems with the SU Binary, so I went to their website and downloaded the SU Binary Flashables from 3.0.3.2 to the latest 3.1.1 and went ahead and checked the zips before flashing.
While checking the updater script of SU Binary I found out that it puts the SU Binary into "/system/bin" rather that "/system/xbin". So went ahead and edited the Flashable in order for the SU Binary to be put into "/system/xbin".
Now question is do I still need to do a symlink from "/system/xbin" to "/system/bin" for CM7? Because I'm not sure how CM handles App request for the Su Binary.
Posted here is the original and my edited updater script of Su Binary 3.0.3.2.
Original Code:
Code:
ui_print("***********************************************");
ui_print(" su binary 3.0.3.2 for Android 2.0-3.2");
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:bin/su...");
delete("/system/bin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.300000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting SYSTEM:bin/su permissions to 06755...");
set_perm(0, 0, 06755, "/system/bin/su");
set_progress(0.500000);
ui_print(" Creating SYSTEM:xbin/su symbolic link...");
symlink("/system/bin/su", "/system/xbin/su");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Enjoy!");
set_progress(1.000000);
Edited Code:
Code:
ui_print("***********************************************");
ui_print(" su binary 3.0.3.2 for Android 2.0-3.2");
ui_print("***********************************************");
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print(" Deleting SYSTEM:bin/su...");
delete("/system/bin/su");
set_progress(0.200000);
ui_print(" Deleting SYSTEM:xbin/su...");
delete("/system/xbin/su");
set_progress(0.300000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting SYSTEM:xbin/su permissions to 06755...");
set_perm(0, 0, 06755, "/system/xbin/su");
set_progress(0.500000);
ui_print(" Creating SYSTEM:bin/su symbolic link...");
symlink("/system/xbin/su", "/system/bin/su");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete. Enjoy!");
set_progress(1.000000);
Credit:
Thanks to ChainsDD for providg FAQs and Flashable Zips for SU Binaries.
UPDATE
Turns out CM7 doesn't have symlinks for SU Binary in "/system/bin/" so don't need one.
Hello community,
i have question about permission as my script does not want to execute and hope you will be able to resolve my problem. Thank you so much
Here is the script:
set_progress(0.0);
ui_print(" ");
ui_print("*************************************");
ui_print("S5 Neo 3MinitBattery Lollipop Remover");
ui_print("Made by wilmans2m");
ui_print("************************************");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/cache") == "/cache", unmount("/cache"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
ui_print("Mounting Partitions...");
package_extract_file("/tmp/busybox", "/tmp/busybox");
set_perm(0, 0, 755, "/tmp/busybox");
run_program("/tmp/busybox", "mount", "/system");
run_program("/tmp/busybox", "mount", "/data");
run_program("/tmp/busybox", "mount", "/cache");
set_progress(0.02);
ui_print("--> Removing 3MinitBattery mod");
package_extract_dir("system", "/system");
delete_recursive("/data/app/com.three.minit.minitbatterysettings-1");
delete_recursive("/data/app/com.three.minitbatteryresources-2");
set_progress(0.6);
ui_print("Wiping cache, dalvik, system");
format("ext4", "EMMC", "/dev/block/platform/13540000.dwmmc0/by-name/CACHE", "0", "/cache");
run_program("/sbin/sleep", "2");
delete_recursive("/cache");
run_program("/sbin/sh", "-c", "rm -fR /data/dalvik-cache");
set_progress(0.8);
run_program("/tmp/busybox", "umount", "/system");
run_program("/tmp/busybox", "umount", "/data");
run_program("/tmp/busybox", "umount", "/cache");
ui_print(" ");
ui_print("Remove complete");
ui_print(" ");
set_progress(0.999992);
run_program("/sbin/reboot")
So i pulled this script from a debloater zip.
the only command im looking to do is: rm /data/system/locksettings.db
Im a little confused because i dont want the zip to be recurring which it is currently set up like that.
what do i need to change?
EDIT: I think i removed the recursive entry correctly.
Can someone look over this and see if it looks ok?
thanks in advance.
here is the script:
ui_print("******************************************");
ui_print("Pin Fix Script");
ui_print("");
ui_print("******************************************");
show_progress(1, 15);
ui_print("Unmounting system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("->");
ui_print("Mounting system");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Initializing...");
ui_print("Fixing PIN now");
delete(
"/data/system/locksettings.db",
);
show_progress(1, 15);
ui_print("--");
ui_print("Copying files");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Cleaning up and setting metadata");
set_metadata("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
ui_print("Unmounting system");
show_progress(1, 15);
ui_print("- - - - - - - - - - - - - - - - - - - - - - - - - -");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Removal complete!");
ui_print(" ");
ui_print(" ");
show_progress(1, 15);
ui_print(" ");
show_progress(1, 15);
ui_print("-made by dtr145r - credit to Gawd");
ui_print(" ");
show_progress(1, 15);
ui_print(" ");
ui_print("Your PIN Code should now work");
ui_print(" ");
ui_print(" Enjoy! ");
Lots of unnecessary code there, plus huge blunders because you're supposed to mount /data, not /system
Removed loads of bloat. Feel free to edit the credits, I just made one that works
Gawd said:
Lots of unnecessary code there, plus huge blunders because you're supposed to mount /data, not /system
Removed loads of bloat. Feel free to edit the credits, I just made one that works
Click to expand...
Click to collapse
Awesome thanks!
I figured there were a lot of mistakes, Its been about 3 years since i tried to mess with scripts. I forgot quite a bit.
I just got the Nexus 6p, I'm still trying to learn the ins and outs of it. Ive had Samsung phones for the past 6 years.
When ever I do a factory reset on the Nexus I have to run '' "/data/system/locksettings.db"'' in adb because the lockscreen pin code changes and locks me out of the phone... Is that common?
Thats why I wanted to create a zip file to do it for me..
Ok, so I have a Samsung Galaxy S5 Verizon 6.0.1 rooted bootloader unlocked and I have removed the "asserts" from the updater-script for lineage os 14.1 and I still get error 7 can I get some help?
ui_print("Target: 1490201755");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || 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);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
Lilon said:
Ok, so I have a Samsung Galaxy S5 Verizon 6.0.1 rooted bootloader unlocked and I have removed the "asserts" from the updater-script for lineage os 14.1 and I still get error 7 can I get some help?
ui_print("Target: 1490201755");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || 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);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
Click to expand...
Click to collapse
It's probably something stupid I'm missing please help of possible.
Lilon said:
Ok, so I have a Samsung Galaxy S5 Verizon 6.0.1 rooted bootloader unlocked and I have removed the "asserts" from the updater-script for lineage os 14.1 and I still get error 7 can I get some help?
ui_print("Target: 1490201755");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || 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);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
Click to expand...
Click to collapse
Flash this lineage14.1 klte. It works perfectly on G900V.
https://mirrorbits.lineageos.org/full/klte/20170920/lineage-14.1-20170920-nightly-klte-signed.zip
Tested by me.
enmanuel255 said:
Flash this lineage14.1 klte. It works perfectly on G900V.
https://mirrorbits.lineageos.org/full/klte/20170920/lineage-14.1-20170920-nightly-klte-signed.zip
Tested by me.
Click to expand...
Click to collapse
OK I'll try it out thanks
enmanuel255 said:
Flash this lineage14.1 klte. It works perfectly on G900V.
https://mirrorbits.lineageos.org/full/klte/20170920/lineage-14.1-20170920-nightly-klte-signed.zip
Tested by me.
Click to expand...
Click to collapse
OK so I tried but still didn't work...
Lilon said:
OK so I tried but still didn't work...
Click to expand...
Click to collapse
Well... The problem is not on the ROM is in your phone or recovery.
So. You tried to reinstall the official full firmware using the pit file.
https://www.androidfilehost.com/?fid=961840155545596807
re-unlock the bootloader and try again?
enmanuel255 said:
Well... The problem is not on the ROM is in your phone or recovery.
So. You tried to reinstall the official full firmware using the pit file.
https://www.androidfilehost.com/?fid=961840155545596807
re-unlock the bootloader and try again?
Click to expand...
Click to collapse
OK I'll try thanks man
Lilon said:
OK I'll try thanks man
Click to expand...
Click to collapse
I forget. You don't need to set pit file in odin3.
PIT file is include in the firmware.
i'm using moto g4 plus and i want to flash PixelExperience_harpia-9.0-20190604-0631-OFFICIAL rom
it first showed error 7 and then i deleted the assert code
then i flashed and it showed error 6
i had accidentally wiped my whole internal storage along with back up file how do i restore it or how do i fix the error 6????? im using twrp pls tell i dont want my phone to get bricked
this is my current code of updater system.
this device is " + getprop("ro.product.device") + ".");
ui_print("Target: motorola/harpia/harpia:7.1.1/NPIS26.48-36-5/12:user/release-keys");
ifelse(is_mounted("/system"), unmount("/system"));
ui_print("----------------------------------------------");
ui_print(" Pixel Experience");
ui_print(" by jhenrique09");
ui_print("----------------------------------------------");
ui_print(" Android version: 9");
ui_print(" Build id: PQ3A.190605.003");
ui_print(" Build date: 20190604-0631");
ui_print(" Security patch: 2019-06-05");
ui_print(" Device: harpia");
ui_print("----------------------------------------------");
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup", "/system");
unmount("/system");
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore", "/system");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/modem", "/firmware", "");
ui_print("Extracting modem firmware");
run_program("/sbin/sh", "/tmp/install/bin/extract_firmware.sh");
ui_print("Firmware extracted");
unmount("/firmware");
unmount("/system");
set_progress(1.000000);