Install MIUI Fastboot ROM using Mi Flash Tool on Xiaomi, POCO, and Redmi Devices – A Complete Guide

How to Install MIUI Fastboot ROM using Mi Flash Tool on Xiaomi, POCO, and Redmi Devices

Fastboot ROMs can be used to manually install MIUI software updates and unbrick devices by restoring the stock MIUI software. In this step-by-step guide, we will show you how to install MIUI Fastboot ROM on Xiaomi, Redmi, and Poco devices using the official Mi Flash Tool.


Regular software updates are a major contributing factor to a manufacturer’s success in this competitive smartphone market. Xiaomi is an Android device maker that releases MIUI software updates for all its devices on a regular basis.

The fastest way to update your Xiaomi phone is by installing the over-the-air (OTA) updates using the built-in Updater mechanism. These MIUI OTA updates are rolled out in a staged manner. This means that the updates could take some time before they are available for each and every device worldwide.

Xiaomi Provides Flashable ROMs of MIUI Updates for all its Devices

The OEM also publishes two different types of flashable-ROMs that the users could use to manually upgrade the MIUI software on their devices. These are:

  1. Recovery ROMs
  2. Fastboot ROMs

As the name suggests, a ‘Recovery ROM’ is installed via the in-built Updater or stock MIUI recovery.

On the other hand, a ‘Fastboot ROM’ for Xiaomi, Redmi, and Poco devices contain individual device partition images that could be flashed over the fastboot interface. Apart from being used to upgrade the software, these Fastboot ROMs are also used for unbricking a bricked device and restoring the stock MIUI software after installing a custom ROM, custom recovery, and rooting.

You can install MIUI Fastboot ROMs using Xiaomi’s official Mi Flash Tool. The tool offers a graphical user interface (GUI) that’s much easier to use compared to the traditional fastboot command-line interface (CLI).

And that’s what this tutorial is all about. The instructions below will guide you through the complete process of installing MIUI Fastboot ROM using the Mi Flash Tool on any Xiaomi, Redmi, or Poco device in a step-by-step manner.

The Mi Flash Tool only works on Windows computers. If you’re using a Linux or a macOS computer, please see the information provided at the bottom of this tutorial.

Table of Contents

Before You Begin

Before you head on to the instructions, there are a few important things you should do first.

1. Take a Complete Backup

The first thing is to take a complete backup of all your data stored on your device. Mi Flash Tool does offer an option to save the user data while flashing a fastboot ROM. But it’s a good rule of thumb to always have a backup at hand in case anything goes unplanned.

This will also allow you to restore all your data in case you do choose to wipe off the device completely during the flashing process.

If you want, you could take a look at our detailed tutorial on backing up Android devices completely.

2. Unlock your Phone’s Bootloader

Unlike a Recovery ROM, installing a Fastboot ROM requires your device to have an unlocked bootloader. If you haven’t done this already, then just download the official Mi Unlock Tool and follow the instructions here.

Note: Xiaomi’s Android One lineup doesn’t require the Mi Unlock Tool. The bootloader on these devices can be easily unlocked using a simple fastboot command. If you happen to own the Mi A3, follow this tutorial, and this one for the Mi A2 and A2 Lite.

3. Charge your Phone’s Battery

Make sure that your phone has a sufficient battery charge (at least 40%) before you attempt the instructions. This should prevent your phone from accidentally switching off during the flashing process and prevent it from bricking.

How to Install MIUI Fastboot ROM using Mi Flash Tool

Flashing the MIUI Fastboot ROM on Xiaomi, Redmi, and Poco devices using the Mi Flash Tool is a true and tried method. To help you better understand the whole process, we have split the instructions into….


The only things you’ll need to perform this procedure are:

  • Your Xiaomi, Redmi, or Poco device with an unlocked bootloader
  • A Windows computer (Mi Flash is a Windows-only tool)
  • A compatible USB cable

Now without any further ado, follow the instructions below.

Step 1: Download MIUI Fastboot ROM for your Device

The first step is to download the MIUI Fastboot ROM for your respective Xiaomi, Redmi, or Poco device to your computer. As we mentioned earlier, Xiaomi officially provides Fastboot ROM packages of the latest MIUI updates for all its devices. You can find the download links on this page.

