[P8 Lite (2017) Development] AltairFR:
Official AOSP for Huawei (prague, mediapad, warsaw, rhone) - LeaOS-PHH

LeaOS is a project which based on AOSP with phhusson's Treble GSI patches. I have added my personnals patches for Huawei devices : Encryption, Signal Strengh, Speed Boot, Assisted GPS, NFC, Media App, Default Sound, MediaScanner fixes etc..) and some eremitein patch

Changelog :

LeaOS-PHH Jun 2022 version

Fix MiraCast / Wifi-Display crash

Pass SafetyNet (Basic + CTS) without Pixel 5 Spoof

Add dynamic root

Add option in TrebleApp to collect adb log and create txt file in sdcard

Add support of 8.0.0.416 with this patch (8-Huawei-PRA-FixPreav-A-v1.0-signed.zip)

LeaOS-PHH May 2022 version

Initial build from PHH AOSP A11-r48 (October)

Add support of data encryption

Add NFC Quick Setting (NFC by default are disabled)

Add Android SPL (Nov, Dec 2021, Jan, Feb, March 2022)

Add Default sound (ringtones, alarm and notification)

Add Huawei bootanimation (no sound)

Add support of multi-user

Pass SafetyNet (enable in TrebleApps setting)

Add several new functions in TrebleApps (dumlog, restartui, run on boot) by eremitein

Fix Signal strenght indicator (and icon)

Fix Media App permission

Fix MediaScanner crash

Fix Slow-Boot

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-PHH-20220616-iceows-pra.7z" and extract img file

boot to TWRP

Wipe internal storage, format data

flash this file 1-Huawei-DataPrep-DeCrypt-A-v1.0-signed.zip to disable storage encryption or this file 1-Huawei-DataPrep-Crypt-A-v1.0-signed.zip to enable it. This zip change fstab file, wipe data partition and recreate subfolder /data/user*, /data/system* and /data/vendor*)

Wipe system, cache, dalvik/art cache

reboot to bootloader

run: fastboot flash system <drag system.img here>

(optional) flash Siberia kernel : fastboot flash kernel <drag Siberia.img here>

reboot to TWRP

resize system

flash this file 2-Huawei-system-UnCrypt-v1.3-signed.zip to not-allow data encryption or this file 2-Huawei-system-Crypt-v1.3-signed.zip to allow it

(optional only PRA) flash AGPS patch : 7-AGPS-FIX-AltairVendor-v3.6-signed.zip

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

(optional) reboot to TWRP to install now Google Apps : Google Apps Lite ([RECOVERY]LiteGapps_arm64_11.0_v2.6_official.zip)

Enjoy !!!

Update (crypt or uncrypt)

Download file : "LeaOS-PHH-20220616-iceows-pra.7z" and extract img file

boot to TWRP

Wipe system, cache, dalvik/art cache

reboot to bootloader

run: fastboot flash system <drag system.img here>

(optional) flash Siberia kernel : fastboot flash kernel <drag Siberia.img here>

reboot to TWRP

resize system

flash this file 2-Huawei-system-UnCrypt-v1.3-signed.zip to not-allow data encryption or this file 2-Huawei-system-Crypt-v1.3-signed.zip to allow it

(optional) flash AGPS patch, Google Apps :

1 - Google Apps lite (LiteGapps_Core_arm64_11.0_v2.5_official.zip)

2 - Enable AGPS (2 - AGPS-FIX-AltairVendor-v3.3-signed.zip)

reboot to System

Enjoy !!!

Source Code:

https://github.com/Iceows

ROM OS Version: Android 11

ROM Kernel: Linux 4.4.x : stock 4.4.26 or Siberia_4.4.302-1.1.zip (this kernel not pass safetynet)

ROM Firmware Required: EMUI 8

Based On: PHH AOSP

Credits:

PHH

eremitein

rakinthegreat

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

Support Group