yashsingh1/xdaforums huggingface dataset:
[P8 Lite (2017) Development] mxcion:
Weird could not find a single helpful guide for reverting back to stock emui 8.

Anyways you could try the tool hwota 8. Here is the official post.

The post was made for p20 lite and the links are down but I will provide you a mirror from my side.

Just follow the steps in the post while using hwota. Get your firmware files at here or here.

Let me know if something does not work as it should.

(Edit: Just a side note, the tool works flawless on my bln-l22)
[P8 Lite (2017) Development] mutonic:
Thanks for you help!

I'm currently downloading firmware from you links, will let you know how it goes.

Was trying to follow this guide : guide-flash-stock-huawei-firmwares-pra-lx1

but didn't how to use firmware finder to retrieve stock rom and there is a file no check recovery which isn't available anymore...

EDIT: unfortunatey archive is password protected saying you need to buy password from their site... weird!

will try other method through firmware finder

EDIT2: finally managed to revert to stock simply by using the huawei erecovery. I configured wifi and it downloaded and flashed itself
[P8 Lite (2017) Development] mxcion:
OKey nice! Does flashing LineageOS finally work now?
[P8 Lite (2017) Development] mutonic:
Unfortunaly still not working :(

I noticed someone else had same issue

@sdkyron did you manage to get the rom flashed?

I'm trying on different laptop with different OS and different cable to see if it helps..

Will let you know.

EDIT: 3rd attempt still the same issue, seems like there is really something wrong..

do you think this rom can be flashed directly from TWRP instead as from fastboot commands?

I wonder if it could solve my issue ..
[P8 Lite (2017) Development] AltairFR:
If your phone go to recovery, is that there was a problem in your installation sequence or that your original ROM was not a version between 375 and 390 (emui 8)
[P8 Lite (2017) Development] m3nda:
NFC not working on mine.

Doesn't matter how many times did I flash the NFC_Fix.zip.

What I am doing wrong?
[P8 Lite (2017) Development] lapourganer:
The NFC is also a little buggy for me. Sometime it doesn't wan't to read tag while NFC is enabled. Also sometime in option Android Beam show "functionality unavailable because NFC is disabled" although NFC is enable.
[P8 Lite (2017) Development] speedson:
Hi...

after unlock bootloader and frp...did you flash twrp? did you next decrypt the phone and the next steps that must be done...before you flashed the custom rom!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

You find many step by step tutorials in this forum.

I bet that would solved your issue ;)

solong

speedson
[P8 Lite (2017) Development] SquallDNA:
Is VOLTE working? Or is VoLTE added as feature? I managed to enable the switch for VoLTE on my Huawei Gr3 2017 PRA LX2. But I still cant make any call using Volte.
[P8 Lite (2017) Development] mutonic:
I've followed all steps carefully but each time I get the error I mentionned before (see post #233).

After getting this error, the system partition is messed up and I cannot do anything on the phone except reverting to stock rom using huawei erecovery tool.

I've tried 4 times, with everytime the same result :(. I don't think this is due to a mistake, as others had the same problem :

- post #226

- or this one #188

I am a bit out of solutions now...

The only thing I didn't try is flashing through TWRP instead as from command line.

Does anyone know if this method could work?

Edit: my stock version (410):
[P8 Lite (2017) Development] SquallDNA:
i think im on the same route as you. Im currently downloading PRA-LX2 8.0.0.383 via erecovery, because i also had the invalid sparse error. My device is GR3 2017, they say its the same device as P8 lite 2017. therefore im following this thread.

the main reason im installing this ROM is so i can enable VOLTE. Please someone tell me that this is all worth a try?
[P8 Lite (2017) Development] AltairFR:
Wipe data and cache. Do you have test Altaïr fix for NFC ?

Sometime flash failed with a old version of fastboot executable. Do you have 2021 version ?
[P8 Lite (2017) Development] mutonic:
Thanks for letting me know,

I'm installing the rom to remove all huawei bloatware... and overcome space limitations on stock.

Also getting privacy focused ROM with lineageOS as I'm degooglising all my devices.

