[ROM][Huawei][11] LeaOS - Lineage 18.1 for Huawei device (EMUI 9 version)

Search This thread

AltairFR

Senior Member
Apr 22, 2021
441
203
Huawei P8lite/P8 Lite
Huawei P8
Non-Official Lineage 18.1 for Huawei (anne) - LeaOS


yUIn6TF.png




LeaOS is a project which based on LineageOS 18.1 with Andy Yan's and phhusson's Treble GSI patches. I have added my personnals patches for Huawei devices : Signal Strengh, Assisted GPS, NFC, CAST/Miracast, Default Sound etc..) and some eremitein patch

Changelog :

LeaOS September 2022 version


  • September 2022 SPL
  • Synchronize with last Lineage Source
  • Add /splash2 and /modem_log support
  • Add kirin and huawei properties
  • Support permissive (non crypt data) or enforce kernel
  • Fix vndk detect bug

LeaOS August 2022 version
  • August 2022 SPL
  • Synchronize with last Lineage Source
  • Fix minor SE denied ioctl
  • Update Lite Google Apps to 2.6

LeaOS July 2022 version
  • July 2022 SPL
  • Synchronize with last Lineage Source

LeaOS Jun 2022 version
  • Jun 2022 SPL
  • Synchronize with last Lineage Source
  • Fix MediaScanner crash and no default sound (ringtone, alarms..)
  • Add support of EMUI 9.1.0.405 (preav partition)

Pre-requisite :

You must have TWRP installed if you want install patch. and a phone with unlock bootloader

Installation (crypt or uncrypt)

  • Download file : “LeaOS-20220912-iceows-ane.7z" and extract img file
  • Flash system image : fastboot flash system <drag system.img here>
  • Flash twrp image: fastboot flash recovery_ramdisk <drag twrp img here>
  • Boot into twrp: power + vol+ while NOT connected to pc
  • Resize system: Wipe > Advanced Wipe > System > Repair or Change File System > Resize File System > Swipe
  • Wipe cache, dalvik/art cache, internal storage, data
  • (optional) install AGPS patch : 4-Huawei-AGPS-AB-v1.1-signed.zip
  • (optional) install DRM patch for EMUI 9.1.0.405 : 8-Huawei-FixPreav-AB-v1.0-signed.zip
  • (optional) install now Google Apps Lite : [RECOVERY]LiteGapps_arm64_11.0_v2.6_official.zip
  • reboot to System and set up the phone with Lineage first start assistant. You can also add most user
  • Enjoy !!!

More informations to install here : https://forum.xda-developers.com/t/guide-emui9-p20-lite-basics.4341373/


Source Code:

ROM OS Version: Android 11
ROM Kernel: Linux Huawei 4.9.148 or Phenix 4.9.319
ROM Firmware Required: EMUI 9
Based On: Lineage 18.1

Credits:

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

Support Group
 
Last edited:

brugne92

Member
Jul 26, 2016
7
4
Is anyone experiencing phone call/receive bug? This is the only bug I've found till now. If I start a call it suddenly stops, and if I try to receive a call, I don't see any incoming call popping up.
 
Last edited:
  • Like
Reactions: AltairFR

aavalos

New member
Aug 14, 2022
2
2
The August build didn't work for me, it got stuck on a boot loop. I had to install the July build and that one did work. I really appreciate this effort to bring the latest versions of LineageOS to ANNE.
 
  • Like
Reactions: AltairFR

lootic

New member
Aug 15, 2022
2
0
Hi there! Cool guide! :)

Just before trying it I want to double check one thing, does the DRM-patch for EMUI mean I can install safely without first downgrading? Also for some reason I don't have 9.1.0.405 but rather 9.1.0.401 installed. If you would have a guess do you think the DRM-patch may work with that version too? How hard do you think I would brick my phone if it would not work?
 

AltairFR

Senior Member
Apr 22, 2021
441
203
Huawei P8lite/P8 Lite
Huawei P8
Hi.

