yashsingh1/xdaforums huggingface dataset:
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
I saw you suggesting LineageOS 15.1 for the P20 lite, what android Version do you recommend reverting to before installing it?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
15.1 and unofficial_16.0 require Oreo , recommened builds 8.0.0.126 , 8.0.0.135 .
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
Thank you very much, I´ll try to revert through HiSuite, as I can´t find a suitable Rom on Androidhost
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Don't try to downgrade to the lower android version using Service ROM, it may brick your phone! Definitively . Use HiSuite only.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
Thank you very much for warning me, I will not try that
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Find installation instructions for LOS 15 somewhere, it makes a difference whether you install on Oreo or Pie. ( On oreo it's easier, including Magisk :) )
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] whitetigerdk:
Tried now several times to install Los16 - everything just fine.. But when trying to install gapps almost every error possible is happening.. Device not registered, no webview service activated, not being able to recover from backup (apps, texts etc.) Isn't there any gapp package outthere that actually just work by installing? :)
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] whitetigerdk:
Would it be possible to "cook" a rom file that includes the gapps and su in one single package to install?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Tarmist25:
Hi, the rest of the thread addresses this. Some Gapps packages weren't working for me at all, but to get any working at all you need to install a WebView APK. Easiest way is an ADB sideload. And to fix the "device not registered" error you need to register your device with Google manually.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] whitetigerdk:
I did install webciew and registred device - tried almost every gapps packages I could find - but I might have solved the issue.. running some basic test at the moment.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] dumitriu:
I have a dual sim phone (C432)

After unlocking the bootloader, I did a full OTA upgrade to EMUI 9.1.0.136 using HRupdater 0.4

However, after installing LineageOS the second SIM doesn't show up

I reverted back to EMUI and both SIMs work, two IMEI numbers show up in settings

Again, after flashing LineageOS, only one IMEI number shows up.

Any ideas?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Edit your vendor/build.prop file , in #ADDITIONAL BUILD PROPERTIES add the line

persist.radio.multisim.config=dsds

Confirm and restart phone.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] dumitriu:
Thank you! That did work to enable the second SIM. It shows up in settings and on the status bar.

Unfortunately, the second sim doesn't want to connect to the data network... APN is correctly set. Roaming is on.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] dumitriu:
I can't seem to get the second SIM to connect to LTE. That used to work on stock EMUI 8 and 9.

