How to Enable Fastboot Mode and Install Xiaomi via USB

Modern Xiaomi smartphones provide users with ample customization options, but sometimes standard upgrade methods stop working. Situations when the device is โ€œbrickedโ€ or hangs on the logo require deeper intervention in the system. In such cases, it becomes relevant to install the operating system through USB-cable, which allows you to restore the functionality of the gadget even with a broken touch screen.

The process of firmware through a computer is radically different from an air-to-air update (OTA). If you are faced with the need to bring your phone back to life or roll back to a more stable version of MIUI, you will need not only special software, but also an understanding of the physical modes of operation of the bootloader. In this article, we will discuss all the nuances of preparation and execution of the procedure.

It is important to understand that any manipulation of the system partition carries risks. Interrupting the process of writing data into memory can lead to a complete loss of warranty and the inability to turn on the device without soldering the programmer.

Preparation of tools and drivers for work

Before you connect the cable, you need to make sure that the computer has all the necessary components installed. USB-A cable that can transmit data, not just charge the battery. Cheap โ€œcharging onlyโ€ cables often cause connection errors.

A key element of success are ADB and Fastboot drivers. Without them, Windows will not be able to correctly identify a smartphone in a special mode. Most often they are part of Googleโ€™s SDK Platform Tools platform, but Xiaomi devices may also require specific Qualcomm or MediaTek drivers that are installed automatically along with the Mi Flash utility.

โ˜‘๏ธ Pre-testing

Done: 0 / 4

Be sure to check the battery power of the device. Although the process is from USB, power surges or accidental disconnection of the cable can be fatal. The optimal level of charge is above 60%, which will provide enough time buffer to complete all operations.

Selecting Connection Mode: Fastboot or Recovery

Xiaomi devices use two main boot modes to install firmware via USB. The first and most commonly used for full flashing is Fastboot. In this mode, the phone takes low-level commands, allowing you to completely overwrite memory parts, including system files, bootloader and recovery.

The second mode is Recovery, which is more suitable for resetting settings or installing updates through the file selection menu, but less flexible for fully installing the system image from the computer. To work with the Mi Flash Tool, we need the Fastboot mode, which on the phone screen usually appears as an image of a rabbit repairing an android, or the inscription "FASTBOOT" on a black background.

โš ๏ธ Note: Logining to Fastboot mode on a Locked Bootloader only allows you to view device information. To write a new firmware, unlocking the bootloader through the Mi Unlock service is mandatory!

The difference between modes is critical. If you try to flash a Fastboot ROM image through Recovery mode, the utility will simply not see the device or give you a compatibility error. Conversely, Recovery ROM firmware is not designed to be used with the Mi Flash Tool in fast boot mode.

Instructions: how to turn on Fastboot mode on Xiaomi

The process of getting your smartphone to the right mode depends on its current state: it is on or off. If the device is working normally and you can get into the menu, the easiest way is to use the settings. Go to Settings โ†’ About the phone and several times click on the version of MIUI to activate the developer menu.

Then, in the advanced settings, find bootloader or USB debugging, although this is not always necessary to log in to Fastboot. The most reliable method for a phone turned on is using the command line. Connect the device to your PC, open the terminal in the folder with ADB, and type in the command:

adb reboot bootloader

If the phone is turned off or not responding to the screen, use a key combination. Press the Volume Down button and, without letting go, plug it in. USB-Hold the button until the Fastboot logo or the image of the hare appears.

๐Ÿ“Š What boot mode are you using?
Fastboot (Hare)
Recovery
EDL (9008)
I don't know.

Some Android 11 and higher models may require debugging confirmation on the screen when you first connect. If the screen is black, try briefly pressing the power button to illuminate the display and confirm the request, then again press the volume down.

Installation of firmware through Mi Flash Tool

