Back to EMUI - Huawei P10 Questions & Answers

I can't find the way to get my Huawei P10 to Stock. Huawei eRecovery is not working for me: Getting package info failed.
I'm currently on LineageOS 15.1

I have same problem. Anything I try to flash via TWRP gives me error messages. Tried download several files with same results. Also trying to flash Google apps package comes up with version error. Even thou system images for treble project are version 8.1 it asks me to flash gapps version 7.1.2.
I also am stuck with this system image. Can not use e-recovery to restore stock system.
On top of that I was silly enough to not make backup of my previous installation.
There are plenty tutorials on how to flash project treble images but not so many of how to revert back to stock. Especially huawei devices are nowhere to be seen.

Related

P9 Unable to get into TWRP due to flashing a different ROM

So I installed a version of the P9 OS EVAL09 from here - https://forum.xda-developers.com/p9/development/bluewei-test-crossflash-to-l09-c432-t3608270 the B387 version.
Prior to this, I was running unofficial CM 13 with TWRP installed, and it worked mostly fine.
The B387 .zip had a .update log which I was supposed to install via SDcard upgrade or something like that, however instead I removed a few lines from the update binary and installed via TWRP (in hindsight, probably what caused this problem).
Since then, I have launched into the new ROM with the purpose of updating, then moving to the unofficial Lineage OS.
However, I have encountered the biggest problem which is that, when I tried to reaccess TWRP it would automatically redirect to Huawei eRecovery, which does not allow me to reset/upgrade (as it says package info isn't correct).
I then tried to redo the process of flashing TWRP via ADB fastboot, and then it says that writing recovery has failed.
I can't download the stock ROM from huawei hicloud from the thread here - https://forum.xda-developers.com/p9/development/rom-stock-rom-eva-l19c636b168-t3419586 - as it always says the website is unavailable.
So far, the current OS installed is unusable, and I do not have any custom recovery software. If I can get TWRP to work again, then I should be ok as I made backups before.
edit 2018-01-18: The fix is to make the dload folder in the sd card and hard flash the ROM, which will get me back to a working stable version.

OnePlus 3T Boot Loop, TWRP Available, Bricked?

I was running Sultan's latest version of CM which was discontinued somtime last year. So, I decided I should upgrade to the latest Sultan Lineage OS version. I updated TWRP to the most current version, took a Backup of the system using the new TWRP (so I could restore back to a working phone). I also downloaded the Sultan version of Lineage OS (and this is where my mistakes began). I accidentally downloaded the incorrect version for the OnePlus 1 and not for the OnePlus 3T. I should have done this from a computer and not from the browser on my phone to prevent this mistake.
So, in TWRP, I cleared cached and the system partition, then tried to install the Sultan Lineage OS. TWRP correctly told me that it was the wrong version for my phone. Okay, no problem. Then, my fallback also failed. I tried to restore the image that I had backed up of my working phone and the image loads properly. However, when the phone is rebooted, it is stuck in a bootloop. I can get into TWRP and the bootloader, but that's all I can do.
What are my options now?
(1) Can I use adb fastboot to copy over the correct version of Sultan's Lineage and go to that?
(2) Why is my recovery image not working?
I essentially have a phone that seems to be bricked. I hope that this is not the case. Any help is greatly appreciated.
weaponG said:
I was running Sultan's latest version of CM which was discontinued somtime last year. So, I decided I should upgrade to the latest Sultan Lineage OS version. I updated TWRP to the most current version, took a Backup of the system using the new TWRP (so I could restore back to a working phone). I also downloaded the Sultan version of Lineage OS (and this is where my mistakes began). I accidentally downloaded the incorrect version for the OnePlus 1 and not for the OnePlus 3T. I should have done this from a computer and not from the browser on my phone to prevent this mistake.
So, in TWRP, I cleared cached and the system partition, then tried to install the Sultan Lineage OS. TWRP correctly told me that it was the wrong version for my phone. Okay, no problem. Then, my fallback also failed. I tried to restore the image that I had backed up of my working phone and the image loads properly. However, when the phone is rebooted, it is stuck in a bootloop. I can get into TWRP and the bootloader, but that's all I can do.
What are my options now?
(1) Can I use adb fastboot to copy over the correct version of Sultan's Lineage and go to that?
(2) Why is my recovery image not working?
I essentially have a phone that seems to be bricked. I hope that this is not the case. Any help is greatly appreciated.
Click to expand...
Click to collapse
1. You can either sideload the correct version in TWRP and ADB. Or fopy the file to your internal storage using TWRP and ADB or by enabling MTP in TWRP (under Mount menu) and then flash it. Don't forget to do a factory reset in TWRP as you're changing ROMs.
2. What partitions were included in your backup?
If boot, data, and system were included then I have no idea why restoring it didn't work.
And, when you say "most current version of TWRP" do you mean version 3.2.1-0 from https://dl.twrp.me/oneplus3/ or something else?
Sent from my OnePlus3T using XDA Labs
BillGoss said:
1. You can either sideload the correct version in TWRP and ADB. Or fopy the file to your internal storage using TWRP and ADB or by enabling MTP in TWRP (under Mount menu) and then flash it. Don't forget to do a factory reset in TWRP as you're changing ROMs.
2. What partitions were included in your backup?
If boot, data, and system were included then I have no idea why restoring it didn't work.
And, when you say "most current version of TWRP" do you mean version 3.2.1-0 from https://dl.twrp.me/oneplus3/ or something else?
Sent from my OnePlus3T using XDA Labs
Click to expand...
Click to collapse
(1) I was successfully able to download the proper Sultan Lineage OS version for OnePlus 3T. I have copied that and the latest firmware sited in this link:
https://forum.xda-developers.com/on...t/op3-op3t-unofficial-lineageos-14-1-t3588696
(2) The following partitions were included: Boot, Data (excl. storage), Recovery, System, System Image, EFS. It is unknown as to why recovery failed.
(3) The version is Team Win Recovery Project (TWRP) 3.2.1-0
weaponG said:
(1) I was successfully able to download the proper Sultan Lineage OS version for OnePlus 3T. I have copied that and the latest firmware sited in this link:
https://forum.xda-developers.com/on...t/op3-op3t-unofficial-lineageos-14-1-t3588696
(2) The following partitions were included: Boot, Data (excl. storage), Recovery, System, System Image, EFS. It is unknown as to why recovery failed.
(3) The version is Team Win Recovery Project (TWRP) 3.2.1-0
Click to expand...
Click to collapse
Oh wow. I had to apply the Firmware Update, and now I am running Sultan's Lineage. This is truly exciting. The animated splash/intro screen is still occurring on the phone. This should be great. Thanks so much for your kind assistance.

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

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

Lineage OS stuck at TWRP screen

Hello,
I am new to the world of custom ROMs, I have a huawei mediapad T5. I followed the guide and successfully rooted my device. then I installed TWRP from this link:
https://forum.xda-developers.com/showpost.php?do=showpost&p=76362629
I struggled to flash lineageos 16 on my device, after couple of hours, I found the installation guide from openkirin, that mentioned they don't support TWRP. but as I had already flashed my device with TWRP, I had no backup for stock recovery image. I tried to flash it anyway as mentioned in the openkirin site.
but now it stuck at TWRP screen. I am not sure how can I remove twrp completely from my mediapad t5.
After messing around I managed to boot into eRecovery from huawei, where I got option to download the stock firmware. that saved my day.
But I really want to flash it with LineageOS 16. I am not sure what can be done about twrp. Is there any way to remove it from my Mediapad, or is there any guide to install Open Kirin's LineageOS image onto my device along with TWRP?
Please let me know.
#Update
I managed to install Lineage OS onto my Mediapad T5. But I am afraid, I didn't like it much. It is not optimized for the tablet. There're unnecessary apps like Phone App, Messaging App etc. I only got Wifi version. Plus it has issues with Audio Output.
I am reverting back to stock ROM for now, Until better ROM is available from OpenKirin.
gunpal5 said:
Hello,
I am new to the world of custom ROMs, I have a huawei mediapad T5. I followed the guide and successfully rooted my device. then I installed TWRP from this link:
https://forum.xda-developers.com/showpost.php?do=showpost&p=76362629
I struggled to flash lineageos 16 on my device, after couple of hours, I found the installation guide from openkirin, that mentioned they don't support TWRP. but as I had already flashed my device with TWRP, I had no backup for stock recovery image. I tried to flash it anyway as mentioned in the openkirin site.
but now it stuck at TWRP screen. I am not sure how can I remove twrp completely from my mediapad t5.
After messing around I managed to boot into eRecovery from huawei, where I got option to download the stock firmware. that saved my day.
But I really want to flash it with LineageOS 16. I am not sure what can be done about twrp. Is there any way to remove it from my Mediapad, or is there any guide to install Open Kirin's LineageOS image onto my device along with TWRP?
Please let me know.
#Update
I managed to install Lineage OS onto my Mediapad T5. But I am afraid, I didn't like it much. It is not optimized for the tablet. There're unnecessary apps like Phone App, Messaging App etc. I only got Wifi version. Plus it has issues with Audio Output.
I am reverting back to stock ROM for now, Until better ROM is available from OpenKirin.
Click to expand...
Click to collapse
Try LOS18.1 (very VERY smooth) --> https://forum.xda-developers.com/t/...ation-guide-for-mediapad-t5-ags2-xxx.4291431/
Fosanz said:
Try LOS18.1 (very VERY smooth) --> https://forum.xda-developers.com/t/...ation-guide-for-mediapad-t5-ags2-xxx.4291431/
Click to expand...
Click to collapse
How safe is this unofficial LOS18.1 ROM?
gunpal5 said:
How safe is this unofficial LOS18.1 ROM?
Click to expand...
Click to collapse
I use it everyday so. Very safe I'm gonna say

Categories

Resources