Patching the boot image did not work neither did flashing the zip
The device kept vibrating on an interval stuck in a bootloop
Device: HUAWEI P9 LITE L21
Android: 7.1 (Unofficial lineage os 14.1)
Magisk Version: 97b72a59(20419)
(I wasnt sure how to get the boot image so i got it from a TWRP backup)
original-boot.zip
magisk-boot.zip
Device - Realme 5
Os - Lineage OS
magisk 20.4
patching boot image by magisk causes boot loop, reflashing firmware boot.img solves the issue, but magisk not installed if firmware boot.img is flashed.
kindly solve the issue
Patching the boot image did not work neither did flashing the zip
The device kept vibrating on an interval stuck in a bootloopDevice: HUAWEI P9 LITE L21
Android: 7.1 (Unofficial lineage os 14.1)
Magisk Version: 97b72a5(20419)(I wasnt sure how to get the boot image so i got it from a TWRP backup)
original-boot.zip
magisk-boot.zip
I have tried the magisk 20.0 and now it is working, Note that version 19, 17 or 15 does not work niether does version 20.4 work. Only the magisk version 20.0 works and my phone is now rooted.
You need to try the Canary versions around v20.0 and tell us which canary broke it to help narrow down the commits.
I dont know much about coding and stuff, but this is the zip file that works.
I just linked you to the history of canaries, go back to the ones from around v20.0 and then download the debug zip from it to find the last Canary that works.
This has nothing to do with coding.
https://github.com/topjohnwu/magisk_files/commit/8d6c096dc7a17940c3694b5d0e8acf6662cc5358
I think it is this one..
I have added screenshot of my Magisk Manager it shows version 20.0

No, you need to install the zips and test, or I'll be forced to close this issue for a lack of useful information.
Ill try it as soon as i can
Also, did you even try 20.1, 20.2 or 20.3? You only mention 20.4 and several older versions.
Also, did you even try 20.1, 20.2 or 20.3? You only mention 20.4 and several older versions.
yes I tried, 20.1, 20.2 or 20.3 does not work
Ok i've tried v20.0, v20.1, v20.3 (debug versions from the canary) and all of them resulted in boot loops
I've just found someone say that only v14.0 works for this device, will have to try that..
Wait, that whole time you guys were talking about different devices? 🤦♂️
Ugh, @singh-manbir, you shouldn't hijack issues.. it's confusing and makes it more likely neither will get solved because it keeps developers from figuring things out. Open your own issue please after you test the canaries like I told you.
@sandorex, and does v14.0 work? Please verify, and try other newer releases until you find the actual last which works.
@osm0sis I will do that tommorow, please dont close the issue yet
Sorry for delaying this so much here are the results so far
Work:
v13.1v14.0v14.2Does not work (bootloop):
v14.3v14.5v15.3v17.0v20.x up to v20.4If you think it's necessary to test all the releases please tell me
Also both v14.0 and v14.2 keep crashing when i open the manager but thats probably a separate issue?
Was your last EMUI 4.x (Android 6) or 5.x (Android 7), or 8.x (Android 9 - probably never released for any P9 Lite cust)
For EMUI 4, 5 you patch Boot, for EMUI 8 Ramdisk (for 9 or 10 you patch Recovery-Ramdisk)
When patching, Preserve Verity and Preserve Encryption must be On, Recovery mode must be Off (unless you are on EMUI 9 with Pie where users must extract and patch Recovery-Ramdisk.img - but that applies to P10 and newer phones)
It should not matter if you are on LOS (custom ROMs installs to System but booting partitions remain from the last EMUI that was installed)
And I recall (I had P9 not Lite, but since last year I'm no more on Huawei) there was a long standing problem with certain range of Magisk 1x versions ('teenage' numbers - not sure was the last correct version 13 or 14, and was it finally resolved with 20.4 or earlier, but for many months and versions there was a bootloop) and that was eventually resolved and the last Stable 20.4 should be ok (hence if not working with 20.3, please still make sure you specifically test also with 20.4)
I have specifically tested 20.4 and it did not work, i tested patching the boot image and installation using TWRP
I was using Lineage 14 (Android 7) now i use EMUI 5.1 based ROM but i do not have the time to test and fiddle with this anymore, i just installed supersu thats known to work
Most helpful comment
Ill try it as soon as i can