Realme GT - TrebleDroid/treble_experimentations GitHub Wiki

Realme GT 5G (RMX2202) - GSI Installation Guide

This guide outlines the proper method to flash Generic System Images (GSI) on the Realme GT 5G (codename cupid) utilizing Dynamic Partitions / Virtual A/B layouts (tested successfully using Infinity-X GSI).


Hardware Support

Component Comment
Camera Working
Speaker / Mic Working
Bluetooth Working (Standard GSI audio delay on video playback)
Wired Audio (3.5mm/Type-C) Working perfectly
WiFi Working
SIM / Mobile Data / Voice Working
Fingerprint Not working out of the box (requires overlay/additional configuration)
MTP Working

Requirements

  1. Unlocked Bootloader.
  2. PC with platform-tools (adb & fastboot) properly configured.
  3. Core Partition Images: You need boot.img, vendor_boot.img, dtbo.img, and vbmeta.img.

All-in-One Installation Script & Process

# ====================================================================
# SECTION 1: FASTBOOT NORMAL (Black Bootloader Screen)
# ====================================================================

# 1. Boot the device into the standard bootloader mode
adb reboot bootloader

# 2. Safety check: Force and ensure you target your active slot (e.g., Slot A)
fastboot --set-active=a

# 3. Flash core kernel, vendor configurations, and device tree blobs (Sourced from cupidr releases)
fastboot flash boot /path/to/boot.img
fastboot flash vendor_boot /path/to/vendor_boot.img
fastboot flash dtbo /path/to/dtbo.img

# 4. Transition to the userspace partition manager screen (Fastboot d)
fastboot reboot fastboot


# ====================================================================
# SECTION 2: FASTBOOT D (Recovery-like Userspace Screen)
# ====================================================================

# 5. Wipe the old ROM's partition size layout footprint to completely clear the space
fastboot delete-logical-partition system_a

# 6. Initialize an elastic container (Setting size to 0 allows automatic size expansion)
fastboot create-logical-partition system_a 0

# 7. Flash the new GSI system image payload directly into the newly created container
fastboot flash system_a /path/to/your/GSI-image.img

# 8. Disable Android Verified Boot (AVB) flags to prevent verification loops (Crucial Step!)
fastboot flash vbmeta --disable-verity --disable-verification /path/to/vbmeta.img

# 9. Reboot the phone straight into standard stock/custom Recovery for the final wipe
fastboot reboot recovery


# ====================================================================
# SECTION 3: FINAL STEP (On the Physical Device Screen)
# ====================================================================
# Once the phone automatically finishes rebooting into the Recovery Mode menu:
#
# 1. Use the physical hardware volume keys to navigate and press Power to select:
#    --> "Factory Reset" / "Format Data"
#
# 2. Confirm the structural wipe execution to entirely purge old residual user data.
#
# 3. Once the format operation completes successfully, select:
#    --> "Reboot System Now"

# Note: If you manually run `fastboot erase system_a` instead of deleting/re-creating 
# the partition, verify beforehand that the new GSI image size fits the old block allocation.

Credits & Acknowledgements

doze-off: Huge credit for maintaining excellent general-purpose GSIs and optimizing generic system targets, making this clean layout installation successful across diverse hardware.

pjgowtham: Special thanks for providing and hosting the essential core partition binaries (boot, vendor_boot, dtbo, vbmeta) specifically needed to support alternative operating systems on the Realme GT 5G hardware.


Tested by: @EGL9 (on Realme GT 5G via Infinity-X GSI)

Model and Region: RMX2202 (GLOBAL)

Date tested: 8/7/2026

Firmware used: Android 14 | RMX2202_14.0.0.700(EX01)

⚠️ **GitHub.com Fallback** ⚠️