Installing custom software, fastboot firmware, or getting root rights on Xiaomi smartphones starts with one mandatory step: unlocking the bootloader. Without this action, the system simply wonβt allow changes to system partitions by issuing a Device is locked error. But the process is far from as simple as it seems: Xiaomi has imposed strict restrictions, including binding to a Mi Account account, a mandatory wait of up to 168 hours and checking for the originality of the device.
In this article, we will discuss all the current ways to unlock the bootloader (including bypassing restrictions for older models), dwell on typical errors (for example, Couldnβt unlock 86006 or 10008), and give a checklist for preparing the device. Particular attention will be paid to the new rules of 2026, which affected models on the platform HyperOS and smartphones with chipsets Snapdragon 8 Gen 3. If you plan to flash Xiaomi 14 Ultra, Redmi Note 13 Pro+ or POCO F6 β This guide is for you.
What is Xiaomi bootloader and why you need to unlock it
A bootloader is a low-level software that runs to the operating system and checks firmware integrity. On Xiaomi smartphones, it is locked by default to protect against:
- π Unofficial firmware installations (e.g. LineageOS or Pixel Experience)
- π‘οΈ Unauthorized access to system partitions (including /system and /vendor)
- π Data recovery after reset via fastboot
- π± Getting root rights (Magisk, SuperSU)
Without unlocking, you will not be able to:
- π₯ Flash the device through the Mi Flash Tool (Flash not allowed in locked state)
- π§ Install custom Recovery (TWRP, OrangeFox)
- π Restore backup via adb sideload in fastboot mode
- πΆ Change the firmware region (e.g. from Global to EEA china)
However, unlocking also has risks:
β οΈ Warning: After unlocking the loader is reset DRM (Multimedia encryption, which can lead to quality loss in Netflix, Disney+ and banking applications. On some models (Xiaomi) 13T, Redmi K60) It also disables Widevine support. L1 (HD-content in streaming services).
Unlocking with Mi Unlock Tool
The only method supported by Xiaomi is the use of the Mi Unlock Tool utility. The process includes 4 key steps:
- Linking the device to your Mi Account.
- 168 hours (7 days) for new accounts.
- Transfer of the smartphone to fastboot mode.
- Connect to the PC and start unlocking.
Detailed instructions:
Step 1: Preparation of the device
βοΈ Xiaomi Preparing for Unblocking
1. Go to Settings. β The phone. β Version. MIUI Tap 7 times to activate the developer mode.
2. Return to Settings β Additional β For Developers and Enable:
- π Debugging by USB (USB debugging)
- π Unlocking OEM (OEM unlocking)
- πΆ Allow unlocking of the bootloader (Mi Unlock status)
3. Link your Mi Account to your device:
- π± Go to Settings. β Xiaomi account.
- π Click Link your account to your device (Bind Mi Account).
- π Reboot your smartphone.
4. Connect the device to the PC and confirm the debugging permission for USB (will appear a request on the screen of the smartphone).
Step 2: Installation of Mi Unlock Tool
1. Download the latest version of the Mi Unlock Tool from the official Xiaomi website (Windows only).
2. Unpack the archive and launch it. miflash_unlock.exe on behalf of the administrator.
3. log in under the same Mi Account as on your smartphone.
What if the Mi Unlock Tool canβt see the device?
Step 3: Waiting 168 hours
Since 2021, Xiaomi has introduced a mandatory wait for new accounts:
- π 168 hours (7 days) β for accounts that first link a device.
- π 72 hours (3 days) if your account has already unlocked other devices.
- β³ 0 hours for accounts with confirmed developer status (development.mi.com application required).
Check the waiting status:
- Connect your smartphone to your PC in fastboot mode (clip Volume down + Power when the phone is off).
- In Mi Unlock Tool, click Check and the program will show the remaining time.
β οΈ Warning: If you reset your settings or change your account while you wait, the timer will reset! VPN Change of region in your account β this can lead to blocking the unlock for 30 days.
Step 4: Unlocking the bootloader
After the time has elapsed:
- Transfer the smartphone to fastboot mode (clip Volume down + Power).
- Connect to your PC and in Mi Unlock Tool, press Unlock.
- Confirm the action on the smartphone screen (Volume Up button).
- Wait for the Unlocked Success message (usually takes a lot of time) 10-30 seconds).
The device will automatically reset to factory settings! All data will be deleted.
π‘
The official method through the Mi Unlock Tool is the only secure method, but requires account binding and waiting. EDL) It can lead to blocking. IMEI.
Typical Unlocking Errors and Their Solutions
Even when following the instructions, users often encounter errors.
| Error code | Reason. | Decision |
|---|---|---|
| 86006 | Waiting time has not expired (168/72 hour) | Wait until the specified time or use an account with a confirmed developer status |
| 10008 | The device is not linked to your Mi Account | Re-link the account in the settings and reboot the smartphone |
| 20031 | Disparity between the account and firmware region | Change your account region to Global or click the relevant region |
| Couldn't unlock (no code) | Problems with drivers or USB-connection | Reinstall Qualcomm drivers, try another cable/port |
| Device is not supported | The device does not support unlocking (e.g. Xiaomi Mi). A1/A2) | Use alternative methods (EDL, test-point) |
If you see this device is locked by Mi Cloud, it means that:
- π The device was stolen or blocked by a previous owner through Find Device.
- π§ Mi Account has been deleted or blocked for violating the rules.
- π You are trying to unlock your smartphone after being reset via Mi Cloud (requires an original account from the previous owner).
In such cases, official unlocking is not possible. EDL) may help, but require soldering work or specialized equipment.
1. Delete the Mi Account on the device.
2. Reboot.
3. Re-add the same account and link it in the settings.-->
Alternative Unlocking Methods (for Power Users)
If the official method does not work (for example, due to error 20031 or account lock), alternative methods can be tried.
- π¨ Brick of the device (complete inoperability).
- π΅ Poose. IMEI or serial number.
- π Blocking of Mi Account Account.
Letβs look at the two most common methods:
Method 1: Unlocking with EDL (Emergency Download Mode)
Regime. EDL It allows you to flash the device directly through the Qualcomm port without checking the bootloader. Suitable for models on Snapdragon chipsets (for example, Xiaomi 12 Pro, POCO F4 GT).
What you need:
- π₯οΈ Windows PC and Qualcomm Drivers HS-USB QDLoader 9008.
- π Cable USB Type-C (preferably original).
- π₯ Firmware in.mbn format (you can download from Xiaomi Firmware Updater).
- π§ Mi Flash Tool or QFil.
Instructions:
- Put the device in mode EDL: For most models: Press the Volume up + Loudness down + Power on the device turned off. For some (for example, Redmi Note 10 Pro): requires the closure of test points (need to disassemble the device).
Qualcomm HS-USB QDLoader 9008
Mi Flash Tool
Flash
Wait until the end (usually 5-10 minutes).
β οΈ Attention: Firmware through EDL erases all data, including IMEI and SN. After the procedure, you will need to restore them through the engineering menu (#4636##) or specialized utilities (for example, SN Writer Tool).
Method 2: Use of vulnerabilities (for older models)
Some devices on the MIUI 10-12 They have vulnerabilities that can bypass the loader check:
- π± Xiaomi Mi 8, Mi 9, Redmi Note 7/8 Pro - vulnerability in fastboot oem unlock.
- π± POCO F1 β Circuit unlock_go.
- π± Redmi 4X, Redmi 5 - Unlocking through the TWRP wait.
Example POCO F1:
fastboot oem unlock_go
fastboot flash unlock /path/to/unlock_file.img
fastboot oem unlockHowever, with the release of HyperOS and security updates, most of the vulnerabilities were closed. 13/14 series, Redmi Note 12/13) These methods don't work.
How to check the status of the loader
Before you start unlocking, make sure the bootloader is indeed locked. There are three ways to check:
Method 1: Through fastboot
1. Transfer the device to fastboot mode (clip Volume down) + Nutrition).
2. Connect to the PC and execute the command:
fastboot oem device-info3. Find the lines:
- Device unlocked: false β the bootloader is locked.
- Device unlocked: true - the bootloader is unlocked.
Method 2: Through the MIUI settings
1. Go to Settings β Additional β For developers.
2. Find the Mi Unlock status (Mi Unlock status) item.
3. If it says Locked, the bootloader is locked.
Method 3: Through ADB
1. Connect the device to the PC with USB debugging enabled.
2. execute the command:
adb shell getprop ro.boot.verifiedbootstateResults:
- Orange - the bootloader is unlocked.
- green - the loader is locked.
If all three methods show different results, it is likely that the device has an unofficial firmware with altered statuses. MIUI via Mi Flash Tool.
What to do after unlocking the loader
After successful unlocking, you can:
- π₯ Install TWRP ox-recaveri.
- π§ Switch custom firmware (LineageOS, Pixel Experience, crDroid).
- π οΈ Get root rights through Magisk.
- π Recover the backup via adb sideload.
However, there are limitations:
- π« Lack of support OTA-Updates (you will have to hand-write them).
- π Widevine will drop L1 (no HD Netflix, Disney.+).
- π΅ Banking applications may not work (due to lack of SafetyNet).
- π Increased battery consumption (due to modified cores and schedulers).
To minimize the problems:
- Install Magisk and activate the modules:
Widevine L1
MIUI EU
Xiaomi.eu
TWRP
dm-verity
forceencrypt
If the device does not turn on after unlocking or is getting stuck on the MI logo, try:
- π Swipe the original firmware through the Mi Flash Tool (select clean all).
- π₯ Install TWRP Make format data (eradicates all data!).
- π§ Check file integrity boot.img (It's probably damaged).