I have french orange version of ane-lx1 (C109) so my max emui is 405. For 401 version you can install LeaOS without patch , install app drm info from playstore, check if the app show correct info of drm. If the app show nothing, reboot in twrp and install the patch 😀
 

lucsol

Member
Jun 28, 2018
12
5
28
Non-Official Lineage 18.1 for Huawei (anne) - LeaOS


yUIn6TF.png




LeaOS is a project which based on LineageOS 18.1 with Andy Yan's and phhusson's Treble GSI patches. I have added my personnals patches for Huawei devices : Signal Strengh, Assisted GPS, NFC, CAST/Miracast, Default Sound etc..) and some eremitein patch

Changelog :

LeaOS August 2022 version

  • August 2022 SPL
  • Synchronize with last Lineage Source
  • Fix minor SE denied ioctl
  • Update Lite Google Apps to 2.6

LeaOS July 2022 version
  • July 2022 SPL
  • Synchronize with last Lineage Source

LeaOS Jun 2022 version
  • Jun 2022 SPL
  • Synchronize with last Lineage Source
  • Fix MediaScanner crash and no default sound (ringtone, alarms..)
  • Add support of EMUI 9.1.0.405 (preav partition)

Pre-requisite :

You must have TWRP installed if you want install patch. and a phone with unlock bootloader

Installation (crypt or uncrypt)

  • Download file : “LeaOS-20220813-iceows-ane.7z" and extract img file
  • Flash system image : fastboot flash system <drag system.img here>
  • Flash twrp image: fastboot flash recovery_ramdisk <drag twrp img here>
  • Boot into twrp: power + vol+ while NOT connected to pc
  • Resize system: Wipe > Advanced Wipe > System > Repair or Change File System > Resize File System > Swipe
  • Wipe cache, dalvik/art cache, internal storage, data
  • (optional) install AGPS patch : 4-Huawei-AGPS-AB-v1.1-signed.zip
  • (optional) install DRM patch for EMUI 9.1.0.405 : 8-Huawei-FixPreav-AB-v1.0-signed.zip
  • (optional) install now Google Apps Lite : [RECOVERY]LiteGapps_arm64_11.0_v2.6_official.zip
  • reboot to System and set up the phone with Lineage first start assistant. You can also add most user
  • Enjoy !!!

More informations to install here : https://forum.xda-developers.com/t/guide-emui9-p20-lite-basics.4341373/


Source Code:

ROM OS Version: Android 11
ROM Kernel: Linux 4.19.x
ROM Firmware Required: EMUI 9
Based On: Lineage 18.1

Credits:
  • Frax3r
  • PHH
  • eremitein

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

Support Group
When was last update for this Rom??
Dose all pached and fixes applied to it??
How stable is it??
Dose this links /post and Rom gets updates and renew as new updates or patches comes out??
 

lootic

New member
Aug 15, 2022
2
0
Hi.

I have french orange version of ane-lx1 (C109) so my max emui is 405. For 401 version you can install LeaOS without patch , install app drm info from playstore, check if the app show correct info of drm. If the app show nothing, reboot in twrp and install the patch 😀
Okay, cool! :)

Regarding downgrading, is that still a thing that is needed for flashing or is it a thing of the past?
 

AltairFR

Senior Member
Apr 22, 2021
441
203
Huawei P8lite/P8 Lite
Huawei P8
Is anyone experiencing phone call/receive bug? This is the only bug I've found till now. If I start a call it suddenly stops, and if I try to receive a call, I don't see any incoming call popping up.
This is a very old problem on android 11 (all GSI and ROM) and Huawei. After 6 months of research, I finalized this weekend a patch for all hi6250 phones (and even all Huawei). It has been successfully tested on a PRA-LX1. I am looking for someone to test it on ANE-LX1. Would you be ok to take the test?
 

aavalos

