Firmware guide · Updated 2026-10-28
How to Flash HyperOS with Fastboot: Step by Step
A complete walkthrough of flashing a HyperOS fastboot ROM on Xiaomi, REDMI and POCO phones: download the .tgz package, boot into fastboot, write it with MiFlash, and choose between clean all and clean all and lock. Includes fixes for the most common errors.
Fastboot flashing writes a .tgz package straight to the device partitions from a computer. It is the way to rescue a bootlooping phone, downgrade across major HyperOS versions, or wipe a device completely. Before flashing, make sure the codename in the file name matches your phone exactly.
When fastboot flashing is the right choice
Fastboot flashing bypasses the phone's Recovery and lets a computer write images directly to the partitions. That makes it the only option when the system cannot boot, and the usual route for downgrades across major versions.
- The phone will not boot, hangs on the logo, or reboots in a loop
- You need to downgrade from HyperOS 3.0 to 2.0 or 1.0
- The system partition is damaged or an OTA update failed
- You want to wipe every trace of user data before selling the device
Before you start
- Back up photos, chats and account data. Fastboot flashing wipes all user data by default.
- Confirm the device codename on the device page (for example earth or gold). A package with a different codename must not be flashed.
- Download the fastboot package for the correct region. The file name looks like earth_images_OS1.0.8.0.UCVCNXM_20250820.0000.00_14.0_cn_xxxx.tgz.
- Install the Xiaomi USB driver and MiFlash on the computer, or use the official fastboot tools.
- Keep the battery above 50% and use the original cable or a known-good one.
Boot into Fastboot mode
Power the phone off, then hold Volume Down and Power for about three seconds until the Mi Bunny robot appears. Connect the USB cable: Windows Device Manager should list an Android Bootloader Interface.
Flash with MiFlash
- Open MiFlash and click Select to point at the extracted package folder, which must contain flash_all.bat and the images directory.
- Click Refresh to confirm the device is detected, then click Flash.
- Pick clean all in the bottom right. Do not choose clean all and lock unless you specifically want to re-lock the bootloader.
- Wait for the progress bar to finish. After success the phone reboots and the first boot can take 5 to 15 minutes.
Package types compared
| Package type | Extension | Tool | Wipes data |
|---|---|---|---|
| Recovery / OTA package | .zip | System updater or Recovery | Usually not |
| Fastboot package | .tgz | MiFlash or fastboot | Yes |
| Carrier fastboot package | .tgz | MiFlash or fastboot | Yes |
Common errors and fixes
- error: could not get flash write protect: the bootloader is still locked. Apply for unlocking in the Xiaomi Community app first.
- MiFlash does not detect the phone: use a USB 2.0 port, reinstall the Xiaomi driver, or try another cable.
- flash crc error: the download is incomplete. Download the package again and check the file name.
- The flash succeeds but the phone still will not boot: make sure clean all was selected, and flash once more if needed.
Questions about this guide
Does fastboot flashing erase my data?
Yes. The package rewrites every partition, and MiFlash with clean all wipes user data. Back up photos, chats and accounts before you start.
Do I need an unlocked bootloader?
Yes. Apart from a few service-tool exceptions, fastboot flashing requires an unlocked bootloader. Chinese-market units need to apply for unlocking through the Xiaomi Community app, and some regional variants are locked by default.
Can I use a recovery zip instead of a fastboot package?
No. The two formats, tools and verification paths are different: a recovery package is a .zip verified and installed by Recovery, while a fastboot package is a .tgz written by fastboot. Mixing them simply fails.
Will I still receive OTA updates after flashing?
Yes, as long as the region matches. After a cross-region flash the OTA channel no longer matches the device's sales region, so updates may not arrive or may fail to install.