How To Guide Run an GSI on your Mi Pad 5

Search This thread

Namit1994

Senior Member
May 26, 2010
409
226
Corona, NY
I got Google's Android 12L GSI fully working on my Mi Pad 5 Pro Wi-Fi. I had to manually fix the following 2 issues though:

Display: Display was at 60hz. Changed to 120hz by using the adb commends mentioned on this post
Audio Stutter: I created my own Magisk module for the audio stuttering fix because the Mi Mote 10 Lite fix had libs and configs meant for that device specifically. Attached is my Magisk module fix based on files from stock Mi Pad 5 Pro WiFi ROM. This has not been tested on the non-Pro or the Pro 5G.

Enjoy
 

Attachments

  • GSI Audio Stutter Fix - Mi Pad 5 Pro (elish).zip
    16.8 KB · Views: 206

Badmemories

New member
Feb 19, 2022
1
2
I got Google's Android 12L GSI fully working on my Mi Pad 5 Pro Wi-Fi. I had to manually fix the following 2 issues though:

Display: Display was at 60hz. Changed to 120hz by using the adb commends mentioned on this post
Audio Stutter: I created my own Magisk module for the audio stuttering fix because the Mi Mote 10 Lite fix had libs and configs meant for that device specifically. Attached is my Magisk module fix based on files from stock Mi Pad 5 Pro WiFi ROM. This has not been tested on the non-Pro or the Pro 5G.

Enjoy
Your module worked on xioami mi pad 5 (nabu)
Thanks alot
 

manu_jedi

Senior Member
Jun 28, 2018
66
25
OnePlus 8 Pro
Xiaomi Mi Pad 5
I got Google's Android 12L GSI fully working on my Mi Pad 5 Pro Wi-Fi. I had to manually fix the following 2 issues though:

Display: Display was at 60hz. Changed to 120hz by using the adb commends mentioned on this post
Audio Stutter: I created my own Magisk module for the audio stuttering fix because the Mi Mote 10 Lite fix had libs and configs meant for that device specifically. Attached is my Magisk module fix based on files from stock Mi Pad 5 Pro WiFi ROM. This has not been tested on the non-Pro or the Pro 5G.

Enjoy
I did the same but (using a different audio_effects.xml) bt audio is still not working. Is it working for you?
 

manu_jedi

Senior Member
Jun 28, 2018
66
25
OnePlus 8 Pro
Xiaomi Mi Pad 5
Have you tried to turn-on/off the different settings in phh settings menu as described in some previous posts?
Have you also tried the 2nd magisk module given in one of the previous post?

BT is working for me, but I had also to use this 2nd magisk module and do some tricks in phh setting menu.
Yes with Phh settings it is working, but afaik there is no 12L build with them included.
 

BiG_FooT

Senior Member
Nov 17, 2012
529
235
Rotterdam area
I got Google's Android 12L GSI fully working on my Mi Pad 5 Pro Wi-Fi. I had to manually fix the following 2 issues though:

Display: Display was at 60hz. Changed to 120hz by using the adb commends mentioned on this post
Audio Stutter: I created my own Magisk module for the audio stuttering fix because the Mi Mote 10 Lite fix had libs and configs meant for that device specifically. Attached is my Magisk module fix based on files from stock Mi Pad 5 Pro WiFi ROM. This has not been tested on the non-Pro or the Pro 5G.

Enjoy
I tried Android 12L as well. I also didn't manage to get the Bluetooth working. So you didn't flash the Magisk module (from this tread) to fix the Bluetooth? And I use Nova Launcher to bypass the 12L launcher. But Nova wouldn't stick. I really didn't like the stock 12L launcher cause of the icon dock. But for the rest 12L seemed to work fine.

So I'm currently on A12 PE and very happy with it.
 

BiG_FooT

Senior Member
Nov 17, 2012
529
235
Rotterdam area
I just OTA updated my PE12 GSI without any problems. As it's a new feature of the Phh's custom A12 ROM I was kinda stressed if it would work. Attached a few screenshots. The only interaction it took was that I had to reboot after the message 'Slot switched'.
The ROM: https://github.com/ponces/treble_build_pe/releases

Note: choose the Updater function from Phh settings
Note 2: on GitHub there is a remark not to use OTA updater when device is rooted with Magisk. This wasn't mentioned during update process so I took the OTA even though my device was rooted with Magisk. Device booted without a problem and update was installed but I lost Magisk root.
 

