[P8 Lite (2017) Development] worriedaddy:
Hi,

thanks for sharing your work, really much apreciated.

I'm trying to install it on my Huawei P8 Lite 2017 and I took notes everytime I do my trial. However, I'm not able to boot.

If you can tell me what I can change in my checklist, it'd be much appreciated.

Downgrade firmware​

I put on a microSD in the dload folder the following firmware:

Huawei P8 Lite 2017 PRA-LX1 PRA-L31HN Prague-L31HN 8.0.0.360(C432) Firmware 8.0.0 EMUI8.0 05015JEY

Huawei P8 Lite 2017 PRA-LX1 PRA-L11 hw eu HLRCF Prague-L11 8.0.0.400(C432) Firmware 8.0.0 r1 EMUI8.0 05014FSP

after couple of minutes the phone start and I skip all the proposed step and go directly on the About , enable the Developer menu tapping 7 times on build, enable OEM unlocking and USB debugging.

Unlock phone​

To unlock the phone with my Bootloader code I do:

.\adb.exe reboot bootloader
.\fastboot.exe oem unlock BOOTLOADER_CODE

After this step the phone restart and perform a factory reset lowlevel.

Install TWRP​

Again, I go to About > Developers menu and

.\adb.exe reboot bootloader
.\fastboot.exe devices

The last command show something like

AN_ID_NUMBER fastboot

but not sure if this is needed; I think it's useful to check if the device is connected.

To flash TWRP Image on phone

.\fastboot.exe flash recovery_ramdisk .\src\TWRP_3.5.2-prague_DarkJoker360_20210508.img

After flashing the image I reboot in TWRP with pushing the buttons:

[Vol_UP + Vol_DOWN + Power] until Huawei logo appears then keep [Vol_UP + Vol_DOWN]

Format Data​

Now in TWRP I'm performing this steps

Wipe > Format Data

then

Reboot > Recovery

Wipe Data​

Now in TWRP again, and performing this steps:

Wipe >

[x] Dalvik / ART Cache
[x] Cache
[x] Data
[x] System
[x] Vendor

Install Fstab Hi6520​

I'm NOT rebooting.

I've read that this step is needed before install the other things.

I previously put the zip file on my MicroSD, so:

Install > fstab.hi6520b.zip

​

Install the system​

Still in TWRP I do:

Reboot > Bootloader

From the powershell:

.\fastboot.exe flash system .\src\lineage-18.1-20210511-UNOFFICIAL-prague.img

The output is showing a warning, but looks ending well:

Invalid sparse file format at header magic Sending sparse 'system' 1/6 (460799 KB) OKAY [ 12.868s] Writing 'system' OKAY [ 6.453s] Sending sparse 'system' 2/6 (449959 KB) OKAY [ 12.310s] Writing 'system' OKAY [ 6.867s] Sending sparse 'system' 3/6 (460397 KB) OKAY [ 12.548s] Writing 'system' OKAY [ 6.236s] Sending sparse 'system' 4/6 (457405 KB) OKAY [ 12.398s] Writing 'system' OKAY [ 6.164s] Sending sparse 'system' 5/6 (451520 KB) OKAY [ 13.637s] Writing 'system' OKAY [ 6.466s] Sending sparse 'system' 6/6 (70183 KB) OKAY [ 1.932s] Writing 'system' OKAY [ 1.013s] Finished. Total time: 103.732s

Resize the file system​

After flashing the image I reboot in TWRP with pushing the buttons:

[Vol_UP + Vol_DOWN + Power] until Huawei logo appears then keep [Vol_UP + Vol_DOWN]

then

* Wipe > Resize System

​

Install the GoogleApps, Patches​

Without rebooting and still in TWRP, I install the zip files previoulsy downloaded on the MicroSD:

Install > NikGapps-core-arm64-10-20210514-signed.zip

Install > NFC_fix.zip

As pointed out from the developer this zip is needed for having working NFC, so DO NOT IGNORE IT !

Reboot > System

After rebooting, it takes a bit of time for the phone to start and show the EMUI screen that offers me the ability to:

Download latest version and recovery
Wipe data/factory reset
Reboot
Shutdown

At this point is I put in the dload folder the image at the very beginning of my wall text I can restart everything but without success.

I've read about different firware, and tried with the following 360 and 400:

Huawei P8 Lite 2017 PRA-LX1 PRA-L31HN Prague-L31HN 8.0.0.360(C432) Firmware 8.0.0 EMUI8.0 05015JEY

Huawei P8 Lite 2017 PRA-LX1 PRA-L11 hw eu HLRCF Prague-L11 8.0.0.400(C432) Firmware 8.0.0 r1 EMUI8.0 05014FSP

but same results.

Is there something wrong in my step?

Thanks for any help!