Anyone have an idea?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
Hello, I am trying to put LOS onto the phone of a friend and I am lost in the jungle of different threads here, elsewhere and guides all over the internet when looking for how to unlock bootloader to prepare it for LOS. Maybe you can give me some guidance. Just some background: I know what flashing is, did start with HTC Desire putting different ROMs onto, later flashed other HTCs, Motorola, Samsung devices, Nvidia Shield tablet, Nexus 7, OnePlus 3T, OnePlus 7 Pro etc. But really, with this Huawei I have no idea :(

device: Huawei P20 lite dual SIM Europe (has two IMEIs)

model: ANE-LX1 ( Parameter version C432 CUST when looking in version after dialing *#*#2846579#*#* )

When I got this phone at my hands it had ANE-LGRP2-OVS 9.1.0.368

I wanted to get some experience with HiSuite and so downgraded to ANE-LGRP2-OVS 9.1.0.278 (for fun and because it is known to have working WLAN with LOS) running on Win10 in a VirtualBox-VM on Linux).

Used FullOTA-MF from https://pro-teammt.ru

http://update.dbankcdn.com/TDS/data/files/p3/s15/G3948/g1755/v354666/f1/full//update_full_base.zip

From all I've read (hours and hours) I would next downgrade to EMUI 8 (which specific version?) and try to unlock it, maybe with dc-unlocker? Would this be the correct approach or is there something known to work better / for free?

I am afraid of it because I've read the phone may get bricked when trying to revert to EMUI 8 coming from 9 !?

I would be glad if someone could guide me through the process of unlocking this phone and preparing it for LOS.

Thanks for reading and cheers

Heiko
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Wrong firmware.

Try to get more information about phone.

Install on your PC "Minimal ADB and fastboot" tool .

In fastboot mode run commands:

fastboot oem get-build-number

fastboot oem get-product-model

fastboot getvar vendorcountry

fastboot oem oeminforead-CUSTOM_VERSION

fastboot oem oeminforead-SYSTEM_VERSION

and post the results .

You can downgrade to Emui 8 using HiSuite only, don't try dload method etc., it may brick your phone.

Button "Switch to another version" is shown only when the current build version can be rolled back.

If the rollback option is not available with your HiSuite , you must downgrade to the lower (optimally first) Pie build version number doing the dload method (flashing Service ROM for your model and REGION (Cxxx)! This process will erase all your data! Service ROM can be found on androidhost.ru . Type ANE- or ANNE- .

You should be able to use DCUnlocker (hcu-client) on Oreo, but you need to downgrade to a firmware version with google security patch before June 2018. Downgrading can be done with the dload method , using Service ROM downloaded on androidhost.ru .

Or try this way For free

Not through HiSuite.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
fastboot oem get-build-number

ANE-LGRP2-OVS 9.1.0.278

fastboot oem get-product-model

ANE-LX1

fastboot getvar vendorcountry

vendorcountry: hw/eu

fastboot oem oeminforead-CUSTOM_VERSION

ANE-LX1-CUST 9.1.0.6(C432)

fastboot oem oeminforead-SYSTEM_VERSION

ANE-LX1 9.1.0.132(C432E5R1P7)

Did I get it right: the pin shortening method with PotatoNV works also with EMUI 9 ?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
I'm not sure, this method is Greek to me :).

But first flash stock FW for C432 using dload method , for example

.132

or

.257

The process will erase all your data!

Instruction can be found in ReleaseDoc folder .
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
I installed the 132 and performed the "Greek" method :) A little bit of heating and using old credit card... Device open. PROFIT. The bootloader was unlocked after the second attempt with potato. PROFIT !!! Thanks a lot.

But it seems the challenge starts right now...

To be honest I installed the 132 after the shortening method. Shouldn't make a difference. But why did I do it? Ok, let's sum up:

after the bootloader was unlocked the system started like nothing was changed. I enabled USB debugging and rebooted into bootloader, and installed twrp-3.5.0_9-0-anne.img

As usual I wiped system, data, cache, dalvik and installed LOS 16 lineage-16.0-20210201-nightly-anne-signed.zip

BUT: when rebooting system it tries to start twrp, but hangs at twrp boot image :(

Using dload method I installed 132 and the system starts Huawei ROM. But ok, bootloader is still unlocked.

How do I manage to install LOS 16 ?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
What do you mean by that?

This TWRP is not fully compatible with our device. Use tested TWRP

It's really strange, because dload method ,with Service firmware, lock the bootloader again.

It should now be clear that you are doing something wrong...
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
I mean I first used PotatoNV 2.0.1 to unlock bootloader with still installed 9.1.0.278

After that I installed your suggested 9.1.0.132 version with dload method. The bootloader was still unlocked afterwards. I can imagine the custom bootloader written by PotatoNV keeps unlocked even when putting another firmware onto the device.

I tried now:

fastboot flash recovery_ramdisk TWRP-3.4.0.0-emui9_eR.img

Then I flashed LOS 16.0 from USB stick via OTG cable, no sdcard in the device. It says successful.

Still the device starts only into TWRP (but does not hang with this version mentioned above), the LOS system does not get started.

Do I need an sdcard to work or what can be the reason? Any further ideas?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
What says now

fastboot oem get-build-number ?

IMO the Service firmware installation was wrong...
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
No chance to get into bootloader. When TWRP is started I can run command

"adb reboot bootloader", but TWRP is started, also when using TWRP button: Reboot -> Bootloader, TWRP gets started. Have no idea how to run fastboot commands in this state.

Well, after service firmware installation the phone starts original ROM and everything works fine even without FRP, so no idea if this is a sign of wrong firmware installation.

What else do I observe:

- also formatting data with this TWRP version hangs after saying "Done." And afterwards the twrp start image is only shown and hangs

Think I will try a different firmware.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
That's why I think that installation was wrong .

Turn off your phone, press and hold Volume Down and connect phone to the PC.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
flashed service ROM again with dload method. Now I can boot to bootloader.

"fastboot oem get-build-number"

ANE-LX1 9.1.0.132(C432E5R1P7)
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Okay, now follow this Guide
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
Just to be sure:

fastboot flash recovery_ramdisk TWRP-oreo-smart.img

ok? recovery_ramdisk is correct? always used "recovery" on all other devices I have flashed...
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
I give up :) .
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] bartman350:
Sorry just didn't want make mistakes, felt unsure because of all that information, sometimes misleading, incorrect, incomplete, mean regarding this device not you personally. I flashed TWRP to recovery_ramdisk on this device always, as stated in all the guides I found. But you get unsure when you got the first P20 lite.

