Error 6 While Trying To Flash Update Zip in Recovery. - Android Q&A, Help & Troubleshooting

I am trying to remove files by changing the updater-script that is the CM update zip. My problem is that I am getting an Error 6. I have no idea what needs to be done In order to fix it.
updater-script:
Code:
assert(getprop("ro.product.device") == "v10" || getprop("ro.build.product") == "v10" || getprop("ro.product.device") == "pplus" || getprop("ro.build.product") == "pplus" || getprop("ro.product.device") == "h901" || getprop("ro.build.product") == "h901" || abort("This package is for device: v10,pplus,h901; this device is " + getprop("ro.product.device") + "."););
ifelse(is_mounted("/system"), unmount("/system"));
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
package_extract_file("deletekeys.sh", "/tmp/deletekeys.sh");
set_perm(0, 0, 0777, "/tmp/deletekeys.sh");
run_program("/tmp/deletekeys.sh", "");
delete("/tmp/deletekeys.sh");
show_progress(0.200000, 10);
deletekeys.sh
Code:
#!/sbin/sh
rm -r /data/system/password.key
rm -r /data/system/gesture.key
rm -r /data/system/cm_gesture.key

Related

Install Rom TouchWiz v7

Hi I have a problem to install touchwiz v7 gives me the following error "assert failed ro.product.device == GetProp gt-s5830" I was told I had to do with the firmware that can help me understand that I have to repair
Do u have GT-S5830i[/red]?
Sent from my frozen Penguin's Nexus 7 with frozen CM 10.2 using frozen Tapatalk 4.FORGOTTEN Pro
Jozerx8 said:
Hi I have a problem to install touchwiz v7 gives me the following error "assert failed ro.product.device == GetProp gt-s5830" I was told I had to do with the firmware that can help me understand that I have to repair
Click to expand...
Click to collapse
You should post in the Q&A Section. Here's a link: http://forum.xda-developers.com/forumdisplay.php?f=2114
mradermaxlol said:
Do u have GT-S5830i[/red]?
Sent from my frozen Penguin's Nexus 7 with frozen CM 10.2 using frozen Tapatalk 4.FORGOTTEN Pro
Click to expand...
Click to collapse
Says ""AROMA INSTALLER version 2.00
(c) 2012 by amarullz xda-developers
ROM Name : AROMA INSTALLER
ROM Version : 2.00
ROM Author : <[email protected]>
Device : Not Defined
Start at : Thu Nov 7 14:08:41 2013
script aborted: assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
Installer Error (Status 7)
End at : Thu Nov 7 14:08:42 2013
""""
Jozerx8 said:
Says ""AROMA INSTALLER version 2.00
(c) 2012 by amarullz xda-developers
ROM Name : AROMA INSTALLER
ROM Version : 2.00
ROM Author : <[email protected]>
Device : Not Defined
Start at : Thu Nov 7 14:08:41 2013
script aborted: assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
Installer Error (Status 7)
End at : Thu Nov 7 14:08:42 2013
""""
Click to expand...
Click to collapse
God dammit! Have u got GT-S5830 or GT-S5830i/M/C/39i?
Sent from my frozen Penguin's Nexus 7 with frozen CM 10.2 using frozen Tapatalk 4.FORGOTTEN Pro
Jozerx8 said:
Hi I have a problem to install touchwiz v7 gives me the following error "assert failed ro.product.device == GetProp gt-s5830" I was told I had to do with the firmware that can help me understand that I have to repair
Click to expand...
Click to collapse
i believe you have gt-s5830
but the ROM you are trying to flash is made for gt-s5830i/c/m
the assert getprop lines are provided to make a safer installation..especially for newbies who don't understand the difference between different device models..
this updater-script is for GT-S5830I/GT-S5830C/GT-S5830M so with that lines it will check in build.prop if product name matches...
if "ro.product.device" and "ro.build.product" are found to be one of the above then installation will continue..if not, then installation will be aborted to save your phone from bricking by installing a ROM that is not for your phone...
still if you want to try this rom then extract the zip, go to META-INF/com/google/android
you will find a file "updater-script"
open with notepad++
and delete these lines:
assert(getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i");
save it, zip it and flash !
Jozerx8 said:
Hi I have a problem to install touchwiz v7 gives me the following error "assert failed ro.product.device == GetProp gt-s5830" I was told I had to do with the firmware that can help me understand that I have to repair
Click to expand...
Click to collapse
that's simple, if u have the Cyanogenmod BEFORE install any 2.3.6 based rom will get you this error,
1st = use odin to restore your stock rom
2nd = now you install the other one =)
Luiz Guilherme Pereira said:
that's simple, if u have the Cyanogenmod BEFORE install any 2.3.6 based rom will get you this error,
1st = use odin to restore your stock rom
2nd = now you install the other one =)
Click to expand...
Click to collapse
thanks, I'll try