New member
Aug 14, 2022
2
2
I have not the bootloop. What version of emui do you have? What patch did you install?
How do I check the EMUI version? I can't find it anywhere. Also, let's say I want to upgrade to the latest build to test it again: is it possible to do it without losing data? And then return to the previous build if it doesn't work, also without losing data.

Edit: also, is it possible to apply builds with the FRP enabled?

Edit:
I would also appreciate if no Google software was installed by default in the ROM. I'd rather have the stock LineageOS camera app than the proprietary Gcam Lite (or whatever it is called).
 
Last edited:
  • Like
Reactions: AltairFR

Barrel Titor

Member
Jul 21, 2015
30
10
Vienna
OnePlus 7 Pro
I'm sorry but it looks like i'm totally lost.
I managed to make almost everything work and i'm really happy this device is still so well supported by the community. But i cannot, for the life of me, bring magisk to work with this ROM.

I suppose this doesn't technically concern you, but i really hope you'll be able to help me nonetheless.

Cheers

Edit: Some details i've missed the first time:
I have TWRP (3.6.2_9-0) running
I already tried flashing a few magisk apk's turned .zip (namely: "Magisk-v24.3" and "v23-canary-phh") using TWRP
TWRP logs mostly "flashed successfully", but in the magisk manager app, magisk isn't being detected

I know about the recovery patch method but
1) i recall magisk natively supporting treble GSI's
2) i had magisk working before but on lineageOS 16/Android 9 (still based on EMUI 9 firmware though) and i think it ran without a modified recovery
3) i could very well be wrong here but: since i've flashed a TWRP recovery_ramdisk, wouldn't that mean i had to patch and then flash the TWRP recovery .img? I don't know why but this seems... Weird?
 
Last edited:
  • Like
Reactions: AltairFR

AltairFR

Senior Member
Apr 22, 2021
441
203
Huawei P8lite/P8 Lite
Huawei P8
How do I check the EMUI version? I can't find it anywhere. Also, let's say I want to upgrade to the latest build to test it again: is it possible to do it without losing data? And then return to the previous build if it doesn't work, also without losing data.

Edit: also, is it possible to apply builds with the FRP enabled?

