topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
49.12k stars 12.62k forks source link

Installed Magisk Manager 7.5.0 and Magisk v20.2, bricked phone V20 US996 #2212

Closed jjcf89 closed 4 years ago

jjcf89 commented 4 years ago

V20 US996 Running Alpha Omega Oreo: https://forum.xda-developers.com/v20/development/alpha-omega-rom-oreo-vs995-h910-ls997-t3847510/

I will try to figure out how to reprogram the boot image.

jjcf89 commented 4 years ago

Looks like this has been posted about here: https://forum.xda-developers.com/v20/how-to/warning-dont-upgrade-version-magisk-20-2-t4028577

chaveiro commented 4 years ago

Same happened to my LG G5 H850 running H85030f_00_OPEN_EU_OP_1122. Recovered by flashing original boot image and flashing Magisk v20.1 from TWRP. I noticed that during the update to Magisk v20.2 it showed on the console log that it had detected a stock boot image as opposed to the already patched version i was using (v20.1). Maybe that is the origin of the problem. Advice you to quickly remove the 20.2 live update as many people will get stuck...

osm0sis commented 4 years ago

Can you upload the boot.img for your ROMs that aren't working?

chaveiro commented 4 years ago

boot_30f.zip This is stock boot image.

boot.emmc H85030f_00_OPEN_EU_OP_1122 patched by Magisk20.1.zip This file is my working boot image. It's patched by Magisk 20.1. If i let it upgrade to 20.2 it corrupts and phone enters fastboot everytime.

osm0sis commented 4 years ago

Perfect. lz4_legacy packed kernel binary in the boot.img was failing to unpack since Canary 20107, so at least for the LG G5 it's definitely a duplicate of #2203. :+1:

jjcf89 commented 4 years ago

In case someone stumbles across this issue, here's a direct link to the steps I took to restore my phone. https://forum.xda-developers.com/showpost.php?p=81390999&postcount=39

osm0sis commented 4 years ago

@jjcf89 can you upload the working boot.img from your ROM still? It might be a different case from the G5 above.

topjohnwu commented 4 years ago

@jjcf89 please try out the latest canary build and report if it fixes your issue

jjcf89 commented 4 years ago

boot_20200103_magisk20.1.img.gz

@jjcf89 please try out the latest canary build and report if it fixes your issue

Can I install a canary build using the manager?

osm0sis commented 4 years ago

boot_20200103_magisk20.1.img.gz

@jjcf89 please try out the latest canary build and report if it fixes your issue

Can I install a canary build using the manager?

You can, just switch to the Canary channel in Settings by putting https://bit.ly/2oIlk3A in the Custom channel dialog.

Looks like the latest Canary should work for you, since that .img you uploaded also had lz4_legacy for the kernel binary compression format. :+1:

jjcf89 commented 4 years ago

Confirmed. Installed Canary build and phone still works.