FORUMS
Remove All Ads from XDA

[DICONTINUED] Haky86's LineageOS 14.1 Huawei P8 Lite 2017 PRA-LX1

3,196 posts
Thanks Meter: 7,258
 
By haky 86, Recognized Contributor on 30th July 2017, 09:30 PM
Thread Closed Email Thread
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:
  • P8 Lite 2017.
  • P10 Lite.
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.

Recommend Magisk?
* flash 14.0.

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.
  • 29/07/2019:
    • Re-Upload new build.
[/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
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170730-213923.jpg
Views:	32902
Size:	217.7 KB
ID:	4228119   Click image for larger version

Name:	Screenshot_20170730-213932.jpg
Views:	32546
Size:	132.9 KB
ID:	4228120   Click image for larger version

Name:	Screenshot_20170730-213942.png
Views:	32056
Size:	108.9 KB
ID:	4228121   Click image for larger version

Name:	Screenshot_20170730-213952.png
Views:	30280
Size:	57.3 KB
ID:	4228122   Click image for larger version

Name:	Screenshot_20170730-214001.png
Views:	26958
Size:	63.7 KB
ID:	4228123   Click image for larger version

Name:	Screenshot_20170730-214007.png
Views:	25996
Size:	83.2 KB
ID:	4228124   Click image for larger version

Name:	Screenshot_20170730-214021.png
Views:	27780
Size:	101.4 KB
ID:	4228125   Click image for larger version

Name:	Screenshot_20170730-214032.png
Views:	27562
Size:	130.3 KB
ID:	4228126  
The Following 56 Users Say Thank You to haky 86 For This Useful Post: [ View ] Gift haky 86 Ad-Free
30th July 2017, 09:34 PM |#2  
haky 86's Avatar
OP Recognized Contributor
Flag Hama (Syria)
Thanks Meter: 7,258
 
Donate to Me
More
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):
Quote:

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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170730-124227.png
Views:	6128
Size:	82.6 KB
ID:	4228137  
The Following 7 Users Say Thank You to haky 86 For This Useful Post: [ View ] Gift haky 86 Ad-Free
30th July 2017, 10:21 PM |#3  
surdu_petru's Avatar
Recognized Contributor
Flag Paris
Thanks Meter: 21,023
 
Donate to Me
More
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

Good luck !
The Following 18 Users Say Thank You to surdu_petru For This Useful Post: [ View ] Gift surdu_petru Ad-Free
30th July 2017, 10:27 PM |#4  
haky 86's Avatar
OP Recognized Contributor
Flag Hama (Syria)
Thanks Meter: 7,258
 
Donate to Me
More
Quote:
Originally Posted by surdu_petru

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

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
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-07-30 23-25-51.png
Views:	3098
Size:	94.2 KB
ID:	4228164  
GuestK0062
30th July 2017, 11:18 PM |#5  
Guest
Thanks Meter: 0
 
More
Installed, testing. No reboots so far.
30th July 2017, 11:24 PM |#6  
haky 86's Avatar
OP Recognized Contributor
Flag Hama (Syria)
Thanks Meter: 7,258
 
Donate to Me
More
Quote:
Originally Posted by Dejan Kruljac

Installed, testing. No reboots so far.

just wait and see..fixing are in progress..will be in nex builds. btw
31st July 2017, 02:32 AM |#7  
Senior Member
Flag Norderstedt
Thanks Meter: 244
 
More
This works on the P9 Lite 2017 too. The devices have the same hardware, I think even the same Model No. Just wanted to point that out.
31st July 2017, 02:27 PM |#8  
Junior Member
Thanks Meter: 0
 
More
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
31st July 2017, 03:07 PM |#9  
haky 86's Avatar
OP Recognized Contributor
Flag Hama (Syria)
Thanks Meter: 7,258
 
Donate to Me
More
Quote:
Originally Posted by maxilib

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
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170731-160308.png
Views:	2698
Size:	126.8 KB
ID:	4228708  
31st July 2017, 03:20 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by haky 86

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)
31st July 2017, 04:35 PM |#11  
Senior Member
Flag Puńsk
Thanks Meter: 195
 
More
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
Thread Closed Subscribe to Thread

Tags
android, cm-14.1, lineageos, nougat, p8l17
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes