Last updated: November 14, 2026. Mi Unlock (miflash_unlock) is Xiaomi’s official Windows tool for unlocking the bootloader of Xiaomi, Redmi and POCO phones. Without an unlocked bootloader you can’t flash a Fastboot ROM with Mi Flash, install TWRP or root your phone.
Need firmware for your phone? Find official HyperOS Recovery and Fastboot ROMs for Xiaomi, Redmi and POCO devices, for every region: Xiaomi firmware download.
The latest version is Mi Unlock 7.6.727.43. 4PDA’s bootloader unlock thread lists it as the latest version. Below you’ll find the official download, a quick-start guide and fixes for the most common errors.
Download Mi Unlock
| Version | Release | Size | Download |
|---|---|---|---|
| Mi Unlock 7.6.727.43 (latest) | July 27, 2023 | 114 MB | Download 7.6.727.43 |
| Mi Unlock 6.5.224.28 | February 2022 | 31 MB | Download from Xiaomi |
| Mi Unlock 3.5.1108.44 (legacy) | November 2019 | — | Download 3.5.1108.44 |
Version 7.6.727.43 is the original file from Xiaomi’s server (miuirom.xiaomi.com).
SHA-256: 6bb390bddaaff3e75a6a2b1ecafa3f49bf6e4d93747302a6870698fb26285a32
Xiaomi’s own download page (en.miui.com/unlock) still links to the older 6.5.224.28. Both versions talk to the same Xiaomi unlock servers. We recommend 7.6.727.43 because it is the newest build. Use 3.5.1108.44 only if a very old phone (MIUI 9–11) refuses to work with the new version.
What You Need Before Using Mi Unlock
- Unlock permission for your Xiaomi account. On HyperOS, you must apply for it in the Xiaomi Community app first. Mi Unlock alone is not enough. Our step-by-step HyperOS unlock guide covers the whole process.
- OEM unlocking is on in Developer options, and Find device is on in Xiaomi Cloud.
- The phone is bound to your account in Developer options → Mi Unlock status (over mobile data, not Wi-Fi). Bind only once: repeated attempts can block the account or raise the waiting time.
- Not a China unit. Xiaomi no longer unlocks phones made for mainland China.
- A Windows PC. Mi Unlock includes its own Fastboot, but installing the Google USB driver avoids “phone not connected” issues.
How to Use Mi Unlock (Quick Guide)
- Extract the ZIP to a short folder, for example
C:\miunlock. - Run
miflash_unlock.exeand accept the disclaimer. - If it asks to install the driver, click Install (it runs
driver_install_64.exe). You can also run that file manually from the folder. - Sign in with the same Xiaomi account that is on the phone and has unlock permission.
- Turn the phone off, hold Power + Volume Down to enter Fastboot and connect it to the PC.
- Back up first: unlocking erases everything on the phone, and some accounts are unlocked (and wiped) at once, without a waiting time. When Mi Unlock shows Phone connected, click Unlock → Unlock anyway.
- If you get a waiting time (“Please unlock N hours later”), keep the account signed in on the phone and try again after the timer. The phone is wiped and reboots unlocked.
Common Mi Unlock Errors
| Message | What it means |
|---|---|
| Couldn’t unlock. Please unlock N hours later | Normal waiting period, usually 72 or 168 hours, sometimes 360 or more. Keep using the phone with the SIM inside, don’t sign out, and retry after the timer. |
| Current account is not bound to this device | Bind the account again in Mi Unlock status on mobile data, then retry. |
| Couldn’t verify. Wait a minute or two and try again | Server or connection issue. Check the PC’s internet connection, disable VPN/proxy and retry later. |
| Phone not connected in Fastboot | Driver problem. Run driver_install_64.exe, use a USB 2.0 port and the original cable. If Windows refuses the driver, restart with driver signature enforcement disabled and install it again. |
| Your account doesn’t have unlock permission / Go to Mi Community to apply | You haven’t been approved yet. Apply in the Xiaomi Community app (HyperOS). |
MiUnlockTool 1.7.5: Unlock on Mac, Linux or Android
MiUnlockTool is an open-source (Apache 2.0) Python alternative to Mi Unlock by offici5l, now hosted at github.com/MiForge/MiUnlockTool and published on PyPI as miunlock. It runs on Windows, macOS, Linux and on another Android phone through Termux. Unlike Mi Unlock, it can save your login session and offers SMS or email verification. The latest version, 1.7.5 (November 9, 2026), fixes Error Code 10005: Invalid nonce param (issue #221).
It is not a bypass. The project’s FAQ says it follows exactly the same official process as Xiaomi’s tool: you still need unlock permission from the Xiaomi Community app on HyperOS, the account added in Mi Unlock status, and the full waiting period. GitHub is full of lookalike repositories that promise to “bypass” the wait. Use only the official repository or pip install miunlock, because you sign in with your Xiaomi account.
How it works
The tool reads the phone’s deviceToken (fastboot getvar token) and sends it to Xiaomi’s server. If the account meets every requirement, including the waiting period, Xiaomi signs the token and returns it as encryptData. The tool sends it to the phone with fastboot stage and runs fastboot oem unlock, and the phone checks the signature with Xiaomi’s built-in public key. The token changes on every reboot, so a signature can’t be reused after the phone restarts.
Install and run MiUnlockTool (official guide)
- Install Python 3.7 or newer: from python.org or with
winget install pythonon Windows (tick “Add Python to PATH”),brew install --cask pythonon macOS, orsudo apt install python3 python3-venvon Ubuntu/Debian. - On macOS and Linux, create and activate a virtual environment (Windows users can skip this unless pip reports an “externally managed environment” error):
python3 -m venv miunlock-env source miunlock-env/bin/activate - Install the tool:
pip install miunlock(to update an older copy:pip install -U miunlock). - On the phone, enable Developer options (tap the OS version 7 times), open Settings → Additional settings → Developer options → Mi Unlock status and tap Add account and device.
- Turn the phone off, hold Power + Volume Down to enter Fastboot (not fastbootd) and connect it to the computer.
- Run
miunlock, choose the login method and sign in with the same account you added in Mi Unlock status. The tool tells you whether your data will be wiped before it continues. Follow the prompts.
On Android (Termux): install Termux and Termux:API from the same source, then run pkg install python-pip and pip install miunlock. Fastboot for Termux installs itself the first time you start miunlock. The phone running Termux must support USB OTG. If you’d rather not use a terminal, MiUnlockApp does the same from a regular Android app (since version 1.4) and can also send the Xiaomi Community application for you.
Phone not detected? From the project’s FAQ: make sure the phone is in Fastboot, not fastbootd; on Windows, install the Xiaomi or Google USB driver until Device Manager shows no warning icon; try another (preferably original) cable; and remove other ADB/Fastboot installs so miunlock uses its own.
FAQ
Is Mi Unlock safe?
Yes, it is Xiaomi’s official tool. Our 7.6.727.43 download is the original file from Xiaomi’s server, and you can verify it with the SHA-256 checksum above (Get-FileHash in PowerShell).
Can I re-lock the bootloader later?
Yes, but only on an official, unmodified Fastboot ROM that matches the hardware: a China ROM on a China unit, or any official international ROM on an international unit. Flash it with Mi Flash and choose Clean all and lock. Never relock with a modified ROM, a custom recovery, root, or a China/international mismatch. The phone won’t boot afterwards.
Does Mi Unlock work for China phones?
No. Xiaomi has stopped unlocking mainland China devices. Mi Unlock will show an error even if the account was approved.
Can I unlock a Xiaomi bootloader on a Mac or Linux?
Yes, with MiUnlockTool (pip install miunlock), which runs on macOS, Linux and Android. Xiaomi’s own Mi Unlock works only on Windows. Both use the same Xiaomi servers, permission and waiting time.
How do I fix “Error Code 10005: Invalid nonce param”?
That error came from older MiUnlockTool versions and was fixed in 1.7.5 (November 9, 2026). Update with pip install -U miunlock and try again.
Sources: 4PDA unlock thread header, varalex; FAQ devserg / Temnik_777; TemnAT_7 (2); varalex (MiUnlockTool); Xiaomi; MiUnlockTool README, installation guide, FAQ, how it works and v1.7.5 release.
Xiaomi firmware & news on Telegram
New firmware, HyperOS 4 rollout updates, guides and Xiaomi news, all in one channel.

