Xiaomi Mi5
Mi
This device is locked
In this article, weโll look at all the possible Mi5 bricking scenarios, from mild failure after a failed upgrade to severe damage to the boot partition. Youโll learn how to identify the type of problem, what tools youโll need, and why standard methods (like hard reset) often donโt work. And most importantly, get step-by-step instructions with illustrations and commands that will bring your Mi5 back to life.
โ ๏ธ Warning: Rebuilding a brick always carries risks.Mistakes can lead to irreversible loss IMEI damage to the eMMC module. If you are not sure about your skills, contact a specialist with equipment for the JTAG.
How to determine the type of โbrickโ on Xiaomi Mi5
Before you start repairing, you need to understand what kind of failure you are facing, and the choice of repair method depends on it.
Xiaomi Mi5 can be โbrickedโ in different ways:
- ๐ Soft-brick: The device is turned on but got stuck on the Mi logo, reboots cyclically or issues a No command error in recovery mode.
- ๐ Blocked bootloader: When you try to flash custom firmware, the inscription This device is locked or Anti-rollback check fail appears.
- ๐ Hard-brick: The smartphone doesnโt respond to buttons, doesnโt charge, isnโt determined by the computer (even as Qualcomm). HS-USB QDLoader 9008).
- ๐ฑ Partial failure: only individual functions are working (e.g. vibration when connected to charging, but the screen is black).
The easiest way to diagnose is to connect the Mi5 to a PC and check if it is detected in Device Manager:
| Type "brick" | Conduct of the device | Definition in Device Manager | Method of recovery |
|---|---|---|---|
| Soft brick | Hanging on the logo, cyclical reboot | Android Bootloader Interface (Fastboot) | Firmware via Fastboot or reset via Recovery |
| Locked loader | Error This device is locked | Android Bootloader Interface | Unlocking the bootloader + firmware |
| Hard brick. | Does not respond to buttons, does not charge | Qualcomm HS-USB QDLoader 9008 (EDL) | Firmware via EDL or JTAG |
| Boot section damaged | Black screen, but vibration is | Not defined as or as Unknown Device | Recovery via TestPoint or EDL |
If your Mi5 is not even defined as a QDLoader 9008, it could mean hardware damage (e.g., a memory chip has burned out), in which case you can not do without soldering equipment.
Preparation for Recovery: What You Will Need
To successfully restore the Xiaomi Mi5, prepare in advance:
- ๐ป Computer on Windows 7/10/11 (64-bit). MacOS or Linux may have problems with Qualcomm drivers.
- ๐ Original. USB-The cable (better the one that came with the kit) is often not transmitting data in a low-cost mode. Fastboot/EDL.
- ๐ Charger on 2A (to maintain charge during firmware).
- ๐ Firmware for Mi5 (The version should match your model: gemini for global or capricorn for Chinese).
- ๐ ๏ธ Tools: Mi Unlock Tool (to unlock the bootloader), Mi Flash Pro (for firmware in the app) EDL), ADB & Fastboot (official from Google).
โ ๏ธ Warning: If you plan to unlock the bootloader, link your Mi Account to the device before it becomes a brick!
Where do I download the firmware?
The official firmware for Mi5 can be found on the following websites:
- ๐ Xiaomiโs official website (select the Stable version for your region).
- ๐ง Xiaomi Firmware Updater (both stable and development builds are available here).
- ๐ฆ XDA Developers (Castom firmware like LineageOS or Pixel Experience).
๐น Important: Never flash firmware from another model (for example, from a different model) Mi5s) โ This will lead to a hard โbrickยป!
โ๏ธ Preparation of the workplace
Unlock the bootloader on Xiaomi Mi5
If your Mi5 is running this device is locked or anti-rollback check fail, it means the bootloader is locked. You can't flash custom firmware or restore the device without unlocking it.
๐น Conditions for unlocking:
- The device must be linked to your Mi Account (you can only do this on your work phone!).
- You need to wait 72โ168 hours after the peg (depending on Xiaomiโs policy).
- Use the official Mi Unlock Tool.
Step-by-step:
- Download and install the Mi Unlock Tool.
- Run the program on behalf of the administrator and log in under the same Mi Account that the phone is linked to.
- Put Mi5 to Fastboot mode: (a) Turn off the phone. (b) Press the power button + volume down for 10 seconds. (c) Connect to the PC - the Mi Bunny logo should appear with the words Fastboot.
- In Mi Unlock Tool, press Unlock and wait for the process to complete (usually takes 1-2 minutes).
โ ๏ธ Warning: If the unlocking fails, check:
- ๐ Is your Mi Account linked to your device (Settings) โ Mi Account โ Devices).
- โณ Is it 72 hours since the tying.
- ๐ Is the original cable and port used? USB 2.0 (not) USB 3.0!).
๐น What to do if the unlocking fails?
If the Mi Unlock Tool is a Couldn't unlock error or Current account is different from the account info on the device, try:
- ๐ Reassign your account on another Xiaomi device.
- ๐ง Use another Mi Account (sometimes changing region to China helps in your account settings).
- ๐ Wait 24-48 hours (sometimes the timer is reset).
๐ก
If the bootloader is not unlocked through the official tool, try alternative methods using fastboot oem unlock-go (does not work on all firmware versions).
Recovery through Fastboot: step-by-step instructions
If the bootloader is unlocked (or you are restoring the official firmware), the most reliable way to bring the Mi5 back to life is through Fastboot.
What you need:
- ๐ Firmware in.tgz or.zip format (for example, gemini_global_images_V12.0.2.0.QAAMIXM_20210310.0000.00_10.0_global.zip).
- ๐ฅ๏ธ Established ADB & Fastboot (add them to environment variables or use the full path to fastboot.exe).
- ๐ Phone in Fastboot mode (see previous section).
Instructions:
- Unpack the firmware in a folder (for example, C:\Mi5_firmware\).
- Open the command line (Win) + R โ enter cmd) and go to the firmware folder: cd C:\Mi5_firmware\
- Connect your phone in Fastboot mode and check for it: fastboot devices (should appear serial number of the device).
- Run the firmware: fastboot flash all or (if the firmware files have a prefix): fastboot flash all -w (key -w clears the user's data).
- Wait until it is completed (usually 5-10 minutes). The phone will automatically restart.
๐น Frequent mistakes and their solutions:
| Mistake. | Reason. | Decision |
|---|---|---|
| fastboot: error: Failed to boot into fastbootd | Incompatible version of fastboot | Use fastboot.exe from Googleโs platform-tools package |
| FAILED (remote: 'Partition not found') | The section table is damaged. | Select partition.gpt separately: fastboot flash partition partition.gpt |
| Waiting for any device | Drivers are not installed or the cable is faulty | Reinstall Android Bootloader Interface Drivers Manually |
โ ๏ธ Note: If after firmware through Fastboot the phone is stuck on the Mi logo, try it:
- Switch to boot: fastboot flash boot boot.img
- Reset your settings via Fastboot: fastboot -w
๐ก
Fastboot firmware is the safest method for soft bricks, which doesnโt require disassembling the phone and works even when system or data parts are damaged.
EDL (9008): When Fastboot doesn't help
If the Mi5 is not detected in Fastboot (for example, black screen and no reaction), then the last chance is the firmware through Emergency Download Mode (EDL) mode. In this mode, the phone connects as a Qualcomm HS-USB QDLoader 9008 and allows you to flash even damaged partitions.
โ ๏ธ Attention: Firmware through EDL erase IMEI and the serial number, unless you use special patches, and after recovery, you may need to restore it. IMEI via the engineering menu (#4636##).
How to log into EDL:
- ๐ง Method 1 (software): If the phone is responsive, do: adb reboot edl
- ๐จ Method 2 (TestPoint): If the phone doesn't turn on: Turn off Mi5 (If it's not turned off, remove the back cover (need a mediator or a plastic shoulder blade) and find TestPoint (two contact points next to the battery, signed). EDL or TP). Close them with tweezers or paper clips and plug them in USB-Cable to PC. Where is TestPoint on Mi5?On the Xiaomi motherboard Mi5 TestPoint is located next to the battery connector, and these are two small metal dots, often marked with a white circle, that you close on the phone that's turned off, holding the circuit for 5-10 seconds until the QDLoader 9008 device appears in Device Manager.
- Restore IMEI via the engineering menu: Enter code ##4636##. Go to Phone Information โ Show menu. Select IMEI Repair and enter both IMEIs (for SIM1 and SIM2 slots). Reboot the phone.
๐ก
Recovery IMEI and MAC-Addresses are a critical step after the firmware EDL. Without this, the phone will not work fully on the network and connect to Wi-Fi.
When to contact the service: signs of hardware problems
Not all bricks can be cured programmatically. If after all the manipulations Xiaomi Mi5 still does not turn on, it may be a problem in the hardware.
Signs of hardware malfunctions:
- ๐ The phone does not charge (even when connected to charging there is no indication).
- ๐ฅ When connecting to the PC, clicks are heard (short circuit on the board).
- ๐ก๏ธ The phone gets very hot even when itโs off.
- ๐ Not defined in Fastboot or in EDL, Not like Unknown Device.
- ๐ฑ The screen remains black, but the phone vibrates when charging.