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

Search This thread

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,695
4,013
19
Aradeo
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 !
 

Attachments

  • Screenshot_20210511-232119_Settings.png
    Screenshot_20210511-232119_Settings.png
    111.6 KB · Views: 1,346
  • Screenshot_20210511-232130_Trebuchet.png
    Screenshot_20210511-232130_Trebuchet.png
    399.3 KB · Views: 1,315
  • Screenshot_20210511-232134.png
    Screenshot_20210511-232134.png
    334.8 KB · Views: 1,021

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,695
4,013
19
Aradeo
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
 
Last edited:

AltairFR

Senior Member
Apr 22, 2021
357
169
Huawei P8lite/P8 Lite
Huawei P8
Hi

Here is a little feedback from the first tests (I am in EMUI version 8.0.0.390):
- No problem for installing the ROM and Google Apps (NikGapps-basic-arm64-11-20201231)
- Playstore: ok
- Wifi: ok
- Touchscreen : ok
- Bluetooth: ok
- Location: ok after clear and update AGPS in GPS Test.
- Cast / Miracast: ko (smartphone reboot)
- NFC: ok (service started but intermittent crash when reading an NFC card with NFC Test)
- Camera lineage OS: ko (unable to take a photo, error message insert SD Card)
- Camera Gcam Go : ok (front and back camera). Unable to store photo on sdcard also
- Alarm and clock lineage : ko . You must install another clock apps
- Fingerprint : ok

I continue the tests ....
 
Last edited:
  • Like
Reactions: Momin8454

latviandude

Senior Member
Jun 2, 2019
216
269
Sony Xperia Z3 Compact
LG Q7
@DarkJoker360 hi

Here is a little feedback from the first tests (I am in EMUI version 8.0.0.390):
- No problem for installing the ROM and Google Apps (NikGapps-basic-arm64-11-20201231)
- Playstore: ok
- Wifi: ok
- Touchscreen : ok
- Bluetooth: ok
- Location: ko (google maps does not give the correct location)
- Cast / Miracast: ko (smartphone reboot)
- NFC: ok (service started but intermittent crash when reading an NFC card)
- Camera lineage OS: ko (unable to take a photo)
- Gcam Go : ok

I continue the tests ....
- Lineage Camera : OK
- Location : Google Maps, fails to detect correct location (some meters accuracy inside house but I'm sure it works, u just need to go outside and do some walking to get more accurate location)
- Gallery : Ok.
- Fingerprint : At first I couldn't add my FP, then I went to "Settings/System/Gestures" and enabled "Swipe fingerprint for notifications" and tested if I can scroll notifications with it, after that I disabled it and then I noticed that I could add FP. So in the end it WORKS.
- Calling : If you are using NikGapps, u need to go to "Settings/Apps and Notifications/Default Apps" and set default Phone app/Dialer. Then you can make calls without problems.
- NFC : I can enable it and disable but I can't use it for mobile contactless payments because my Banking app shows that I'm rooted, even I have no root enabled.
- Performance, animations : Ok.
- RIL/Network : As I have Latvia SIM Card and Dual Sim Variant - PRA-LX1, after first boot I notice - Network restart issue. To fix it you need to set PIN Lock from different device, if it doesn't help, you need to disable Dual sim with "persist.radio.multisim.config=none" and reboot ur device, usually it works, else u need to go to Settings and reset APN settings.
- Battery : Ok.
- Audio : OK.
- Playstore/Gapps : OK
- Bluetooth : Haven't tested yet.
- Cast Screen : Haven't tested yet.
- Touchscreen : OK.
- Messaging : Seems to be OK.
- Notification LED/Light : can't be tested, cuz it's dead for me. :(
- Sounds for notifications/alarm : Can't be found, you need to download and install "Google/Pixel Sounds app" and set ringtone sound manually.
- Brightness : Seems to be +- good.
- Root : As default it doesn't work. But it can be enabled using one of Hamido's 3 methods. Not gonna add em, you can find them in hi6250 community group or XDA.
- Alarm : OK. So don't worry you will be able to wake up in time LOL
- Instagram : Everything is ok except you can't add Story from Gallery, so to fix this you need to install older Instagram version.
- OneDrive : It's ok, except you can't download your files, documents using app. But there's an workaround, Thanks to Hamido. You can download your files using ADM Browser app.
- Netflix : Latest versions doesn't let you play videos, I believe.. So to be able do that you need to download this version - "6_26_1_build_15_31696_31696". It will still give you sometimes error messages ,for example, when you try to play next episode but at least you will be able to watch something. :)


I think that this is it for now. Will update things, if I notice something new. Thanks for reading lol.
 
Last edited:

AltairFR

Senior Member
Apr 22, 2021
357
169
Huawei P8lite/P8 Lite
Huawei P8
Hi

I am found my problem (clock, camera etc..)
Before flashing the rom, I wipe data and internal storage in TWRP.
So when system start for the first time, it doesn't set the right permission and owner on /data/media/0 subfolder

If you have the same problem, just open a terminal in TWRP and type

cd /data/media
chown media_rw:media_rw 0
chmod 770 0
 
Last edited:

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,695
4,013
19
Aradeo
Hi

I am found my problem (clock, camera etc..)
Before flashing the rom, I wipe data and internal storage in TWRP.
So when system start for the first time, it doesn't set the right permission and owner on /data/media/0 subfolder

If you have the same problem, just open a terminal in TWRP and type

cd /data/media
chown media_rw:media_rw 0
chmod 770 0
I don't understand, can you describe the problem at all?
 
  • Like
Reactions: latviandude

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,695
4,013
19
Aradeo
I will try to reproduce the problem, the cause is a problem of access rights on the folder /data/media/0

In my smartphone the owner of 0 subfolder was "root"
Alright, I need to know now what was the problem. What was it giving, I already understood but please tell me exactly.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 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.
  • 25
    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