Install Rom TouchWiz v7

Hi I have a problem to install touchwiz v7 gives me the following error "assert failed ro.product.device == GetProp gt-s5830" I was told I had to do with the firmware that can help me understand that I have to repair
yields the following
AROMA INSTALLER version 2.00
(c) 2012 by amarullz xda-developers
ROM Name : AROMA INSTALLER
ROM Version : 2.00
ROM Author : <[email protected]>
Device : Not Defined
Start at : Thu Nov 7 14:08:41 2013
script aborted: assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
Installer Error (Status 7)
End at : Thu Nov 7 14:08:42 2013
That is because you don't have this device
OR
You have formatted your system
OR
Your build.prop was deleted
iamareebjamal said:
That is because you don't have this device
OR
You have formatted your system
OR
Your build.prop was deleted
Click to expand...
Click to collapse
but if I have the gt-s5830L, that I can do?: (
Jozerx8 said:
but if I have the gt-s5830L, that I can do?: (
Click to expand...
Click to collapse
No

[Q] Problem in installing ROM : assert failed error

I am trying to install Touchwiz 8.0 OR Kitkat#1 but it is giving me error while installing like this
I am using GT-S5830i. PLZ anyone help me
AROMA INSTALLER version 2.00
(c) 2012 by amarullz xda-developers
ROM Name : AROMA INSTALLER
ROM Version : 2.00
ROM Author : <[email protected]>
Device : Not Defined
Start at : Sat Feb 1 16:26:35 2014
script aborted: assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
Installer Error (Status 7)
End at : Sat Feb 1 16:26:36 2014
shail2411 said:
I am trying to install Touchwiz 8.0 OR Kitkat#1 but it is giving me error while installing like this
I am using GT-S5830i. PLZ anyone help me
AROMA INSTALLER version 2.00
(c) 2012 by amarullz xda-developers
ROM Name : AROMA INSTALLER
ROM Version : 2.00
ROM Author : <[email protected]>
Device : Not Defined
Start at : Sat Feb 1 16:26:35 2014
script aborted: assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
assert failed: getprop("ro.product.device") == "GT-S5830c" ||
getprop("ro.build.product") == "GT-S5830c" ||
getprop("ro.product.device") == "GT-S5830C" ||
getprop("ro.build.product") == "GT-S5830C" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-S5830I" ||
getprop("ro.build.product") == "GT-S5830I" ||
getprop("ro.product.device") == "GT-S5830m" ||
getprop("ro.build.product") == "GT-S5830m" ||
getprop("ro.product.device") == "GT-S5830M" ||
getprop("ro.build.product") == "GT-S5830M" ||
getprop("ro.product.device") == "GT-S5839i" ||
getprop("ro.build.product") == "GT-S5839i"
Installer Error (Status 7)
End at : Sat Feb 1 16:26:36 2014
Click to expand...
Click to collapse
Flash stock kernel

[Q] All ROMs say I am P970?

Greetings everyone, I was able to flash CM9 on my LG 9 768gAT (bootloader hasn't been unlocked only root and cmw6 is installed) but whenever I try to flash a different ROM, like HellFire one or OpenSource Mokee the installation is aborted and then prompts that the ROM is only for 760 devices and that my device is a p970, which is not, what can I do?
anyone...?
If you are sure that selected rom works good, you can delete one command in updater-script file (META-INF/com/google/android/updater-script).
PHP:
assert(getprop("ro.product.device") == "p760" || getprop("ro.build.product") == "p760" ||
getprop("ro.product.device") == "p765" || getprop("ro.build.product") == "p765" ||
getprop("ro.product.device") == "p768" || getprop("ro.build.product") == "p768" ||
getprop("ro.product.device") == "u2" || getprop("ro.build.product") == "u2" || abort("This package is for \"p760,p765,p768,u2\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
I had similar problem, when I was flashing cm version under 11
Xerdox said:
If you are sure that selected rom works good, you can delete one command in updater-script file (META-INF/com/google/android/updater-script).
PHP:
assert(getprop("ro.product.device") == "p760" || getprop("ro.build.product") == "p760" ||
getprop("ro.product.device") == "p765" || getprop("ro.build.product") == "p765" ||
getprop("ro.product.device") == "p768" || getprop("ro.build.product") == "p768" ||
getprop("ro.product.device") == "u2" || getprop("ro.build.product") == "u2" || abort("This package is for \"p760,p765,p768,u2\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
I had similar problem, when I was flashing cm version under 11
Click to expand...
Click to collapse
sorry for my noobness mate, should I delete only 768 line or the whole code you posted.
Whole code
Wysłane z mojego LG-P760 przy użyciu Tapatalka

Lineage Os support lost?

Did this phone lose lineage OS support I noticed no more updates.
firenemesis7 said:
Did this phone lose lineage OS support I noticed no more updates.
Click to expand...
Click to collapse
Yes.
Read through to the end of below linked thread for LineageOS 14.1 Nougat unofficial builds still made periodically by @mdmower
https://forum.xda-developers.com/ascend-mate2/orig-development/cm-nougat-mt2-t3478345
Last one was 20180119 .
I still have this device and I can pick up 14.1 support. How many are interested?
tdm said:
I still have this device and I can pick up 14.1 support. How many are interested?
Click to expand...
Click to collapse
Looking forward to new releases.
tdm said:
I still have this device and I can pick up 14.1 support. How many are interested?
Click to expand...
Click to collapse
Yes please!!!
tdm said:
I still have this device and I can pick up 14.1 support. How many are interested?
Click to expand...
Click to collapse
Me too !
For those who are not aware, LineageOS 14.1 for Huawei Ascend Mate 2 versions currently available:
https://android.cmphys.com/lineageos-mt2/
tdm said:
I still have this device and I can pick up 14.1 support. How many are interested?
Click to expand...
Click to collapse
The official June 16 build cannot dirty flash over the April 6 build by MDMower.
What official June 16 build are you referring to?
MT2-User said:
The official June 16 build cannot dirty flash over the April 6 build by MDMower.
Click to expand...
Click to collapse
divineBliss said:
What official June 16 build are you referring to?
Click to expand...
Click to collapse
download.lineageos.org/mt2
Oh good it finally built. I did a brief test on my local build and it looked fine. Matt pointed me to the kernel commit for the hall sensor and I put that in, so the flip cover should work.
Also I flipped aokp builds to nougat.
Please let me know if anything is broken or breaks in the future. I don't generally keep this device current with the latest builds.
The problem is likely the signing key. Official builds are signed with the official key. There are ways around it but I'm not going to get into it here. Best thing is just to backup and restore.
MT2-User said:
The official June 16 build cannot dirty flash over the April 6 build by MDMower.
Click to expand...
Click to collapse
tdm said:
The problem is likely the signing key. Official builds are signed with the official key. There are ways around it but I'm not going to get into it here. Best thing is just to backup and restore.
Click to expand...
Click to collapse
I clean flashed with June 16 build of OpenGapps (nano) but System UI failed.
I clean installed with a last year's GApps and everything is fine currently. Will try to restore Data from MDMower's backup.
Sign in key
I have a Freedom Mobile variant with bootloader unlocked. I was able to use a method on this forum to convert my phone oem to allow it to upgrade to the official Lollipop. Phone been great on Lollipop but lately slowing down. Thought I would try to get it update to Lineage OS 14.1. I've installed TWRP and download the lastest Lineage OS 14.1 for this phone.
Tried to flash the Lineage OS rom through TWRP but got an error 7 because my bootloader is unknown and the rom key wants it to be exactly MSM8226C00B322_BOOT. I read somewhere online that you need to delete the string assert to bypass the requirement of the script. Just wondering if anyone knows what to delete in the script below and if it would bypass and allow to install.
Thanks.
assert(getprop("ro.product.device") == "MT2L03" || getprop("ro.build.product") == "MT2L03" || getprop("ro.product.device") == "hwMT2L03" || getprop("ro.build.product") == "hwMT2L03" || getprop("ro.product.device") == "mt2" || getprop("ro.build.product") == "mt2" || getprop("ro.product.device") == "mt2l03" || getprop("ro.build.product") == "mt2l03" || abort("E3004: This package is for device: MT2L03,hwMT2L03,mt2,mt2l03; this device is " + getprop("ro.product.device") + ".");
assert(getprop("ro.bootloader") == "MSM8226C00B322_BOOT" || abort("This package supports bootloader(s): MSM8226C00B322_BOOT; this device has bootloader " + getprop("ro.bootloader") + ".");
ui_print("Target: Huawei/MT2L03/hwMT2L03:5.1/HuaweiMT2L03/C00B322:user/release-keys");
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("ext4", "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);
You really should update firmware to match the expected version. If you can't find a copy maybe I can put something together.
scented said:
I have a Freedom Mobile variant with bootloader unlocked. I was able to use a method on this forum to convert my phone oem to allow it to upgrade to the official Lollipop. Phone been great on Lollipop but lately slowing down. Thought I would try to get it update to Lineage OS 14.1. I've installed TWRP and download the lastest Lineage OS 14.1 for this phone.
Tried to flash the Lineage OS rom through TWRP but got an error 7 because my bootloader is unknown and the rom key wants it to be exactly MSM8226C00B322_BOOT. I read somewhere online that you need to delete the string assert to bypass the requirement of the script. Just wondering if anyone knows what to delete in the script below and if it would bypass and allow to install.
Thanks.
assert(getprop("ro.product.device") == "MT2L03" || getprop("ro.build.product") == "MT2L03" || getprop("ro.product.device") == "hwMT2L03" || getprop("ro.build.product") == "hwMT2L03" || getprop("ro.product.device") == "mt2" || getprop("ro.build.product") == "mt2" || getprop("ro.product.device") == "mt2l03" || getprop("ro.build.product") == "mt2l03" || abort("E3004: This package is for device: MT2L03,hwMT2L03,mt2,mt2l03; this device is " + getprop("ro.product.device") + ".");
assert(getprop("ro.bootloader") == "MSM8226C00B322_BOOT" || abort("This package supports bootloader(s): MSM8226C00B322_BOOT; this device has bootloader " + getprop("ro.bootloader") + ".");
ui_print("Target: Huawei/MT2L03/hwMT2L03:5.1/HuaweiMT2L03/C00B322:user/release-keys");
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("ext4", "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
I am on the lastest firmware for the phone. I think because I came from the Freedom Mobile variant to the mt2l03 original for the lollipop update. Maybe the workaround some how cause the phone to not have that bootloader signature.
tdm said:
You really should update firmware to match the expected version. If you can't find a copy maybe I can put something together.
Click to expand...
Click to collapse
Hi,
I have modified the script to get rid of the line "assert(getprop("ro.bootloader") == "MSM8226C00B322_BOOT" || abort("This package supports bootloader(s): MSM8226C00B322_BOOT; this device has bootloader " + getprop("ro.bootloader") + ".");
Repackage and deploy.
Install from normal TWRP method.
That's it.
it would be nice to know if there is a version for the l03 model.
princess_ehon said:
it would be nice to know if there is a version for the l03 model.
Click to expand...
Click to collapse
Lineage supports the qcom variant. I believe that's the L03.

Categories

Resources