[Huawei MediaPad M5 Lite Guides, News, & Discussion] Milor123:
Welcome guys ! Today want share this guide, particularly since this tablet model had a issues flashing GSI ROMS. In my case and other people's, the Audio don't work (In my BAH2-W19 8.0.0.322 Or 8.0.0.371(OCEC605). However thanks to @AltairFR the which developt a new patch and was possible create fix it.

I going to quote and modify the post of @AltairFR -> LeaOS18.1 by Iceows for this guide.

Pre-requisite :

You must have TWRP installed, use this one (make sure to have the unofficial Android 11 one ! ). To install follow this guide "How to unlock Huawei P8 ligt 2017 (en).pdf" or french version "How to unlock Huawei P8 ligt 2017 (fr).pdf"

Installation (crypt or uncrypt)

Download file : “LeaOS-PRA Vanilla lastest" in this case I've used LeaOS-18.1-20221115-iceows-pra. Download and extract img file (DOWNLOAD THE PRA FOR THIS TABLET BAH2)

run:

fastboot flash system <drag system.img here>

boot to TWRP

Wipe cache, dalvik/art cache, internal storage and data

resize system

flash this file (VERY IMPORTANT OR COULD GET A BOOTLOOP) 1-Huawei-DataPrep-DeCrypt-A-v1.0-signed.zip (For this tablet I've tested only DeCrypt version) to not-allow data encryption or this file 1-Huawei-DataPrep-Crypt-A-v1.0-signed.zip to allow it

(optional) flash patches :

0 - Magisk: Magisk Lastest Version For this case I've Downloaded Magisk-v25.2.apk (Rename as .zip to be flash, and keep as APK to install) FLASH (Optional STEP)

1 - MicroG (is a Google FOSS Alternative): MinMicroG NoGooLag Version or Google Apps lite : [RECOVERY]LiteGapps_arm64_11.0_v2.6_official.zip

2 - Enable AGPS : 7-AGPS-FIX-AltairVendor-v3.6-signed.zip (I've not tested it in my tablet BAH2, i dont use maps)

3 - Huawei-BAH2-FixAudio-v1.0-signed (FLASH ONLY IF YOU DONT HAVE AUDIO SOUND - Download in the Attach Files)

4 - Huawei-BAH2-FixPreav-A-v1.1-signed (Its for DRM and Netflix problems - Download in the Attach Files)

reboot to System and set up the phone with Lineage first start assistant. You can also add most user

Enjoy !!!

Update (crypt or uncrypt)

Download file : “LeaOS-PRA lastest" in this case I've used LeaOS-18.1-20221115-iceows-pra Download and extract img file

run:

fastboot flash system <drag system.img here>

boot to TWRP

Wipe cache, dalvik/art cache

resize system

(optional) flash patches :

0 - Reflash Magisk: Magisk Lastest Version For this case I've Downloaded Magisk-v25.2.apk (Rename as .zip to be flash, and keep as APK to install) FLASH (Optional STEP)

1 - Reflash MicroG (is a Google FOSS Alternative): MinMicroG NoGooLag Version or Google Apps lite : [RECOVERY]LiteGapps_arm64_11.0_v2.6_official.zip

2 - Enable AGPS : 7-AGPS-FIX-AltairVendor-v3.6-signed.zip (I've not tested it in my tablet BAH2, i dont use maps)

3 - Huawei-BAH2-FixAudio-v1.0-signed (FLASH ONLY IF YOU DONT HAVE AUDIO SOUND - Download in the Attach Files)

4 - Huawei-BAH2-FixPreav-A-v1.1-signed (Download in the Attach Files)

reboot to System

Enjoy !!!

Source Code:

https://github.com/Iceows

ROM OS Version: Android 11

ROM Kernel: Linux 4.4.x (stock 4.4.23+)

ROM Firmware Required: EMUI 8

Based On: LineageOS (AndyGCYan)

Credits:

@DarkJoker360

@hamido

@AndyCGYan

@PHH

@eremitein

@RakinTheGreat (GCam)

@TureX (Kernel)

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

​

[Fix] Font BLUR​

if you have problem like this.

You could solve easily

Go to System > Display > LiveDisplay > Color Calibration

Now you can set in 99% a color like Blue. See image:

In this moment the blur font should had been fixed

Special Thanks to the Iceows (@AltairFR) for dedicates to helping us and build these codes

If need help, ask in the Telegram Group

LeaOS official group

Release channel: @leaos_group