Bricked on B540 Patch02 - Huawei P9 Questions & Answers

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.

Related

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

Root Huawei P8 Lite (2017) OREO.

NOTE:I shall not be responsible for any damage cause to your phone by this procedure.
As OREO on Huawei P8 Lite 2017 brings treble support so rooting it is an issue for everyone.
I am here to guide you how to root Huawei P8 Lite 2017 (also known as Honor 8 Lite).
Requirements:
1.Unlocked Bootloader
2.Oreo Updated
3.Current running firmware (mine PRA-LA1C185B366)
4.Huawei Update Extractor (Download Below)
5.Magisk Manager latest apk.
6.Internet Connection.
7.Fastboot installed.
Procedure:
1.Extract RAMDISK.img from your downloaded firmware (or you can dump it using TWRP).
2.Transfer extracted RAMDISK.img to your phone.
3.Now open installed Magisk Manager and click install.
4.Now choose patch boot image and select the extracted RAMDISK.img.
5.It will take 5 min to download zip file and patch RAMDISK.img.
6.Patched RAMDISK.img usually stored in "sdcard/Download/patched-boot.img" or magisk manager will also guide you where the patched boot image stored.
7.Transfer the patched-boot.img to your pc.
8.Now boot your phone in bootloader mode.
9.Flash the patched-boot.img using this command
"fastboot flash ramdisk (path of patched-boot).img" without qoutes.
10.After successful flashing reboot your phone either by holding power button or by using fastboot command.
BOOM your phone is rooted now start playing with magisk modules.
Not to rain on your parade but I have a Honor 6X. And I managed to install Magisk normally. Just flash TWRP, latest Magisk and reboot. Any TWRP available for hi6250 with decryption support?
Mannan Qamar said:
Not to rain on your parade but I have a Honor 6X. And I managed to install Magisk normally. Just flash TWRP, latest Magisk and reboot. Any TWRP available for hi6250 with decryption support?
Click to expand...
Click to collapse
No not yet.
mahrtayyab said:
No not yet.
Click to expand...
Click to collapse
Why is it taking so long? Isn't anybody working on it?
Mannan Qamar said:
Why is it taking so long? Isn't anybody working on it?
Click to expand...
Click to collapse
Huawei has changed the partition scheme along with encryption method totally thats why it is taking so much time.
Good News is devs are working on it and they are hoping that we could decrypt our huawei phone very soon.
I used a different variant of twrp and flashed Magisk. twrp doesnt support OTG but the backups and restore works fine
Megan1976 said:
I used a different variant of twrp and flashed Magisk. twrp doesnt support OTG but the backups and restore works fine
Click to expand...
Click to collapse
which one? Please send xda link
https://drive.google.com/file/d/1-uYbVhzcczReoXblG2QdFGvPfJWe6Oqk/view?usp=drivesdk
On my p8 lite 2017 and p10 lite root is installed by flashing Official Magisk zip via TWRP without any extras, maybe this could work on Emui 9...
DarkJoker360 said:
On my p8 lite 2017 and p10 lite root is installed by flashing Official Magisk zip via TWRP without any extras, maybe this could work on Emui 9...
Click to expand...
Click to collapse
Brow plz help me, i have a Pra-lx2 Oreo, and i want to use your Custom Rom LOS17, can i install twrp and your Rom with Bootloader Locked?? If no, plz help me do unlock Bootloader on pra-lx2 Oreo. plz brow

Magisk soft-bricked my device after flashing through TWRP Recovery

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

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...

Is my phone bricked?

Yesterday, I managed to unlock my bootloader using PotatoNV and tried to install ProtonAOSP GSI:
Code:
fastboot erase system
fastboot flash system <gsi>.img
Note that I'm on EMUI 9.1.0.252 (C636E2R1P9) and my phone model is VTR-L29. Didn't try to root it or replace the recovery with TWRP. Anywho, I went to the recovery as soon as I flashed the GSI to factory reset it. Little did I know, I booted to eRecovery and factory reset it there. I thought it was "just okay" and proceeded to boot into the "real" recovery. I factory reset it once again and try booting my device into the GSI. I waited for it to boot and panicked once it starts bootlooping. I tried flashing different GSIs from phhuson and ponces (Pie, 10, 11 and 12) with the same commands and steps I used earlier. STILL BOOTLOOPING!
Any fixes? Cheers!
Nope sir
Btw I'm using Phh 412 GSi AOSP
I didn't face any bootloop
I just fastboot erase then flash system
After that I just factory reset on erecovery
I didn't face bootloop
Btw I'm on Emui 9.0

Categories

Resources