How to Install GSI ROMs on Xiaomi Android!

For those of you who want to install GSI ROMs on your Xiaomi Android device, here’s a full step-by-step tutorial on how to do it. This tutorial should work on all Android 10 GSI.

Android 10 GSI should work on most Android 10 MIUI 11/12. For Android 11 GSI, you may have to install Android 10 MIUI 12 firmware in order to get it booting correctly.

Follow video tutorial along with the written tutorial:

Step 1. Before we begin, you will have to unlock the bootloader on your Xiaomi Android device, please follow my universal guide that works for all Xiaomi devices(https://highonandroid.com/android-root-101/how-to-unlock-bootloader-on-xiaomi-android/)

Step 2. Once bootloader unlocked, reboot into fastboot mode by powering off your Xiaomi device then holding down Volume Down and Power buttons. Connect a USB cable from your Xiaomi to your computer.

Step 3. Check here(https://github.com/phhusson/treble_experimentations/wiki)and see if your Xiaomi support Project Treble and find out if it’s A only or A/B. If you have a newer Xiaomi device(from 2019 and up), you should be Project Treble compatible and most likely A/B.

e.g. My Xiaomi Mi 9 is Project Treble compatible and A/B device.

Step 4. You will need to download fastboot.zip(for all Windows/Mac/Linux), Windows ADB drivers(if using windows), TWRP recovery, GSI, DM No Verity, and Magisk(optional if you want root).

Download fastboot.zip(https://download.highonandroid.com/file/Tools/fastboot.zip.html)

Unzip fastboot.zip to fastboot folder under your Downloads directory.

Download vbmeta.img(https://download.highonandroid.com/file/Tools/VBMeta/vbmeta.img.html) and move it into your fastboot folder.

Download DM No Verity(https://download.highonandroid.com/file/Tools/GSI/Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip.html)

Download Windows ADB drivers(https://download.highonandroid.com/file/Drivers/UniversalAdbDriverSetup.msi.html)

Download TWRP recovery from XDA, Google your device name and find the TWRP for it.

e.g. for Xiaomi Mi 9, do Google search for “Xiaomi Mi 9 TWRP xda”

Download the TWRP image file and also move it into your fastboot folder.

(Optional) Download Magisk ZIP(https://download.highonandroid.com/file/Tools/Magisk/Canary/Magisk-v21.0.zip.html), Magisk APK(https://download.highonandroid.com/file/Tools/Magisk/Canary/MagiskCanary2020.apk.html), Magisk Uninstaller(https://download.highonandroid.com/file/Tools/Magisk/uninstaller/Magisk-uninstaller-20201003.zip.html)

Download GSI of your choice here(https://forum.xda-developers.com/project-treble/trebleenabled-device-development)

Now, MAKE SURE to download for ARM64 and A/B or A ONLY. I also recommend downloading one with Gapps if you have the choice.

If you are not sure, try the CrDroid GSI, which works really well on my Xiaomi Mi9(CrDroid GSI Android 10!)

Most GSI images are compressed in xz, 7zip, or zip format. Go ahead and extract the actual .img file by using 7zip, you can download 7zip for Windows here(https://download.highonandroid.com/file/Tools/7zip/7z1900-x64.exe.html)

Step 5. Open a command prompt and type:

For Windows:

cd Downloads
cd fastboot
fastboot flash recovery NameOfTWRPFileHERE.img
fastboot flash vbmeta vbmeta.img

For Linux:

cd Downloads
cd fastboot
chmod 755 *
sudo ./fastboot-mac flash recovery NameOfTWRPFileHERE.img
sudo ./fastboot-mac flash vbmeta vbmeta.img

For Mac:

cd Downloads
cd fastboot
chmod 755 *
./fastboot-mac flash recovery NameOfTWRPFileHERE.img
./fastboot-mac flash vbmeta vbmeta.img

Step 6. Power off your Xiaomi. Then hold down Volume Up and Power buttons until you enter TWRP recovery.

Step 7. Wipe data and reboot TWRP.

Step 8. Copy over the GSI image file, DM No Verity, Magisk ZIP file, Magisk APK, and Magisk uninstaller to your Xiaomi device.

Step 9. Wipe cache/dalvik cache, system, data.

Step 10. Install GSI image using “Install Image” option in TWRP. Then install DM No Verity then reboot.

Step 11. If everything goes well you should have booted your new GSI! Congrats! If you don’t need root, you can stop at this point. If you want root, continue to Step 12.

Step 12. Reboot into TWRP, then install Magisk ZIP and reboot. If you end up in a bootloop for any reason, you can reboot into TWRP and install Magisk uninstaller to fix boot.

Step 13. If you don’t see Magisk Manager app, use File Manager app to install the APK file.

Step 14. You should be fully rooted!

EXTRAS

For Google Camera, try this version here(https://download.highonandroid.com/file/Cameras/GoogleCamera/GCam_7.3.018_Urnyx05-v2.2-fix.apk.html).

3 Likes

does the vm vbmeta.img, DM No Verity… will work on a redmi note 9 pro (Joyeuse - global ver.)

thank you

YEEEEEEE MAX ILL GIVE IT A GO AGAIN :grinning: :grinning: :grinning:

yes it should work, try it and let me know.

1 Like