Android 13 for P20 lite (Tested GSIs)

Search This thread

Abdelhay.ali

Member
Oct 9, 2022
41
30
Huawei P20 Lite
Here are recent A13 GSIs that booted and worked on my P20 lite Hi6250

Requirements:
You can flash SHRP recovery that have all the requirements to make Android 13 boot normally (including permissive kernel, decrypt data, selinux fix, AIO fix and Mgisk) from here
------- or
- latest kernel from here
- Stock kernel 4.9148 from here
- SELinux-fix from here
- AIO patch for android 13 here (that include offline charging fix, SELinuxfix and other fixes)
- EMUI 9
-Arm64 AB GSI image (vndklite version is recommended)
- How to install: here


Name​
Maintainer​
Link​
Kernel and fixes​
Updated​
AOSP​
@phhusson TrebleDroid™ Builders​
Option 1: Stock kernel
Option 2: Latest kernel from here
13/11/2022
crDroid​
Nazim​
Download
Option 1: Latest kernel from here
Option 2: Stock kernel
27/12/2022
Pixel Experience +
Pixel Experience Plus​
DownloadOption 1: Stock kernel
Option 2: Latest kernel from here
4/1/2023
Evolution X​
DownloadOption 1: Stock kernel
Option 2: Latest kernel from here
5/1/2023
Superior OS​
ChonDoe​
DownloadOption 1: Stock kernel
Option 2: Latest kernel from here
17/11/2022
LeaOS-PHH​
Download
23/12/2022​
LineageOS TD-based​
DownloadOption 1: latest permissive kernel from here
Option 2: Latest kernel from here + SELinux fix or AIO
11/11/2022
Cherish OS​
ChonDoe​
Download
Option 1: Latest permissive kernel from here
Option 2: Latest kernel from here + SELinux fix or AIO
Option 3: Stock kernel+ SELinux fix or AIO
13/11/2022
Arrow​
Nazim​
DownloadOption 1: Stock kernel
Option 2: Latest kernel from here
8/1/2023
Spark​
Nazim​
DownloadOption 1: Stock kernel
Option 2: Latest kernel from here
10/1/2023
RiceDroid​
DownloadOption 1: Stock kernel
Option 2: Latest kernel from here
22/12/2022
Project Elixir​
DownloadOption 1: Stock kernel
Option 2: Latest kernel from here
12/1/2023

Some Fixes for A13
1- solve network problem
adb shell settings put global restricted_networking_mode 0

2- remove phh su from A13(solve magisk problems)
adb shell
su 0
/system/bin/phh-securize.sh

3- Enable offline charging
Flash this Zip file using TWRP/SHRP
Download From here
 
Last edited:

Abdelhay.ali

Member
Oct 9, 2022
41
30
Huawei P20 Lite
Selinux-fix-Yahia-V5.0.zip: Selinux fix for Pixel Experience A13 including missing selinux policies for offline charging (it may work with other GSIs, if not you can back to sock vendor policies by flash selinux-Stock-Yahia-V1.0.zip or from your vendor backup)

- Backup Vendor partition
- It also disable encryption
- Flash "Selinux-fix-Yahia-V5.0.zip" using TWRP


Selinux-fix-Yahia-V2.0.zip works with Pixel Experience A13
 

Attachments

  • Selinux-fix-Yahia-V4.0.zip
    216.8 KB · Views: 32
  • Selinux-Stock-Yahia-V1.0.zip
    216.5 KB · Views: 14
  • Selinux-fix-Yahia-V2.0.zip
    217.8 KB · Views: 7
  • Selinux-fix-Yahia-V5.0.zip
    216.9 KB · Views: 40
Last edited:
  • Like
Reactions: iH8ra!n and Frax3r

Frax3r

Senior Member
May 18, 2016
71
52
Huawei P20 Lite
I don't want to create a seperate thread for this so here goes.

I tried to merge all patches related to Android 13 in a single package. This includes @AltairFR 's NFC, DRM and offline charging fixes, @Abdelhay.ali 's selinux rules and to top it off some tweaks from here and there from me. I made sure it can be flashed from official twrp, can't promise same for modified twrps.

I also made an opt version which doesn't include selinux rules since required ones are already merged to trebledroid. I recommend flashing that one, if you can't boot afterwards flash @Abdelhay.ali 's selinux patch above.

What it does:
- Edits vendor build.prop for safetynet
- Edits system build.prop for performance and spoofing phone model
- Edits vendor fstab to remove encryption
- Edits vendor selinux rules to boot enforcing
- Adds DRM service and required fixes to both system and vendor
- Adds NFC config files to system and system/product
- Adds iceow's offline charging binary & images and edits init.rc accordingly
- Removes unneeded com.android.vndk.vxx folders from system_ext/apex to save some space
- Added ability to resize system before extracting stuff

