• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How to unbrick Huawei P20 Lite ANE-LX1?

Search This thread

-Alf-

Senior Member
Sep 28, 2017
1,460
468
Huawei P9 Lite
Huawei P10 Lite
Thank you @-Alf-
It's good to know. I didn't know that there were 2 of them.
I thought there was only eRecovery. So far I only saw the second screen shot but not the first one.

Regarding the "And it's after that, that eRecovery is hidden."
What I mean is when the phone is unplugged and either turned off or inside of TWRP, if I press Volume UP + power button, I get this screen:
View attachment 5390403

and it's ONLY after that screen that I get into eRecovery.


If I get this screen:
View attachment 5390405

and press Volume UP for 3 seconds as indicated in the yellow text, I don't get in eRecovery. Instead I get back inside of TWRP.
Not sure if it's how it's supposed to be but that's what I got so far.
Have you installed TWRP instead (over) eRecovery?
Are you rooted with Magisk?
(If so, it should be clear.)
 

Pi0312

Member
Apr 10, 2019
11
4
Yes, TWRP is installed over eRecovery.
ok I see what you mean. I thought it actually didn't work since I could still get to eRecovery.
Magisk, not yet but soon.
 

-Alf-

Senior Member
Sep 28, 2017
1,460
468
Huawei P9 Lite
Huawei P10 Lite
Yes, TWRP is installed over eRecovery.
ok I see what you mean. I thought it actually didn't work since I could still get to eRecovery.
Magisk, not yet but soon.

The Recovery patched by Magisk remains and is fully functional, only the ramdisk is patched, (on EMUI 9.1 ramdisk is included in the recovery_ramdisk).
 
Last edited:
  • Like
Reactions: Pi0312

LIFATRON3000

New member
Aug 19, 2021
4
0
Sony Xperia X
Huawei P20 Lite
i need to clarify some things from my previous post tho:
its no problem for me to access erecovery
the plan for me was to do a factory reset before booting into lineage os (since apparently thats necessary)
and this factory reset is performed in erecovery, so i accessed it by rebooting and holding volup for 3 sec. (seems like thats legit according to @-Alf-)
on my device i flashed recovery -> twrp, erecovery -> stock

now in erecovery i go onto wipe data/factory reset, type 'yes' and when tapping the final 'factory reset' the device shuts off with no factory reset performed

i am still trying to figure it out, i keep u guys updated

but all in all thanks for your time @-Alf- & @Pi0312

edit:
i should try erecovery -> twrp, recovery -> stock
right?
 
Last edited:

LIFATRON3000

New member
Aug 19, 2021
4
0
Sony Xperia X
Huawei P20 Lite
make sure to have the stock recovery flash
yep reverted recovery & erecovery back to stock

now the plan is to install twrp over erecovery with
Code:
fastboot flash erecovery_ramdisk twrp.img
wipe all the necessary stuff, flash lineage os, boot into recovery -> perform factory reset

here goes nothing

edit: omg i see a lineage os animation!!!
this **** took me months, thanks to everyone!
 
Last edited:

-Alf-

Senior Member
Sep 28, 2017
1,460
468
Huawei P9 Lite
Huawei P10 Lite
yep reverted recovery & erecovery back to stock

now the plan is to install twrp over erecovery with
Code:
fastboot flash erecovery_ramdisk twrp.img
wipe all the necessary stuff, flash lineage os, boot into recovery -> perform factory reset

here goes nothing
Which Lineage do you want to install?
If you have followed the guide to the letter it MUST work.
 
  • Like
Reactions: LIFATRON3000

LIFATRON3000

New member
Aug 19, 2021
4
0
Sony Xperia X
Huawei P20 Lite
Which Lineage do you want to install?
If you have followed the guide to the letter it MUST work.
i followed @Pi0312 guide, but my mistake was that i always installed twrp over recovery and tried to perform the factory reset in erecovery, when actually its the other way round
it works now i installed los 16, now trying to get root to work

special thanks to you man, read a lot of your posts - youre a legend
 

JuninhoBMX

Member
Feb 18, 2017
22
0
19
07dfa1ee-289e-46f8-a2df-e069fbc8cd5b.jpg
 