After successfully enabling Fastboot mode and connecting to your PC, run the Mi Flash Tool. The program must automatically identify the connected device by displaying its serial number in the list. If instead of the number you see an empty field or error, check the Windows Device Manager for unidentified devices.

The next step is to select a firmware file. Press the Select button and point the path to the unpacked firmware folder. Importantly, the path must not contain Cyrillic characters or spaces, otherwise the process may end in error, C:\ROM\.

At the bottom of the utility window, select flashing. For a clean installation without saving data, select the clean all option. This action will completely delete all user data, so back up important information in advance.

Firmware modeData retentionImplementation timeRecommendation
UpdateYes.Quickly.Update the version without resetting
Clean AllNo.Middle-AverageRecommended for changing the region
Clean All + LockNo.Middle-AverageOnly for global firmware

Press the Flash button and wait for the process to be completed. The progress indicator will be filled in green. Once installed successfully, the phone will automatically reboot and you will see the MI logo.

Solving common errors in firmware

One of the most common problems is the Miss matching image and device error. It occurs when you try to flash a firmware designed for another model, or when the firmware type (Fastboot/Recovery) does not match the selected mode. Always check the device code name (for example, davinci, cepheus) in the firmware file name.

Another common error is Flash error or connection timeout, which is often associated with poor quality. USB-A cable, a bad port on a computer motherboard, or an antivirus that blocks writing to memory. USB 2.0 instead of 3.0 and disable third-party software.

What to do if the phone is in a reboot cycle?
If your phone is constantly restarting after you have firmware, try pressing the power button for 15-20 seconds to force you to restart. If that doesn't work, run Wipe Data in Recovery mode or reflash the device with the Clean All option.

If the utility gives an error about the incompatibility of the bootloader, make sure that you do not try to flash Chinese firmware on the global device (or vice versa) without first changing the region of the Mi Account. Also check whether Bootloader is unlocked, if the firmware type requires it.

Data security and completion of work

After the system is successfully installed and the device is first booted, it is recommended to check the MIUI version and build number immediately. Make sure that all basic functions such as communication, Wi-Fi and camera work correctly. The first few minutes the phone can heat up - this is normal, as the application is optimized.

Remember to exit Fastboot mode if the phone hasnโ€™t restarted itself. Simply press the power button for 10-15 seconds until the device vibrates and starts booting. If you used the bootloader lock option, re-unlocking will require a 168-hour (7-day) wait.

๐Ÿ’ก

Take a photo of IMEI before firmware: Sometimes, after flashing or resetting, network certificates may be sent off. A photo of the sticker from the box or a screenshot of the *#06# code will help restore data through the service center.

Regularly backing up your Mi Cloud or locally on your computer will keep you safe from future data loss. Use only trusted firmware sources such as the official miui.com website or reputable developer forums.

๐Ÿ’ก

Successful firmware depends on 80% of quality USB-cables and drivers, and only 20% of the program activity.

Can I use Xiaomi without unlocking the bootloader?
Officially, no, to install Fastboot ROM via the Mi Flash Tool, the bootloader must be unlocked. However, you can upgrade through Recovery using firmware files with the.zip extension, but this only works if the current version of the system allows you to install a newer or the same version.
Will the warranty fly off after the firmware?
Unlocking the bootloader and installing custom firmware officially voids the manufacturerโ€™s warranty in many regions, and installing the official global firmware on the Chinese version may also raise questions at the service center, as it is a change in the software configuration of the device.
What is EDL (9008) and how to get in?
EDL (Emergency Download Mode) is Qualcomm's deep recovery mode used to rescue completely non-working devices, which usually requires opening the case and closing special contacts on the board (Test Point), although on older models a combination of buttons worked.
Why can't the Mi Flash Tool see the phone?
Check Device Manager: If the phone is defined as "QHSUSB_BULK" Or "Unknown Device," the drivers are not installed correctly. Try reinstalling the drivers manually, pointing the path to the folder with the drivers in the device properties.