Download MIUI Fastboot ROM for your Xiaomi device

Make sure that you download the ROM that matches your device and region (if applicable). In most cases, you’d be looking for the version that says “Global Stable Version Fastboot File” with the device name.

If you could not open the official database due to regional restrictions, or if you’re looking for the Fastboot ROM of a specific MIUI version, then check out your device section over at It’s an unofficial database created by Youssif Shaaban Alsager (yshalsager) that provides flashable MIUI ROMs (including Fastboot ROMs) for all Xiaomi devices.

Step 2: Extract the ROM package on your Computer

The Fastboot ROM package you downloaded is compressed with gzip in .tgz file format. So, the next step is to extract the contents of the package (decompress it) to get the actual firmware files you’ll need for flashing.


To do this, you will first need to install an archive utility like 7-Zip or something similar on your computer. Once you have it simply locate the downloaded Fastboot ROM on your computer, right-click on it, select ‘7-Zip’ and then ‘Extract here’. Once this is done, you will get another file in .tar file format. So extract that in the same manner.

Extract MIUI Fastboot ROM on the computer

You should now have a folder that contains flashing scripts, an ‘images’ folder holding the individual device partition images (boot.img, system.img, vendor.img, etc), along with some other files.

MIUI Fastboot ROM Extracted on the Computer

Step 3: Boot your device into Fastboot Mode

Mi Flash Tool flashes the firmware over the fastboot interface, so the next step is to boot your Xiaomi/Redmi/Poco device into Fastboot Mode. The easiest way to do this is by turning off your device completely first. Once it’s turned off, hold the Volume Down and Power keys together to enter Fastboot Mode.

You should see the Mi bunny with the ‘FASTBOOT’ text on your device’s screen, as shown below.

Boot Xiaomi device into Fastboot Mode

With your device in Fastboot mode, connect it to the computer using the USB cable.

Note: If your device’s hardware keys do not work, or if you cannot get to boot your device into Fastboot Mode using the method above, then there’s an alternative way as well. For this, you will need to turn ON USB Debugging on your device, install Android SDK platform-tools on your computer, and then connect the device to the PC over USB.

Once that is done, issue the following ADB command from your computer to enter Fastboot Mode:

adb reboot bootloader

Step 4: Launch Mi Flash Tool on the Computer

Now download the latest version of the Mi Flash Tool from this page to your computer. The downloaded file will be a .rar package, so you’ll need to extract its contents. To do this, locate the file, then right-click on it, select ‘7-Zip’ and then ‘Extract here’. The extracted folder should contain the tool’s executable, libraries, and other files.

Mi Flash is a portable software and does not require any installation. So, launch the tool on your computer by double-clicking the ‘XiaoMiFlash.exe‘ executable.

Launch Mi Flash Tool on Windows Computer

Step 5: Install Xiaomi USB Drivers (if Required)

In most cases, Windows will automatically download and install the required USB drivers. To verify, go to ‘Control Panel’ → ‘Device Manager’ and verify if the device is being detected as ‘Android Bootloader Interface’. If it does, then you can skip this step and head directly to step #6 below.

In case it shows a yellow-colored triangular warning sign, you will need to install the USB drivers first. As soon as the tool is launched, it should prompt you to install the USB drivers or just click the ‘Driver’ option in the Mi Flash Tool’s interface. Finally, click ‘Install’ to install the latest Xiaomi USB drivers on your computer.

Install Xiaomi USB Drivers using Mi Flash Tool

Once the drivers are installed, you can close the installation window. The tool will now recognize your device over fastboot and display its unique identifier under the ‘device’ column of the flash tool’s interface.

Step 6: Flash MIUI Fastboot ROM using Mi Flash Tool

With everything set up and ready, it’s finally time to flash the Fastboot ROM to your device using the Mi Flash Tool.

Start by clicking ‘Select’ in the tool to launch the file selector window. Then navigate to the location where the Fastboot ROM was extracted, select the folder (do not select the ‘images’ folder instead), and click ‘OK’.

Load MIUI Fastboot ROM in Mi Flash Tool