I suspect also a version of EMUI being too recent don't know yet how to downgrade it though..
[P8 Lite (2017) Development] mutonic:
I've tried with these version:

linux:

~ % fastboot --version
fastboot version 31.0.2-android-tools
Installed as /usr/bin/fastboot

windows:

$ ./Downloads/scrcpy-win64-v1.19/fastboot.exe --version
fastboot version 29.0.5-5949299
Installed as C:\Users\Etienne\Downloads\scrcpy-win64-v1.19\fastboot.exe
[P8 Lite (2017) Development] AltairFR:
Tu es français ?
[P8 Lite (2017) Development] notnoelchannel:
for huawei p8 lite 2015 ALE-L21 any ideas how should I port one of these roms?
[P8 Lite (2017) Development] mutonic:
oui
[P8 Lite (2017) Development] AltairFR:
On passe en communication privée pour que tu m'expliques bien ce que tu as fait et ton problème ?
[P8 Lite (2017) Development] SquallDNA:
Would really appreciate it if you guys could discuss it here too. thanks
[P8 Lite (2017) Development] AltairFR:
OK but we’ll talk in French
[P8 Lite (2017) Development] mutonic:
we can talk in english if you don't mind...?
[P8 Lite (2017) Development] SquallDNA:
Any update on your end?

I tried flashing 3 times already with the same result. It's difficult coming back to emui stock because i have to redownload via erecovery, and download speed takes 4 to 5 hours. I did have a backup but cant restore. Getting stock at vendor restore..anyway, i even tried to flash via Twrp but it didn't work.. my fastboot version is newer than yours..

Just to clarify, the system.img mentioned in the instructions, thats the one extracted from the .xz file right?
[P8 Lite (2017) Development] AltairFR:
Je vais te passer ma procédure complète qui évite de passer par un download e-recovery et qui surtout va corriger ton problème de fastboot. Si tu télécharges a chaque fois via le e-recovery c'est sur que cela fonctionne pas car il télécharge la dernière version de emui qui n'est pas compatible 😂
[P8 Lite (2017) Development] SquallDNA:
So stock firmware .383 is not compatible with lineage 18.1? Per 2nd post though, it says that its compatible between firmware 8.0.0.360 to .400.. that's confusing. 😄

Anyway, that's very nice of you if you can assist us. Thank you.
[P8 Lite (2017) Development] AltairFR:
Tu es sur que c'est la 383 que tu télécharges, normalement il télécharge la dernière version si tu passes par le e-recovery et la dernière en France c'est la 408
[P8 Lite (2017) Development] SquallDNA:
Im pretty sure yes. I will attach a screenshot of the phone later. This is again a different variant of the P8 lite 2017, named GR3 2017, from the Philippines. Maybe that's the reason why it has its latest firmware on .383.

UPDATE:

I have attached screenshot of my GR3 2017s firmware version.
[P8 Lite (2017) Development] mutonic:
In my case I got the 410.... strange

Will follow the instruction @AltairFR gave me, and let you know if I manage to install.
[P8 Lite (2017) Development] AltairFR:
Donc un PRA-LX2 en version 636. C'est la première fois que j'en vois une
[P8 Lite (2017) Development] SquallDNA:
I tried to install ASOP 11 by Darkjoker360. And i managed to run it. But i bricked it again.. please tell me if you do install lineage, and how you did it.

Yes. Im also having difficulty finding stock rom and guide for this specific device.
[P8 Lite (2017) Development] SquallDNA:
I did it! I downgraded my firmware from a nova lite using dload method. Flashed and it worked. However, i still cant use Volte. If i search on the settings there are the options to set VOLTE. But when i click it, it just sends me to the mobile network settings without any Volte options or toggle. I already used the fix on 2nd post. I tried to use ×#×#4636#×#× but the VOLTE PROVISION is greyed out and cant be toggled. I really need to make volte work.
[P8 Lite (2017) Development] mutonic:
Well done (y) May I know what you did after getting the rom?

Because in my case I found an older rom, uncompressed it, copied the dload directory to SD,

