[ROM][Huawei][13] LeaOS - Lineage 20.0 for Huawei device (EMUI 9.1 version)

Search This thread

AltairFR

Senior Member
Apr 22, 2021
673
331
Huawei P8lite/P8 Lite
Honor 9
Non-Official Lineage 20.0 for EMUI 9 Huawei (ANE, FIG, POT, VTR, STF)

yUIn6TF.png


LeaOS is a project which based on LineageOS 20.1 with Andy Yan's and TrebleDroid GSI patches. I have added my personnals patches for Huawei devices : Encryption, Signal Strengh, Speed Boot, Assisted GPS, NFC, CAST/Miracast, Media App fixes, Camera HDR, SafetyNet etc..)


Changelog :


LeaOS Maarch 2023 version

  • Move to Android r35 (SPL Maarch)
  • Add offline charging
  • Add spoof model to pass safetynet
LeaOS February 2023 version
  • First release

Pre-requisite :

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

Installation (crypt or uncrypt)

  • Download the version that corresponds to your Huawei phone model here and extract img file. You can choose with ou without GoogleApps
  • 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
  • Wipe data
  • (option) Install DRM patch for EMUI 9.1 to support DRM : 8-Huawei-FixPreav-AB-v1.3-signed.zip
  • (option) Install single modem patch for multi-sim device : 11-Huawei-MonoSim-AB-v1.1-signed.zip
  • reboot to System and set up the phone with Lineage first start assistant.
  • Enjoy !!!

Source Code:


ROM OS Version: Android 13
ROM Kernel: Linux Huawei 4.9.148 or Phenix 4.9.319
ROM Firmware Required: EMUI 9.1
Based On: Lineage 20.0 and TrebleDroid

Credits:

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

Support Group
Channel update
 
Last edited:
  • Like
Reactions: xqqy and Skole
Testting on FIG-XXX, will post results
How did you manage to install it? I began with EMUI 9.1 .115, unlocked the bootloader flashed the system, flashed twrp, resized system partition, wiped cache, dalvik/art cache, internal storage, installed stock recovery but I can't wipe data. It says reset failed. As far as I remember not wiping data from stock recovery wont work, phone is just stuck in a TWRP loop

EDIT: Well it just booted right in without formatting data. Guess it's fine
 
Last edited:
  • Like
Reactions: AltairFR

AltairFR

Senior Member
Apr 22, 2021
673
331
Huawei P8lite/P8 Lite
Honor 9
How did you manage to install it? I began with EMUI 9.1 .115, unlocked the bootloader flashed the system, flashed twrp, resized system partition, wiped cache, dalvik/art cache, internal storage, installed stock recovery but I can't wipe data. It says reset failed. As far as I remember not wiping data from stock recovery wont work, phone is just stuck in a TWRP loop

EDIT: Well it just booted right in without formatting data. Guess it's fine
Not need reset data from stock recovery
 
Not need reset data from stock recovery
Well the storage isn't accessible through the file manager, 0 space for images, can't download from browser, and if data is wiped from twrp the device loops into twrp

EDIT: Wiping data from twrp and reflashing the stock recovery took me out of the loop, everything seems to be working now. I'll report bugs if I find any
 
Last edited:

acidhell

Member
Mar 14, 2011
16
2
Huawei P9 Lite
Well the storage isn't accessible through the file manager, 0 space for images, can't download from browser, and if data is wiped from twrp the device loops into twrp

EDIT: Wiping data from twrp and reflashing the stock recovery took me out of the loop, everything seems to be working now. I'll report bugs if I find any
Can you upload stock recovery. It just boots in twrp but it is frozen
 

Skole

Member
Feb 27, 2023
5
2
Does anyone know how can I get root access with this custom ROM? I need recovery.img file but I don't know how to get it. Appreciate all the help.
 

Skole

Member
Feb 27, 2023
5
2
When I was on EMUI 9.1 I extracted recovery image from UPDATE.APP so i could root with magisk. I figured I'd do the same now that I am on this custom ROM but yeah, got stuck.
 

acidhell

Member
Mar 14, 2011
16
2
Huawei P9 Lite
I have many Bluetooth disconnections. In order to make a connection I have to stop Aufio FX, then scan bluetooth device and untick HD audio. After a restart I have to do these steps all over again.
 

JeyJer

New member
Apr 15, 2023
2
1
Everything works fine, I don't have any issue with my P Smart 2018 (FIG-LX1).

However, I lost a huge amount of time to root my phone. And I don't succeed. Does anyone have tutorial/information to help ? 🙏
 
  • Like
Reactions: AltairFR

JeyJer

New member
Apr 15, 2023
2
1
Does anyone know how can I get root access with this custom ROM? I need recovery.img file but I don't know how to get it. Appreciate all the help.
As Skole previously, and according to the official Magisk procedure, I should have the "recovery.img" file to patch with Magisk. Unfortunately, this file is nowhere ?

