• 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

ghost_02

Member
Apr 20, 2013
46
4
italia
[RECOVERY][warsaw][3.3.1-0]TWRP for Huawei P10 Lite
the problem is that going to restore my old backup doesn't read it?
 

Attachments

  • IMG-20200406-WA0009.jpg
    IMG-20200406-WA0009.jpg
    172.7 KB · Views: 371

ghost_02

Member
Apr 20, 2013
46
4
italia
successfully installed
1-SDcard not detected by the camera says to use the camera you have to insert an sd card, so the camera does not work, but from the file manager it works, I am testing it now I update you as I find bugs! 2-Phone ringtone, notification, alarm goes no says the app sounds continues to stop. 3-fingerprint detection does not work, I take it off,
 

illpillow

Member
Dec 29, 2014
10
4
I've found some more issues while using this ROM, that worked with stock.

Calls do not work if the SIM card is using 4G network, i.e. incoming calls are not displayed and outgoing calls are cancelled right away. When using 2G/3G network everything works fine.

Bluetooth pairing does not work with low energy devices. It does work with normal devices. Here's an error log:
Code:
04-08 00:48:44.023   873  1016 E bt_stack: [ERROR:btm_ble_connection_establishment.cc(97)] LE Create Connection - command disallowed
04-08 00:48:44.024   873  1016 W bt_stack: [WARNING:metrics.cc(591)] LogLinkLayerConnectionEvent: failed to log status 0x000c, reason 0x0fff from cmd 0x000fffff, event 0x003e, ble_event 0x0001 for 0x7e3ee78698, handle 4095, type 0x0001, error -19
04-08 00:48:44.024   873  1016 W bt_stack: [WARNING:metrics.cc(591)] LogLinkLayerConnectionEvent: failed to log status 0x0fff, reason 0x0fff from cmd 0x0000200d, event 0x0fff, ble_event 0x0fff for 0x0, handle 65535, type 0x0001, error -19
04-08 00:48:44.026   873  1016 W bt_stack: [WARNING:btm_ble_connection_establishment.cc(92)] LE Create Connection attempt failed, status=0x0c

Edit: There is also a problem with GNSS causing 100% CPU usage on a core:
Code:
04-09 23:28:23.022  1147  1160 I GNSS_CONTROL: static THREAD_HANDLE NetworkCommunication::accept_thread_proc(void *) -- 213: Accept thread waiting for client to accept...
04-09 23:28:23.022  1147  1160 E GNSS_COMMON: error! accepter the unix socket to (9 : Bad file descriptor)
04-09 23:28:23.022  1147  1160 E GNSS_CONTROL: static THREAD_HANDLE NetworkCommunication::accept_thread_proc(void *) -- 219: accept failed
 
Last edited:
  • Like
Reactions: csoller

Minecrafted

Member
May 10, 2018
18
2
Bootloop

hello. I have followed all your steps but when I reboot the phone after installing the OS and the patches .zip file there is a bootloop, and it doesn't load the OS. I saw your comment that it was a recovery issue and you said not to use your TWRP. What is the issue and what TWRP version should I use? Thanks
 

ghost_02

Member
Apr 20, 2013
46
4
italia
hello. I have followed all your steps but when I reboot the phone after installing the OS and the patches .zip file there is a bootloop, and it doesn't load the OS. I saw your comment that it was a recovery issue and you said not to use your TWRP. What is the issue and what TWRP version should I use? Thanks
If you are using the stock brand ROM (tim.vodafone, wind, tre, etc ..) you will not be able to install the custom rom.
you must first brand your phone!
 

gregorsor

Member
Mar 8, 2020
14
0
I've found some more issues while using this ROM, that worked with stock.

Calls do not work if the SIM card is using 4G network, i.e. incoming calls are not displayed and outgoing calls are cancelled right away. When using 2G/3G network everything works fine.

Bluetooth pairing does not work with low energy devices. It does work with normal devices. Here's an error log:
Code:
04-08 00:48:44.023   873  1016 E bt_stack: [ERROR:btm_ble_connection_establishment.cc(97)] LE Create Connection - command disallowed
04-08 00:48:44.024   873  1016 W bt_stack: [WARNING:metrics.cc(591)] LogLinkLayerConnectionEvent: failed to log status 0x000c, reason 0x0fff from cmd 0x000fffff, event 0x003e, ble_event 0x0001 for 0x7e3ee78698, handle 4095, type 0x0001, error -19
04-08 00:48:44.024   873  1016 W bt_stack: [WARNING:metrics.cc(591)] LogLinkLayerConnectionEvent: failed to log status 0x0fff, reason 0x0fff from cmd 0x0000200d, event 0x0fff, ble_event 0x0fff for 0x0, handle 65535, type 0x0001, error -19
04-08 00:48:44.026   873  1016 W bt_stack: [WARNING:btm_ble_connection_establishment.cc(92)] LE Create Connection attempt failed, status=0x0c

Edit: There is also a problem with GNSS causing 100% CPU usage on a core:
Code:
04-09 23:28:23.022  1147  1160 I GNSS_CONTROL: static THREAD_HANDLE NetworkCommunication::accept_thread_proc(void *) -- 213: Accept thread waiting for client to accept...
04-09 23:28:23.022  1147  1160 E GNSS_COMMON: error! accepter the unix socket to (9 : Bad file descriptor)
04-09 23:28:23.022  1147  1160 E GNSS_CONTROL: static THREAD_HANDLE NetworkCommunication::accept_thread_proc(void *) -- 219: accept failed

Call to you operator and try to disable on infoline volte option me help and work properly on 4g <3
 

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,657
3,812
19
Aradeo
I've found some more issues while using this ROM, that worked with stock.

Calls do not work if the SIM card is using 4G network, i.e. incoming calls are not displayed and outgoing calls are cancelled right away. When using 2G/3G network everything works fine.

Bluetooth pairing does not work with low energy devices. It does work with normal devices. Here's an error log:


Edit: There is also a problem with GNSS causing 100% CPU usage on a core:


Call to you operator and try to disable on infoline volte option me help and work properly on 4g <3

So yeah I am testing new builds to see gnss thing if it s away
 
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!