[13/06/2020] Haky86's LineageOS 14.1 Huawei P8 Lite 2017 PRA-LX1

Status
Not open for further replies.
Search This thread

haky 86

Recognized Contributor
  • Oct 5, 2012
    3,446
    7,480
    Hama (Syria)
    LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), 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. Lineage OS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    Code:
     * Your warranty is now void.
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.


    Compatible device?:
    Code:
    [LIST]
    [*]P8 Lite 2017.
    [*]P10 Lite.
    [/LIST]

    Mandatory:
    * hit thank buttons, it's free.
    * want more roms for P8 Lite 2017/P9 Lite 2017, simply bring me up beers by the following button.

    Requirements:
    • Unlocked bootloader.
    • Unlocked FRP.
    • vendor.img: you must be on stock one, so don't wipe it because with other custom vendor.img will never ever boot.
    • Emui 5.x B115 (Single Sim) or B170(Dual Sim)

    How to Install the ROM?
    * reboot to TWRP.
    * go to Wipe -> Advanced Wipe.
    * check Data -> Change file system -> select EXT4.
    * swipe the screen to wipe it ;) .

    How can I fix Sim?
    * go to Settings -> Extras -> disable "Sim Card Slot2 " and reboot.

    How can I enable Google Codecs
    * go to Settings -> Extras -> enable "Use Google H264" (it's a bit laggy but better than nothing).

    How to enable Double Touch To Wake?
    * go to Settings -> Extras -> enable "Double Touch to Wake"

    Should I reflash the vendor partition if come from other roms?
    * if you coming from Emui 5.x, the answer is no because the custom rom are based on Emui 5.0 source code, so all you
    have to is flashing your favorite custom rom ;)

    Audio and camera are not working?
    * bring up a logcat to help us, instead of writing useless comments.


    Gapps:

    Working Hardware:
    • Audio.
    • Bluetooth.
    • Browser.
    • Display.
    • GPS.
    • Graphics: only gralloc.
    • Lights.
    • RIL.
    • Sensors.
    • Storage: both internal & external storage.
    • Wifi.


    Bugs:
    • Tell me

    LineageOS 14.1:

    Downloads:


    Changelogs:
    • 30/07/2017:
      • Initial build.

    • 03/08/2017:
      • Testing hwcomposer, report us if the build boot and run games fine.
      • Camera will be fixed soon.

    • 21/08/2017:
      • fix random reboot.
      • fix some tethering issues.
      • wifi should be fixed (send me a logcat if not work) it was working on my own pra-lx1..

    • 25/08/2017:
      • fix sim.
      • fix hwcomposer (in theory, you should test games for that).
      • fix wifi..

    • 01/09/2017:
      • ril has beeb fixed by disable flags for dual sim, my device is single sim.
      • fix wifi (will try to fix saving password issue).

    • 01/09/2017:
      • Android 7.1.2 R29.
      • fix bootloop.
      • fix random reboot.
      • to fix lags: disable Ambient Display from Display settings.

    • 15/11/2017:
      • update HwComposer according to this patch.
      • Update permissions for Google Play.
      • Build is smooth and fast even with enabled ambient display

    • 21/12/2017:
      • fix minor bugs :)

    • 31/12/2017:
      • fix camera

    • 06/01/2018:
      • fix USB & memories.

    • 21/01/2018:
      • Fix error 7 by adding support for prague devices, so you must flash my latest twrp, the v2.5.
      • Fix ril on prague devices.
      • Fix ril crashes, I test the automated voice of ussd code for more than 30 seconds and didn't crash like before.
      • Note: this rom is only for the Huawei P8 Lite 2017 if you didn't get worked audio or camera on your hi6250 device isn't my fault, just flash my own vendor.img from unbrick guide, that's why I get everything works on my pra-lx1 like the following attached screenshot.

    • 25/01/2018:
      • Fix audio for P10 Lite
      • Add support for Vulkan libraries for all hi6250.
      • Fix camera on some prague devices.

    • 31/01/2018:
      • Fix Magisk 15.3
      • Security patches: January 2018 ;)

    • 19/02/2018:
      • security patches: Feb 2018

    • 02/05/2018:
      • fix call's sensor issue.
      • latest android 7.1.2 build.

    • 28/12/2019:
      • Fix Magisk
      • Fix RIL crash.
      • Security Patches: 5 Dec 2019

    • 11/06/2020:
      • New "Extra" thanks to dady8889 for the base (I'll clean up tomorrow)
      • Fix Mute in Call.
      • SPL: May 2020

    • 13/06/2020:
      • Fix Mute in Call.
      • Fix USSD. (thanks to flex1911 for his emui8 fixes)
      • Fix RIL Crash again.

    [/HIDE]
    Source Code:

    Credits
    @haky 86
    @Meticulus special thanks for immense work done in just few days for the hi6250 platform.

    Contributors
    @haky 86
    Source Code: https://github.com/hak86

    ROM Kernel: Linux 4.1.x
    ROM Firmware Required: EMUI 5.0 or newer
    Version Information

    Status: Beta
    Beta Release Date: 2017-07-30

    Created 2017-07-30
    Last Updated 2017-12-21
     

    Attachments

    • Screenshot_20170730-213923.jpg
      Screenshot_20170730-213923.jpg
      217.7 KB · Views: 34,364
    • Screenshot_20170730-213932.jpg
      Screenshot_20170730-213932.jpg
      132.9 KB · Views: 34,014
    • Screenshot_20170730-213942.png
      Screenshot_20170730-213942.png
      108.9 KB · Views: 33,488
    • Screenshot_20170730-213952.png
      Screenshot_20170730-213952.png
      57.3 KB · Views: 31,578
    • Screenshot_20170730-214001.png
      Screenshot_20170730-214001.png
      63.7 KB · Views: 28,174
    • Screenshot_20170730-214007.png
      Screenshot_20170730-214007.png
      83.2 KB · Views: 27,163
    • Screenshot_20170730-214021.png
      Screenshot_20170730-214021.png
      101.4 KB · Views: 28,883
    • Screenshot_20170730-214032.png
      Screenshot_20170730-214032.png
      130.3 KB · Views: 28,651
    Last edited:

    haky 86

    Recognized Contributor
  • Oct 5, 2012
    3,446
    7,480
    Hama (Syria)
    Reserved

    ROM stuck at animation boot?
    this because you must change the file system from F2FS to EXT4 to done boot process
    * reboot to TWRP.
    * go to Wipe -> Advanced Wipe.
    * check Data -> Change file system -> select EXT4.
    * swipe the screen to wipe it ;) .

    How can I fix Sim?
    * go to Settings -> Extras -> disable "Sim Card Slot2 " and reboot.

    How can I enable Google Codecs
    * go to Settings -> Extras -> enable "Use Google H264" (it's a bit laggy but better than nothing).

    How to enable Double Touch To Wake?
    * go to Settings -> Extras -> enable "Double Touch to Wake"

    Should I reflash the vendor partition if come from other roms?
    * if you coming from Emui 5.x, the answer is no because the custom rom are based on Emui 5.0 source code, so all you
    have to is flashing your favorite custom rom ;)

    Audio and camera are not working?
    * bring up a logcat to help us, instead of writing useless comments.

    I got error 7, how can I fix that?
    * use my own TWRP recovery. or you can simply remove the whole assert line in the updater-script file inside the META-INF folder save and re-flash.

    How can I fix RIL Crashes
    • flash root.
    • Copy the phone.prop into /system/vendor and /vendor.
    • reboot, now you should able to do calls for more than 2 minuts ;)

    Calls still crash even with fix SIM
    • Run adb shell and type the following command xxd /sys/firmware/devicetree/base/hisi,modem_id .
    • the result will be something like the following out ( for single sim devices):
    1|hi6250:/ $ xxd /sys/firmware/devicetree/base/hisi,modem_id
    00000000: xxxx x000 ;xx.
    • Search for your xxxxx000, and setup the following flags .
      ro.config.client_number=1
      ro.config.modem_number=1
      persist.dsds.enabled=false
      persist.radio.multisim.config=dsds (remove it properly)
    • for dual sim devices just edit these 2 flags:
      ro.config.client_number=1
      ro.config.modem_number=1
    • Save and reboot.
     

    Attachments

    • Screenshot_20170730-124227.png
      Screenshot_20170730-124227.png
      82.6 KB · Views: 6,313
    Last edited:

    surdu_petru

    Recognized Contributor
  • Feb 3, 2010
    6,907
    22,739
    Paris
    Oh, finally you did it ;)

    You can easy fix deep-sleep issue if you'll apply @XePeleato' patch for surfaceflinger , please take a look here , credit goes to @XePeleato !

    Second, you can also easly fix the "reboot to erecovery" issue, by applaying my patch for kernel, you should take a look here as well !

    I assume Hotspot isn't working, because you need more patches to kernel ... so you can cherry-pick almost all my commits, but as always you should keep authorship, as much as possible ;)

    About camera ?? - you can't enable camera so easy ... I'll let you to try , and if you do not succeed in a week, please let me to know and I'll help you :p

    Good luck !
     

    haky 86

    Recognized Contributor
  • Oct 5, 2012
    3,446
    7,480
    Hama (Syria)
    Oh, finally you did it ;)

    You can easy fix deep-sleep issue if you'll apply @XePeleato' patch for surfaceflinger , please take a look here , credit goes to @XePeleato !

    Second, you can also easly fix the "reboot to erecovery" issue, by applaying my patch for kernel, you should take a look here as well !

    I assume Hotspot isn't working, because you need more patches to kernel ... so you can cherry-pick almost all my commits, but as always you should keep authorship, as much as possible ;)

    About camera ?? - you can't enable camera so easy ... I'll let you to try , and if you do not succeed in a week, please let me to know and I'll help you :p

    Good luck !

    Sure bro
    I'm make a build right now with that patch, for camera I don't see USE_CAMERA_STUB := true in BoardConfig.mk and also my kernel source has 34 repos for external, are they useful? will do a test with them and report you..the rest are perfect :)
     

    maxilib

    Member
    Jul 31, 2017
    10
    0
    Hi,

    We have a P8 Lite 2017 and i have install LineageOS...

    I have different problem.

    The first problem is no sim accept. ( i have two sim in the phone but the Software marked "No sim"...

    The second problem is when i shutdown P8 and stard after few minutes, the P8 doesnt start ( P8 blocked on the Logo Lineage OS).

    You can help me ??

    Thanks
     

    haky 86

    Recognized Contributor
  • Oct 5, 2012
    3,446
    7,480
    Hama (Syria)
    Hi,

    We have a P8 Lite 2017 and i have install LineageOS...

    I have different problem.

    The first problem is no sim accept. ( i have two sim in the phone but the Software marked "No sim"...

    The second problem is when i shutdown P8 and stard after few minutes, the P8 doesnt start ( P8 blocked on the Logo Lineage OS).

    You can help me ??

    Thanks

    For sim I can't help you because my device is single sim.
    for shutdown/random reboot, I already fix that problem, will be available in the second builld once fix nfc :)
     

    Attachments

    • Screenshot_20170731-160308.png
      Screenshot_20170731-160308.png
      126.8 KB · Views: 2,758

    maxilib

    Member
    Jul 31, 2017
    10
    0
    For sim I can't help you because my device is single sim.
    for shutdown/random reboot, I already fix that problem, will be available in the second builld once fix nfc :)

    Thanks for your reply :)

    I'v tested you version later. But for the SIM, any SIM is recognize in the system ! ( French SIM operator Orange)
     

    aciupapa

    Senior Member
    Feb 11, 2015
    760
    194
    Puńsk
    I flashed the vendor, did a factory reset in twrp and wiped system, flashed rom zip and opengapps arm64 7.1 pico. it looped on a Lineage logo for 10 minutes. Do i need to format data partition? or factory reset is enough
     

    Vinnipinni

    Senior Member
    Jul 20, 2016
    614
    238
    Norderstedt
    OK, thanks. I'll back everything up and wait for next build :)
    Yeah. Just keep in mind that you cannot backup data at all. Only the Internal space with your PC. But always make backups of other stuff and keep at least one on your PC, so if something breaks, you can always go back. Data isn't that important to safe, if you wiped data, it's like a factory reset.
     
    V

    veromax

    Guest
    First my respect. I also tried it. But I failed. Is not bad, there are experts like @haky 86. Great work, thank you.

    When I tested the version for the 6x in the morning, I had to format between the data partition and re-install the EMUI. Since then your TWRP works perfectly. Complete backups include Data Partition. Restoring is also perfect. Tomorrow I want to try your Lineage OS. Hope the Revovery works there perfectly synonymous.
     
    Status
    Not open for further replies.

    Top Liked Posts

    • There are no posts matching your filters.
    • 58
      LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), 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. Lineage OS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

      Code:
       * Your warranty is now void.
       * We are not responsible for bricked devices, dead SD cards,
       * thermonuclear war, or you getting fired because the alarm app failed. Please
       * do some research if you have any concerns about features included in this ROM
       * before flashing it! YOU are choosing to make these modifications, and if
       * you point the finger at us for messing up your device, we will laugh at you.


      Compatible device?:
      Code:
      [LIST]
      [*]P8 Lite 2017.
      [*]P10 Lite.
      [/LIST]

      Mandatory:
      * hit thank buttons, it's free.
      * want more roms for P8 Lite 2017/P9 Lite 2017, simply bring me up beers by the following button.

      Requirements:
      • Unlocked bootloader.
      • Unlocked FRP.
      • vendor.img: you must be on stock one, so don't wipe it because with other custom vendor.img will never ever boot.
      • Emui 5.x B115 (Single Sim) or B170(Dual Sim)

      How to Install the ROM?
      * reboot to TWRP.
      * go to Wipe -> Advanced Wipe.
      * check Data -> Change file system -> select EXT4.
      * swipe the screen to wipe it ;) .

      How can I fix Sim?
      * go to Settings -> Extras -> disable "Sim Card Slot2 " and reboot.

      How can I enable Google Codecs
      * go to Settings -> Extras -> enable "Use Google H264" (it's a bit laggy but better than nothing).

      How to enable Double Touch To Wake?
      * go to Settings -> Extras -> enable "Double Touch to Wake"

      Should I reflash the vendor partition if come from other roms?
      * if you coming from Emui 5.x, the answer is no because the custom rom are based on Emui 5.0 source code, so all you
      have to is flashing your favorite custom rom ;)

      Audio and camera are not working?
      * bring up a logcat to help us, instead of writing useless comments.


      Gapps:

      Working Hardware:
      • Audio.
      • Bluetooth.
      • Browser.
      • Display.
      • GPS.
      • Graphics: only gralloc.
      • Lights.
      • RIL.
      • Sensors.
      • Storage: both internal & external storage.
      • Wifi.


      Bugs:
      • Tell me

      LineageOS 14.1:

      Downloads:


      Changelogs:
      • 30/07/2017:
        • Initial build.

      • 03/08/2017:
        • Testing hwcomposer, report us if the build boot and run games fine.
        • Camera will be fixed soon.

      • 21/08/2017:
        • fix random reboot.
        • fix some tethering issues.
        • wifi should be fixed (send me a logcat if not work) it was working on my own pra-lx1..

      • 25/08/2017:
        • fix sim.
        • fix hwcomposer (in theory, you should test games for that).
        • fix wifi..

      • 01/09/2017:
        • ril has beeb fixed by disable flags for dual sim, my device is single sim.
        • fix wifi (will try to fix saving password issue).

      • 01/09/2017:
        • Android 7.1.2 R29.
        • fix bootloop.
        • fix random reboot.
        • to fix lags: disable Ambient Display from Display settings.

      • 15/11/2017:
        • update HwComposer according to this patch.
        • Update permissions for Google Play.
        • Build is smooth and fast even with enabled ambient display

      • 21/12/2017:
        • fix minor bugs :)

      • 31/12/2017:
        • fix camera

      • 06/01/2018:
        • fix USB & memories.

      • 21/01/2018:
        • Fix error 7 by adding support for prague devices, so you must flash my latest twrp, the v2.5.
        • Fix ril on prague devices.
        • Fix ril crashes, I test the automated voice of ussd code for more than 30 seconds and didn't crash like before.
        • Note: this rom is only for the Huawei P8 Lite 2017 if you didn't get worked audio or camera on your hi6250 device isn't my fault, just flash my own vendor.img from unbrick guide, that's why I get everything works on my pra-lx1 like the following attached screenshot.

      • 25/01/2018:
        • Fix audio for P10 Lite
        • Add support for Vulkan libraries for all hi6250.
        • Fix camera on some prague devices.

      • 31/01/2018:
        • Fix Magisk 15.3
        • Security patches: January 2018 ;)

      • 19/02/2018:
        • security patches: Feb 2018

      • 02/05/2018:
        • fix call's sensor issue.
        • latest android 7.1.2 build.

      • 28/12/2019:
        • Fix Magisk
        • Fix RIL crash.
        • Security Patches: 5 Dec 2019

      • 11/06/2020:
        • New "Extra" thanks to dady8889 for the base (I'll clean up tomorrow)
        • Fix Mute in Call.
        • SPL: May 2020

      • 13/06/2020:
        • Fix Mute in Call.
        • Fix USSD. (thanks to flex1911 for his emui8 fixes)
        • Fix RIL Crash again.

      [/HIDE]
      Source Code:

      Credits
      @haky 86
      @Meticulus special thanks for immense work done in just few days for the hi6250 platform.

      Contributors
      @haky 86
      Source Code: https://github.com/hak86

      ROM Kernel: Linux 4.1.x
      ROM Firmware Required: EMUI 5.0 or newer
      Version Information

      Status: Beta
      Beta Release Date: 2017-07-30

      Created 2017-07-30
      Last Updated 2017-12-21
      18
      Oh, finally you did it ;)

      You can easy fix deep-sleep issue if you'll apply @XePeleato' patch for surfaceflinger , please take a look here , credit goes to @XePeleato !

      Second, you can also easly fix the "reboot to erecovery" issue, by applaying my patch for kernel, you should take a look here as well !

      I assume Hotspot isn't working, because you need more patches to kernel ... so you can cherry-pick almost all my commits, but as always you should keep authorship, as much as possible ;)

      About camera ?? - you can't enable camera so easy ... I'll let you to try , and if you do not succeed in a week, please let me to know and I'll help you :p

      Good luck !
      11
      Reserved

      **Downloads**

      • 21/08/2017:
        • fix random reboot.
        • fix some tethering issues.
        • wifi should be fixed (send me a logcat if not work) it was working on my own pra-lx1..

      Hit a thank if you love my works, no thanks no roms.
      10
      Reserved

      ROM stuck at animation boot?
      this because you must change the file system from F2FS to EXT4 to done boot process
      * reboot to TWRP.
      * go to Wipe -> Advanced Wipe.
      * check Data -> Change file system -> select EXT4.
      * swipe the screen to wipe it ;) .

      How can I fix Sim?
      * go to Settings -> Extras -> disable "Sim Card Slot2 " and reboot.

      How can I enable Google Codecs
      * go to Settings -> Extras -> enable "Use Google H264" (it's a bit laggy but better than nothing).

      How to enable Double Touch To Wake?
      * go to Settings -> Extras -> enable "Double Touch to Wake"

      Should I reflash the vendor partition if come from other roms?
      * if you coming from Emui 5.x, the answer is no because the custom rom are based on Emui 5.0 source code, so all you
      have to is flashing your favorite custom rom ;)

      Audio and camera are not working?
      * bring up a logcat to help us, instead of writing useless comments.

      I got error 7, how can I fix that?
      * use my own TWRP recovery. or you can simply remove the whole assert line in the updater-script file inside the META-INF folder save and re-flash.

      How can I fix RIL Crashes
      • flash root.
      • Copy the phone.prop into /system/vendor and /vendor.
      • reboot, now you should able to do calls for more than 2 minuts ;)

      Calls still crash even with fix SIM
      • Run adb shell and type the following command xxd /sys/firmware/devicetree/base/hisi,modem_id .
      • the result will be something like the following out ( for single sim devices):
      1|hi6250:/ $ xxd /sys/firmware/devicetree/base/hisi,modem_id
      00000000: xxxx x000 ;xx.
      • Search for your xxxxx000, and setup the following flags .
        ro.config.client_number=1
        ro.config.modem_number=1
        persist.dsds.enabled=false
        persist.radio.multisim.config=dsds (remove it properly)
      • for dual sim devices just edit these 2 flags:
        ro.config.client_number=1
        ro.config.modem_number=1
      • Save and reboot.
      9
      Is the camera issue only with stock camera app, or also with any other camera app?
      it's correct, is not work also with any other camera app due to missed libs, so i'm working on customized vendor.img from my own pra-lx1 that already boot successfully but need some adjustments to make audio, bluetooth and ril work again then will work on camera that got some interesting logs should help me to fix the issue easier, keep in touch. :eek: