Last updated: November 29, 2026. Short answer: MiAssistantTool (miasst) is a free open-source command-line tool that installs an official Xiaomi Recovery ROM on a Xiaomi, Redmi or POCO phone without unlocking the bootloader. It uses the “Connect with MIAssistant” mode built into the stock recovery, the same one Xiaomi’s PC tools use, and runs on Windows, macOS, Linux and Android (Termux). It only flashes packages that Xiaomi’s update server approves for your phone, and it can show you which official ROMs those are. Useful when an update doesn’t show up on the phone, or when the phone is stuck in a boot loop but still opens the stock recovery. Latest version: 1.5.1 (November 24, 2026).
MiAssistantTool download
| Tool | MiAssistantTool (miasst), MiForge project |
| Latest version | 1.5.1, November 24, 2026 |
| Runs on | Windows, macOS, Linux, Android (Termux, no root) |
| Needs | Python 3.9 or newer, a USB data cable (OTG on Android), the official Recovery ROM .zip for your phone |
| Install | pip install miasst (PyPI) |
| Source | github.com/MiForge/MiAssistantTool (Apache 2.0) |
It comes from the same developers as MiUnlockTool. Install it only from the GitHub page or PyPI above.
What it can and can’t do
In Mi Assistant mode, without unlocking the bootloader, the tool can (README):
- Read Info: model, codename, installed version, region, ROM zone, carrier and recovery version.
- Flash Official Recovery ROM: install an official
.zipyou downloaded. - ROMs That Can Be Flashed: ask Xiaomi’s server which official packages your phone accepts, with their MD5 and download links on
bigota.d.miui.com. - Format data, cache or internal storage (a factory reset), and reboot to system, recovery, Fastboot or bootloader.
What it can’t do:
- No unofficial ROMs, no modified packages. Before flashing, the tool sends the file’s MD5 to Xiaomi’s update server (
update.miui.com), which returns a signed approval only for packages it allows for your phone; the tool checks that signature and the file’s SHA1 and refuses everything else. Custom ROMs, ports and edited ZIPs won’t install. - No Fastboot ROMs. Mi Assistant mode takes Recovery (
ota_full) ZIPs only. Fastboot ROMs need an unlocked bootloader. - You don’t choose freely. Xiaomi’s server decides which versions your phone may install. Use ROMs That Can Be Flashed to see the list before you download anything.
- Not a way around locks. The menu also lists “Format FRP”, but it requires a token signed by Xiaomi, so it doesn’t remove Factory Reset Protection on its own. Use your own Google account.
Never use “Wipe EFS”. EFS holds your phone’s IMEI and network calibration; wiping it can leave the phone without mobile network. The tool itself asks you to type YES “only if you are an expert”.
When it helps
- An official update doesn’t show up and the phone’s own Choose update package refuses the file. See first our guide HyperOS update not showing; Mi Assistant mode is another way to install a build Xiaomi’s server allows.
- Boot loop or “System has been destroyed” on a phone with a locked bootloader, as long as you can still open the stock recovery (Volume Up + Power).
- A clean reinstall of the official ROM without a PC running Windows.
- On Windows you can do the same with a graphical tool: MiFlash Pro has a Recovery tab that uses the same mode.
How to install MiAssistantTool
Windows, macOS, Linux: install Python 3.9 or newer (on macOS and Linux preferably in a virtual environment, as in our MiUnlockTool guide), then:
pip install miasst
On the first run the tool installs what it needs by itself, according to its changelog: libusb (via apt, dnf, pacman or zypper on Linux, Homebrew on macOS; bundled on Windows) and, on desktop Linux, udev rules so the phone can be accessed without root.
Android (Termux, no root): install Termux and Termux:API, then use the project’s quick installer:
curl -sS https://raw.githubusercontent.com/MiForge/MiAssistantTool/main/install.sh | bash
Connect the Xiaomi phone with a USB OTG cable. Since version 1.4.6 the tool keeps the Termux phone awake while flashing.
How to flash an official Recovery ROM without unlocking
- Back up what you can. Flashing the same or a newer build normally keeps your data, but the tool warns you, and asks you to type
YES, when Xiaomi marks a package as one that erases data. - Boot into Mi Assistant mode: turn the phone off, hold Volume Up + Power to open the stock recovery, select Connect with MIAssistant (use the volume keys and Power to confirm). A picture of a phone and a cable appears. Connect it to the computer (or the OTG phone).
- Run:
and pick Read Info to check the model, codename, version and region.miasst - Pick ROMs That Can Be Flashed. The tool lists the official packages Xiaomi’s server accepts for this phone, with MD5 and a
bigota.d.miui.comdownload link. If it says “No ROM can be installed on this device”, Mi Assistant mode can’t help with that phone right now. - Download one of those ZIPs. Alternatively, take the Recovery ROM for your phone and region from our firmware pages or look it up with Updater-KMP, and compare its MD5 with the list.
- Pick Flash Official Recovery ROM and enter the path to the
.zip. The tool calculates MD5 and SHA1, gets Xiaomi’s approval and sends the file to the phone. If the server doesn’t approve the file, it stops without touching the phone. - Wait until the transfer and installation finish and the phone reboots. Don’t unplug the cable during flashing; since 1.4.6 the tool stops with an error instead of hanging if the phone disconnects.
Before installing an older version than the one on the phone, check anti-rollback. The tool only installs what Xiaomi’s server approves for your phone, and going from HyperOS 4 back to HyperOS 3 needs an unlocked bootloader (downgrade guide).
If something goes wrong
- Phone not detected: make sure the screen shows the Mi Assistant picture, not the normal recovery menu or Fastboot; try another cable and USB port. On Termux, check that OTG is on and that Termux:API is installed from the same source as Termux.
- “SHA1 mismatch” or “The server did not return a flashable package”: the file is damaged or isn’t one Xiaomi allows for your phone. Download a ROM from the “ROMs That Can Be Flashed” list.
- Flashing seems stuck near the end: large ROMs take a while to install after the transfer. Wait and watch the phone screen.
- Need logs: since version 1.5.0 the tool can list files on the phone and pull, for example,
/cache/recovery/last_log, which shows why an installation failed.
FAQ
Can I flash a Xiaomi ROM without unlocking the bootloader?
Yes, an official Recovery ROM that Xiaomi’s server approves for your phone. MiAssistantTool installs it through the stock recovery’s “Connect with MIAssistant” mode. Fastboot ROMs, custom ROMs and modified packages need an unlocked bootloader.
What is “Connect with MIAssistant” in Xiaomi recovery?
It’s a mode of the stock recovery that lets a computer (Xiaomi’s PC tools, MiFlash Pro or MiAssistantTool) read the phone’s info, wipe it and install official Recovery ROMs over USB, even with a locked bootloader.
Can I change my phone’s region with MiAssistantTool?
Only if Xiaomi’s server lists another region’s package for your phone under “ROMs That Can Be Flashed”. Changing region normally needs an unlocked bootloader (ROM regions).
Will flashing with MiAssistantTool erase my data?
Not always. Xiaomi’s server marks whether a package erases data, and the tool warns you and asks you to type YES before any package or action that does.
Does MiAssistantTool work on a Mac or Linux?
Yes. It’s a Python tool for Windows, macOS, Linux and Termux; it installs libusb and, on Linux, the USB rules by itself.
Can it fix a bricked phone?
If the phone still boots into the stock recovery, often yes: you can format data or reinstall an approved official ROM. If it shows only Fastboot or nothing at all, Mi Assistant mode isn’t available.
Sources: MiAssistantTool README, changelog and source code (github.com/MiForge/MiAssistantTool, version 1.5.1); PyPI package miasst. Checked November 29, 2026.
Xiaomi firmware & news on Telegram
New firmware, HyperOS 4 rollout updates, guides and Xiaomi news, all in one channel.