then I rebooted phone with vol up and down, but the phone refused to flash it..

As this is a previous version I wonder if the phone is refusing to downgrade through this method..

Did you do the same or used another method to downgrade your phone?
[P8 Lite (2017) Development] SquallDNA:
Yes i did the same procedure. Mine actually flashed with no problem.. make sure it's just the UPDATE.APP inside the dload folder. Mine flashed even thought im from GR3 2017 8.0.0.383 to NOVA LITE 8.0.0.360.

What's interesting is i did try to downgrade using 2 different stock fw, NOVALITE and P8 LiTE 2017.both flashed with no issue. After installing the P8 LITE though, my firmware still shows that its a Nova lite..
[P8 Lite (2017) Development] mutonic:
Thanks will retry. How did you get your p8 lite 2017 ROM?
[P8 Lite (2017) Development] SquallDNA:
Huawei P8 lite 2017 PRA-LX1 PRA-L11 altice all HLRCF Prague-L11 8.0.0.364(C33) Firmware 8.0.0 r1 EMUI8.0 05014GCW [androidhost.ru].zip - AndroidHost.RU

Download file - Huawei P8 lite 2017 PRA-LX1 PRA-L11 altice all HLRCF Prague-L11 8.0.0.364(C33) Firmware 8.0.0 r1 EMUI8.0 05014GCW [androidhost.ru].zip

androidhost.ru

You can search for different variant. Goodluck.
[P8 Lite (2017) Development] mutonic:
Done! seems like my sd was badly inserted the first time, and phone wasn't seeing it hence update failure.

Restarted and phone smoothly downgraded (version 401).

After redoing all steps (BL unlocking, TWRP, decrypt...) and some suspense... custom rom flashed!

I'm glad this is finally done and I don't have to repeat this process anymore :) (my 4G mobile plan was fully eaten btw !)

et encore merci pour l'aide ;)
[P8 Lite (2017) Development] Corrreia:
Is there any newb-friendly solution for the FAILED (remote: 'sparse flash write failure')?

I'm new to custom ROMs and decided to test on this smartphone before moving to other ones.

It would be good if someone could resume every step into a single post.
[P8 Lite (2017) Development] AltairFR:
the volt does not work on this ROM, on none besides
[P8 Lite (2017) Development] SquallDNA:
Well done. Im glad we did it.all that used up data are all worth it. Im lucky i have unlimited LTE prepaid to go thru that heavy firmware downloads.

Je vous en prie

Unfortunately you'll have to read though our conversation. I believe we have the same error. The gist is that you should be in the right stock firmware version when flashing. The lower the better i guess.. In my case that's 8.0.0.364. Check the link above.

That's unfortunate. But thanks anyway.
[P8 Lite (2017) Development] Corrreia:
OK, thank you anyway!
[P8 Lite (2017) Development] PRXVISION:
Right, to come back to my previous issue since noone has mentioned anything similar.

The issue seems to be with third party apps accessing the camera/microphone - I just realized the same issue occurs not only with Snapchat but when making a story on Instagram/FB, recording a video through Twitter and I assume whatever other third party app like this.

Microphone in calls and default camera app work just fine.

So, can someone please confirm if this is just me or wtf is this? Or is this something I can mess with in the settings? Clearly makes the ROM almost unusable or at the very least very scuffed from certain aspects.

I've attached two videos to more clearly point out what I mean, one taken in Snapchat, where you can clearly distinguish the distorted crunchy ringing sound and overall muffled sound.

Here's the same thing but taken in the default camera app on the same ROM and where you can hear that the recorded audio is clear.
[P8 Lite (2017) Development] sdkyron:
Delete please
[P8 Lite (2017) Development] Corrreia:
OK, I managed to install the custom ROM, now I have a question.

How do I root the device? xD
[P8 Lite (2017) Development] AltairFR:
you got the wrong ROM if your goal was to rooter it
[P8 Lite (2017) Development] Corrreia:
OOF, how do I do it then?
[P8 Lite (2017) Development] AltairFR:
Try for exemple crDroid 7 ,It has a dynamic rooting function
[P8 Lite (2017) Development] Corrreia:
thankyou
[P8 Lite (2017) Development] m3nda:
Uups.

