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

  1. Reboot to Bootloader

    Hold Power + Volume Down buttons simultaneously to enter bootloader mode.

  2. 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
  3. Format Data (Optional)

    In recovery, format data if you are switching between different ROM types (e.g., MIUI to AOSP).

  4. Reboot to Recovery

    In recovery, select Advanced → Reboot to recovery.

  5. Flash Firmware (If Required)

    Select "Apply update" in recovery, then sideload the firmware:

    adb sideload firmware.zip

    Note: Skip this step if firmware is bundled with the ROM package.

  6. Flash ROM Package

    Reboot to recovery again (optional but recommended), select "Apply update", and sideload the ROM:

    adb sideload rom.zip
  7. Flash GApps (For Vanilla Builds)

    When the rom package is installed then reboot to recovery and select "Apply update" and sideload your GApps package.

  8. Reboot Device

    You may reboot your device now.

Using a Custom Recovery

  1. Reboot to Bootloader

    Hold Power + Volume Down buttons simultaneously to enter bootloader mode.

  2. 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.

  3. 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.

IMG-20250513-201944-808

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.