Attachments

  • 564b0059-20d2-42b1-8116-82888b7322e1.jpg
    564b0059-20d2-42b1-8116-82888b7322e1.jpg
    45.8 KB · Views: 13
  • 0d6ef2f9-1ef1-4397-a07f-9c6ec1ce1054.jpg
    0d6ef2f9-1ef1-4397-a07f-9c6ec1ce1054.jpg
    93.1 KB · Views: 14
  • 4e3eadc1-cf99-441d-98d3-2e95cdaf5e63.jpg
    4e3eadc1-cf99-441d-98d3-2e95cdaf5e63.jpg
    35.8 KB · Views: 13

JuninhoBMX

Member
Feb 18, 2017
22
0
19
-------------------------------------------------------------
Firmware version: ANE-LX1 9.1.0.381(C432E7R1P7)
Device name: ANE-LX1
Oeminfo: hw/eu
Serial N:
Bootloaderstate: LOCKED
Baterry Voltage: 4708mv

I managed to install from the memory card and entered safe mode but did not skip the frp, can anyone help?
 

-Alf-

Senior Member
Sep 28, 2017
1,460
468
Huawei P9 Lite
Huawei P10 Lite
-------------------------------------------------------------
Firmware version: ANE-LX1 9.1.0.381(C432E7R1P7)
Device name: ANE-LX1
Oeminfo: hw/eu
Serial N:
Bootloaderstate: LOCKED
Baterry Voltage: 4708mv

I managed to install from the memory card and entered safe mode but did not skip the frp, can anyone help?
I'm not sure I fully understand your question...
Do you want to do FRP bypass, or what?
 
  • Like
Reactions: JuninhoBMX

JuninhoBMX

Member
Feb 18, 2017
22
0
19
yes but not skip the google account
Sorry, but what should I see in this picture?
Sorry, but what should I see in this picture?
Firmware version: ANE-LX1 9.1.0.381(C432E7R1P7)
Device name: ANE-LX1
Oeminfo: hw/eu
Serial N:
Bootloaderstate: LOCKED
Baterry Voltage: 4708mv