-----------------------
EDIT: after discussing with @Skole yesterday (thank you again!), I finally got the point. If you want to root your FIG-LX1, you should download the official Huawei's stock ROM and then extract the RECOVERY_RAMDIS.img from it (you can use tools like Huawei Update Extractor to do so).
Then, use Magisk to patch the RECOVERY_RAMDIS.img file. At last, you should flash it in fastboot mode with the command
Bash:
fastboot flash recovery_ramdisk /path/to/magisk_patched.img
Note that the command below doesn't work
Bash:
fastboot flash recovery /path/to/magisk_patched.img
Next, when your phone is off, press Power + Vol+ buttons ; realease them when you see the splash screen Huawei.

You can follow this popular tutorial to root your phone, but keep in mind the advices above ;)

If something went wrong (like me yesterday 😱), look at the "dload" method to unbrick your phone thanks to EMUI !

Merci beaucoup AltairFR for LeaOS ! You and Skole give my huawei a new life !
 
Last edited:

kuylar

New member
Apr 17, 2023
1
1
Hello, I have been trying to install this with no luck. I have an FIG-LX1 (bootloader & FRP unlocked) with TWRP already installed.

I'm stuck on the second step, where I need to flash the .img file I downloaded. This is the output I get from fastboot flash system LeaOS-20.0-20230331-iceows-google-fig.img: (the same also happens with the image that doesn't have gapps)

Code:
Sending sparse 'system' 1/7 (460796 KB)            OKAY [ 13.743s]
Writing 'system'                                   FAILED (remote: 'sparse flash write failure')
fastboot: error: Command failed

Can someone point me in a direction to go? I've been googling for hours with no avail.

(the phone currently cannot boot into any OS. only TWRP I got from this post)
 
  • Like
Reactions: AltairFR

AltairFR

Senior Member
Apr 22, 2021
673
331
Huawei P8lite/P8 Lite
Honor 9
Hello, I have been trying to install this with no luck. I have an FIG-LX1 (bootloader & FRP unlocked) with TWRP already installed.

I'm stuck on the second step, where I need to flash the .img file I downloaded. This is the output I get from fastboot flash system LeaOS-20.0-20230331-iceows-google-fig.img: (the same also happens with the image that doesn't have gapps)

Code:
Sending sparse 'system' 1/7 (460796 KB)            OKAY [ 13.743s]
Writing 'system'                                   FAILED (remote: 'sparse flash write failure')
fastboot: error: Command failed

Can someone point me in a direction to go? I've been googling for hours with no avail.

(the phone currently cannot boot into any OS. only TWRP I got from this post)
Your system partition is two small, try to install leao-phh without gapps to see if boot
 
  • Like