Did It, working.

Btw, Im not sure If i where correct, because I found that the NFC receiver in that device is located on top of the device, so maybe I never used it correctly before.

After wipe and flash NFC fingerprint sensor didn't work.

Did twice and not is everything working.

Thanks.
[P8 Lite (2017) Development] m3nda:
One question regarding.

Im unable to wake up device by double tap on the screen.

Only avail to double tap in notification to sleep.

I really miss that feature, because I use double tap to see Clock (even with locked device)

Any hint will be really appreciated.

If I have to root device and make any sort of tweak I will.

Regards.
[P8 Lite (2017) Development] DarkJoker360:
New LineageOS 18.1 update

Changelog

Check OP for more info and downloads !

Donations

Support Group
[P8 Lite (2017) Development] 11spqr:
Update went smooth and painless, as always.

Thank you so much.

RNE-L21 owner.
[P8 Lite (2017) Development] Trin32:
Yes
[P8 Lite (2017) Development] paralias7:
Thanks for the reply. Can you please upload a screenshot of the adoptable memory option, so i can see that we are talking about the same thing? :)
[P8 Lite (2017) Development] Trin32:
Can't right now, sorry. My phone bricked yesterday, waiting to get it fixed.

You can set the whole microSD for apps in Android menu, or use ADB command to format it for mixed percentage.

Either way you getting more space for installing apps, just be sure to use some fast microSD card or it will lagg severely.
[P8 Lite (2017) Development] paralias7:
So i have two choises. Adb command for adoptable or installing the apps directly to sd. So no choise of adoptable within the android as it was on android 6 ?
[P8 Lite (2017) Development] Trin32:
I got no idea what do you want, sorry. Here is screenshot. Apps can be installed on SD, data can be stored on SD simultaneously, you just need to set mixed mode.
[P8 Lite (2017) Development] paralias7:
Thanks again for the reply! With this screenshot you helped me a lot. Because i remember in android 9(custom rom) it didn't have the option for adoptable within the os. You had to do it throuth adb,and therefore when you go in to disk space details it had red bars!

Edit: I just saw on the original post that emui version has to be maximum 8.0.0.400. Unfortunately i am on 8.0.0.409 so i can't install this rom :(
[P8 Lite (2017) Development] frank0312:
I am looking for a flashable zip file of Lineage OS 18.1

Can Somebody help me with it?

Thanks in advance
[P8 Lite (2017) Development] Trin32:
It's linked in post #1. Unzip and you got an image to flash.
[P8 Lite (2017) Development] frank0312:
I didn't het it to work. But i think that I found the problem. My stock fw was to high.
[P8 Lite (2017) Development] paralias7:
Your stock firmware must be maximum 8.0.0.400. Mine was 8.0.0.409 and i couldn't install this rom,but with the help of @Trin32 i managed to downgrade it to 8.0.0.377 and install this awesome custom rom!!
[P8 Lite (2017) Development] AltairFR:
8.0.0.402 work also
[P8 Lite (2017) Development] frank0312:
Thanks all! For helping me out!! I have to downgrade my phone! I have Lineage os 15.1 on it at the moment. But i want 18.1!
[P8 Lite (2017) Development] AltairFR:
Remettre une ROM vendor avec la méthode dload

Télécharger une ROM complete a partir du site https://halabtech.com/; dezipper le zip et suivre les

instructions pour l’installer sur votre téléphone (voir fichier word une fois decompresser).

Attention vous devez obligatoirement télécharger une ROM inférieur a 8.0.0.403, par exemple la

version 402

--------

Hand over a vendor ROM with the dload method

Download a complete ROM from the site https://halabtech.com/; unzip the zip and follow the

instructions to install it on your phone (see word file once unzip).

Please note that you must download a ROM lower than 8.0.0.403, for example the