(twrp might say zip is flashed even tho it didn't because of resize functionality, that happened to me only when I dirty flashed it so I recommend flashing this before booting your system)

I'm a dumb dumb who can't figure out how to sign a zip so here's CRC64 to check for integrity manually :
1.3.1 : AC55639A998DA2B4
1.3.1-opt : 436BCBE5DECF34E0

Also I don't want to create another zip just to go back to stock, all you need to do is get stock vendor image from here and flash it over vendor via twrp. adb push VENDOR.img /sdcard will send it to internal storage, from there you can install image.
 

Attachments

  • AIO-Fix-A13-v1.3.1.zip
    9.6 MB · Views: 109
  • AIO-Fix-A13-v1.3.1-opt.zip
    9.6 MB · Views: 42
Last edited:

Abdelhay.ali

Member
Oct 9, 2022
41
30
Huawei P20 Lite
Update
There are two versions of stock kernel 4.9.148 :

1- Sock kernel 4.9.148 for emui 9.1.0.401 from here extract by Frax3r

2- Sock kernel 4.9.148 for Emui < 9.1.0.401 attached


Thanks @AltairFR for this information


--------------
Stock Kernel 4.9.148 for Emui < 9.1.0.401 backup from TWRP

Because I didn't find any worked .img for 4.9.148 stock kernel. I have attached my Stock Kernel 4.9.148 backup from TWRP. You can use it via Restore option in TWRP after decompress it.
 

Attachments

  • Stock-kernel-4.9.148-TWRP.rar
    12.3 MB · Views: 24
  • Stock_KERNEL_4.9.148.img
    24 MB · Views: 23
Last edited:

Frax3r

Senior Member
May 18, 2016
71
52
Huawei P20 Lite
Yes. Ask huawei enginners why they put 12 mb of empty space.

Screenshot 2022-11-12 230037.png
 

Abdelhay.ali

Member
Oct 9, 2022
41
30
Huawei P20 Lite
Maybe I don't understand it (I'm just a hobbyist), but when the extracted kernel.img is 24Mb and the your TWRP backup kernel.img is also 24Mb, where is the difference?
TWRP take a backup of the whole kernel partition including space.( Like backup system and backup system image).

This is not our problem 😊. There is an error in extracting kernel from UPDATE.APP using Huawei Update Extractor at least with me. I have mentioned size of the extracted kernel to indicated that.
 
  • Like
Reactions: AltairFR

AltairFR

Senior Member
Apr 22, 2021
540
263
Huawei P8lite/P8 Lite
Honor 9
TWRP take a backup of the whole kernel partition including space.( Like backup system and backup system image).

This is not our problem 😊. There is an error in extracting kernel from UPDATE.APP using Huawei Update Extractor at least with me. I have mentioned size of the extracted kernel to indicated that.
Just ignore checksum in option of huawei extractor or use linux extract script :)
 

Frax3r

Senior Member
May 18, 2016
71
52
Huawei P20 Lite
I have used both methods. but after flash the kernel, it does not boot normally . I attached the error

anyway, I can return to stock kernel using my backup
Check your usb cable, I had the same issue. Turns out cable was faulty. Even my proper cable corrupted few images while flashing, switched usb ports and it flashed uncorrupted. Try different usb ports, if it's same switch cable.
 

art0001

New member
Nov 13, 2022
4
2
Hi,
I'm trying to install pixel experience on my phone with this guide and I'm using the first recommended twrp. When I want to flash the AIO fix zip file, both adb sideload and install from twrp show the error

'Failed to mount /system_root (invalid arguement)'​

I tried many methods from the google search and nothing works. I tried mount /system rw manually, both twrp mount and terminal not working and resize file system from twrp wipe also failed.
How can I solve this? Thanks for your help.
 
  • Like
Reactions: AltairFR

AltairFR

Senior Member
Apr 22, 2021
540
263
Huawei P8lite/P8 Lite
Honor 9
Hi,
I'm trying to install pixel experience on my phone with this guide and I'm using the first recommended twrp. When I want to flash the AIO fix zip file, both adb sideload and install from twrp show the error

'Failed to mount /system_root (invalid arguement)'​

