guide flash phh gsi [10.0] without bug (updated in 24.06.2020 )

Search This thread

ada12

Senior Member
Jul 2, 2017
455
369
Redmi Note 9 Pro
images


Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */

"The goal of Phh-Treble for Android 10.0 is Bring latest AOSP to the maximum number of devices running Google-certified Treble, with full hardware support

Instructions for flashing:

0 ) UNLOCK BOOTLOADER
go to fastboot and enter :

Code:
[SIZE="4"]fastboot oem unlock[/SIZE]

1) flash clean firmware oreo 9.6.11 ( ex: in edl mode )

Android 8.1.0 [V9.6.11.0.ODLMIFF]:
9.6.11 FASTBOOT HERE

Oreo .why no pie and q ? Because in pie camera no work , vendor Q is no stable as hell ...
you can try from pie firmware but you not have camera !


2)erase from stock recovery data ! and press for enter to fastboot

3) Go to twrp from fastboot ( img here ) !
Code:
[SIZE="4"]command : fastboot boot twrp.img[/SIZE]

From twrp :

4) flash twrp installer ! ( link )

5) flash system.img gsi ARM64 AB VANILLA in system image partition and resize in advanced erase twrp select system and apply resize system

6)flash encryption disabler from @33bca daisy

7) flash custom kernel recommanded , And verify before flash your kernel its 3.18 I have developped kernel Q caf see here ...

8) reboot in twrp !

9) update to latest opengl and vulkan from here

9.B ) in aosp phh only ( no need for custom)you need flash bad notification sound routing fix (silent gsi zip )

10) : you can flash gapps, I recommend minimal pack, for fix certified play store error in phh setting press to "securize "
---OPTIONAL---
11) : you can enable 4k recording and 1080p front camera , flash this zip " enable4kvideo" from @eremitein

12) : you can enable enable in wifi 2.4ghz 40mhz for up speed wifi to 150mb/s , you need go in /vendor/etc/wifi/WCNSS_qcom_cfg.ini Then add this line in the bottom:

gChannelBondingMode24GHz=1


13) : you can add improved overlay created by @eremitein from MIUI overlay sakura - better support for notch, power stats, auto brightness
14 ) tuning graphic for performance ! flash zip UIfix

15) need gcam ? flash enable cam2api zip !

16 ) flash offline charging zip for unlock offline charging in selinux enforced ...

Downloads:

Official quack Builds


Credits
@phhusson
@emeritein
all other contributor no mentioned

 

Attachments

  • ForcedEncryptionDisablerDaisy.zip
    826.7 KB · Views: 510
  • certGSIfixAB__zero.zip
    820.3 KB · Views: 308
  • daisy4Kvideo__zero.zip
    160 KB · Views: 244
  • certGSIphh__zero.zip
    820.1 KB · Views: 305
  • UIfix2_daisy__zero.zip
    834.1 KB · Views: 293
  • cam2api_daisy__zero.zip
    820.1 KB · Views: 355
  • silentGSI_daisy__zero.zip
    820 KB · Views: 233
  • offline_charging.zip
    165.8 KB · Views: 129
Last edited:

eremitein

Senior Member
May 16, 2017
1,178
1,520
Xiaomi Mi A2 Lite
@ada12 thanks for guide

btw fpc_gesture fix don't need for all newest gsi, bcs it fixed on system side

and gcam fix need only for pie vendor

havoc 2.7 also works in enforced mode, tested by me
 
Sep 22, 2018
40
20
I installed AOSP Treble using this method but Camera doesn't want to work. And some system animations are laggy, is this normal?
 

eremitein

Senior Member
May 16, 2017
1,178
1,520
Xiaomi Mi A2 Lite
I installed AOSP Treble using this method but Camera doesn't want to work. And some system animations are laggy, is this normal?

camera should works, for me it works with oreo vendor. may be you need install persist fix, see attachment