version 402
[P8 Lite (2017) Development] AltairFR:
My full guide to install custom ROM, in french sorry, use Google translate
[P8 Lite (2017) Development] domcars0:
Nobody find a fix to this issue ? :-(
[P8 Lite (2017) Development] AltairFR:
No one has succeeded in correcting it effectively. But I'm doing it .... maybe in 4 hours, compilation is underway
[P8 Lite (2017) Development] AltairFR:
Issue fix this week :)
[P8 Lite (2017) Development] domcars0:
Nice!! Thank you very much. Where could we download this patched ROM?

EDIT: Oups, sorry, just find it ! Thanks!
[P8 Lite (2017) Development] tjw100:
great work, thx. I used LineageOS with adoptable storage feature, but I don't find this in v17. Therefore one - maybe stupid - question:

is it possible to enable adoptable storage, e.g. via ADB?
[P8 Lite (2017) Development] AltairFR:
Try this :

adb shell sm set-virtual-disk true

adb shell sm list-disks

and format after the new storage in Lineage parameters
[P8 Lite (2017) Development] joelgallego:
DarkJoker360 thanks for your work!!!
[P8 Lite (2017) Development] mohammed h.Gamer:
Is this ROM compatible with p10 lite (was-lx1a)?
[P8 Lite (2017) Development] kkgodygah:
thx a lot

and one another stupid question

if i didnot use the tf card which had been used as an Adoptable Storage ,how to delete it.
[P8 Lite (2017) Development] AltairFR:
Just format sdcard in twrp
[P8 Lite (2017) Development] 1nsan1-T:
Rooting Honor 6x with Lineageos 18.1

I recently installed @DarkJoker360 build of Lineageos android 11. Camera and flashlight became an issue after a short period, but that's an issue for later.

My current concern is the procedure for installing root, preferably with magisk. Trying to flash magisk v23 phh provided zip file leads to error 127; updater ended with error 127. I extracted the ramdisk.img and patched via the magisk 23 app but that caused bootloop, among other errors. What should I try next?
[P8 Lite (2017) Development] Kurt Krummbein:
Latest canary (Magisk 24303) might work. See: Release note 24303 and @pndwal note

:).
[P8 Lite (2017) Development] 1nsan1-T:
I'd tried patching ramdisk and kernel images with the latest version 24.3 and ended up with a bootloop and error for ramdisk patching and no effect with kernel patching. I was thinking I've been patching the wrong partitions, or is there a specific step I've missed;

-Extracted kernel and radisk from the phone, not install image.

-patched ramdisk in magisk(first with v23 phh from @DarkJoker360 then with official magisk v24.3). Both times, boot error/bootloop

-patched kernel images after reflashing unpatched ramdisk. With both versions, no effect, no root.

-Reflashed original images and returned to system, no errors but no root:sleep:
[P8 Lite (2017) Development] -Alf-:
Flash in TWRP:

1. https://mega.nz/file/AxckUZqS#jmlC0PdMLhZW8H0zOjBY8UyRErLOA_hVa_zh3brJdRw

or

2. https://mega.nz/file/oxEm3JTY#nFKwh5gd3Ehg_SNcB0SYwbzVNaOtGjR8FzVZAKqTORY

&

https://mega.nz/file/MlUm2LaK#5OfA4wxImpy9BnpotnPx5MTXnhrGvT53gTHFC5g6oCw

Superuser root - in TWRP flash

Phh-superuser-aonly , and install superuser appk download .

Maybe it will help you.
[P8 Lite (2017) Development] AltairFR:
If you want root your GSi, You can use a Lineage 18 with Dynamic root option
[P8 Lite (2017) Development] victorcastillab:
Hi All,

I tried install it on my Huawei P8 Kite 2017 but something was wrong. I followed all the Steps but, seems to work fine with the Lineage Logo but, when the configuration language and region appears, the screen blinked all the time so I couldn't configure it. After restart phone pressing power button same happened, and with some new retarts the emui recovery showed down.

I've tried two times and don't know what I'm doing wrong, or what is missed. I've read that perhaps I have to do the process without the Sdcard, because it's now the main storage, and could damage the process.

I'd be very greatful if some "guru" of this post could give me some tips or help me!

