⚠️ : Run getprop ro.boot.slot_suffix in Android or fastboot getvar current-slot in bootloader. If you see _a or _b , your device is A/B.
| Requirement | Description | |--------------|-------------| | | Mandatory. OEM unlocking must be enabled in Developer Options. | | Fastboot Tools | Platform tools (ADB & Fastboot) installed on your PC (Windows/Mac/Linux). | | Backup | Flashing a GSI wipes all user data. Backup photos, messages, etc. | | Treble Support | Your device must support Project Treble. Check using Treble Info app from Play Store. | | Partition Type | Confirm your device uses A/B slots. Run fastboot getvar current-slot in bootloader mode. If it returns a or b , you’re A/B. | | Vendor Compatibility | The device’s vendor partition must be Android 9 or higher. Older vendors may cause boot loops with Android 12 GSI. |
# Create AVD with custom system image avdmanager create avd -n android12_arm64 -k "system-images;android-31;google_apis;arm64-v8a" # Then replace system.img with your image