Updating the firmware on Xiaomi smartphones through a computer is the only way out when OTA-update βhangβ, the device does not turn on or you need to roll back to the stable version MIUI. Unlike a wireless update, PC firmware gives you complete control over the process: you can choose a specific build (including global, Chinese China or European). EEA), Bypass regional restrictions and even restore the brick after a failed update.
This article includes three working methods (officially via Mi Flash Tool, manual via fastboot and alternative with XiaomiTool V2), detailed instructions for each model (from Redmi Note 12 to Mi 11 Ultra), and a breakdown of typical errors like anti-rollback or invalid image. All steps are tested on current versions of MIUI 14/15 and Windows 11, but will also be suitable for older devices.
Preparation of the smartphone and computer: what to do before firmware
The first step is to save data. The firmware on your PC, especially in fastboot mode, erases all user files, including photos, messages and settings. Use Mi Mover (a built-in Xiaomi app) or third-party utilities like Titanium Backup (requires root). If the phone doesn't turn on, remove the memory card (if any) and connect it to the PC via an adapter.
Next, check:
- π Battery charge at least 50%. When discharged during firmware, the device can turn into a brickΒ».
- π Cable USB β Use the original Xiaomi or certified USB-Type C with data support (charging cables often donβt fit).
- π₯οΈ Drivers - install the Mi PC Suite or Mi Unlock Tool for Automatic Driver Installation ADB/Fastboot.
- π₯ Firmware β Download the correct version for your model (see section below).
Make a data backup|Check the battery charge (>50%)|Install Mi drivers PC Suite|Download the firmware for your model|Prepare original USB-cable-->
Pay special attention to unlocking the bootloader. On new Xiaomi devices (released after 2021), it is blocked by default. Without unlocking, you will not be able to flash the phone through fastboot. Unlocking instructions are available on the official website, but note: the process takes up to 72 hours (you need to link your Mi Account and wait for confirmation).
What happens if you run a blocked bootloader?
How to Choose the Right Firmware for Xiaomi
Mistakes in firmware selection are the main reason for the βbrickingβ of smartphones. Xiaomi releases several types of builds:
- π Global (MIUI Global β for the international market, supported by Google Services.
- π¨π³ China (MIUI China β no Google services but with Chinese apps.
- πͺπΊ EEA (European) β as Global, but with due respect GDPR.
- π§ Developer (Beta) β test versions with bugs, not recommended for everyday use.
- π Stable β stable releases, updated every 1-2 months.
To find out the current firmware version, go to Settings β About Phone β MIUI version. For example, the words MIUI Global 14.0.5.0 (SKUEUXM) mean:
- Global - firmware type;
- 14.0.5.0 - version of MIUI;
- SKUEUXM is the model code (for Redmi Note 12 Pro+ 5G).
Download the firmware only from official sources:
| Type of firmware | Reference | Notes |
|---|---|---|
| Official (Stable/Developer) | MIUI Downloads | Choose by model and region |
| Fastboot firmware | Xiaomi Firmware Updater | Archives with extension.tgz |
| Castomic (LineageOS, PixelExperience) | XDA Developers | Requires an unlocked bootloader and root |
Critically, never install a firmware with a lower version of Android than the one already on your phone (like Android 13 on Android 12) and this will cause anti-rollback protection to go off and the device to break.
Official Stable|Official Developer (Beta)|Custom (LineageOS, etc.)|I don't know which one's right.-->
Method 1: Official update via Mi Flash Tool (fastboot)
This method is suitable for full flashing of the smartphone, including recovery from crashes. The Mi Flash Tool only works with firmware in.tgz (fastboot firmware).
Step-by-step:
- Download and install the Mi Flash Tool (version 2023.4.28.0 or later).
- Unpack the firmware archive (.tgz) in a folder without Cyrillic characters (for example, C:\MIUI\redmi_note12_pro).
- Turn off your phone and put it into fastboot mode: press Volume down + Power for 10 seconds. The hare in the eardress hat will appear on the screen.
- Connect your phone to your PC and run the Mi Flash Tool. The program must identify the device (if not, check the drivers).
- Click "Select" and specify the path to the folder with unpacked firmware.
- Select firmware mode: clean all β complete cleaning (recommended in case of failures); save user data β data storage (not always working); clean all and lock β cleaning + lock the bootloader (dangerous!).
Press "Flash"
π‘
If the Mi Flash Tool gives you an error couldn't find fastboot, try running the program on behalf of the administrator or reinstall the drivers through the Mi PC Suite.
β οΈ Warning: Clean all and lock will block the bootloader, making it impossible to install custom firmware in the future. Use it only if you are sure you will no longer experiment with software.
Method 2: Manual update via ADB Sideload (without data loss)
If the phone is powered on but cannot be updated by air (for example, due to a can't verify update error), use ADB Sideload.This method allows you to install the.zip update without completely clearing the data.
What you need:
- π± Smartphone with unlocked bootloader (required!);
- π₯οΈ Computer with installed ADB and Fastboot;
- π Firmware in.zip format (download from Xiaomi Firmware Updater).
Instructions:
- Copy the firmware file (update.zip) into an ADB folder (e.g., C:\platform-tools).
- On your phone, activate USB Debugging: go to Settings β About Phone β MIUI Version, tap 7 times on the build number, then go back to Settings β Additional β For Developers β Debugging by USB.
- Connect your phone to your PC and type in the command line: Adb devices should show up in the list. If not, confirm the connection on your smartphone screen.
- Turn the phone into recovery mode: turn it off, then press Volume up + Power.
- From the recovery menu, select Apply update β Apply from ADB.
- On PC, run the command: adb sideload update.zip The process will take 5-10 minutes. Once completed, select Reboot system now.
β οΈ Note: If an E:footer is wrong error appears during adb sideload, the firmware file is corrupted. Download it again and check the checksum MD5 (For example, through the HashMyFiles utility).
Method 3: Alternative method with XiaomiTool V2 (for experienced)
XiaomiTool V2 is an unofficial utility that automates firmware, unlocking the bootloader and even restoring bricks. Supports most Xiaomi, Redmi and POCO models, but requires caution: improper actions can lead to a loss of warranty.
Advantages of XiaomiTool V2:
- π Automatic definition of the model and available firmware;
- π Built-in unlocking of the bootloader (without waiting 72 hours);
- π οΈ Recovery after failed firmware;
- π‘ Support for custom Recovery (TWRP, OrangeFox).
How to use:
- Download XiaomiTool V2 and unpack the archive.
- Launch XiaomiTool.exe on behalf of the administrator.
- Connect your phone in fastboot mode (clip Volume Down + Power).
- The program will determine the model and offer available actions: Unlock Bootloader, Flash Firmware, Install TWRP.
- Select Flash Firmware, then specify the firmware type (Stable or Developer).
- Wait until the process is completed (it can take up to 20 minutes).
π‘
XiaomiTool V2 is suitable for power users. If you are a beginner, use official methods (Mi Flash Tool or ADB Sideload) to avoid errors.
Important: XiaomiTool V2 doesn't work with some new models (e.g. Xiaomi 13T or Redmi Note 12 Turbo).
Typical Firmware Errors in PC and How to Fix Them
Even with the correct following of the instructions, errors can occur, and here are the most common ways to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| anti-rollback check fail | Reverse to older version of MIUI/Android | Just try the new version (you canβt put it below the current one!) |
| device is locked | The bootloader is not unlocked | Unlock the device with the Mi Unlock Tool (wait 72 hours) |
| invalid sparse file | A damaged firmware file | Download the firmware again and check the MD5 |
| this package is for "xxx" devices | The firmware is not suitable for the model | Download the firmware specifically for your device (check the model code in Settings β About the phone) |
| The phone is not defined in fastboot | No drivers or cable problems | Install drivers via Mi PC Suite, try another USB cable/port |
If the phone does not turn on after firmware or hung on the MI logo, try:
- Press Volume up + Power for 20 seconds (forced reboot).
- Repeat the firmware in clean all mode via the Mi Flash Tool.
- Install custom recavers (TWRP) and flash ZIP with full cleaning (Wipe β Format Data).