[ROM][10] LineageOS 17.1 for Huawei P8 Lite 2017

Status
Not open for further replies.
Search This thread

Traceur017

Senior Member
Aug 17, 2017
119
34
@Momin8454 @Traceur finally I am in TWRP now! Thanks a lot guys! really appreciate your help.

I am not sure what was the issue, but I did followings (writing down just in case this will be helpful).

PRA-LX1 c646 (I have seen some issues reported for this model, maybe I need to change the build and then try again???). Bootloader unlocked. I was not able to get into TWRP. I was able to get into fastboot. eRecovery from Huawei was not doing anything (cannot get info from server it said).
Then I downloaded the FullOTA-MF (provided by @Traceur but I guess it is from Huawei Firmware Finder.)
dload method was getting interrupted after 5%.
Then I extracted System.img kernel.img, recovery_ramdis.img and ramdiks.img. and flashed these in order.
System – fastboot flash system SYSTEM.IMG
Ramdisk – fastboot flash ramdisk RAMDISK.IMG
Kernel – fastboot flash kernel KERNEL.IMG
Recovery – fastboot flash recovery_ramdisk RECOVERY_RAMDIS.IMG
Then at reboot it was getting stuck at 0% loading (Warning To avoid system error please do not press and hold the power button) on some EMUI page. Waited for half an hour and rebooted. again stuck. went into bootloader and flashed a TWRP. this time I get into TWRP.

so my next step is to get the LineageOS working. trying the same way as suggested: Dil3mm4's TWRP and the LineageOS 17.1 by joker (installinng gapps, magisk and pathces in TWRP as in OP). everything goes fine, no errors. but when I reboot it first does another reboot and then goes into Huawei eRecovery.
Hi
Glad you can get in twrp now.
By the way i didn't provide a link. Some other guy did. I just said to use firmware finder;)
And before you said your phone is c464 and now c646. Which one is it?
I think now that you are on twrp use hurupdater to install a stock rom and then install a custom rom to make sure everything is fine with your phone.
Try doing factory reset with stock recovery or twrp and if it didn't work, use hurupdater.
 

royalford

Member
May 27, 2020
13
3
Hi
Glad you can get in twrp now.
By the way i didn't provide a link. Some other guy did. I just said to use firmware finder;)
And before you said your phone is c464 and now c646. Which one is it?
I think now that you are on twrp use hurupdater to install a stock rom and then install a custom rom to make sure everything is fine with your phone.
Try doing factory reset with stock recovery or twrp and if it didn't work, use hurupdater.

yeah,you noted two typos from me :D
it is 464, and yzena who shared links.

Yep, I used HuRUpdater and for now I am back with EMUI. But will try to flash lineage once I have time.
Thanks again mate!
 

yzena

Member
Mar 30, 2018
48
12
yeah,you noted two typos from me :D
it is 464, and yzena who shared links.

Yep, I used HuRUpdater and for now I am back with EMUI. But will try to flash lineage once I have time.
Thanks again mate!

happy it helped you, just be carefull, the lineage os rom's kernel is sucking the battery, and the other's kernel disponible desactivate emition and reception of calls and as i tried magisk modules does not work.
 
Last edited:

royalford

Member
May 27, 2020
13
3
happy it helped you, just be carefull, the lineage os rom's kernel is sucking the battery, and the other's kernel disponible desactivate emition and reception of calls and as i tried magisk modules does not work.

thanks for the tips mate!
I am considering the workarounds, but not sure yet. There are suggestions from @DunoCZ but I have no idea what those do and what are the implications (risks, security etc).. will have to do some research

Are there same issues with earlier versions of LineageOS?
 

yzena

Member
Mar 30, 2018
48
12
thanks for the tips mate!
I am considering the workarounds, but not sure yet. There are suggestions from @DunoCZ but I have no idea what those do and what are the implications (risks, security etc).. will have to do some research

Are there same issues with earlier versions of LineageOS?

I think for now all phh's type rom have some problems, mostly cause phh's rom need a realy complicated adjustment to match perfectly all components of the phone. I had fiewer problems with los15 (reamining for me : BLE, safetynet, and = problems).
 

royalford

Member
May 27, 2020
13
3
I got this working. Leaving the procedure I followed for others:
(Check prerequisites like unlocking the bootloader)
1. Flash the stock recovery (called stockoreo.img, just search for it in the forum) using fastboot.
2. Go into recovery, factory reset and clear cache.
3. Flash Dil3mm4's TWRP.
4. Proceed with the Original Post (I did not install gapps).

As mentioned above, it is consuming the battery quite a lot. I will stick with this version for few days (as I am home and battery is not a big deal) to test some workarounds. Then I might go to LOS 15.1 as it is patched quite often..

thanks @DarkJoker360 for your job! I dont have paypal now but I will hopefully buy you a coffee or two if I create paypal.
 