Finally it worked: LOS 16 runs, the key seems was after flashing TWRP to recovery_ramdisk and starting it: from running TWRP flash TWRP to erecovery partition and the ramdisk-recovery to recovery partition. After that LOS was able to start. As stated somewhere in this thread by you. Thanks a lot for the help.

Puzzling the pieces of information here and elsewhere together is really hard even if one has a lot of experience with Android, unlocking, rooting, flashing, soldering... This P20 lite is a strange device. Next job is rooting it... Cannot tell how much I look forward :-D

For all: I recommend PotatoNV for unlocking bootloader if you have no fear to heat it and take the cover off. Works lik a charm, is fast and for free. And the best: it works with EMUI 9.1 installed, no HiSuite, no dc-unlocker, no going back to EMUI 8 and forward to 9.1 later. Just it did not work with Windows in VirtualBox VM, had to use an old notebook with Windows. Normally I use Linux.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
EMUI 9.1 is strange, due to the EROFS :cool:

No problem.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] TristanL:
Hello, I have my Huawei P20 lite with lineage OS build 4/01/2021, everything work as expected. I missed some update, and now, when I install lineagos build 8/02/2021 (or other before), many of my apps stop unexpectedly or just do not start.

I reinstalled some of them, clean user data, restarted phone but it does not solve the problem. Only rolling back to LOS-20210104 works. I tried to update it in incremental way but the older version I can download is 20210118
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Brayan Jh:
no funsiona la conexion a wifi, en todas las redes dice que no se ha podido conectar, que verifique la contraseña.

instale la version 16 oficial y es la que no me esta funsionando el wifi.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] YasirArafatShihab:
Whenever I flash this ,after flashing it reboots into twrp ,I can't boot into system
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] TureX:
Hi!

Twrp is not fully working so flash again stock recovery ramdisk or a twrp that post @-Alf-
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Try this guide: https://xdaforums.com/t/rom-official-anne-9-lineageos-16-0.4151163/post-83601729
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
Well well... it´s me again, and I think I flew too close to the sun

I tried reverting my Android version through Hi Suite, wich worked fine, to install Lineage15.1, because somehow I thought because I mage the fight until 16. I can also make it with 15.1, buuuuut I somehow ****ed up, I think until TWRP did not install correctly in one step, and now it stayed in the "Your device is booting now" mode.

I can´t get into eRecovery or any other than Fastboot&Rescue

Because I can still go into the Fastboot&Rescue Mode by pressing Power and Volume down, And my ADB tool could write things onto my phone, Can I somehow save my, hopefully, nearly bricked phone? Like can I install a stock rom through adb? or try to install twrp again?

Sincerly your flash idiot XD
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Hi Icarus :) ,

first run in fastboot mode commands:

fastboot oem get-build-number

fastboot oem get-product-model

fastboot getvar vendorcountry

and post the results .
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
ANE-LX1 8.0.0.180(c432)

ANE-LX1

hw/eu

So there is hope ^^

And again, I want to thank you in advance for your help :D
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Okay, in fastboot flash recovery , run commands:

fastboot flash recovery_ramdisk (file).img

fastboot reboot

So my advice: use only recommended TWRP .
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
I downloaded the recovery and flashed it, but it still stays at the "your device is booting now" screen, no matter if I let it run or press the up key to enter eRecovery :(
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Then try next variant - fastboot commands:

fastboot erase userdata

fastboot reboot
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
I did it and still nothing

I boot my phone, and when the "Your Device has been unlocked and can´t be trusted" screen comes I hold the up Key

And then it locks in the same screen, just that there now stands "Your Device is booting now..."

Am I doing something wrong?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
I think your data partition was damaged ... IMO you have two options to solve the problem:

1. Flash Service ROM using dload method. This process will erase all your data and lock again bootloader.

2. Install TWRP (if possible) 3.2.1. by pretoriano80

- download HuRupdater

-download files:

https://mega.nz/#!U4FinbjT!kDz1El-q-a8D1SrSHsuxxc_rbHInv9csS_44UBNf6hM

https://mega.nz/#!hsUCCBAD!hkmbxrADhkIO7TH-kc0uCVAChKmRc5v8FjZ3cXBrwuo

https://mega.nz/#!Esd2iLbI!ohL04KwVpMX5-c27stk4vvmsMph_GAgbc1aHCLx-hyo

create a new folder on SD Card titled as HuRupdater (or Chuck Norris, it doesn't matter) , and move downloded firmware files and HuRupdater.zip file to the folder.

Boot into TWRP > Install > find HuRupdater folder, tap "HuRupdater_0.4.zip" and confirm with swipe. Follow instruction on the screen!

Reboot system and perform factory reset in stock Recovery.

View attachment 5273821
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
I´ll try the Second approach first, just in case something gets wrong again, so the loader doesn´t get locked straight away, because that would be a full brick if I´m correct.

Data loss is no concern as I broke it without any data on it

I´ll report back when I´m done :D
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
Installing TWRP does not work. It just keeps saying "your device is booting now" and does nothing, even after waiting 10 minutes

EDIT: I installed TWRP into the ramdisk, because I´m stupid.

I reflashed the recovery ramdisk you linked in a post above, and then tried to install TWRP into normal recovery:

Spoiler content hidden.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
New know-how? I bet you will brick your phone definitively...
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
I bet too, but I´m not hoping on it.

No know how, just some idiot thinking rooting nowadays is as easy as back then and didn´t know when to stop, and now I just want to get it to work somehow

BTW I can´t download the Service Rom. Somehow it always redirects me to their main site
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Try this one , it worked for me https://androidhost.ru/3s3
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
I have downloaded it, but when I tried to copy the update.app to my sd card, it wouldn´t because it was too big, so I changed the format from FAT32 to exFAT, and now it would copy. After this I shove my SDcard into my phone.

When trying to enter force upgrade (Vol + Vol- Pwr) it would show me a ERROR MODE screen with:

"ATTENTION!

Please upgrade system again

(green android)

Error!

Func NO : 11 (recovery image)

Error NO : 2 (load failed!)"

I swear to the flying spagethi monster, if this thing ever works again I´m never gonna touch modifing a phone again. It´s too much worries for the benefits
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Why update.app ?? Have you seen instructions in ReleaseDoc folder? Simply transfer dload folder without unpacking it to the SD, thats all.

it looks like you don't have stock recovery installed or it's damaged. Try to install stock recovery using command

fastboot flash recovery_ramdisk (file).img

Download here .

And try again dload method.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
I get why you are annoyed...I´ve read a tutorial on getdroidtips for this, looking into the folder would be smarter, I agree with that. next time I´ll do that before looking online for a guide

Now Í´ve done it like it is said in the release docs, and flashed the stock recovery

Spoiler content hidden.

but still, the same error comes, I tried a few more times entering the Force Upgrade mode, but it always keeps saying the same error.

Did I broke my recovery so hard it can´t be repaired? :(
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Not only recovery :)

Last (?) chance:

- Extract from downloaded service ROM : ramdisk.img , kernel.img, system.img , recovery_ramdisk.img and flash partitions in fastboot mode . How to extract look here . Maybe it wil help you.

P.S.: getdroidtips? OMG...no comment.

Edit: just to be sure - if you have BL unlock code, try unlock the bootloader.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
It should be unlocked, but I can´t find my BL unlock code because the HDD it is on died 2 Weeks ago. I can open the main Dir, but openening any folder causes the hdd, and my computer, to freeze, I tried for hours now but it just won´t allow me to browse it, even in cmd it freezes .-.

So I´m gonna flash the things you listed

PS: I´ve learned that now...

EDIT: ITWORKED

I thank you very very very much for your patience!!

I may be one of the slow learning ones, but I´ve learned my lesson. Installing Custom Roms isn´t magically easy as it was, it is rocket science. Thank you very very much!!!

Edit edit: it said updating, froze at 5% and then shut down.

then it restarted once and now I´m back at "Your device is booting now"

Am I supposed to wait now, dload or open the recovery?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Hm, I'm out of ideas, really... can you describe in more detail what you did?

And check system status :

fastboot oem get-build-number

fastboot oem get-product-model

fastboot getvar vendorcountry

fastboot oem oeminforead-CUSTOM_VERSION

fastboot oem oeminforead-SYSTEM_VERSION
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
When I broke my phone or now?

Spoiler content hidden.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Nevermind.
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Helddertasten:
okay....I see, there is no sense in trying to save it
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
https://xdaforums.com/t/help-me-please-p20-lite-reset-loop.4259629/post-84808047
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] DeSAiRePLYX:
Hello

Since the official support for P20 Lite has been dropped again since quite some time now, does anyone still have the latest official rom file?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Hakxer:
somewhere on xda and downloaded
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] Hakxer:
Guys tell me how to decrypt huawei p20 lite, i.e. turn off encryption.

