Magisk soft-bricked my device after flashing through TWRP Recovery - Magisk

Ok, so I had installed Magisk, it was fine, but i tried to flash the update (not related i dont think, just my magisk was outdated) After TWRP flashed successfully, my phone was soft-bricked. it restarted 3 times and then (as i have Huawei p8 lite 2017) eRecovery said something was wrong with the latest boot. I installed and updated eRecovery, and it (obviously) deleted TWRP, along with the root. This was attempt No. 1. I then flashed TWRP again, successfully, and went to reinstall the same downloaded magisk, and the flashing was successful, and i rebooted only for a soft-brick to occur again. I am currently installing the eRecovery to remove TWRP again, however this is annoying . as it was working PERFECTLY then i tried to reflash then everything failed. Please help me as i dont know what to do now. I cant show specs its running EMUI 8.0, ANDROID OREO, Its a Huawei p8 lite 2017 (Same specs as Honour 9 lite and like 3 other phones, unsure of the model)
***MY BOOTLOADER IS UNLOCKED IF IT WASNT CLEAR!***
Edit : Version : PRA-LX1 8.0.0.362(C442)
Obviously i cant ask Huawei support as i have voided my warrantee.
I await your instructions

Related

Huawei P10 lite stuck on booting

Hi everyone,
While trying to install LineageOS (following the guide here) my phone is now stuck on "Your device is booting".
Note that I had my phone rooted before so OEM unlock and TWRP were already done/installed.
Unfortunately my backup seems to not have worked and I believe I might have erased more than I should, including system and vendor. So now I'm stuck with installing any OS to be honest.
My phone is an ARM64, prague, WAS-LX1A.
Can anyone help me please?
Thanks!
I was able to use the dload method to get back to stock rom.

TWRP wont flash for nougat or oreo (SOLVED)

