How To Guide The best configs for GSI roms

Search This thread

TheRomFan

Member
Dec 25, 2021
47
31
I've created an overlay for this device, which fixes the status bar not covering the entirety of the cutout and the brightness of the AOD being low (you still need to enable the alternate brightness scale on settings).

I've opened a PR on the phh's overlays repo, but it still hasn't been merged.
Meanwhile, you can use this overlay by flashing the attached Magisk module, or building it yourself from the PR.

In case someone is interested (even if it's not for this device), I'll leave here the build instructions (these are not required, you can just use the attached zip file).

Keep in mind I'm using Linux, so build instructions might be a bit different for Windows/Mac.

Start by cloning my repository in the mi11tpro branch:

Bash:
git clone https://github.com/diogotcorreia/vendor_hardware_overlay.git -b mi11tpro

Then build the overlay for this device (alternatively you can build all of them by omitting the folder):

Bash:
./build/build.sh Xiaomi/Mi11TPro

This will generate an APK that'll be written to build/treble-overlay-xiaomi-mi11tpro.apk.

You can now put this in the attached Magisk module (unzip it first), by replacing the APK there with the built APK.
Then, zip it again, and make sure the root of the zip file is not a folder but the actual files of the module.
Thank you for your effort in developing this overlay and posting it here I will update it in the post with your credit.
 

TheRomFan

Member
Dec 25, 2021
47
31
I've created an overlay for this device, which fixes the status bar not covering the entirety of the cutout and the brightness of the AOD being low (you still need to enable the alternate brightness scale on settings).

I've opened a PR on the phh's overlays repo, but it still hasn't been merged.
Meanwhile, you can use this overlay by flashing the attached Magisk module, or building it yourself from the PR.

In case someone is interested (even if it's not for this device), I'll leave here the build instructions (these are not required, you can just use the attached zip file).

Keep in mind I'm using Linux, so build instructions might be a bit different for Windows/Mac.

Start by cloning my repository in the mi11tpro branch:

Bash:
git clone https://github.com/diogotcorreia/vendor_hardware_overlay.git -b mi11tpro

Then build the overlay for this device (alternatively you can build all of them by omitting the folder):

Bash:
./build/build.sh Xiaomi/Mi11TPro

This will generate an APK that'll be written to build/treble-overlay-xiaomi-mi11tpro.apk.

You can now put this in the attached Magisk module (unzip it first), by replacing the APK there with the built APK.
Then, zip it again, and make sure the root of the zip file is not a folder but the actual files of the module.
I tried this module it installs me.phh.xiaomi.11tpro as an system app
I tried to give it all the permission it asked for but still there isn't any changes.
Is there anything I did wrong or there is something wrong with this build?
 

diogotc

Member
May 20, 2018
13
5
OnePlus 3T
Xiaomi 11T Pro
I tried this module it installs me.phh.xiaomi.11tpro as an system app
I tried to give it all the permission it asked for but still there isn't any changes.
Is there anything I did wrong or there is something wrong with this build?
It doesn't do much from what I've noticed. It sets the statusbar height to a value that covers the hole punch, so apps don't show content over it (you can try with Discord for example, it used to have the top bar slicing through the hole punch, but now it's below it).

In addition to that, it just fixes the brightness on the AOD. For this to work, you must disable the "Force AOD" option on Phh settings since that's not needed anymore.
 

TheRomFan

Member
Dec 25, 2021
47
31
It doesn't do much from what I've noticed. It sets the statusbar height to a value that covers the hole punch, so apps don't show content over it (you can try with Discord for example, it used to have the top bar slicing through the hole punch, but now it's below it).

In addition to that, it just fixes the brightness on the AOD. For this to work, you must disable the "Force AOD" option on Phh settings since that's not needed anymore.
Ok yes did turn off force AOD and it worked. But the only issue is that if the notification is cleared the clock is not centered on A12.
 

diogotc

Member
May 20, 2018
13
5
OnePlus 3T
Xiaomi 11T Pro
Ok yes did turn off force AOD and it worked. But the only issue is that if the notification is cleared the clock is not centered on A12.
I think that depends or more than just notifications, I haven't figured it out yet, but that's unrelated to the overlay since it also happened before.

As you can see, I'm using the overlay and I get the centered clock on AOD, using Pixel Experience (screenshot through ADB):
1655138047861.png
 

TheRomFan

Member
Dec 25, 2021
47
31
Just one question.
Is there a way to make the fingerprint unlock animation at the edge(next to the fingerprint sensor) rather than in the upper middle?
 

Domniak

Member
Jun 18, 2022
9
1
So I use this GSI Rom for my Xiaomi 11T Pro: PixelExperience_Plus_arm64-ab-12.1-20220613-UNOFFICIAL.img, and I have noticed that the ,,Vibration and Haptics Fix'' doesnt really fix the haptics. If I toggle off and back on the Switch, i do notice a Vibration, but no more, is there any other solution to this?
 