Once the fastboot ROM is loaded, it is important that you select the type of flash you wish to perform by choosing one of the following options located at the bottom of the tool’s window.

  • clean all: This option will flash the ROM and erase all the data on your phone including that on the internal storage.
  • save user data: This option will flash the ROM and all your data will be saved/preserved.
  • clean all and lock: This option will flash the ROM, erase all the data, and also lock the bootloader.

‘clean all and lock’ should be used with precaution. If your device was previously rooted, had a custom ROM, or any other sorts of modifications, then try and not use it. If there’s any sort of software modifications are leftover, it will not be possible to easily recover the device given that the bootloader will be locked.

We personally suggest using the ‘clean all’ option in such cases. Flash the ROM and verify that the device can boot, and only then lock the bootloader using the ‘fastboot flashing lock‘ command.

Once both these things are done, click ‘flash’ in the Mi Flash Tool to finally install the MIUI Fastboot ROM on your Xiaomi/Redmi/Poco device.

Select 'flash' in Mi Flash Tool to install MIUI Fastboot ROM

The flashing process could take some time, so sit back, relax, and do not disrupt the USB connection. The progress bar will indicate the overall progress of the flashing process and the ‘status’ will show the current partitions being flashed.

Flashing in progress in Mi Flash Tool

After the Fastboot ROM is installed successfully, you should see the ‘success’ message under the ‘result’ tab and your device will automatically boot into the stock MIUI software. You can close the tool’s window now and disconnect the device from the computer.

MIUI Fastboot ROM successfully flashed using Mi Flash Tool

Known Error Message

More recently, Xiaomi owners have reported that the Mi Flash Tool ends the flashing process and displays the following error when using the ‘clean all’ and ‘save user data’ options:

error:Not catch checkpoint (\$fastboot -s .*lock), flash is not done

Mi Flash Tool Error: 'Not catch checkpoint, flash is not done'

This error is caused because the tool verifies if the device’s bootloader has been locked or not. Since you used the ‘clean all’ or ‘save user data’ option, the bootloader is not locked and the error is shown. This is a problem with the tool itself and is nothing to be worried about since the verification takes place after the flash is fully complete.

To fix this error, click the ‘Configuration’ button in Mi Flash Tool and select ‘MiFlash Configuration’. Then delete the ‘\$fastboot -s .* lock‘ text from the ‘CheckPoint’ field and click ‘Ok’.

Fix 'Not catch checkpoint, flash is not done' error in Mi Flash Tool

After doing this, you can re-attempt the flash and the error will not appear again.

Wrapping Up

Installing MIUI Fastboot ROM on Xiaomi, Redmi, Poco devices can be used for various purposes. You could use it to upgrade your phone’s software by manually installing the latest MIUI updates. It can also be used to unbrick a device from a bricked state. Furthermore, you can use it to restore the stock MIUI firmware after flashing a custom ROM, a custom recovery like TWRP, or rooting.

Note: With the introduction of Xiaomi’s Anti-rollback Protection, it is not advised to use Fastboot ROMs to downgrade your device to an older Android version.

If you’re going to attempt this, make sure that the rollback index of the downloaded ROM matches with the rollback index of the MIUI firmware currently installed on your device.

More info: Everything about Xiaomi’s Anti-Rollback Protection

Installing MIUI Fastboot ROM on a Linux/macOS Computer

Mi Flash is Windows-only software. If you’re using a Linux or macOS computer, you can still flash the MIUI Fastboot ROM manually. To do this, you will first need to download and install the Android SDK platform-tools on your computer.

Once that is done, you can follow steps 1-to-3 above and launch the Terminal inside the working directory (the folder where the Fastboot ROM is extracted). Finally, issue the following command in the Terminal depending on what type of flash you wish to perform.

  • Flash the ROM and erase all user data:
  • Flash the ROM and preserve/save all user data:
  • Flash the ROM, erase all user data, and lock the bootloader:

So by now, you have learned what an MIUI Fastboot ROM is, its significance, how to install it using Mi Flash Tool, and also a few tips to install it on a Linux/macOS computer. If you have any questions or find yourself stuck anywhere while performing the instructions, let us know.


  1. If it can help, I faced an issue regarding path length.

    I unzipped the images under `C:\Perso\mi9tpro\raphael_eea_global_images_V12.0.4.0.QFKEUXM_20210115.0000.00_10.0_eea_c5290ae477\raphael_eea_global_images_V12.0.4.0.QFKEUXM_20210115.0000.00_10.0_eea_c5290ae477\raphael_eea_global_images_V12.0.4.0.QFKEUXM_20210115.0000.00_10.0_eea` folder, wich led to flash tools went to success state in less than a second.

    Obviously, nothing was done.

    Reducing the path length helped to fix

    1. I remember facing the same problem a few years ago with the Redmi Note 4 as well. I just renamed the whole folder to something very simple like “ROM”.

      Thank you for bringing this to my notice, Steve. I will add this information to the post.

  2. Hello Dhananjay,
    I’m trying to flash the ROM from Fastboot, but when I hit refresh button, my device gets listed but on phone the fastboot screen is gone and it says press any key to shutdown. Then when I hit flash, my device gets removed from the list. Any solution for this? I’m using MIUI EU custom rom and I need to go back to Official MIUI Global rom.

    1. Hi.
      I have a redmi 9t. After the phone rebooted to update itself, it became dead and not powering on. recovery and fastboot dont work and the bootloader is of course LOCKED. The miflsah app recognizes the device and the Qualcomm device is shown in the device manager. Can I flash and revive my phone? It is a 1-month-old phone!!

    2. Reza, while I initially assumed your Redmi 9T is bricked, but I think that it just might be stuck in EDL mode.

      The Mi Flash Tool and Windows’s Device Manager should be identifying your device as “Qualcomm HS-QDLoader 9008“, which indicates your phone is in Emergency Download (EDL) Mode.

      Try the following and check if your phone boots into the OS: Disconnect the phone from the computer. Then press and hold the Volume Down and Power keys simultaneously for 10-15 seconds. See if it reboots or enters Fastboot Mode (the Mi bunny screen).

  3. Hello Dhananjay,
    Thanks for this very useful article.
    After the flash, could you explain more on how to lock the bootloader using the ‘fastboot flashing lock‘ command? Where to insert this ‘fastboot flashing lock‘ command? On the phone itself or using mi flash tool on the pc?
    If I flash with save user data option, will the ‘fastboot flashing lock‘ command erase my user data as well?

    1. Hi William, yes, you could either use the fastboot flashing lock command or use the Flash All and Lock option in Mi Flash. The script included in the tool just executes the same command for you.

      If you choose to do it manually, you have to execute the command through the command-line (PowerShell/Command Prompt) from your computer.

      As for the data, if you choose the ‘Save User Data’ option, the tool will simply flash the fastboot ROM. It will not relock the bootloader.

      Just so you know, relocking the bootloader WILL ERASE ALL THE DATA. This is mandatory.

    2. Hi Dhananjay,

      Thank you for the reply. I’m having a trouble on not able to turn on my phone. It keep appear/load with mi logo only. There is a new system update pending to install on my phone but I did not choose to install it. But when I reboot my phone, it appear mi logo and can’t access to my phone. I suspect the phone has auto update the new system file (I think it is OTA update file) when the phone was on a very low battery level, so the update crashed and cause the mi logo problem occurred. I tried to boot into recovery mode but it did not show at all, but fastboot mode was able to turn on. Is there a way to get back into recovery mode without flash my phone?

    3. Could you please share the device name? It would allow me to provide you with more precise steps to recover it.

      One more thing, is the bootloader on your phone unlocked?

    4. Hello Dhananjay,

      My devices is Xiaomi Mi Max 2, I do not know bootloader is lock or not, I did not change any setting on this bootloader.

    5. I used command and checked, it showed (bootloader) device unlocked: false , (bootloader) device critical unlocked: false , is this means bootloader is lock, right?

    6. Yes, that means the bootloader is locked.

      Since the official Mi Recovery doesn’t offer installing updates anymore, that route is not available as well.

      This would bring you down to only one option, that is to try performing a factory reset via the stock recovery. And I believe that’s exactly where you’re stuck.

      Have you tried holding the Volume Up + Power keys together while the phone is fully turned off? That’s the key combination to enter Recovery Mode. Were you using the same one before?

  4. Good day Dhananjay,

    Please I installed TWRP and tried installing an OTA normally which failed. Repeated and tried to install with TWRP but I couldn’t see the OTA file cause of decryption issues.
    I installed the stock recovery but it also still failed to install after stopping at 1%. I have also tried orange fox but it doesn’t work, Is it the OTA file that could have issues. Do I need to wipe system cache partition or flash fastboot ROM using this your procedure?
    Please help, I’m desperate

    1. Kainy, there could be several factors that could weigh in when it comes down to OTA updates and TWRP/Root.

      To better understand your case, please let me know if you flash the OTA (Recovery ROM) via the Updater or TWRP recovery?

    1. Hi Amit, does this happen when you click “Refresh” in the Mi Flash tool’s window?

  5. Hi Bro,, My Redmi Note 5 can’t revert back to MIUI 11 after Flashing Custom Rom from MIUI 11 too..
    it’s not giving any error message.. the Elapse Time always 0s.. but it succeed.. and still no rom installed..
    Can u help me

    1. Hi. What happens when you try booting your Note 5 after installing the fastboot image?


      Your bootloader is locked……
      First unlock that…. 🙂

  6. When I press the flash button, my device disappear from miflash list. No error whatsoever, I noticed under ID column, mine is stated as 0 instead of 1 like in your picture.

    I hv tried run as administrator, and bootloader is unlocked.

    1. Hi Seira. The device ID doesn’t matter here. The important part is that your phone must be detected by the MiFlash tool. That begs the question, which device are you trying this on?

      When you click on the ‘Flash’ button, is your phone in Fastboot Mode and connected to the PC?

  7. Dobrý den mohu ze zeptat na mm xiaomi se mi objevil zámek a vůbec to neumím odblokovat jak se to dělá . To číslo co jsem měl už nemám tak vůbec nevím co mám dělat … Jak to odblokovat

    1. Hi Sebastian, could you please post your comment in English? I tried translating too, but couldn’t figure out exactly what you’re trying to ask.

  8. I have no OS installed in my Redmi Note 4 Mido. Will this tutorial flash MIUI too or will it just flash the firmware?

    1. Hi Utkarsh. MIUI is the firmware itself. So yes, it will work. However, your phone’s bootloader must be unlocked in order to use MiFlash tool.

    1. Hi Kaushik. Yes, of course there is. Which device are you on and which MIUI version were you last using?

  9. Thanks for this very useful article! It really helped me a lot. I just revived my bricked Xiaomi MI 8 SE. Lost all my pics & apps but I do have a backup. Phew!
    Guys, make sure to un-check “clean all and lock” – it’ll lock your bootloader & you won’t be able to flash MIUI with miflashtool (unless you go through the painful bootloader unlocking process all over again)
    Lots of people have made that mistake & they’re struggling with this issue.

    1. Thank you, Evan, for sharing your experience with the rest of the users! I am glad you were able to successfully flash the firmware and more importantly, had the data backed up, which is what we mention in each and every tutorial we write.

  10. Thank you for the clear tutorial! I am wondering if flashing an OTA will re-lock an unlocked Bootloader or wipe any internal storage? I am in process of updating from MIUI Stable Global to Stable Global

    1. Flashing the OTA does not affect the existing data and neither the bootloader lock status.

  11. Hello Dhanajay
    Very Thanks for such a helpful article
    I would like to ask you how I can install Xposed Module without bricking My Redmi Note 5 Pro{MEI7S}?


    1. Hi Manish, in order to flash Fastboot ROM using Mi Flash, your phone’s bootloader needs to be unlocked.

  12. Hello Dhananjay,

    thank you very much for this guide. May i put a question? Is this method applicable for Xiaomi Mi A1 ?
    have a good day,


    1. Hello,

      The process is the same for the Mi A1. Being based on the Android One program, the file download is not present in that list. You can find the latest one here.

      Hope that helps.

Leave a Reply

Your email address will not be published. Required fields are marked *