Why the standard method doesnβt work and when you need a Fastboot
You try to connect Xiaomi to your computer for firmware, root rights or data recovery, but there is no Settings β USB Debugging on the phone? Or the phone is locked and the screen does not respond to touch? In such cases, the standard path through Developer Options is not available, and the only way out is to use Fastboot mode.
Fastboot is a low-level protocol that allows you to control your device via USB before Android boots. It activates when holding the Volume Down + Power button and gives you access to unlock the bootloader, flashing and, critically for us, enabling USB debugging bypassing the graphical interface. The method works on most Xiaomi, Redmi and POCO models (from Mi 8 2018 to Xiaomi 14 2026), but requires accuracy: the wrong command can lead to complete data loss or βbrickβ of the device.
This article provides step-by-step instructions with commands, a model compatibility table, risk warnings, and solutions to common errors (e.g., device unauthorized or no permissions), and how to check if debugging is enabled if the phone is unresponsive to a PC connection.
What you need: preparation of tools
Before you go to the commands, make sure you have everything you need, and without these components, the process will end up in error or, worse, damage the firmware.
- π USB-cable (preferably original from Xiaomi β cheap cables often donβt transfer data to Fastboot).
- π» Computer running Windows 10/11, macOS or Linux (Windows will require Mi Flash Tool drivers).
- π± Battery charge of at least 50% (at low charge, the device may shut down during the process).
- π§ ADB and Fastboot (utilities from Android) SDK Platform Tools, you can download from the official Google website).
- π Unlocked bootloader (if previously unblocked, you will need to link your Mi Account β more about this below).
Pay special attention to drivers. On Windows, there is often a problem when the system does not recognize the device in Fastboot mode.
- Download the Mi Flash Tool and install drivers from the driver folder.
- Open Device Manager, find Android Bootloader Interface (or a device with a yellow exclamation point).
- Update the driver manually by specifying the path to the folder with the Mi Flash Tool drivers.
π‘
If your computer doesnβt see Xiaomi in Fastboot, try another one. USB-Port (preferably 2.0) or disable all other port USB-Port conflicts are a common cause of failures.
Step 1: Enter Fastboot and check the connection
To enable USB debugging via Fastboot, you first need to load your phone into the appropriate mode, the procedure is different for working and "brick" (non-on) devices:
- π± Phone turns on, but no access to settings: turn off the device, then press Volume down + Power for 5-10 seconds until the Fastboot logo appears).
- π Phone doesn't respond to buttons: plug it into charging for 30 minutes, then try Volume Down combination + Nutrition + Loudness upwards (for some models, for example, POCO F3).
After you log in to Fastboot, connect Xiaomi to your computer. Open the command line (Windows) or terminal (macOS/Linux) in the folder with the platform-tools and execute the command:
fastboot devicesIf you see a serial number (e.g. 1234abcd fastboot) in the answer, connect.
- β List is empty: check cable, port USB, Drivers or try another computer.
- β οΈ "Waiting for device: Device not detected β restart your phone to Fastboot again.
- π "no permissions" (Linux/macOS): Follow sudo fastboot devices or set up udev rules.
How to Set Up udev for Fastboot on Linux
Step 2: Unlock the bootloader (if required)
On most Xiaomi models (except the Redmi Note 8 Pro, POCO X3 NFC and some others), an unlocked bootloader is required to change system settings through the Fastboot. If you haven't done this before, follow the instructions:
- Go to the Mi Unlock website and download the Mi Unlock Tool.
- Sign in to your Mi Account (it should be linked to your phone!).
- Connect your phone in Fastboot mode and launch the Mi Unlock Tool. Press Unlock.
- Wait for the SMS with the confirmation code (comes to the number associated with the account).
The unlocking process takes up to 72 hours (as per Xiaomiβs rules for new accounts), and if you see a message saying βCouldnβt unlock, try again after XX hoursβ wait until the time is set.
β οΈ Warning: Unlocking the bootloader erases all data from the device, including photos, contacts and apps. If the phone still turns on, back up via Mi PC Suite or adb backup (if debugging was enabled earlier).
| Xiaomi model | Do you need to unlock the bootloader? | Waiting time to unlock |
|---|---|---|
| Redmi Note 10/11/12 | Yes. | 72 Hours (new accounts) |
| POCO F3/F4/F5 | Yes. | 168 hours (for accounts under 30 days) |
| Xiaomi 12/13/14 | Yes. | 7 days (with SMS confirmation) |
| Redmi 9A/9C | No (exception) | β |
Step 3: Enable debugging over USB via Fastboot
When the bootloader is unlocked (or if your model doesn't require unlocking), you can start debugging. adb_enabled:
fastboot oem enable-adbIf the team is successful, you will see the answer:
...
OKAY [ 0.123s]
Finished. Total time: 0.123sHowever, on some firmware (especially MIUI 13/14), this command may not work. An alternative method is to temporarily download custom boot.img with debugging enabled:
Download stock firmware for your model from Xiaomi Firmware Updater |Extract boot.img file from firmware archive |Install Magisk utility for boot.img modification |Connect phone in Fastboot-->
Instructions for modification boot.img:
- Download Magisk and open boot.img in it.
- Enable Preserve AVB 2.0/dm-verity (important for MIUI 12+).
- Save the modified boot.img how magisk_patched.img.
- Download it to your phone with the command: fastboot flash boot magisk_patched.img
- Reboot the device: fastboot reboot
β οΈ Note: After modification boot.img The phone can be loaded longer than usual (up to the end of the day). 5 If the screen flashes or if the words "Orange State" appear, it is normal for a patched boot image.
π‘
If the debugging still doesnβt work after the reboot, check if the settings have reset. In some cases, you need to manually enable Developer Settings (7 times click on the Settings β About Phone Build Number).
Step 4: Checking the work of debugging over USB
After completing the commands, make sure that the debugging is actually activated. Connect the phone to your computer (already in normal mode, not Fastboot) and do:
adb devicesIf you get the serial number of a device with device status, it's a success. If you don't, check:
- π USB-Debugging in Settings: Even after Fastboot commands, you sometimes need to manually enable it in Developer Settings.
- π Authorization: A window should appear on the phone screen requesting trust in this computer.
- π± Data Transfer Mode: Select File Transfer (MTP) notice-curtain.
If adb devices show unauthorized, do:
adb kill-server
adb start-server
adb devicesThen turn off and reconnect the phone, MIUI 14 on Xiaomi 13) may require resetting network settings (Settings) β SIM-maps and networks β Resetting network settings).
Solving typical mistakes
Even with the correct following of the instructions, there can be failures, and below are the most common errors and ways to correct them.
| Mistake. | Reason. | Decision |
|---|---|---|
| fastboot: error: cannot load'magisk_patched.img' | File not found or damaged | Check the path to the file or download boot.img again |
| FAILED (remote:'Flashing is not allowed in Lock State') | bootloader locked | Unlock it with the Mi Unlock Tool |
| adb: device unauthorized | Confidence in the computer is not confirmed | On the phone, click Allow in the authorization window |
| fastboot: error: Command not allowed | Team blocked by manufacturer | Use an alternative method with boot.img |
If after all the manipulations debugging and did not work, try:
- Switching to a global version of MIUI (not Chinese) is less restrictive.
- Use it. ADB over Wi-Fi (if) USB not working: adb tcpip 5555 adb connect IP_phone address:5555
- Contact the Xiaomi service center (if the device is warranty).