• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][10] LineageOS 17.1 for Huawei P10 Lite

Status
Not open for further replies.
Search This thread

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,672
3,872
19
Aradeo
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 P10 Lite

*** 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_warsaw.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_warsaw.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/P10%20Lite/Android-10/LineageOS/"]LineageOS 17.1 and los_patches_warsaw[/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 P10 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
 

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,672
3,872
19
Aradeo
** Reserved **

NOTE: If get error 70 while flashing gapps resize system in TWRP !

Screnshots
 

Attachments

  • Screenshot_20200309-125638_Impostazioni.png
    Screenshot_20200309-125638_Impostazioni.png
    138 KB · Views: 3,917
  • IMG_20200308_221241_834.jpg
    IMG_20200308_221241_834.jpg
    84.9 KB · Views: 3,919
Last edited:

Chueven

Member
Jul 24, 2018
30
0
just installed this rom after repairing my display and replacing the battery. The rom is smooth and don't seem to have problems till now.
The only thing i noticed is the fingerprint doesn't work.. but i can't say if it's a my problem, i could've attached bad the flat cable.
 

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,672
3,872
19
Aradeo
just installed this rom after repairing my display and replacing the battery. The rom is smooth and don't seem to have problems till now.
The only thing i noticed is the fingerprint doesn't work.. but i can't say if it's a my problem, i could've attached bad the flat cable.
Here it is working as expected.
 

popescucr

Member
Jan 19, 2019
5
0
Why all roms for p10 lite have Magisk 19.3 and not latest version? And everyone recommend against updating.

Does your version of Lineage support microG?
 

Minecrafted

Member
May 10, 2018
18
2
Thanks!

You said fingerprint gestures work, but does fingerprint work for unclocking the phone? That is the one thing I need to know before installing. Great work though!
 

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,672
3,872
19
Aradeo

Attachments

  • IMG_20200315_215454.jpg
    IMG_20200315_215454.jpg
    252.2 KB · Views: 1,457

popescucr

Member
Jan 19, 2019
5
0
@DarkJoker360 I installed it today. It is great. Ringtones and other sound are missing, must download to work.

EDIT: Solved previous issue with format data to decrypt.
 
Last edited:

csoller

Senior Member
Nov 16, 2008
117
13
Hi, ive been stuck at installing open gapps.
I get eror 70 insufficent storage space on /system.
I used pico package.
I have WAS-LX1 32GB.

I saw someone had this problem in the aosp thread, and the solution is repartitioning system. Any help on how to do it the safe way?

Thanks!
 
Last edited:

csoller

Senior Member
Nov 16, 2008
117
13
In TWRP

Wipe> advanced>click on system and click in repair or change> resize system> swipe

Thats where I checked. :confused:
I only have change file system, I have no resize file system, or repair file system. The buttons are missing. If i select data, its there...

I am using your twrp, should i use the other one?
 
Last edited:

csoller

Senior Member
Nov 16, 2008
117
13
Thanks, ill try. Its weird because system partition is already 4.8 GB and only 1800 MB is used. I doubt gapps takes up more than 3 gigs...

If I swype right, wil it ask for a partition size, or it will make up its mind?
 

csoller

Senior Member
Nov 16, 2008
117
13

The option isnt present on Pretoriano80s twrp_p10_lite_0.6_test.img either.
Is there another way to resize system?
I still dont get it how 4.8GB isnt enough tho, the system img is 1.7GB the rest is peanuts, shouldnt the whole thing be like 2.5GB max?

Ill try aosp 10, maybe ill have more luck I like how u can just enter into erecovery and download the official base via wifi. So easy this phone. :cool:
 

csoller

Senior Member
Nov 16, 2008
117
13
AOSP 10 works great, and I still have 2.7 gigs of free space out of 4.6. I sincerely doubt lineage takes up an extra 2.7 gigs, so I think somethings fishy here. :)

Thanks for the help!
 