Reactions: kuylar

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    As Skole previously, and according to the official Magisk procedure, I should have the "recovery.img" file to patch with Magisk. Unfortunately, this file is nowhere ?

    -----------------------
    EDIT: after discussing with @Skole yesterday (thank you again!), I finally got the point. If you want to root your FIG-LX1, you should download the official Huawei's stock ROM and then extract the RECOVERY_RAMDIS.img from it (you can use tools like Huawei Update Extractor to do so).
    Then, use Magisk to patch the RECOVERY_RAMDIS.img file. At last, you should flash it in fastboot mode with the command
    Bash:
    fastboot flash recovery_ramdisk /path/to/magisk_patched.img
    Note that the command below doesn't work
    Bash:
    fastboot flash recovery /path/to/magisk_patched.img
    Next, when your phone is off, press Power + Vol+ buttons ; realease them when you see the splash screen Huawei.

    You can follow this popular tutorial to root your phone, but keep in mind the advices above ;)

    If something went wrong (like me yesterday 😱), look at the "dload" method to unbrick your phone thanks to EMUI !

    Merci beaucoup AltairFR for LeaOS ! You and Skole give my huawei a new life !
    Could you or anyone help me?

    I feel like I followed all the steps but still don't get either the recovery_ramdisk nor the recovery to be altered.
    I extraced the RECOVERY_RAMDIS.img from the original stock rom and used the Magisk app to create the magisk_patched.im and with an elevated console on Windows I get these results.
    Tried also to get TWRP. I never had so many issues to flash devices, HUAWEI seems far mor compicated than Samsung/Motorola/HTC etc.

    1683313769368.png

    Always 'Command not allowed'.

    My bootloader looks as this:
    1683313953184.jpeg


    Anyone has an idea, what I am doing wrong?
    1
    Could you or anyone help me?

    I feel like I followed all the steps but still don't get either the recovery_ramdisk nor the recovery to be altered.
    I extraced the RECOVERY_RAMDIS.img from the original stock rom and used the Magisk app to create the magisk_patched.im and with an elevated console on Windows I get these results.
    Tried also to get TWRP. I never had so many issues to flash devices, HUAWEI seems far mor compicated than Samsung/Motorola/HTC etc.

    View attachment 5904611
    Always 'Command not allowed'.

    My bootloader looks as this:
    View attachment 5904617

    Anyone has an idea, what I am doing wrong?
    Yes just unlock phone 😀
    In developer options
    1
    Yes just unlock phone 😀
    In developer options

    Ok good news. I managed to unlock the bootloader.

    Then I tried to flash the OS but had the problem with the partition being too small.
    So I flashed the other smaller version of the OS suggested.
    I also flashed the TWRP as in the picture of my last post.
    But every time I enter TWRP the phone is vibrating permanently for a few seconds and switching to fastboot mode. So I can't resize the partition, as all the guides I find tell me that TWRP is needed.

    What can I do now?
    What are the exact steps to get TWRP correctly to my device? Or how can I fix the vibrating/switching-to-fastboot issue?

    @AltairFR à propos, merci beaucoup pour ton travail!
    1
    Ok good news. I managed to unlock the bootloader.

    Then I tried to flash the OS but had the problem with the partition being too small.
    So I flashed the other smaller version of the OS suggested.
    I also flashed the TWRP as in the picture of my last post.
    But every time I enter TWRP the phone is vibrating permanently for a few seconds and switching to fastboot mode. So I can't resize the partition, as all the guides I find tell me that TWRP is needed.

    What can I do now?
    What are the exact steps to get TWRP correctly to my device? Or how can I fix the vibrating/switching-to-fastboot issue?

    @AltairFR à propos, merci beaucoup pour ton travail!
    Send me a private msg please
  • 2
    Non-Official Lineage 20.0 for EMUI 9 Huawei (ANE, FIG, POT, VTR, STF)

    yUIn6TF.png


    LeaOS is a project which based on LineageOS 20.1 with Andy Yan's and TrebleDroid GSI patches. I have added my personnals patches for Huawei devices : Encryption, Signal Strengh, Speed Boot, Assisted GPS, NFC, CAST/Miracast, Media App fixes, Camera HDR, SafetyNet etc..)


    Changelog :


    LeaOS Maarch 2023 version

    • Move to Android r35 (SPL Maarch)
    • Add offline charging
    • Add spoof model to pass safetynet
    LeaOS February 2023 version
    • First release

    Pre-requisite :

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

    Installation (crypt or uncrypt)

    • Download the version that corresponds to your Huawei phone model here and extract img file. You can choose with ou without GoogleApps
    • 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
    • Wipe data
    • (option) Install DRM patch for EMUI 9.1 to support DRM : 8-Huawei-FixPreav-AB-v1.3-signed.zip
    • (option) Install single modem patch for multi-sim device : 11-Huawei-MonoSim-AB-v1.1-signed.zip
    • reboot to System and set up the phone with Lineage first start assistant.
    • Enjoy !!!

    Source Code:


    ROM OS Version: Android 13
    ROM Kernel: Linux Huawei 4.9.148 or Phenix 4.9.319
    ROM Firmware Required: EMUI 9.1
    Based On: Lineage 20.0 and TrebleDroid

    Credits:

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

    Support Group
    Channel update
    1
    Testting on FIG-XXX, will post results
    How did you manage to install it? I began with EMUI 9.1 .115, unlocked the bootloader flashed the system, flashed twrp, resized system partition, wiped cache, dalvik/art cache, internal storage, installed stock recovery but I can't wipe data. It says reset failed. As far as I remember not wiping data from stock recovery wont work, phone is just stuck in a TWRP loop

    EDIT: Well it just booted right in without formatting data. Guess it's fine
    1
    Everything works fine, I don't have any issue with my P Smart 2018 (FIG-LX1).

    However, I lost a huge amount of time to root my phone. And I don't succeed. Does anyone have tutorial/information to help ? 🙏
    1
    Hello, I have been trying to install this with no luck. I have an FIG-LX1 (bootloader & FRP unlocked) with TWRP already installed.

    I'm stuck on the second step, where I need to flash the .img file I downloaded. This is the output I get from fastboot flash system LeaOS-20.0-20230331-iceows-google-fig.img: (the same also happens with the image that doesn't have gapps)

    Code:
    Sending sparse 'system' 1/7 (460796 KB)            OKAY [ 13.743s]
    Writing 'system'                                   FAILED (remote: 'sparse flash write failure')
    fastboot: error: Command failed

    Can someone point me in a direction to go? I've been googling for hours with no avail.

    (the phone currently cannot boot into any OS. only TWRP I got from this post)
    1
    Hello, I have been trying to install this with no luck. I have an FIG-LX1 (bootloader & FRP unlocked) with TWRP already installed.

    I'm stuck on the second step, where I need to flash the .img file I downloaded. This is the output I get from fastboot flash system LeaOS-20.0-20230331-iceows-google-fig.img: (the same also happens with the image that doesn't have gapps)

    Code:
    Sending sparse 'system' 1/7 (460796 KB)            OKAY [ 13.743s]
    Writing 'system'                                   FAILED (remote: 'sparse flash write failure')
    fastboot: error: Command failed

    Can someone point me in a direction to go? I've been googling for hours with no avail.

    (the phone currently cannot boot into any OS. only TWRP I got from this post)
    Your system partition is two small, try to install leao-phh without gapps to see if boot