Edit: I would also appreciate if no Google software was installed by default in the ROM. I'd rather have the stock LineageOS camera app than the proprietary Gcam Lite (or whatever it is called).
It is not gcam from Google in leaos , but Gcam mod. The stock LineageOS cam have some bugs with the flash on huawei
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Version 3.6.1_9.0 twrp is up, but I can't make a backup with it,
    Use recommended TWRP for Kirin 65x devices
    Link
    2
    Should I choose 3.4.0-0-emui9_eR by @S_mak" recovery?
    Bingo! :)
    Can I root with magisk?
    Sure... Use "Search this thread", type 'root' , 'magisk' etc.
    1
    Okay, so I really needed to use NFC, I gave up and reverted back to stock emui9 & re-locked the bootloader. I tried to install Magisk with no success. Apparently, I can use rooted magisk to install safetynetfix thus bypassing SN protection on LeaOS 18.1 - could you please point me to a guide how to do it on anne? I spent 40+ hours figuring this out now, everything worked, just the NFC holds me back.

    When I installed Magisk, I've seen it repacking the boot.img stuff, but after I returned to the app, it showed no magisk version installed. I'd wish to try again, but only if I know the correct steps to fix NFC/Google Pay beforehand.

    It also showed I do not have a ramdisk present, which means I'd have to flash either the recovery_ramdisk partition or the one with eRecovery on it. (Modifying the Magisk-patched version's booting methods at launch, and I'm not sure if this method would work in an enviroment where I want safetynet to pass at all times.)

    I don't have much experience rooting this way, maybe that's a problem.
    I was thinking about re-locking the bootloader & FRP lock, after I flash LeaOS again, but this would cause a low-level factory reset, and because of this I'm not sure it'll work.

    Do you have any suggestions about what should I do at this point?

    Thanks for the feedback in advance.

    [Currently running stock 9.1.0.200 - ANE-LX1 eu version with bootloader unlock code available, after 2 days of basically torturing this device. But I can re-start and do the entire process again where I got LeaOS 18.1 installed, It was an insane ride but I'll do it again if neccessary.]
    Follow and study this 2before getting into it.
    👇🏻

    From YouTube search 👇🏻👇🏻👇🏻

    Huawei p20lite android 10 havoc os custom rom saftynet pass

    (👆🏻also works for lineage👆🏻)

    For NFC patch there is one, i forgot where but you need to look around in YouTube and xda for it.
    1
    I see, it worked, managed to install the rom, works fine but NFC doesn't, Google won't let me add any payment options, any suggestions?
    Install "normall" LOS 18.1 GSI (LiR by "eremitein") and everything will be OK, imo :) .
  • 4
    Non-Official Lineage 18.1 for Huawei (anne) - LeaOS


    yUIn6TF.png




    LeaOS is a project which based on LineageOS 18.1 with Andy Yan's and phhusson's Treble GSI patches. I have added my personnals patches for Huawei devices : Signal Strengh, Assisted GPS, NFC, CAST/Miracast, Default Sound etc..) and some eremitein patch

    Changelog :

    LeaOS September 2022 version


    • September 2022 SPL
    • Synchronize with last Lineage Source
    • Add /splash2 and /modem_log support
    • Add kirin and huawei properties
    • Support permissive (non crypt data) or enforce kernel
    • Fix vndk detect bug

    LeaOS August 2022 version
    • August 2022 SPL
    • Synchronize with last Lineage Source
    • Fix minor SE denied ioctl
    • Update Lite Google Apps to 2.6

    LeaOS July 2022 version
    • July 2022 SPL
    • Synchronize with last Lineage Source

    LeaOS Jun 2022 version
    • Jun 2022 SPL
    • Synchronize with last Lineage Source
    • Fix MediaScanner crash and no default sound (ringtone, alarms..)
    • Add support of EMUI 9.1.0.405 (preav partition)

    Pre-requisite :

    You must have TWRP installed if you want install patch. and a phone with unlock bootloader

    Installation (crypt or uncrypt)

    • Download file : “LeaOS-20220912-iceows-ane.7z" and extract img file
    • Flash system image : fastboot flash system <drag system.img here>
    • Flash twrp image: fastboot flash recovery_ramdisk <drag twrp img here>
    • Boot into twrp: power + vol+ while NOT connected to pc
    • Resize system: Wipe > Advanced Wipe > System > Repair or Change File System > Resize File System > Swipe
    • Wipe cache, dalvik/art cache, internal storage, data
    • (optional) install AGPS patch : 4-Huawei-AGPS-AB-v1.1-signed.zip
    • (optional) install DRM patch for EMUI 9.1.0.405 : 8-Huawei-FixPreav-AB-v1.0-signed.zip
    • (optional) install now Google Apps Lite : [RECOVERY]LiteGapps_arm64_11.0_v2.6_official.zip
    • reboot to System and set up the phone with Lineage first start assistant. You can also add most user
    • Enjoy !!!

    More informations to install here : https://forum.xda-developers.com/t/guide-emui9-p20-lite-basics.4341373/


    Source Code:

    ROM OS Version: Android 11
    ROM Kernel: Linux Huawei 4.9.148 or Phenix 4.9.319
    ROM Firmware Required: EMUI 9
    Based On: Lineage 18.1

    Credits:

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

    Support Group
    2
    I am using the official version twrp 3.6.1 for anne. But I think older versions work too.

    2
    Should I choose 3.4.0-0-emui9_eR by @S_mak" recovery?
    Bingo! :)
    Can I root with magisk?
    Sure... Use "Search this thread", type 'root' , 'magisk' etc.
    2
    Version 3.6.1_9.0 twrp is up, but I can't make a backup with it,
    Use recommended TWRP for Kirin 65x devices
    Link
    1
    which twrp do you recommend to install?