So I've been having lots of problems, it all started trying to upgrade to oreo from nougat and I got stuck part way with trying to install recoveries and missing the _ramdisk part. So then I think I was stuck somewhere in-between nougat and oreo and @Jannomag has been a huge help trying to push the device towards Oreo. You can see the thread where that begun here (https://forum.xda-developers.com/p1...-partition-length-t3766191/page2#post75966617) and Jannomag's guide here (https://forum.xda-developers.com/showpost.php?p=75760807).
After that as going to oreo wasn't working I looked into maybe trying to roll back to nougat as TWRP 3.2.1 was working. I have followed this guide as best I could (https://forum.xda-developers.com/p10/how-to/guide-to-rollback-huawei-p10-oreo-to-t3735156) and got to the end where you install the update let the phone reboot to huawei recovery to install the update. However the update got to 6% in verifying update and failed. At this point I tried to reflash twrp from fastboot. That seemed to flash fine however when I reboot the phone to recovery (vol-Up + pwr) it boots to the huawei recovery menu with reboot/wipe data/wipe cache options. I have tried flashing both twrp 3.2.1 3.1.1 and 3.0.1 and even reflashing the stock recovery before these from the file linked in the rollback guide that HWOTA8 uses (MHA_RECOVERY8_NoCheck.img)
Any ideas for fixes this are appreciated,
Thanks
Edit: Solved using DC-phoenix

[help] brick my p8 lite 2017

I have bricked my p8 lite 2017 PRA-LX1 after i try to close the bootloader the cell phone has started the erecovery, but every update attempt falls immediately afterwards, can you help me? is all the time I try to install the twrp with adb but nothing happens :crying::crying:
Update: finally i put the twrp recovery and apparently it is the file system to give these problems, I tried to repair and format it in .fat and .exfat but there is no way to make it work, any ideas?
Hello guys, I tried to install some rom with a TWRP oreo but every time it seems to install the rom goes into the bootloop and erecovery, nobody knows how to install a rom or a firmware from twrp or adb? I can't install anything besides recovery help please

Bricked on B540 Patch02

Problem solved. See the end of post.
Help. I just bricked my Huawei P9 EVA-L09 by installing a Treble ROM. I rebranded, installed B540 Patch02 EMUI 8, installed the 2.6 network patch and the Magisk patch ramdisk. EMUI 8 booted fine. Then installed an OpenKirin Treble ROM (Lineage Beta 5) but it doesn't boot. It stays in a boot loop. No matter what, no matter how many times I do fastboot -w or wipe data/factory reset in TWRP, it just doesn't get out of the boot loop. Please help me. I've never asked for help to solve a soft brick before. I can boot into fastboot, eRecovery and TWRP.
Turns out OpenKirin AOSP ROMs break under B540 firmwares while TWRP is flashed to recovery_ramdisk. This is what I did:
Flashed the original B540 recovery and tried a factory reset. It failed at 24 percent but I rebooted to system anyway and OmniROM Pie finally booted.
Wattsensi said:
Help. I just bricked my Huawei P9 EVA-L09 by installing a Treble ROM. I rebranded, installed B540 Patch02 EMUI 8, installed the 2.6 network patch and the Magisk patch ramdisk. EMUI 8 booted fine. Then installed an OpenKirin Treble ROM (Lineage Beta 5) but it doesn't boot. It stays in a boot loop. No matter what, no matter how many times I do fastboot -w or wipe data/factory reset in TWRP, it just doesn't get out of the boot loop. Please help me. I've never asked for help to solve a soft brick before. I can boot into fastboot, eRecovery and TWRP.
Click to expand...
Click to collapse
See response in the HWOTA7 thread
You must not use TWRP for installing Open Kirin ROMs
They have installation instructions, linked from OP posts in the Open Kirin thread:
https://openkirin.net/user_guide/openkirin-rom-installation-instructions/
zgfg said:
See response in the HWOTA7 thread
You must not use TWRP for installing Open Kirin ROMs
They have installation instructions, linked from OP posts in the Open Kirin thread:
https://openkirin.net/user_guide/openkirin-rom-installation-instructions/
Click to expand...
Click to collapse
Oh my sweet lord, thank you!!!
I finally solved it thanks to your help.

Tried to flash twrp. Can't boot into recovery anymore.

Hi i tried to root my P9. I unlocked the bootloader successfully and i can flash the recovery but i can't boot into recovery anymore. I get stuck on "Your device is booting now...". Also i tried to flash twrp onto recovery2 which is often suggested and that didn't help either. What i find weird it that adb doesn't allow me to erase a partition "FAILED: (remote: Command not allowed). Also the phone still works normal and i can use android. I also tried to flash a stock recovery but that still doesn't boot into the recovery. I couldn't find any advice online that would help me further. Hope someone can help me out.
FlxF said:
Hi i tried to root my P9. I unlocked the bootloader successfully and i can flash the recovery but i can't boot into recovery anymore. I get stuck on "Your device is booting now...". Also i tried to flash twrp onto recovery2 which is often suggested and that didn't help either. What i find weird it that adb doesn't allow me to erase a partition "FAILED: (remote: Command not allowed). Also the phone still works normal and i can use android. I also tried to flash a stock recovery but that still doesn't boot into the recovery. I couldn't find any advice online that would help me further. Hope someone can help me out.
Click to expand...
Click to collapse
You probably flashed incorrect TWRP -
you didn't even mention are you on MM (EMUI 4) or N (EMUI 5)
Different TWRP images must be used, but from the corresponding XDA Huawei P9 (MM or N) threads - not something maybe from elswhere on Internet
Also, if it didn't work from Recovery then no chance that it would work from eRecovery (if wrong TWRP, not ported to Huawei P9 and your EMUI version, it will not ecognize partitions and encryption, no matter if flashed to Recovery or eRecovery)
For example, if you didn't spoil also eRecovery, you would be simply able now to (re)Install latest firmware and recovery from eRecovery, and it would fix your stock Recovery
Otherwise, you should flash Recovery and eRecovery (extracted by Huawei Extractor from update.app, unzipped from FullOTA update.zip corresponding to your exact stock firmware and build you have).
Or, reinstall your stock firmware by DLOAD method (FullOTA-MF-PV package must be used for DLOAD)
You can also just flash the correct TWRP (but I strongly recommend to recover the stock eRecovery anyway), find the correct ports for MM, N and O here:
https://forum.xda-developers.com/showpost.php?p=72153575&postcount=2
https://forum.xda-developers.com/showpost.php?p=75787111
https://forum.xda-developers.com/showpost.php?p=77161313&postcount=2
If you are on Nougat, you can also find on XDA (actually, zipped in HWOTA/HWOTA7 packages from links 2 and 3 above) the so-called no-check Recovery, it can replace Recovery (but not eRecovery) img for any EMUI 5 stock firmware)
---
Btw, for Magisk (root), you don't need TWRP. Just install Magisk Manager app and patch your extracted Boot.img (MM and N, on Oreo Ramdisk.img), then flash the patched img from Fastboot
zgfg said:
You probably flashed incorrect TWRP -
you didn't even mention are you on MM (EMUI 4) or N (EMUI 5)
Different TWRP images must be used, but from the corresponding XDA Huawei P9 (MM or N) threads - not something maybe from elswhere on Internet
Click to expand...
Click to collapse
Thanks alot! I was using TWRP img from twrp.me thought it was a offical site. Now i used an image from the forum here and everything works. Thanks alot would have gotten a headache without your help
FlxF said:
Thanks alot! I was using TWRP img from twrp.me thought it was a offical site. Now i used an image from the forum here and everything works. Thanks alot would have gotten a headache without your help
Click to expand...
Click to collapse
TWRP.me (apparently) is the official TWRP site but you can see that they only have one TWRP img file (for each new TWRP release) for Huawei P9 (EVA) - hence they don't care, they are not aware of different organization of partitions (sizes, names and encryption) coming with different EMUI versions.
And from their P9 Changelog (screenshot attached) you can see that last adaptation for P9 was made in May 2016, when P9 had its original Marshmallow (EMUI 4).
Below is XDA thread from 2017 when Nougat (EMUI 5) was released and a guy who ported to (with description of changes he made). TWRP for EMUI 5 I gave you the link in previous answer is based on his port, but made after he stopped maintaining it (he moved off from P9), hence it is still TWRP 3.2.1.0 but with slight change (somebody else fixed/improved I think which partitions are mounted by default and/or what will be erased by Factory reset option - I don't recall details anymore)
https://forum.xda-developers.com/p9/development/twrp-t3565703
Btw, you are not the first who soft-bricked P9 (with Nougat) by installing the 'official' TWRP (you could search here on XDA P9 sub-forum, I recall I similarly helped to two or three of them last year and this year) and who had to move to the proper port from XDA to unbrick - the 'official' TWRP seems to be good only for those who are stuck with Marshmallow / EMUI 4 from 2016 (most likely those who got stuck with the cust c900, 'international' cust at that time, that was never updated by Huawei to Nougat while they introduced new custs for different world regions, countries and operators when they started to sell and support the phone out of China)
It would be fair if TWRP.me at least makes a note on which stock firmware version they test their 'official' P9 releases...

Categories

Resources