for remove ui lags (if you using oreo vendor) you can install custom kernel Butterfly or DragonHeart
 

Attachments

  • persist_daisy__zero.zip
    819.5 KB · Views: 118

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    images


    Code:
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */

    "The goal of Phh-Treble for Android 10.0 is Bring latest AOSP to the maximum number of devices running Google-certified Treble, with full hardware support

    Instructions for flashing:

    0 ) UNLOCK BOOTLOADER
    go to fastboot and enter :

    Code:
    [SIZE="4"]fastboot oem unlock[/SIZE]

    1) flash clean firmware oreo 9.6.11 ( ex: in edl mode )

    Android 8.1.0 [V9.6.11.0.ODLMIFF]:
    9.6.11 FASTBOOT HERE

    Oreo .why no pie and q ? Because in pie camera no work , vendor Q is no stable as hell ...
    you can try from pie firmware but you not have camera !


    2)erase from stock recovery data ! and press for enter to fastboot

    3) Go to twrp from fastboot ( img here ) !
    Code:
    [SIZE="4"]command : fastboot boot twrp.img[/SIZE]

    From twrp :

    4) flash twrp installer ! ( link )

    5) flash system.img gsi ARM64 AB VANILLA in system image partition and resize in advanced erase twrp select system and apply resize system

    6)flash encryption disabler from @33bca daisy

    7) flash custom kernel recommanded , And verify before flash your kernel its 3.18 I have developped kernel Q caf see here ...

    8) reboot in twrp !

    9) update to latest opengl and vulkan from here

    9.B ) in aosp phh only ( no need for custom)you need flash bad notification sound routing fix (silent gsi zip )

    10) : you can flash gapps, I recommend minimal pack, for fix certified play store error in phh setting press to "securize "
    ---OPTIONAL---
    11) : you can enable 4k recording and 1080p front camera , flash this zip " enable4kvideo" from @eremitein

    12) : you can enable enable in wifi 2.4ghz 40mhz for up speed wifi to 150mb/s , you need go in /vendor/etc/wifi/WCNSS_qcom_cfg.ini Then add this line in the bottom:

    gChannelBondingMode24GHz=1


    13) : you can add improved overlay created by @eremitein from MIUI overlay sakura - better support for notch, power stats, auto brightness
    14 ) tuning graphic for performance ! flash zip UIfix

    15) need gcam ? flash enable cam2api zip !

    16 ) flash offline charging zip for unlock offline charging in selinux enforced ...

    Downloads:

    Official quack Builds


    Credits
    @phhusson
    @emeritein
    all other contributor no mentioned

    3
    after long time guide updated today for flash android 10 aosp from @phhusson without bug
    you need flash minimum aosp v204 in version aosp phh gsi!

    read carefully step is little different ( need oreo firmware only) and flash fix is not same !

    HAPPY FLASHING
    2
    Update guide : Enable 4k recording in pie vendor

    UPDATE GUIDE 07/08/2019 : add fix from @33bca for custom rom in gsi for enable 4k recording in pie vendor

    ENJOY!:D
    2
    guide updated

    1° in guide set recommandation to flash custom kernel oreo its mean stock kernel work too
    2° Updated newer adreno link (v385+vukan 1.0.66 ) thanks to thread https://xdaforums.com/mi-max-2/development/driver-adreno-opengl-drivers-v385-t3968334
    3° updated overlay custom to v13
    4° added permissiver v4 for people want use offline charging and boot some gsi custom

    I invite you to look on this : aosp mod project including fix for mi a2 lite for simplify process flash:cool::victory: https://github.com/C-A-O-S/treble_manifest_caos/wiki/CAOS-Project
    1
    Thanks for information about fpc_gesture , guide already fixed now:)
    @ada12 thanks for guide

    btw fpc_gesture fix don't need for all newest gsi, bcs it fixed on system side

    and gcam fix need only for pie vendor

    havoc 2.7 also works in enforced mode, tested by me