Xiaomi POCO M5 - phhusson/treble_experimentations GitHub Wiki

Xiaomi Poco M5 (Global)

The GSI I used in question


CAUTION : Backup all of your data before proceeding!

Precautions

  • Unlock your bootloader first, you can use Mi Unlock for it.

  • When it comes to this device,you MUST flash Stock ROM (Fastboot ROM variant) if you found out your device active slot is on B, you can check your active slot simply using a Fastboot command: fastboot getvar current-slot

  • Before flashing Stock ROM you will need to follow this guide.

  • Download this TWRP

Warning

This Device uses vendor_boot as the recovery partition, so flashing a custom recovery will be exactly like this:

  1. fastboot --disable-verification flash vbmeta vbmeta.img Disabling Verification for VBMeta to avoid dm-verity issue
  2. fastboot flash vendor_boot twrp.img Flashing the custom recovery
  3. fastboot reboot recovery Reboot phone to recovery

Using Custom Recovery (Teamwin/OrangeFox/Pitchblack)

  1. Download this system resizer and flash through twrp
  1. REBOOT TO RECOVERY
  1. Pick Any GSI of your choice from the list, Flash GSI to the system partition.
  1. Format data
  1. Reboot system

For changing GSI-to-GSI, you can simply skip step number 1


And, We are done! Hope you enjoy your new OS of choice!