Thank you so much in advance!

Muchas Gracias de antemano.
[P8 Lite (2017) Development] AltairFR:
Hi

Use this guide

The complete way to boot a11 on emui8 gsi (prague or warsaw)

Coming from stock emui8

Step 1

1- Install TWRP for Prague (PRA) - version 3.5 or superior (https://twrp.me/huawei/huaweip8lite2017.html)

2- Boot to twrp and make twrp backup ( all available partitions )

3- Wipe system, cache, dalvik/art cache

4- Flash this file 1-Huawei-disk-UnCrypt-v1.2-signed.zip to disable storage encryption or

this file 1-Huawei-disk-Crypt-v1.2-signed.zip to enable it. This two zip change fstab file (vendor partition)

5- Reboot to bootloader

Step 2

1- Flash system img in system image partition with fastboot

cmd : fastboot flash system <drag system.img here>

2- Reboot to TWRP (recovery)

3- Resize system via advanced wipe menu

4- Flash this file 2-Huawei-system-UnCrypt-v1.2-signed.zip to not-allow data encryption or

this file 2-Huawei-system-Crypt-v1.2-signed.zip to allow it

5- (optional) flash patch

1 - Google Apps pico (open_gapps-arm64-11.0-pico-20220215.zip)

2 - Enable AGPS (2 - AGPS-FIX-AltairVendor-v3.3-signed.zip)

5- Reboot to System

6- (optional) install GCamGo (GoogleCamera_2.12.413042791.apk)

Enjoy !!!
[P8 Lite (2017) Development] victorcastillab:
Hi,

Thanks for your prompt reply, I'll try as soon as my two little boys give me a chance!!👍🏻

Regards!
[P8 Lite (2017) Development] AltairFR:
It is the guide for LeaOS so goto LeaOS thread to keep Huawei crypt/uncrypt zip file
[P8 Lite (2017) Development] meechyy:
Hey where can i find the huawei system uncrypt file, GCamGo file and the AGPS file?

or Can I use the decryption file that darkjoker provided in the OG Post of this thread?
[P8 Lite (2017) Development] AltairFR:
Here

https://xdaforums.com/t/rom-huawei-11-leaos-lineage-18-1-for-huawei-device.4371629/
[P8 Lite (2017) Development] DarkJoker360:
Hello, released a surprise massive update

Changelog:

Check OP for more info and downloads.
[P8 Lite (2017) Development] Hippopotamus_with_shoes:
Hello DarkJoker, thanks a lot for the update. After unlocking the bootloader with PotatoNV, reverting to an older stock rom, flashing your TWRP and Lineage ROM according to the guide, flashing your magisk (https://sourceforge.net/projects/darkjoker360-developements/files/Huawei/Generic/Magisk-phh-A11/) and your custom kernel (which supports Permissive SeLinux, https://sourceforge.net/projects/darkjoker360-developements/files/Huawei/P8 Lite 2017/Android-11/Kernel/ ), it works!

There's only one more request I have, as I cannot run frida due to this error: https://github.com/frida/frida/issues/1023 . Is it possible for you to provide a custom kernel with this flag CONFIG_HUAWEI_PTRACE_POKE_ON turned on? It is needed so that users can attach to and analyze applications. Thanks a lot, and keep up the good work!
[P8 Lite (2017) Development] Hippopotamus_with_shoes:
To anyone interested: I compiled https://github.com/turex/siberia_hi6250_kernel , commit a0a3fbc104d27c5a76894c454ce9c8ff6bef7c42 with the parameters

CONFIG_SECURITY_SELINUX_DISABLE=y

CONFIG_HUAWEI_PTRACE_POKE_ON=y

The resulting kernel seems to work with frida.

Flash with `fastboot flash kernel <kernel image.img>` , at your own risk.
[P8 Lite (2017) Development] AltairFR:
Have you contacted Turex ?

https://xdaforums.com/m/turex.3777227/
[P8 Lite (2017) Development] Hippopotamus_with_shoes:
Good idea, I just did and asked him to include the flag, if of course there isn't a good reason to not do it.