and this parameter is not quite clear what it is and how - disable verity.

The device - the data folder is already encrypted, of the more comprehensible methods are of interest to me these two

this 1) "https://xdaforums.com/t/how-to-remove-data-encryption-on-emui-9-1-stock-roms-and-root.3953946/"

and this 2)

"https://xdaforums.com/t/guide-how-t...-mediapad-t3-10-ags-w0.3843728/#post-78558329 "

but the first method does not show what to do after you mount it

In Terminal Type :

mount -o remount,rw /dev/block/mmcblk0p55

mount -o remount,rw /dev/block/mmcblk0p37

mount -o remount,rw /dev/block/mmcblk0p53

"name/table layout of editable partitions from recovery"

cust = mmcblk0p53

vendor = mmcblk0p55

modem_fw = mmcblk0p37

erecovery_ramdisk = mmcblk0p29

recovery_ramdisk = mmvblk0p33

i don't know if it's necessary to go through these commands, when i can copy these files, edit them and replace them back via TWRP, do i understand correctly that these commands will unlock the partition to overwrite the files inside it?

but i don't know if this method will work with emui 9.1 yet and the links to img are broken. + i'm afraid to overwrite TWRP with erecovery, because i figured out that i can't flash emui from fastboot erecovery, it is closed for him, only with TWRP and i'm not sure if i can? "+ it's not clear, replaced the files and that's it? "

the second way I stopped

I don't understand why I can't see the boot img from the extracted firmware Anne-L01 9.1.0.370(C432E7R1P7T8)

Is it locked or what? but i saw verity in FASTBOOT.img - or should i edit it to disable verity? and the question is different things recovery and boot? so i doubt in the correct execution.

and in this video i saw how to remove veirty, but what is it ?

as i understand this will not remove the forced encryption , but as i understand this will move me one step closer to the goal of disabling all verity and encryption too.

I don't understand what vbmeta is either, do I have to dig around in my target just to remove this forced encryption or is it an extra parameter, I mean vbmeta ?
[Huawei P20 Lite ROMs, Kernels, Recoveries, & Other] -Alf-:
Running stock EMUI 9.1:

- Required: root & TWRP installed (3.2.1-0 Gaguga Edition)

- Download Script

- Flash it in TWRP

- Enter Stock Recovery

- Do Factory reset

- Reboot