I managed to install from the memory card and entered safe mode but did not skip the frp, can anyone help?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Oright, I'm back in the game.

    Thank you -Alf-, LR7875 and MrPipa

    I too didn't manage to make the dload method work.
    So I also followed Alf's suggestion to use Huawei Update Extractor.

    Here is a recap for other noobs like me:

    My device is:
    Huawei P20 lite
    Build: ANE-LX1 9.1.0.381 (C432E7R1P7)
    vendorcountry: hw/eu

    1. Download huawei update extractor here:
    http://forum.xda-developers.com/attachment.php?attachmentid=3966156
    (from this thread: https://forum.xda-developers.com/t/...updated-v0-9-9-5-open-source-library.2433454/)

    2. Download Stock ROM from here: https://androidhost.ru/1O2r
    (Thanks to -Alf-)

    3. In windows, unzip HuaweiUpdateExtractor_0.9.9.5.zip

    4. Unzip "Huawei P20 Lite ( Nova 3e )... .zip"

    5. Unzip the update_sd.zip file contained in the folder path /Huawei P20 Lite ( Nova 3e ).../Software/dload/update_sd

    5. Launch HuaweiUpdateExtractor.exe

    6. Go in the tab settings and uncheck all boxes

    7. Back to the first tab, leave the drop down field to "unknown ..."

    8. Click on the 3 dots on the right side and select the file UPDATE.APP in the newly unzipped folder update_sd

    9. HuaweiUpdateExtractor will show all the .img files contained in the UPDATE.APP file

    10. Extract all to a folder (i.e. update-imgs) with right click on any img file and select extract all

    11. Put the device in fastboot mode and start flashing .img files (see below)
    (from this thread: https://forum.xda-developers.com/t/huawei-p20-lite-bricked.3798842/)

    Plug in usb cable into the pc and the device, boot the device into fastboot by pressing and holding Volume Down and power buttons, hold it until it boot into fastboot
    Android icon with 2 red lines under it: bootloader unlock and FRP unlock

    Then open a terminal or command line in the folder containing all the images i.e. update-imgs
    and use these commands:
    Code:
    fastboot flash cust CUST.img
    fastboot flash kernel KERNEL.img
    fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
    fastboot flash recovery_vbmeta RECOVERY_VBMETA.img
    fastboot flash recovery_vendor RECOVERY_VENDOR.img
    fastboot flash system SYSTEM.img
    fastboot flash vbmeta VBMETA.img


    I'm not sure if they are all necessary but I tried a few of them (system, recovery_ramdis, ramdisk)
    and it didn't seem to work.

    Only after doing the rest of them, it worked.
    Meaning the device could boot into stock rom.

    12. Reboot the device after the last command with:
    Code:
    fastboot reboot

    Now back to normal.


    After that I got LineageOS 16 on the device with these steps:

    1. Download a TWRP, I used this one: https://mega.nz/#!Fgd0xa4R!1o5ejzDnkLJLG2tAZG-STtlJ4nnNCHfwwZdOlmOkrVw
    (Thanks to -Alf-, from this thread: https://forum.xda-developers.com/t/recommended-and-tested-twrp-recovery.4199099/)

    2. Downlaod LineageOS 16 from here: https://lineageosroms.com/anne/

    3. Copy the LineageOS 16 image to device's SD card.

    4. Connect the device to a pc via USB cable, put the device in fastboot mode (Volume DOWN + Power buttons until the android icon appears)
    then use this command line from the folder containing the TWRP image file (i.e. TWRP-oreo-smart.img):
    Code:
    fastboot flash recovery_ramdisk TWRP-oreo-smart.img
    and reboot with:
    Code:
    fastboot reboot

    5. To get into TWRP, unplug the USB cable and go into recovery mode by pressing and holding Volume UP + Power buttons until Huawei logo appears.

    6. In TWRP:
    (Again thanks -Alf-, from this thread: https://forum.xda-developers.com/t/rom-official-anne-9-lineageos-16-0.4151163/page-3#post-83601729)

    6.a: go to Wipe > Format data, go back to TWRP's main menu
    6.b: Wipe > Advanced Wipe > Wipe Dalvik, Cache, Data, System, Internal storage > Swipe to wipe and go back to the TWRP's main menu
    6.c: Install > navigate to LineageOS 16's .img file and swipe to install LineageOS
    6.d: Back to TWRP's main menu, select Reboot > Reboot recovery > perform factory reset
    That part didn't work for me, it kept booting into TWRP.
    So I had to get into eRecovery from TWRP, I unplugged the USB cable.
    And then pressed Volume UP + Power buttons until the phone rebooted and the Huawei logo appeared.
    At the Huawei logo, I released the buttons and the device booted into eRecovery.
    Then I could do a factory reset by following the onscreen instructions.

    Done, the device reboots and after the Huawei logo appears the LineageOS animation.

    Enjoy and again thank you -Alf-, LR7875 and MrPipa


    Edit: Added flashing CUST.img as per -Alf- suggestion
    Edit: Added remove the USB cable to boot into eRecovery
    1
    Hello there,

    I managed to unlock the bootloader and the FRP for the Huawei P20 Lite ANE-LX1 (which was on emui 9)
    Then I flashed Twrp-3.5.2_9-0.
    It worked fine for a while. But when I tired "Wipe data", it got stuck with "Formating f2fs, Done" for 1hour.
    So I rebooted the device with volume down + power.
    When I try to get back in TWRP, it's getting stuck at the logo and there is also no access to eRecovry, it says "booting now" undefinitely.
    And of course no access to the stock rom which says the same thing "booting now" undefinitely.
    I also tried fastboot erase system.
    I still have acces to the fastboot mode with bootloader unlock + FRP unlock.

    Is there a way to unbrick the device?

    Let me know if you need any additional info.
    Thank you in advance.
    1
    Those links are for nova 3e, does it work also for ANE-LX1?
    I'm not an idiot bro ....
    1
    Got it!
    I found an old message by @-Alf- where he suggested to use Huawei Update Extractor to extract system, kernel and recovery_ramdisk images from the stock service ROM and flash them manually with fastboot. This works! Or at least the stock rom and erecovery seems to boot fine.

    Thank you both @-Alf- and @LR7875 ! These forums can be confusing, I'm used to Nexus 6P where there is plenty ROMs available and no issues with TWRP etc. 😄 I will now go for my second attempt to get LOS 18 to work (with magisk 😏)

    Btw the build number is ANE-LX1 9.1.0.381(C432E7R1P7) (hw/eu edition, same as OP)
    1
    Super, congrats!

    P.S.: if I may add something - often it is important to flash CUST.img partition.