I tried many methods from the google search and nothing works. I tried mount /system rw manually, both twrp mount and terminal not working and resize file system from twrp wipe also failed.
How can I solve this? Thanks for your help.
Use vndk lite version of PE
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Here are recent A13 GSIs that booted and worked on my P20 lite Hi6250

    Requirements:
    You can flash SHRP recovery that have all the requirements to make Android 13 boot normally (including permissive kernel, decrypt data, selinux fix, AIO fix and Mgisk) from here
    ------- or
    - latest kernel from here
    - Stock kernel 4.9148 from here
    - SELinux-fix from here
    - AIO patch for android 13 here (that include offline charging fix, SELinuxfix and other fixes)
    - EMUI 9
    -Arm64 AB GSI image (vndklite version is recommended)
    - How to install: here


    Name​
    Maintainer​
    Link​
    Kernel and fixes​
    Updated​
    AOSP​
    @phhusson TrebleDroid™ Builders​
    Option 1: Stock kernel
    Option 2: Latest kernel from here
    13/11/2022
    crDroid​
    Nazim​
    Download
    Option 1: Latest kernel from here
    Option 2: Stock kernel
    27/12/2022
    Pixel Experience +
    Pixel Experience Plus​
    DownloadOption 1: Stock kernel
    Option 2: Latest kernel from here
    4/1/2023
    Evolution X​
    DownloadOption 1: Stock kernel
    Option 2: Latest kernel from here
    5/1/2023
    Superior OS​
    ChonDoe​
    DownloadOption 1: Stock kernel
    Option 2: Latest kernel from here
    17/11/2022
    LeaOS-PHH​
    Download
    23/12/2022​
    LineageOS TD-based​
    DownloadOption 1: latest permissive kernel from here
    Option 2: Latest kernel from here + SELinux fix or AIO
    11/11/2022
    Cherish OS​
    ChonDoe​
    Download
    Option 1: Latest permissive kernel from here
    Option 2: Latest kernel from here + SELinux fix or AIO
    Option 3: Stock kernel+ SELinux fix or AIO
    13/11/2022
    Arrow​
    Nazim​
    DownloadOption 1: Stock kernel
    Option 2: Latest kernel from here
    8/1/2023
    Spark​
    Nazim​
    DownloadOption 1: Stock kernel
    Option 2: Latest kernel from here
    10/1/2023
    RiceDroid​
    DownloadOption 1: Stock kernel
    Option 2: Latest kernel from here
    22/12/2022
    Project Elixir​
    DownloadOption 1: Stock kernel
    Option 2: Latest kernel from here
    12/1/2023

    Some Fixes for A13
    1- solve network problem
    adb shell settings put global restricted_networking_mode 0

    2- remove phh su from A13(solve magisk problems)
    adb shell
    su 0
    /system/bin/phh-securize.sh

    3- Enable offline charging
    Flash this Zip file using TWRP/SHRP
    Download From here
    2
    Selinux-fix-Yahia-V5.0.zip: Selinux fix for Pixel Experience A13 including missing selinux policies for offline charging (it may work with other GSIs, if not you can back to sock vendor policies by flash selinux-Stock-Yahia-V1.0.zip or from your vendor backup)

    - Backup Vendor partition
    - It also disable encryption
    - Flash "Selinux-fix-Yahia-V5.0.zip" using TWRP


    Selinux-fix-Yahia-V2.0.zip works with Pixel Experience A13
    2
    Kernel 4.9.319 for A13. I have rebuild it to fix keymaster2 error

    Contributors
    @TureX
    2
    Thank you for your reply. I did use vndklite. :)
    It happened to me once on RNE or EVA, I don't remember exactly, but it helped me clear the data in the Market and G. Services applications and uninstall the updates (three dots in the upper right corner).
    vndklite has nothing to do with this problem, it just allows mount system to r/w on our device .
    2
    I don't want to create a seperate thread for this so here goes.

    I tried to merge all patches related to Android 13 in a single package. This includes @AltairFR 's NFC, DRM and offline charging fixes, @Abdelhay.ali 's selinux rules and to top it off some tweaks from here and there from me. I made sure it can be flashed from official twrp, can't promise same for modified twrps.

    I also made an opt version which doesn't include selinux rules since required ones are already merged to trebledroid. I recommend flashing that one, if you can't boot afterwards flash @Abdelhay.ali 's selinux patch above.

    What it does:
    - Edits vendor build.prop for safetynet
    - Edits system build.prop for performance and spoofing phone model
    - Edits vendor fstab to remove encryption
    - Edits vendor selinux rules to boot enforcing
    - Adds DRM service and required fixes to both system and vendor
    - Adds NFC config files to system and system/product
    - Adds iceow's offline charging binary & images and edits init.rc accordingly
    - Removes unneeded com.android.vndk.vxx folders from system_ext/apex to save some space
    - Added ability to resize system before extracting stuff

    (twrp might say zip is flashed even tho it didn't because of resize functionality, that happened to me only when I dirty flashed it so I recommend flashing this before booting your system)

    I'm a dumb dumb who can't figure out how to sign a zip so here's CRC64 to check for integrity manually :
    1.3.1 : AC55639A998DA2B4
    1.3.1-opt : 436BCBE5DECF34E0

    Also I don't want to create another zip just to go back to stock, all you need to do is get stock vendor image from here and flash it over vendor via twrp. adb push VENDOR.img /sdcard will send it to internal storage, from there you can install image.