Flashing Custom ROMs
Prerequisites
Unlocked Bootloader
Your bootloader must be unlocked
Platform Tools
ADB and Fastboot on your PC
Battery Level
At least 50% charge
ROM Package
Downloaded ROM and image files
Required Downloads
Download the following files and place them in your platform tools folder:
- ROM package (.zip)
- boot.img
- dtbo.img
- vendor_boot.img
- super_empty.img
- firmware.zip (if not included in ROM)
Flashing Guide
-
Reboot to Bootloader
Hold Power + Volume Down buttons simultaneously to enter bootloader mode.
-
Flash Recovery Components
Open a terminal in your platform tools folder and run these commands:
fastboot flash boot boot.img fastboot flash dtbo dtbo.img fastboot flash vendor_boot vendor_boot.img fastboot wipe-super super_empty.img fastboot reboot recovery -
Format Data (Optional)
In recovery, format data if you are switching between different ROM types (e.g., MIUI to AOSP).
-
Reboot to Recovery
In recovery, select Advanced → Reboot to recovery.
-
Flash Firmware (If Required)
Select "Apply update" in recovery, then sideload the firmware:
adb sideload firmware.zipNote: Skip this step if firmware is bundled with the ROM package.
-
Flash ROM Package
Reboot to recovery again (optional but recommended), select "Apply update", and sideload the ROM:
adb sideload rom.zip -
Flash GApps (For Vanilla Builds)
When the rom package is installed then reboot to recovery and select "Apply update" and sideload your GApps package.
-
Reboot Device
You may reboot your device now.
Using a Custom Recovery
-
Reboot to Bootloader
Hold Power + Volume Down buttons simultaneously to enter bootloader mode.
-
Boot Custom Recovery
Open a terminal in your platform tools folder and run:
fastboot boot {path to recovery.img}This will boot custom recovery temporarily.
-
Install Permanently
To install permanently, navigate to Advanced in custom recovery.
Select Install Current TWRP and tap Install to confirm.
Some Common Errors
SPL downgrade, Flash aborted
Solution: Use recovery from an older ROM build, then flash your desired ROM.
ROM package has .bin extension
Solution: Simply rename the file from .bin to .zip.
Device rebooted to classic bootloader
Solution: Choose "reboot bootloader" and flash the stock fastboot ROM.

Status 3 error during sideloading
Solution: Update your ADB platform tools to the latest version.
Device not showing in fastboot or ADB
Solution: Install the proper USB drivers for your device on your computer.