ThomasFrab

Member
Mar 9, 2020
6
0
Selinux Status Permissive

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

I am struggeling! How can I change the Status to pemissive? I already tried an App, tried to setenforce 0 it via terminal and also flashed an permissive Zip via magisk. 
Pls help me.
 
Status
Not open for further replies.

Top Liked Posts

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

    *** 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_warsaw.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_warsaw.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/P10%20Lite/Android-10/LineageOS/"]LineageOS 17.1 and los_patches_warsaw[/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 P10 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
    5
    So guys, since I work on crDroid source code, what about doing crDroid 10 instead of LineageOS 17.1?
    3
    ** Reserved **

    NOTE: If get error 70 while flashing gapps resize system in TWRP !

    Screnshots
    3
    Offline charging

    Not Working
    Code:
    [CENTER]* Offline charge (It works by switching to permissive selinux)
    
    I am struggeling! How can I change the Status to pemissive? I already tried an App, tried to setenforce 0 it via terminal and also flashed an permissive Zip via magisk. 
    Pls help me.[/QUOTE]
    
    Check the telegram group: [URL="https://t.me/hi6250group"]https://t.me/hi6250group[/URL] . There you can find a solution. 
    
    Anyway, I managed get offline charging work by flashing the added charger.zip, made by Hami_Do, in twrp. Then find the file in system/etc/selinux/plat_sepolicy.cil open as text and add the line: (typepermissive charger) , with parentheses, as last line in the document. Save, reboot, shutdown, test. Works on AOSP 10 also.
    2
    system ui crashing

    I had problems like a lot of people but it's working now, I did a lot of troubleshooting so I can't pin point what made it work.
    I did the recommended TWRP downgrade, formatted "Cust" and I'm not sure if i tried to launch but I remembered that I used to have some problems like that with the Lineage setup crashing when there was a problem with the gapps pre instaled with the rom. So I decided to reflash de .img , then go to twrp and do a factory reset, flash the patches, I don;t use gapps for now but do this before the patches if you need em. Tried to boot and it worked but then after installing some things i realized I couldn't download and save anything to the internal storage although it was just formatted. It turned out the storage was encrypted, so you have to disable encryption too. Once I did that the rom has been working wonders, I love LineageOS. Thanks to OP for the Rom, I hope we can have some update at least for the security patch soon and that my troubleshooting helps someone else to get this working. It's been worth it. :good:

    I tried all suggested remedies for the crashing system on my WAS-LX1A UI but nothing helped
    • Dowgraded TWRP to 3.3.1
    • Flashed Lineage os 17 again, and this time applied only los_patches_warsaw and maginsk
    • Disabled encryption of the storage partition using the guide here, only I created my custom patch, because the structure of the file was a bit different in the original patch (which I think caused bricking for some people) https://forum.xda-developers.com/mate-10/help/how-to-disable-dm-verity-forceencrypt-t3946234
    • Tried various wipes after complete install (Dalvik, cache, cust) this did not help either
    Despite that the ui is still crashing :crying:

    EDIT: Managed to fix the problem, description follows:
    I used adb logcat to check for rom log errors, this generated 1,1 MB logfile full of errors:
    Code:
    adb logcat >> log_err.txt

    I saw these errors in the log file, which after few minutes of Googling suggested the los patch was somehow not applied despite flashing it via TWRP (for the error description on github see https://github.com/phhusson/treble_experimentations/issues/304):
    Code:
    java.lang.NullPointerException: Attempt to invoke interface method 'lineageos.app.Profile lineageos.app.IProfileManager.getActiveProfile()' on a null object reference

    I did the following and it helped stop the crashing on WAS-LX1A:
    Reboot to TWRP
    Wipe Cache, Dalvik, cust
    apply patch los_patches_warsaw.zip (this time I applied it from the unencrypted internal storage, not from external sdcard)
    reboot to system

    Now the OS works without ui crashes!