How To Guide The best configs for GSI roms

Search This thread

dimashorokhov

Member
Mar 11, 2018
12
1
Can anyone help me?
I want to try Pixel GSI on my Xiaomi 11T Pro.

Could I install a Stock MIUI camera or ANX?
I need a smooth switch between main and ultrawide cameras in video
 

dimashorokhov

Member
Mar 11, 2018
12
1
Guys, can anyone explain to me?

If NFC doesn't work now on Pixel Experience, need I flash a new updated PE ROM in the future to solve this problem?

Or I can install OTA update without flashing or TWRP?
 

Domniak

Member
Jun 18, 2022
18
1
Guys, can anyone explain to me?

If NFC doesn't work now on Pixel Experience, need I flash a new updated PE ROM in the future to solve this problem?

Or I can install OTA update without flashing or TWRP?
FIrst of all, what ROM did you flash and what device do you use? I dont think you can flash a GSI Rom with TWRP. I think NFC doesnt work on some specific devices, like Samsung. But yeah, if a future PE Rom fixes your NFC Problem, you can do a OTA Update. BUT, if there will not be another PE12 Rom, but instead a PE13 Rom, then you will have to Clean Flash the ROM
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    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.