Domniak

Member
Jun 18, 2022
9
1
So I use this GSI Rom for my Xiaomi 11T Pro: PixelExperience_Plus_arm64-ab-12.1-20220613-UNOFFICIAL.img, and I have noticed that the ,,Vibration and Haptics Fix'' doesnt really fix the haptics. If I toggle off and back on the Switch, i do notice a Vibration, but no more, is there any other solution to this?
Nevermind, after some while it does Work, Strange behaviour :/
 

Domniak

Member
Jun 18, 2022
9
1
Yh I know.
Even during the wizard setup it works then it suddenly stops. So you need to settings and disable then enable to fix it
Weird :?
Btw i don't know if someone already mentioned it, but by disabling the Option: Use alternate audio policy, I do not get any audio crackling, maybe you should try it out and edit it when it really works
 

Top Liked Posts

  • 1
    Is there any way to flash the GSI Rom via TWRP ? What is pph ?
    I try with fastboot way sir, last time i try update gsi rom via twrp and it doesnt boot lol, phh is developer name, and the rom like barebone aosp. Now im using corvus rom gsi and works great too
  • 1
    Is there any way to flash the GSI Rom via TWRP ? What is pph ?
    I try with fastboot way sir, last time i try update gsi rom via twrp and it doesnt boot lol, phh is developer name, and the rom like barebone aosp. Now im using corvus rom gsi and works great too
  • 3
    Perform this at your own risk. You might LOSE all data on your phone.

    ( I'm not responsible for any damage to your device )

    This is a tutorial for the best configurations to get the best from the GSI roms on the Xiaomi 11T Pro

    If you are searching on a tutorial on how to install GSI roms on Xiaomi 11T Pro you can check this post

    The reason why I made this guide is that there is no custom rom currently for Xiaomi 11T Pro and the only way to get custom roms is by installing a GSI rom and try to tweak with it to get it working.

    List of contexts
    A- Phh Settings
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎1. Fix broken audio
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎2. Fix Whatsapp audio
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎3. Turn on Double-Tap-To-Wake-Up
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎4. Enable 120Hz
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎5. Fix Auto-Brightness
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎6. FIx SMS/MMS
    ‏‏‎

    B - Other Ways
    ‏‏‎ ‏‏‎ ‏‏‎ 1. Installing Dolby Atmos
    ‏‏‎ ‎‏‏‎ ‎‏‏‎‏‏‎ ‎‏‏2. Fix volume steps
    ‎‏‏‎‏‏‎ ‎‏‏‎ ‎‎‏‏‎‏‏‎ ‎‏‏‎‏‏‎3. Fix Vibration and Haptics
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎4. Fix 5G if you have LTE working
    ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎5. Fix LTE/4G
    ‎‏‏‎ ‎‎‏‏‎ ‎‎‏‏‎ ‎6. Fix Always-On-Display (With Low Dim fixed!)

    A- Phh Settings


    Open Phh Treble Settings from settings
    Screenshot_20220525-194745_Pixel Launcher.png

    Screenshot_20220525-194748_Pixel Launcher.png


    1) To fix broken audio go to Qualcomm features and make sure "Disable soundvolume effect" is on
    Screenshot_20220525-194755_Pixel Launcher.png


    2) To fix broken audio on Whatsapp, Telegram, SIgnal go to Qualcomm features and make sure "Use alternate audio policy" is on
    Screenshot_20220525-194755_Pixel Launcher.png


    3) To fix Double tap to wake feature go to Xiaomi features and check "Enable DT2W"
    Screenshot_20220525-195248_Pixel Launcher.png


    4) To enable 120hz go to Misc features and click on "Force FPS" and select "1080*[email protected]"
    Screenshot_20220525-195527_Pixel Launcher.png


    5) To fix auto brightness go to Misc features and check on "Force alternative backlight scale"
    Screenshot_20220525-195831_Pixel Launcher.png


    6) To fix SMS go to IMS features and click on "Install IMS APK for Qualcomm vendor" then install the APK
    Screenshot_20220525-200443_Pixel Launcher.png


    B - Other Ways

    1) Install Dolby Atmos using Magisk by flashing this file

    2) Fix the volume steps by flashing this file using Magisk

    3) To fix vibration you need to reboot your phone after you have applied the changes on section A and search for "vibration" on settings and click on "Ring Vibration"
    Screenshot_20220526-083439_Pixel Launcher~2.png


    Then deselect all the switches and then select them all
    Screenshot_20220526-083703_Pixel Launcher.png


    4) If LTE/4G is working for you. You can flash this file using Magisk to get 5G

    5) If LTE/4G is not working go to Settings < Network and Internet < Sims < Preferred Sim 1 or 2 < Access point names and click on the "+" icon on top corner of the screen
    Screenshot_20220527-104600_Pixel Launcher~3.png

    Then manually enter your sim's provider APN and click on the three points and save -You can check it from your provider's website-
    Screenshot_20220527-104851_Pixel Launcher.png

    Do the same for MMS and save it. You will suppose to have mobile data working!

    6) FIx Always-On-Display
    You can now fix always on display and set the statusbar height to a value that covers the hole punch by flashing this magisk module by diogotc.
    1655138047861-png.5636935


    Know Issues​

    Currently the issue that I am still experiencing with GSI roms are:

    1. GCam can record up to 1080p 60fps. 4K is not working.
    2. The proximity sensor is not working always especially in AOD, So I recommend to disable DT2W (A- Phh Settings step 3).

    Credits:
    Google -AOSP-
    Phhusson -Phh Treble Settings-
    diogotc -Making an overlay to solve some problems in the GSI roms for this device-
    Me -Making this tutorial-
    3
    I've created an overlay for this device, which fixes the status bar not covering the entirety of the cutout and the brightness of the AOD being low (you still need to enable the alternate brightness scale on settings).

    I've opened a PR on the phh's overlays repo, but it still hasn't been merged.
    Meanwhile, you can use this overlay by flashing the attached Magisk module, or building it yourself from the PR.

    In case someone is interested (even if it's not for this device), I'll leave here the build instructions (these are not required, you can just use the attached zip file).

    Keep in mind I'm using Linux, so build instructions might be a bit different for Windows/Mac.

    Start by cloning my repository in the mi11tpro branch:

    Bash:
    git clone https://github.com/diogotcorreia/vendor_hardware_overlay.git -b mi11tpro

    Then build the overlay for this device (alternatively you can build all of them by omitting the folder):

    Bash:
    ./build/build.sh Xiaomi/Mi11TPro

    This will generate an APK that'll be written to build/treble-overlay-xiaomi-mi11tpro.apk.

    You can now put this in the attached Magisk module (unzip it first), by replacing the APK there with the built APK.
    Then, zip it again, and make sure the root of the zip file is not a folder but the actual files of the module.
    2
    I've created an overlay for this device, which fixes the status bar not covering the entirety of the cutout and the brightness of the AOD being low (you still need to enable the alternate brightness scale on settings).

    I've opened a PR on the phh's overlays repo, but it still hasn't been merged.
    Meanwhile, you can use this overlay by flashing the attached Magisk module, or building it yourself from the PR.

    In case someone is interested (even if it's not for this device), I'll leave here the build instructions (these are not required, you can just use the attached zip file).

    Keep in mind I'm using Linux, so build instructions might be a bit different for Windows/Mac.

    Start by cloning my repository in the mi11tpro branch:

    Bash:
    git clone https://github.com/diogotcorreia/vendor_hardware_overlay.git -b mi11tpro

    Then build the overlay for this device (alternatively you can build all of them by omitting the folder):

    Bash:
    ./build/build.sh Xiaomi/Mi11TPro

    This will generate an APK that'll be written to build/treble-overlay-xiaomi-mi11tpro.apk.

    You can now put this in the attached Magisk module (unzip it first), by replacing the APK there with the built APK.
    Then, zip it again, and make sure the root of the zip file is not a folder but the actual files of the module.
    Thank you for your effort in developing this overlay and posting it here I will update it in the post with your credit.
    1
    Hi, thanks a lot for your tutorial, it fixed most issues!

    However, I've noticed two things:
    • The proximity sensor doesn't seem to be working. I've used the Sensors app to check it, and it always says 5.0cm no matter what. This means the Always On Display is always on, and doesn't turn off if it's in your pocket or face down on a table (which at night is annoying, since the light bleeds out from the transparent case).
    • The auto brightness fix makes the Always On Display very very dim, which renders it pretty useless since it can't be seen at an angle. I've had to avoid doing that fix for that reason, but it's very annoying that now auto brightness is just not working correctly.

    It'd appreciate if anyone could find a fix for these issues. Everything else works perfectly (except for Android Auto, which I found a fix, see below).

    Also, since Android Auto isn't installed as a system app, it shows "Connection error 22" when you plug it into the car and doesn't work. The fix is to convert it to a system app. I've used Lucky Patcher for this, but it was a bit sketchy, so if you find another way, go for it (and reply here so I know next time).

    Since it might be relevant, I've using Pixel Experience Plus Slim.
    Yes I know as this is an Generic System Image with phh's patch to make it work on maximum android phones.
    Some of these issues can be reported to Phh and he will try fix it.
    So I guess we will have to wait untill he releases an update to fix these issues
    For system apps you can systemizer magisk module to install apps as system.
    1
    I think that depends or more than just notifications, I haven't figured it out yet, but that's unrelated to the overlay since it also happened before.

    As you can see, I'm using the overlay and I get the centered clock on AOD, using Pixel Experience (screenshot through ADB):
    View attachment 5636935
    I restarted it twice and got it centered.
    Thank you.