Attachments

  • Screenshot_20220221-205657_PhhTrebleApp.png
    Screenshot_20220221-205657_PhhTrebleApp.png
    89 KB · Views: 209
  • Screenshot_20220221-205717_PhhTrebleApp.png
    Screenshot_20220221-205717_PhhTrebleApp.png
    89 KB · Views: 188
  • Screenshot_20220221-210225_PhhTrebleApp.png
    Screenshot_20220221-210225_PhhTrebleApp.png
    93.5 KB · Views: 193
  • Screenshot_20220221-210850_Samsung Internet.png
    Screenshot_20220221-210850_Samsung Internet.png
    332.2 KB · Views: 210
Last edited:

zyvex_14

Senior Member
Apr 24, 2016
93
35
Sainte-Geneviève-Des-Bois
I just OTA updated my PE12 GSI without any problems. As it's a new feature of the Phh's custom A12 ROM I was kinda stressed if it would work. Attached a few screenshots. The only interaction it took was that I had to reboot after the message 'Slot switched'.
The ROM: https://github.com/ponces/treble_build_pe/releases

Note: choose the Updater function from Phh settings
Note 2: on GitHub there is a remark not to use OTA updater when device is rooted with Magisk. This wasn't mentioned during update process so I took the OTA even though my device was rooted with Magisk. Device booted without a problem and update was installed but I lost Magisk root.
I should have read your post earlier...

I did as well the OTA update and I lost magisk.
I tried to re-install it but it doesn't work, I still have Magisk as non-installed :( I can't make it work.
 

BiG_FooT

Senior Member
Nov 17, 2012
529
235
Rotterdam area
This is what I did, but still not working... I flashed on A partition and then on B one, but still nok.
Dropped a question in Telegram PE GSI group how to achieve root again

phhusson pointed me to a solution to remove the OTA update. Here are the steps, note that you will lose your data so backup first.

First enter fastboot mode of your device by powering device off
Hold power button + volume down
Then type this commands from you ADB terminal:
fastboot reboot fastboot (to enter FastbootD)
fastboot erase metadata (to remove OTA)
fastboot reboot
Stock recovery will apear --> wipe / factory reset
Reboot to system

You will be welcomed with the Pixel setup tutorial. Magisk was partially installed, had to reinstall by opening the app and reboot. Then I could easily chose the direct install option to obtain root again. Didn't have to reflash patched boot.img.

Steps to install v402 update manually and keep Root:

First enter fastboot mode of your device by powering device off
Hold power button + volume down
Then type this commands from you ADB terminal:
fastboot reboot fastboot
fastboot flash system system.img
fastboot reboot
 
Last edited:

Askalik

New member
Feb 26, 2022
3
1
Hi,guys! Does Dolby Atmos work on any gsi? Sound on stock with Dolby is cool, I flashed pe11, sound get much worse. Is there any solution for that?
 

IAMPRISM

Senior Member

BiG_FooT

Senior Member
Nov 17, 2012
529
235
Rotterdam area
Only this one works rest cause bootloop
Thanks but it doesn't work on PE12 GSI. I tried to fix it by running these commands from terminal.

GitHub troubleshooting suggestions:

- You can disable your in-built dirac soundfx if you sure it's conflicting with Dolby:

setprop disable.dirac 1

- You can disable your in-built misoundfx if you sure it's conflicting with Dolby:

setprop disable.misoundfx 1
 

IAMPRISM

Senior Member
Thanks but it doesn't work on PE12 GSI. I tried to fix it by running these commands from terminal.

GitHub troubleshooting suggestions:

- You can disable your in-built dirac soundfx if you sure it's conflicting with Dolby:

setprop disable.dirac 1

- You can disable your in-built misoundfx if you sure it's conflicting with Dolby:

setprop disable.misoundfx 1
Weird it works for me and i use the same gsi
 
  • Like
