[ROM][Huawei][11] LiR - Lineage 18.1 for Huawei device

Search This thread

AltairFR

Senior Member
Apr 22, 2021
332
159
Huawei P8lite/P8 Lite
Huawei P8
Non-Official Lineage 18.1 for Huawei (prague, mediapad, warsaw, rhone) - LiR

yUIn6TF.png



LiR is a project which based on LineageOS 18.1 with Eremitein Treble GSI patches (https://github.com/eremitein/treble-patches/wiki/LiR-Project). I have added my personnals patches for Huawei devices : Assisted GPS, NFC, CAST/Miracast, VoLTE....)
You can enable both SafetyNet options in the Phh Treble settings to pass the SafetyNet test
You also have the possibility of activating an SU dynamically


Changelog :


Lir March 2022 version

  • March 2022 SPL
  • Reduce size of image (remove vndk28, vndk 29)
Lir Febrary 2022 version
  • February 2022 SPL
  • to the Phh settings > Misc added new options: Restart systemUI and Dump system logs
  • SuperUser app replaced by updated new one (special thanks for contributors ponces and Amy). if you have problems after dirty update you should first remove app from Apps settings then disable/enable Superuser in Phh settings

Lir January 2022 version
  • January 2022 SPL
  • implemented Huawei IMS patches from Iceows
  • fixes for for some devices (mainly with Oreo vendor, A-only) access for media files from some apps like WhatsApp or Telegram (based on Iceows's patch)
  • backported changes from v400h device_phh_treble: All devices support unprocessed audio source, Fix audio for Umidigi X and Gome U9,
  • patch for gsicharger removed, should fix offline charger animation for some devices (need test)
  • volume dialog UI now follows rounded corners
  • opt-out cringe TCP info parsing error (AAAAA....) on legacy kernels (commit)
  • libprocessgroup: Do not remove uid cgroups directory (commit)
  • GarbageMonitor tile removed

LiR December 2021 version
  • Initial build
  • Decembre 2021 SPL

Pre-requisite :

You must have TWRP installed, use this one (make sure to have the unofficial Android 11 one ! )
You must be decrypted before installing it otherwise it won't boot

Installation :

Download this file : lir-v316-220325-arm64-iceows-huawei.7z

Not Working :
  • VoLTE

ROM OS Version: Android 11
ROM Kernel: Linux 4.4.x (stock 4.4.26 or Siberia_4.4.302-1.1.zip)
ROM Firmware Required: EMUI 8
Based On: LiR (eremitein)


Credits:

And all the others who tested my patches and helped me improve this ROM


Support Group
 
Last edited:

Hykosit

Member
Dec 22, 2021
23
3
Huawei P8lite/P8 Lite
I did not install LeaOS so far.
To be honest I can't say if it's just normal and my expectations where to high, or if it is in fact truly laggy.

Let me know if I can help
 

Morzzz

Member
Oct 29, 2009
5
1
This ROM keeps asking for SIM PIN on my phone. Cellular works fine on stock ROM, but fails to connect when running anything derived from phhusson AOSP.

Upstream report:

Reports on XDA:

Specs:
Huawai P8lite PRX-LX1 Prague_L31_HN hw eu
EMUI 8.0.0.400 C432
kernel 4.4.23+
SIM in SIM slot 1

Radio log attached to this post.
 

Attachments

  • p8litephhussoncellularnotworking.zip
    153.5 KB · Views: 12
  • Like
Reactions: AltairFR

Morzzz

Member
Oct 29, 2009
5
1
Yes, I tried with your LiR build, your LeaOS build, vanilla LiR and also the original phhusson AOSP 11.0 v313.
Tried with stock and Siberia kernels.

This keeps happening whatever I flash to system or kernel partitions.

The logs are very very verbose. It's very hard to find the relevant bits imho.

I suspect it might have something to do with the differences regarding Prague-L11, Prague-L31, and Prague-L31HN. Information on the differences is very scarce, but it seems it has something to do with single/dual-sim and some models have a firmware disabled 2nd SIM slot. But I'm just speculating at this point.
 

Morzzz

Member
Oct 29, 2009
5
1
L11 is a P8 lite (2017) single SIM, L31 P8 lite (2017) dual SIM, L31HN is Honor 8 lite.

Thank you, that is welcoming information.

It all comes down to this, which is the modem crashing:

Code:
01-06 20:33:25.252  7985  7995 D RIL_GU  : [Balong] unsolicitedResetCommandEx, dsda_single_rild is 1.
01-06 20:33:25.253  7985  7995 D RIL_GU  : unsolicitedResetCommand cause = 0
01-06 20:33:25.253  7985  7995 D use-Rlog/RLOG-RIL_GU: [unsolicitedResetCommand] proc reset cmd : set reset flag. cause = 0
01-06 20:33:27.030  7985  7995 D RIL_GU  : [Balong] unsolicitedResetCommandEx, dsda_single_rild is 1.
01-06 20:33:27.030  7985  7995 D RIL_GU  : unsolicitedResetCommand cause = 1
01-06 20:33:27.030  7985  7995 D use-Rlog/RLOG-RIL_GU: [unsolicitedResetCommand] proc reset cmd : reset rild. cause = 1
01-06 20:33:27.030  7985  7995 D RIL_GU  : unsolicitedResetCommand, modem_reset_count=1
01-06 20:33:29.036  7985  7995 D RIL_GU  : unsolicitedResetCommand,Have receive three modem reset
 

orgix

Member
Aug 20, 2009
11
0
Tested on p10 lite (dual-sim).
Rom is running smooth and fast, it's really stable and ready for every day use.

Not working:

NFC (sometimes works but it kills my battery, i removed nfc patches from rom)
VoLTE (It seems to work after patch but when i make a call network changes to 3G and when i getting incoming calls the phone rings for 1-2 times and then sends a busy tone to caller)

Working:

SD-Card
BT
Wifi
Signal Meter (Really Thanks for that)
Clock (alarm etc)
Offline charge
Safety NET pass
Magisk (Needs phh v23 for a only)
Screen recorder
GCAM (fixed for huawei version)
ADB with magisk installed (needs manually rsa fingerprint injection because confirmation popup never shows)
Fingerprint
Wake up by proximity sensor


I already tested every android 10-11 rom for p10 lite and this rom guys is the best one.

AltairFR your are a hero! Thanks.
 

AltairFR

Senior Member
Apr 22, 2021
332
159
Huawei P8lite/P8 Lite
Huawei P8
Thank you for the message . For Volte problem, the phone switches to 3G because your provider or current carrier does not support Volte. And indeed when we switch to 3G we have the problem that you indicated
 

Pheonix0110

Member
Dec 29, 2021
12
6
HI I NEED HELP I FOLLEOW EVRYTHING AND THIS HApEN
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system C:\Users\Stan\Downloads\gg\lir-v314-211223-arm64-iceows-huawei.img
target reported max download size of 471859200 bytes
Invalid sparse file format at header magic
sending sparse 'system' 1/6 (460798 KB)...
OKAY [ 13.011s]
writing 'system' 1/6...
FAILED (remote: sparse flash write failure)
 
  • Like
Reactions: AltairFR

AltairFR

Senior Member
Apr 22, 2021
332
159
Huawei P8lite/P8 Lite
Huawei P8
HI I NEED HELP I FOLLEOW EVRYTHING AND THIS HApEN
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system C:\Users\Stan\Downloads\gg\lir-v314-211223-arm64-iceows-huawei.img
target reported max download size of 471859200 bytes
Invalid sparse file format at header magic
sending sparse 'system' 1/6 (460798 KB)...
OKAY [ 13.011s]
writing 'system' 1/6...
FAILED (remote: sparse flash write failure)
Could you indicate EMUI version ? And model of the phone please
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Non-Official Lineage 18.1 for Huawei (prague, mediapad, warsaw, rhone) - LiR

    yUIn6TF.png



    LiR is a project which based on LineageOS 18.1 with Eremitein Treble GSI patches (https://github.com/eremitein/treble-patches/wiki/LiR-Project). I have added my personnals patches for Huawei devices : Assisted GPS, NFC, CAST/Miracast, VoLTE....)
    You can enable both SafetyNet options in the Phh Treble settings to pass the SafetyNet test
    You also have the possibility of activating an SU dynamically


    Changelog :


    Lir March 2022 version

    • March 2022 SPL
    • Reduce size of image (remove vndk28, vndk 29)
    Lir Febrary 2022 version
    • February 2022 SPL
    • to the Phh settings > Misc added new options: Restart systemUI and Dump system logs
    • SuperUser app replaced by updated new one (special thanks for contributors ponces and Amy). if you have problems after dirty update you should first remove app from Apps settings then disable/enable Superuser in Phh settings

    Lir January 2022 version
    • January 2022 SPL
    • implemented Huawei IMS patches from Iceows
    • fixes for for some devices (mainly with Oreo vendor, A-only) access for media files from some apps like WhatsApp or Telegram (based on Iceows's patch)
    • backported changes from v400h device_phh_treble: All devices support unprocessed audio source, Fix audio for Umidigi X and Gome U9,
    • patch for gsicharger removed, should fix offline charger animation for some devices (need test)
    • volume dialog UI now follows rounded corners
    • opt-out cringe TCP info parsing error (AAAAA....) on legacy kernels (commit)
    • libprocessgroup: Do not remove uid cgroups directory (commit)
    • GarbageMonitor tile removed

    LiR December 2021 version
    • Initial build
    • Decembre 2021 SPL

    Pre-requisite :

    You must have TWRP installed, use this one (make sure to have the unofficial Android 11 one ! )
    You must be decrypted before installing it otherwise it won't boot

    Installation :

    Download this file : lir-v316-220325-arm64-iceows-huawei.7z

    Not Working :
    • VoLTE

    ROM OS Version: Android 11
    ROM Kernel: Linux 4.4.x (stock 4.4.26 or Siberia_4.4.302-1.1.zip)
    ROM Firmware Required: EMUI 8
    Based On: LiR (eremitein)


    Credits:

    And all the others who tested my patches and helped me improve this ROM


    Support Group
    1
    This ROM keeps asking for SIM PIN on my phone. Cellular works fine on stock ROM, but fails to connect when running anything derived from phhusson AOSP.

    Upstream report:

    Reports on XDA:

    Specs:
    Huawai P8lite PRX-LX1 Prague_L31_HN hw eu
    EMUI 8.0.0.400 C432
    kernel 4.4.23+
    SIM in SIM slot 1

    Radio log attached to this post.
    1
    HI I NEED HELP I FOLLEOW EVRYTHING AND THIS HApEN
    C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system C:\Users\Stan\Downloads\gg\lir-v314-211223-arm64-iceows-huawei.img
    target reported max download size of 471859200 bytes
    Invalid sparse file format at header magic
    sending sparse 'system' 1/6 (460798 KB)...
    OKAY [ 13.011s]
    writing 'system' 1/6...
    FAILED (remote: sparse flash write failure)
    1
    Could you indicate EMUI version ? And model of the phone please
    p8 lite 2017 pra-lx1 and emui 8.0 android 8.0.0 but no os anymore
    1
    :\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system lir-v314-211223-arm64-iceows-huawei.img
    OH WOW I CAN DO THAT TOO