[ROM][prague][11] LineageOS 18.1 for Huawei P8 Lite 2017

Search This thread
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 !!!
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?
 

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,697
4,028
19
Aradeo
Hello, released a surprise massive update

Changelog:
* Synced with latest LineageOS 18.1 source code
* Merged May 2022 security patches
* Fixed UI lags and janks
* Fixed lags during screen recording
* Fixed sim card signal icon strength
* Improved boot time

Check OP for more info and downloads.
 
May 26, 2022
3
1
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!
 
Last edited:
May 26, 2022
3
1
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!
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.
 

Attachments

  • custom_Siberia_1.0_kernel_HUWAEI_PTRACE_POKE_ON_prague.img
    12.3 MB · Views: 25
  • Like
Reactions: AltairFR

AltairFR

Senior Member
Apr 22, 2021
415
191
Huawei P8lite/P8 Lite
Huawei P8

victorcastillab

New member
Apr 13, 2022
4
4
Hi,

On post # 238 recomended me the following. To say that still could not tryed it due to my two little boys, too much work and another plans from God that makes me so tiiired :(
---------------------------------------

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

1nsan1-T

Member
Dec 13, 2020
8
1
Network issue.
Had a 'successful' installation on the first try. I used the quotes because (as it mostly happens for this device with most GSIs I install) I cannot make or receive calls, texts, or run any ussd commands. What could be wrong/is there a possible solution for this recurring issue of mine.
Device: Honor 6x bln 22
Initial state: Stock emui 8.
 
Last edited:

mhmmdysf

New member
Jul 8, 2022
1
0
Hello guys, I have an issue at flashing image process. When it start flashing image I get "remote:sparse flash writing failure". What should I do to fix it ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    Hi,

    2okPze5.png


    LineageOS 18.1 for Huawei P8 Lite 2017

    *** Stable Version ***

    About
    LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.



    Working
    * Touchscreen
    * Audio
    * Boot
    * Bluethoot
    * Internal/External storage
    * Mtp / Adb
    * Sensors
    * Wifi
    * RIL
    * Camera
    * NFC
    * FP gestures​


    Not Working


    NOTE: The signal icon is buggy due to Huawei weird ril implementation, I am still looking to fix it over the new Android 10-11 telephony changes.

    Installation
    * you must have TWRP installed, use this one (make sure to have the unofficial Android 11 one ! )
    WARNING: You must be decrypted before installing it otherwise it won't boot. (Read second post.)
    * go to TWRP
    * format data
    * reboot to TWRP again
    * do a full wipe (system, data, cache, dalvik/art cache) !
    * reboot to bootloader
    * extract LineageOS 18.1
    * run: fastboot flash system <drag system.img here>
    * reboot to TWRP
    * resize system
    * flash gapps (optional)
    * flash NFC.zip
    NOTE: this zip is needed for having working NFC. DO NOT IGNORE IT !
    * reboot to System
    * Enjoy !!!​


    Update
    * reboot to TWRP and do a wipe cache, dalvik/art cache
    * reboot to bootloader
    * extract LineageOS 18.1
    * run: fastboot flash system <drag system.img here>
    * reboot to TWRP
    * resize system
    * flash gapps (optional)
    * flash NFC.zip
    NOTE: this zip is needed for having working NFC. DO NOT IGNORE IT !
    * reboot to System
    * Enjoy !!!​


    If you are getting Error 70 while flashing gapps just resize system from TWRP !
    If gapps are giving network errors or other kind of errors install them after first boot !

    Download



    Please support my work, it's very important! Thanks
    DONATIONS

    Regards !
    14
    New LineageOS 18.1 update

    Changelog
    * Synced with latest LineageOS 18.1 source code
    * Merged June 2021 security patches
    * Fixed headphones crackling audio
    * Removed buggy AudioFX
    * Fixed random /data corruption
    * Fixed BasicIntegrity

    Check OP for more info and downloads !

    Donations
    Support Group
    9
    New LineageOS 18.1 update

    Changelog
    * Synced with latest LineageOS 18.1 source code
    * Merged July 2021 security patches
    * Fixed styles/overlays reset at boot
    * Fixed ui lags
    * Used proper gpu drivers
    * Fixed graphics artifacts and glitches on some apps
    * Fixed lags while using screenrecorder
    * Performance improvements
    * Fixed some BLE issues

    Check OP for more info and downloads !

    Donations
    Support Group
    7
    NOTES
    * For rooting with magisk use this.
    * If you face corrupted storage issues you need to go back on emui and re-install the rom or fastboot erase userdata + twrp format data.
    * I recommend NikGapps core with SetupWizard add-on.
    * Use 8.0.0.360 or maximum .400 firmware for booting the rom.
    * Gapps can may give "Uncertified device" error and abort the google account login, use this guide to fix it (thanks to @latviandude )
    * If you want VoLTE/Wifi Calling working flash this zip

    ** You must be decrypted for booting this rom **
    Before following the installation steps format data and flash this file via TWRP.

    Changelog from initial build
    *
    Fixed offline charger for all devices
    * Fixed gapps uncertified error
    * Improved performance
    * Fixed animations janks and lags

    Useful links
    My telegram channel
    HI6250 support group
    5
    Updated decrypt zip to work on latest recoveries !
    Download