Reactions: BiG_FooT

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    About to pull the trigger & buy a Mi Pad 5, and just want to confirm that there's no preference between CN vs Global version initially yeah? If not, I'll just get the cheaper CN version
    I bought the Chinese version of Mi Pad 5 a few months ago and I'm living in Europe. Unlocked the bootloader and flashd the EU ROM. Running perfectly fine. Only thing is that you have to be cautious to not lock the bootloader again as it will brick your device in a way that is quite difficult to resolve. In Xiaomi flash tool the option to relock the bootloader is standard ticked. Make sure to disable that!
    1
    I bought the Chinese version of Mi Pad 5 a few months ago and I'm living in Europe. Unlocked the bootloader and flashd the EU ROM. Running perfectly fine. Only thing is that you have to be cautious to not lock the bootloader again as it will brick your device in a way that is quite difficult to resolve. In Xiaomi flash tool the option to relock the bootloader is standard ticked. Make sure to disable that!
    Thanks for the heads up, gonna place my order within the next day or two ✊🏾
  • 9
    To run an GSI on your Mi pad 5 :
    Unlock bootloader

    Download an arm64 AB gsi: https://forum.xda-developers.com/f/treble-enabled-device-development-a-ab-roms.7260/
    I used system-roar-arm64-ab-vndklite-vanilla.img by Phh
    Download vbmeta.img from google

    Reboot to fastboot
    Open an cmd:

    fastboot flash vbmeta vbmeta.img

    fastboot reboot fastboot

    fastboot flash system system-roar-arm64-ab-vndklite-vanilla.img

    fastboot reboot recovery

    Make an factory reset

    Reboot
    6
    I made a LSPosed module to fix the taskbar in PixelExperience. You can also hide the taskbar pill (optional).

    ...

    I have made the module into a Magisk module (implemented using Resource Overlay). LSPosed is not required anymore. Enjoy : )

    You can use the module to fix the taskbar height in PixelExperience. You can also use it to hide the taskbar pill in PE and other ROMs.

    Download: https://github.com/Coxxs/hide-tablet-taskbar/releases
    5
    I can report that I am on a non-vndklite version of PE(plus)11 GSI (PixelExperience_Plus_arm64-ab-11.0-20211011-UNOFFICIAL.img.xz) (not that I understand what vndk is). And it seems to be working surpringly very well!!... except for the pen, of course! The pen is recognised as 'Xiaomi Smart Pen' as an input device according to DevCheck Pro app (and I got the same info on this app with stock MIUI). The buttons on the pen work as forward/backward keys... but still no input function on the touch screen. But other than that, the GSI has been working without a crash for about a couple of hours. The best of all I've tried so far! Surely, too good to be true...

    Some tweaks were necessary: as I said before, I installed 2 Magisk modules for stuttering audio (GSI Audio Stutter Fix - Mi NOTE 10 Lite (toco).zip) & totally broken bluetooth audio (Note9Taudio.zip):
    But the 2nd module might not be necessary if you follow the Phh Treble Settings the person on the 2nd link is suggesting.

    I used Migrate to copy all my apps. Some google apps (gmail, g-map, g-drive) weren't copied, so I had to install them manually.. and they're working fine. Other google apps (incl google play services & google play store) were installed fine and have been functioning well so far. I didn't install Magisk Gapps etc separately.

    In case you're starting out, I've tried the following GSIs in the last few days, but none of them worked (I came from MIUI CN 12.5.8 for Pad 5 Pro 5G):
    PixelExperience_Plus_arm64-ab-vndklite-11.0-20211011-UNOFFICIAL.img.xz
    PixelExperience_arm64-ab-vndklite-12.0-20211121-UNOFFICIAL.img.xz
    PixelExperience_arm64-ab-12.0-20211121-UNOFFICIAL.img.xz
    https://github.com/phhusson/treble_.../system-roar-arm64-ab-vndklite-vanilla.img.xz

    Oh someone mentioned the refresh rate. I can't find how to set it on Settings on PE11 GSI, so probably it's not changeable? I've tried Display Checker app, and it looks like mine is at 60Hz. I don't play games so it's acceptable for me. But if anyone knows how to change it to 120Hz, it would be good to know!

    I want to thank the OP who first brought this to our attention. I'd never tried GSIs (always spoilt with good custom or stock roms). Fingers crossed for my current GSI!
    4
    These settings were already enabled.
    I now disabled it and unpaired the headset, then reboot.
    Enabling the settings reboot,then pair the headset still no working Bluetooth audio.
    In the selection of the audio device if I select the headset it won't change to the headset and if I try to increase the volume of the headset it will always jump back to zero.
    Do not enable "Use alternate audio policy" in Qualcomm features (just make sure, that would create that bug)
    Misc features -> "Disable audio effects" and "Force-disable a2dp offload" and i would not enable the bluetooth workaround mediathek (works for me without that setting)
    4
    Please do a review about this Gsi in YouTube