yzena

Member
Mar 30, 2018
48
12
I got this working. Leaving the procedure I followed for others:
(Check prerequisites like unlocking the bootloader)
1. Flash the stock recovery (called stockoreo.img, just search for it in the forum) using fastboot.
2. Go into recovery, factory reset and clear cache.
3. Flash Dil3mm4's TWRP.
4. Proceed with the Original Post (I did not install gapps).

As mentioned above, it is consuming the battery quite a lot. I will stick with this version for few days (as I am home and battery is not a big deal) to test some workarounds. Then I might go to LOS 15.1 as it is patched quite often..

thanks @DarkJoker360 for your job! I dont have paypal now but I will hopefully buy you a coffee or two if I create paypal.

You can try kernels while waiting for a patch but you might not be able to have calls again :/
 

LENZFLIKER

Member
Feb 2, 2016
14
1
@DarkJoker360 Do I have to flash EMUI 8 and then flash your LineageOS 17.1 OR will this work just fine if I flash it while on Haky86 LineageOS 14.1 w/ Android 7.1?
(I had EMUI 5 w/ Android 7.0 on my PRA-LX2 before LineageOS 14.1)
 

Leolele99

New member
Jun 3, 2020
3
0
I installed it on my P8 Lite 2017 (PRA-LX-1) exactly like on the guide after fully resetting the phone's os with the eRecovery.
I also only installed the patch on top, no gapps or magisk or root.

It loads into the basic Lineage loadup animation, then goes black and reboots back into the default "You're device has been unlocked..." screen.
The next time it reboots it goes into eRecovery.

Any idea how to fix this?
 

DunoCZ

Senior Member
Feb 21, 2016
174
46
I installed it on my P8 Lite 2017 (PRA-LX-1) exactly like on the guide after fully resetting the phone's os with the eRecovery.
I also only installed the patch on top, no gapps or magisk or root.

It loads into the basic Lineage loadup animation, then goes black and reboots back into the default "You're device has been unlocked..." screen.
The next time it reboots it goes into eRecovery.

Any idea how to fix this?
Did you resized system partition and flashed patch by DarkJoker360 right?
 

Leolele99

New member
Jun 3, 2020
3
0
Did you resized system partition and flashed patch by DarkJoker360 right?

Yup, I did resize it and did install the patch.

I eventually got it working, after I redownloaded and extracted all files, used the eRecovery to reset everything to stock, install DarkJokers AOSP successfully, used the eRecovery to reset to tock once again, and then followed the guide again.
Not a single clue what I did differently this time, either a small extraction error in the zip files or the double reset to stock helped, I suspect.
 

LENZFLIKER

Member
Feb 2, 2016
14
1
Wait for a new patch or crDroid

I tried to re-flash stock with HuR so that I could flash LOS17.1 and messed up the file names. Even eRecovery failed so I went to Huawei customer service center and they fixed it and installed latest EMUI. Came here again and read every reply and decided its best to wait till @DarkJoker360 releases crDroid. Thanks @DunoCZ for helping on this thread.
 
Last edited:

Emtecsus

New member
Oct 28, 2019
2
0
How can there be such awesome people? It works in my Honor 6X! And it's fully de-googled man this is just perfect! Thank you very much for this...

These are the steps (thanks @DunoCZ) I followed if an Honor 6X user want to install this ROM:
- *Upgrade to EMUI 8!*
- *Remove the saved fingerprints and Google Accounts just in case*
- Flash the TWRP recovery from @Dil3mm4
- Format cache, dalvik cache, data and system: TWRP -> Wipe -> Advanced Wipe
- Flash the ROM via TWRP (you can try with fastboot but it already works with TWRP): TWRP -> Install -> Install Image
- Resize the system partition: TWRP -> Wipe -> Advanced Wipe -> System -> Resize (DO NOT FORMAT!)
- (Optional) Install GApps, Magisk
- (Required) Install patch
- Reboot and wait
I wanted to say that i'm having problems wiping the cache partition. it says that it is unable to wipe the cache. Do you have any solution?
 

Elax46

New member
Aug 24, 2019
3
0
Unlock bootloader code

I would also like me to install this rom but how the heck do you for the question bootloader because Huawei does not release the codes?
 
Status
Not open for further replies.

