The bootloader on Xiaomi smartphones is a software component that controls the launch of the operating system. It is blocked by the manufacturer by default, which limits the ability of users: you can not install custom software, get root rights or flash alternative firmware. Unlocking the bootloader opens up access to advanced functions, but requires caution - wrong actions can turn the device into a "brick".
In this article, you will find the current instructions for 2026, which is suitable for most models Xiaomi, Redmi and other models. POCO (From Mi 5 to Xiaomi 14 Ultra, we will break down the official method through the Mi Unlock Tool, alternative ways for older devices, and also tell you how to avoid typical errors (for example, Couldn't unlock or Account not bound). MIUI, Install LineageOS or just want more control over your gadget β this guide is for you.
Why Xiaomi is blocking the bootloader and why unlock it
The manufacturer blocks the bootloader for three key reasons:
- π Security: Protection against the installation of malware or unofficial firmware that may contain backdoors.
- π± Stability: Preventing failures due to incompatible modifications (e.g. custom cores).
- π Controlling the ecosystem: Xiaomi aims to keep users in its ecosystem (MIUI, HyperOS, limiting the installation of third-party OS.
However, unlocking the bootloader gives users a number of advantages:
- π Possibility of installing custom firmware (Pixel Experience, LineageOS, ArrowOS).
- π οΈ Getting root rights to deep-set up the system (for example, removing embedded applications).
- π§ Installation of modified Recovery (TWRP, OrangeFox) for backup and recovery.
- π‘ Optimizing performance through the core (FrancoKernel, Kiriskernel).
β οΈ Warning: Unlocking the bootloader resets the device to factory settings - all data (photos, contacts, messages) will be deleted. Be sure to back up through Settings β Google β Backup or Mi Cloud Backup.
It is important to understand that once unlocked, the device warranty may be cancelled (depending on the region and service center policy), however, in most cases, the bootloader can be re-locked, returning the device to its original state.
Preparation of the device: what to do before unlocking
Before starting the process, make sure that all the preliminary steps are followed. Skipping at least one item can lead to errors such as Couldn't verify device or Current account is different from the account info on the device.
Linking your Mi Account to your device
Enable USB debugging and OEM unlocking
Install Mi Unlock Tool on PC
Download the official drivers Xiaomi
Create a backup copy of the data
Charge your phone at least 60%
-->
Letβs look at each item in more detail:
1. Linking the Mi Account to the device
This is the most critical step. Without a tied Mi Account, you can't unlock it.
- Go to Settings β Xiaomi Account and log in (if not authorized).
- In the same menu, find Mi Cloud and enable synchronization.
- Return to Settings β About Phone β MIUI version and click on it 7 times to activate the developer mode.
- Now go to Settings β Additional β For developers and enable:
β οΈ Note: On some devices (Xiaomi) 12T, Redmi Note 11 Pro+) Option Unlocking OEM It can be hidden. To activate it, first bind it. SIM-card to your Mi Account (insert the card, wait 24 hours and reboot the phone).
2. Installation of Mi Unlock Tool and drivers
The official unlock utility, Mi Unlock Tool, is only available for Windows, download it from Xiaomi's official website (version must be at least 5.5.224.30 for new devices).
- π₯οΈ Drivers. ADB: Download Platform Tools from Google.
- π Xiaomi Drivers: Install Mi PC Suite or download them manually from Xiaomiβs website.
After installing the drivers, connect the phone to the PC in File Transfer mode and check the device recognition command:
adb devicesIf you see the serial number of the phone in response, the drivers are installed correctly.
The official way to unlock through Mi Unlock Tool
This is the most reliable method approved by Xiaomi, but it requires waiting (usually 72-168 hours after an account is attached) and following the instructions strictly.
Step 1: Launch the Mi Unlock Tool
1. Unlock the file with the Mi Unlock Tool and open the file. miflash_unlock.exe on behalf of the administrator.
2. log in to the utility under the same Mi Account that is linked to the phone.
3. Connect the phone in Fastboot mode (to do this, turn off the device, then press Volume Down + Power before the Fastboot logo appears).
Step 2: Checking the Unblocking Status
Once you've connected, the utility should identify your device. If the serial number is Unknown, check:
- π Correct installation of drivers (try reinstalling them through Device Manager).
- π± Connection mode (should be Fastboot, not Recovery).
- π Restart the utility and phone.
If the device is recognized, click Unlock, the system will check if enough time has passed since the account was attached, if not, a message will appear:
Couldnβt unlock. Bind account and device in Mi Cloud first (waiting time: 168 hours)What to do if the waiting time is not reduced?
Step 3: Unlock and Reboot
After successful verification, press Unlock anyway (if a data reset warning appears). The process will take 10β30 seconds. Upon completion, the phone will automatically reboot to Fastboot with the bootloader unlocked.
Check the unblock status of the team:
fastboot oem device-infoThe answer should be Device unlocked: true.
π‘
If the phone doesn't turn on after unlocking or hangs on the MI logo, don't panic - that's OK. reset via fastboot erase userdata, then reboot the device with the command fastboot reboot.
Alternative ways to unlock (for older devices)
If the official method doesnβt work (e.g., on devices older than 2018 or with a damaged Mi Account), workarounds can be tried, which are risky and can lead to account locking or phone bricking.
Method 1: Use of the EDL-The system (for qualified users)
EDL (Emergency Download Mode) is a service mode that allows you to flash a device directly through a Qualcomm chip.
- π§ Authorized Xiaomi Account for EDL (You can buy it on forums like this. XDA or 4PDA).
- π» Mi Flash Pro or QFilm.
- π Firmware in.mbn format for your model.
Algorithm:
- Transfer the phone to EDL-Mode (close the Test Point contacts on the board or use the adb reboot edl command if debugging is enabled).
- Connect the device to a PC β Qualcomm HS-USB QDLoader 9008 should appear in Device Manager.
- Run Mi Flash Pro, select firmware and press Flash.
β οΈ Attention: Use EDL Without an authorized account, it can lead to hard-brick (irreparable damage), a method recommended only for devices that are no longer turned on.
Method 2: Unlocking via Fastboot (for devices up to 2017)
On older models (Mi 5, Redmi Note 3, Mi Max) sometimes the command is triggered:
fastboot oem unlock-goHowever, on new devices, it is blocked and will return the FAILED error (remote: oem unlock is not allowed).
If the command is triggered, the bootloader will be unlocked without waiting, but the warranty is voided and the Mi Account may be blocked for "unauthorized actions."
Typical errors and their solutions
Even when following the instructions, users often encounter errors, and here is a table of the most common problems and how to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| Couldnβt unlock. Bind account and device in Mi Cloud first | Mi Account is not tied to the device or has not been 72 hours. | Wait for the specified time, check sync in Mi Cloud. |
| Current account is different from the account info on the device | Mi Unlock Tool uses a different account than your phone. | To log out of the account in the utility, log in again with the same login as on the phone. |
| Mi Unlock Tool stuck at 50% or 99% | Driver problems or antivirus will block the process. | Disable the antivirus, reinstall drivers, try another USB-port. |
| Device is locked. Relocking is not allowed | Attempt to re-block the bootloader after unlocking. | On new devices, you can't re-block. On old ones, you can use fastboot oem lock. |
| Invalid token | Xiaomi server does not issue an unlock token. | Try it through. VPN (region of China, change IP-address. |
If your error is not listed in the table, check the Mi Unlock Tool log (file) unlock_log.txt in the folder with the utility) and look for a solution in the forums XDA Developers or 4PDA.
π‘
If the Mi Unlock Tool is 0x80070005, try running it in Windows 8 compatibility mode and on behalf of the administrator, and disabling Driver Signature Enforcement on Windows will also help (via Run β bcdedit /set nointegritychecks on).
What to do after unlocking the loader
Now your device is ready to install custom software. Here's what you can do next:
1. Installation of custom recaveri (TWRP)
The most popular backup and firmware tool is TWRP. To install it:
- Download the TWRP image for your model from the official website.
- Transfer your phone to Fastboot and execute the command:
fastboot flash recovery twrp-3.7.0_9-0-xiaomi.img(Replace the file name with the current one).
2. Getting root rights through Magisk
To obtain root:
- Download the latest version of Magisk from GitHub.
- Download your phone to TWRP and search Magisk.zip.
- Reset the device.
Check for root commands in the terminal:
suIf you receive an input invitation (#), the rights are obtained successfully.
3. Custom OS firmware
Popular firmware for Xiaomi:
- π± Pixel Experience β pure Android with Google Pixel features.
- π LineageOS is a stable and lightweight alternative MIUI.
- π― ArrowOS β Balance between productivity and customization.
Firmware instructions:
- Download firmware and GApps (if you need Google services).
- Download to TWRP and make a full backup (Backup section).
- Sweep through the firmware, then GApps and Magisk (if root is needed).
- Run Wipe β Format Data (required!).
π‘
After firmware custom OS may disappear IMEI or stop working NFC module. To avoid this, before firmware save the modem and nvram partitions via TWRP.
How to re-block the bootloader (if necessary)
If you decide to return the device to its original state (for example, for sale or warranty repair), the bootloader can be blocked back. However, on devices newer than 2019, this is not always possible - Xiaomi has limited this feature.
Instructions for supported models:
- Install the official firmware via the Mi Flash Tool (select Clean All and Lock mode).
- Or use the command in Fastboot:
fastboot oem lockAfter that, the device will return to factory settings with a locked bootloader.
β οΈ Note: On HyperOS devices (e.g. Xiaomi 14, Redmi) K70) Re-blocking the bootloader can cause data loss in the userdata section, even if you haven't done the reset.Always backup before manipulation!