Rooting the P20 pro: Search for Recovery.img for EMUI 9.0 - Huawei P20 Pro Questions & Answers

HI there,
I'm having a hard time to root my p 20 pro running an OpenKirin custom rom and would be grateful for some help.
Some information, about my phone and the build:
P 20 Pro CLT-L09 (C432)
Build number: OpenKirin-AntiEng PD20144.A1 (it is based on AOSPExtended)
Now, my problem is that I can't find a bootimage or a recovery.img for emui 9.0 anywhere on the internet. I apparently need this file to patch it and then install the patched file in fastbootboot mode. But all the links that still exist on various sites aren't working anymore. If someone still has the file I need or knows how to get it, that would be very nice.
Thanks in advance.
Also: The phone has no ramdisk, installing through twrp should not and did not work.
Edit: I figured it out by myself. OpenKirin sugests not to install twrp, and to root by patching the recovery.img of the stock firmware. Now, I did install Twrp and was unable to just install Magisk from there due to no ramdisk on the device. But since I had twrp installed as recovery I could just patch the twrp image and install it with fastboot flash recovery_ramdisk magisk_patched.img.

Related

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

Can't update to MIUI V10.2.13.0.PFAMIXM 2.2G with TWRP

Hi, I'm new to modifying Android in any way. I did install TWRP 3.3.1-0 with Magisk 19.3 and I'm trying to install this update. When it restarts the phone, it goes into the TWRP recovery mode and I suppose I need to select the file in the downloaded_rom folder 'miui_CEPHEUSGlobal_V10.2.13.0.PFAMIXM_b529c3de07_9.0.zip', but when I confirm the Flash, I get an error message:
Zip Treble compatibility error!
Invalid zip file format!
Error installing zip file '/sdcard/downloaded_rom/miui_CEPHEUSGlobal_V10.2.13.0.PFAMIXM_b529c3de07_9.0.zip'
I can't find any useful information for this problem. Do you guys have a clue what I should do?
Someone in this thread mentioned, that this TWRP version worked for him. Could that also apply to my problem? If so, should I download most recent version for Android 9.x?
I have a Xiaomi Mi 9 Global Version if that is relevant.
I'm using https://forum.xda-developers.com/Mi-9/development/recovery-twrp-3-3-1-siankatabg-t3934962, and everything is fine. It download otg update, can't update then download recovery rom and update from it with no problem.
It worked flawlessly with that TWRP build. Thank you!

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

Unable to install TWRP on P9 STF-L09

Hi,
I am trying to install on my device the TWRP image but it doesn't work.
What I've tried so far:
A tons of twrp images
SRK Tool
injecting image to recovery
injecting img to recovery2
injexting image to recovery_ramdisk
Nothing works still. The error im getting is "partition length get error"
Im running EMUI 9.0.1 and Android 9 Build Version 9.0.1.175(C432E2R1P5). Any ideas how to get TWRP work on my device?
You are running a HONOR 9 and you wanna help to install TWRP on a P9 thread... maybe you try to install the wrong version.

Can't root LLD-L21

I have a LLD-L21 C636 with Resurrection Remix OS 7.0.1 Beta 1. It was rootet in the past but some months ago Magisk uninstalled itself while updating. Now I'm trying to recover Magisk since this time. I don't have access to the old patched image anymore, so I did the following:
Download LLD-L21C636E3R1P1B116 (9.1.0.116) from 2019.05.16 with firmware finder.
Extract the RECOVERY_RAMDIS.img file and put it on the phones storage.
Patch it with Magisk Manager while making sure Recovery Mode is ticked in Advances Settings.
Put the resulting file back on the PC and flash it with fastboot.exe flash recovery_ramdisk magisk_patched.img then reboot with fastboot reboot
Reboot to recovery.
But all I get is a bootloop untill it gives up and boots normally.
There might be more things I tried last months but nothing works. Is anyone seeing any obvious error or has any other idea what could be wrong?
How can i root my honor 9 lite
Abhijaat said:
How can i root my honor 9 lite
Click to expand...
Click to collapse
Open bootloader first

Categories

Resources