Top Liked Posts

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

    https%3A%2F%2Fimg.xda-cdn.com%2F2zS0Xzc3uCosCW49VVzhs1P7L9A%3D%2Fhttp%253A%252F%252Fwww.androidblog.it%252Fwp-content%252Fuploads%252F2018%252F02%252FLineageOS-15.1-620x311.png


    LineageOS 17.1 for Huawei P8 Lite 2017

    *** Stable Version ***

    About
    Code:
    [CENTER]LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), 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.
    [/CENTER]

    Working
    Code:
    [CENTER]* Touchscreen
    * Adb / Mtp
    * Audio
    * Boot
    * Bluethoot
    * Internal/External storage
    * Sensors
    * Wifi  
    * RIL
    * Camera
    * Android 10 gestures
    * NFC
    * FP gestures
    [/CENTER]

    Not Working
    Code:
    [CENTER]* Offline charge (It works by switching to permissive selinux)
    [/CENTER]

    Installation
    Code:
    [CENTER]* you must also have this recovery version installed :  [URL="https://forum.xda-developers.com/p10-lite/development/recovery-twrp-huawei-p10-lite-t3953890"]TWRP[/URL]
    * go to TWRP  and do a full wipe (system, data, cache, dalvik/art cache) !
    * reboot to bootloader
    * extract Lineage.zip
    * run: fastboot flash system <drag system.img here>
    * reboot to TWRP
    * reboot to TWRP
    * flash gapps(optional) 
    * flash root(optional)
    * flash los_patches_prague.zip
    NOTE: this zip is needed for having a working build. DO NOT IGNORE IT !
    * reboot system
    * Enjoy !!![/CENTER]

    Update
    Code:
    [CENTER]* extract the new update of AOSP
    * reboot device to :  TWRP
    * wipe cache, dalvik cache and system
    * reboot to bootloader
    * extract Lineage.zip
    * run: fastboot flash system <drag system.img here>
    * reboot to TWRP
    * install gapps(optional, needed it you previously had it)
    * install los_patches_prague.zip
    * NOTE: this zip is needed for having a working build. DO NOT IGNORE IT !
    * reboot to System
    * Enjoy !!![/CENTER]

    Download
    Code:
    [CENTER][URL="https://sourceforge.net/projects/darkjoker360-developements/files/Huawei/P8%20Lite%202017/Android-10/LineageOS/"]LineageOS 17.1 and los_patches_prague[/URL]
    [URL="https://opengapps.org/"]Gapps[/URL]
    [URL="https://forum.xda-developers.com/attachment.php?attachmentid=4882825&d=1574332554"]Magisk Phh v19.3[/URL][/CENTER]

    Credits:
    @phhusson
    @Flex1911
    @haky 86
    @DIl3mm4
    @Hami_Do

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

    Regards !​


    XDA:DevDB Information
    LineageOS, ROM for the Huawei P8lite/P8 Lite

    Contributors
    DarkJoker360
    Source Code: http://github.com/DarkJoker360

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Emui 8.x with Unlocked bootloader and TWRP installed
    Based On: LineageOS

    Version Information
    Status: Stable
    Current Stable Version: 17.1
    Stable Release Date: 2020-03-09

    Created 2020-03-09
    Last Updated 2020-03-09
    7
    How can there be such awesome people? It works in my Honor 6X! And it's fully de-googled man this is just perfect! Thank you very much for this...

    These are the steps (thanks @DunoCZ) I followed if an Honor 6X user want to install this ROM:
    - *Upgrade to EMUI 8!*
    - *Remove the saved fingerprints and Google Accounts just in case*
    - Flash the TWRP recovery from @Dil3mm4
    - Format cache, dalvik cache, data and system: TWRP -> Wipe -> Advanced Wipe
    - Flash the ROM via TWRP (you can try with fastboot but it already works with TWRP): TWRP -> Install -> Install Image
    - Resize the system partition: TWRP -> Wipe -> Advanced Wipe -> System -> Resize (DO NOT FORMAT!)
    - (Optional) Install GApps, Magisk
    - (Required) Install patch
    - Reboot and wait
    5
    The most craziest thing I have ever read on this forum, keep using that outdated emui then.
    5
    A good news guys, offline charging has been fixed !
    3
    Hi everyone,
    A few days ago, I tried to install this ROM but I ran into a lot of issues: System UI constantly crashing, random reboots,... but I found a workaround. Here's how I successfully flashed this ROM :
    • Unlock the bootloader with DC-Unlocker as Huawei stopped giving bootloader codes (it is a paid service).
    • Copy the files provided by DarkJoker360 (the ROM and the patches) to your SD card.
    • Flash DarkJoker360's TWRP and reboot to recovery to wipe cache, Dalvik/ART cache, system, data partitions and to decrypt the data partition.
    • Then, reboot to bootloader and flash Dil3mm'4s TWRP.
    • Reboot to recovery and directly install the ROM from the recovery and not from fastboot. Go to Install > *where you put the ROM files*. First, install system.img (do not forget to click on "Install Image" to see the system.img file). Then, install the patch, GApps, and Magisk (Google Apps and Magisk are optional).
    • Reboot to system.

    Your phone should now be running LineageOS 17.1 without a hitch. I also enabled Adoptable Storage by following these instructions. This ROM works pretty well but the battery only lasts half a day now. I'll try to fix that later.

    Hope this post helps you. :good:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone