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

Status
Not open for further replies.
Search This thread

marstonpear

Senior Member
May 15, 2016
490
183
Please fix fingerprint sensor on P8 Lite 2017.

Fingerprint sensor works fine on P8 Lite 2017. If it doesn't work this means you didn't delete your fingerprint data on EMUI or another ROM. To fix this issue, simply go back to emui and delete your fingerprints, then the fingerprints will work on any other ROM you install, don't forget to do this every time you change ROMs. And FFS just search the thread before complaining about stuff.
 

DieBill

Member
Jul 21, 2017
45
17
Is there a difference to have both graphics: gralloc & hwcomposer? The RROS has both and LineageOS 14.1 only has gralloc. Is there more benefits of having both? And what is the differences between gralloc and hwcomposer?
 

polpettopoh

Member
Jan 6, 2018
7
1
Hi guys,

sorry to bother you, but I didn't find anything searching in the thread.

I think is a known bug but I am not able to find the solution: is it possible to fix the adjustable britghtness of the screen?

It seems to be buggy.

Thanks, regards,
Andre
 

polpettopoh

Member
Jan 6, 2018
7
1
yes from Display's settings in Settings.
Thanks, probably I explained poorly the problem.

Adaptive brightness is active and brigthness bar is set in the middle, but still the phone's display remains bright in the dark and dim in the sunlight...

No issue in manually adjusting it, but I would like to know if it is a known problem... Logcar isn't sayng much.

Regards,
Andre
 

haky 86

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

    • Add AOSP 7.1.2 R36.
    • Re-upload CM-14.1
    • I will add the other roms once get device back from warranty, so CM-14.1 topic will be unique topic for all Emui 5.x based ROMs.
    • Can I install on Emui 8.x: NO and don't do that.
    • if you are interesting in particular rom just ask.
     

    haky 86

    Recognized Contributor
  • Oct 5, 2012
    3,446
    7,480
    Hama (Syria)
    ** New ROM **

    AOSP 8.1 based on Emui 5.x firmware is available for downloading and testing.
    • Bugs:
      • Bluetooth: doesn't fixed yet.
      • Extras are not included yet.

    Notes
    • It's not a treble ROM.
    • Do not flash on Emui 8.x Oreo firmware or will brick for sure.
    • I'm not responsible for bootloop/bricks.
    • Remove assertation from updater script to fix error 7

    Enable Dual Sim Manually:
    • Open build.prop in /system.
    • paste the following flags.
      persist.dsds.enabled=true
      persist.radio.multisim.config=dsds
      ro.config.hw_dsda=false
      ro.multi.rild=false
    • Save and reboot

    Download links are in the main OP "Original Post" under Android 8.x Oreo button.
     

    Attachments

    • photo5904498173144051328.jpg
      photo5904498173144051328.jpg
      44.8 KB · Views: 185
    • photo5904498173144051329.jpg
      photo5904498173144051329.jpg
      49.7 KB · Views: 185
    • photo5904498173144051330.jpg
      photo5904498173144051330.jpg
      66.5 KB · Views: 173
    • photo5904498173144051331.jpg
      photo5904498173144051331.jpg
      68.1 KB · Views: 169

    SavageGuy

    Member
    Apr 4, 2018
    5
    1
    Questions

    I have a Pra LX3 with emui 8.0 I know that I should not install in that version, but the first question is:

    If I make a downgrade to emui 5.0 can I install it without risk?

    Is there a problem with the fact that it is Pra LX3 and not LX1?
     

    DieBill

    Member
    Jul 21, 2017
    45
    17
    I have a Pra LX3 with emui 8.0 I know that I should not install in that version, but the first question is:

    If I make a downgrade to emui 5.0 can I install it without risk?

    Is there a problem with the fact that it is Pra LX3 and not LX1?
    Just use OpenKirin Roms. It supports EMUI 8. They have LineageOS, Resurrection Remix OS and Omni ROM
     
    • Like
    Reactions: SavageGuy

    haky 86

    Recognized Contributor
  • Oct 5, 2012
    3,446
    7,480
    Hama (Syria)
    Just use OpenKirin Roms. It supports EMUI 8. They have LineageOS, Resurrection Remix OS and Omni ROM

    he ask about emui 5, avoid to mention roms by others thanks. treble roms are easy to make.

    Edit: in case I fix bluetooth on aosp 8.1 based on emui 5 I'll support emui 5 more than treble. for the simple reason: most of GSI bootloop only 3 or 4 boot while is boot like a charm on emui 5 firmware..
     
    Last edited:
    • Like
    Reactions: MIcHiJK and DieBill

    SavageGuy

    Member
    Apr 4, 2018
    5
    1
    I did not remember that I had not unlocked the Bootloader, now it is not possible anymore so I can not install TWRP...
    I'll have to continue with Emui FeelsBadMan
     

    haky 86

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

    Attachments

    • Screenshot_20181016-102506.png
      Screenshot_20181016-102506.png
      102.1 KB · Views: 401
    • Screenshot_20181016-131600.png
      Screenshot_20181016-131600.png
      135.2 KB · Views: 391
    • Screenshot_20181016-135930.png
      Screenshot_20181016-135930.png
      105.6 KB · Views: 389
    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: