How to update a Xiaomi smartphone through a computer: 3 proven ways

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?
The smartphone will refuse to accept the firmware and will give the device is locked error. At best, the process will stop, at worst, the device will stop turning on. The only way out is to unlock the bootloader through the Mi Unlock Tool.

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 firmwareReferenceNotes
Official (Stable/Developer)MIUI DownloadsChoose by model and region
Fastboot firmwareXiaomi Firmware UpdaterArchives with extension.tgz
Castomic (LineageOS, PixelExperience)XDA DevelopersRequires 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:

  1. Download and install the Mi Flash Tool (version 2023.4.28.0 or later).
  2. Unpack the firmware archive (.tgz) in a folder without Cyrillic characters (for example, C:\MIUI\redmi_note12_pro).
  3. 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.
  4. Connect your phone to your PC and run the Mi Flash Tool. The program must identify the device (if not, check the drivers).
  5. Click "Select" and specify the path to the folder with unpacked firmware.
  6. 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:

  1. Copy the firmware file (update.zip) into an ADB folder (e.g., C:\platform-tools).
  2. 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.
  3. 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.
  4. Turn the phone into recovery mode: turn it off, then press Volume up + Power.
  5. From the recovery menu, select Apply update β†’ Apply from ADB.
  6. 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:

  1. Download XiaomiTool V2 and unpack the archive.
  2. Launch XiaomiTool.exe on behalf of the administrator.
  3. Connect your phone in fastboot mode (clip Volume Down + Power).
  4. The program will determine the model and offer available actions: Unlock Bootloader, Flash Firmware, Install TWRP.
  5. Select Flash Firmware, then specify the firmware type (Stable or Developer).
  6. 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 failReverse to older version of MIUI/AndroidJust try the new version (you can’t put it below the current one!)
device is lockedThe bootloader is not unlockedUnlock the device with the Mi Unlock Tool (wait 72 hours)
invalid sparse fileA damaged firmware fileDownload the firmware again and check the MD5
this package is for "xxx" devicesThe firmware is not suitable for the modelDownload the firmware specifically for your device (check the model code in Settings β†’ About the phone)
The phone is not defined in fastbootNo drivers or cable problemsInstall 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:

  1. Press Volume up + Power for 20 seconds (forced reboot).
  2. Repeat the firmware in clean all mode via the Mi Flash Tool.
  3. Install custom recavers (TWRP) and flash ZIP with full cleaning (Wipe β†’ Format Data).

Frequently Asked Questions (FAQ)

Can I flash Xiaomi through a PC without unlocking the bootloader?
No, for firmware via fastboot or ADB Sideload loader must be unlocked. Except for official OTA-Update through Settings β†’ Update the system, but they don’t require a PC connection.
Why does the Mi Flash Tool not see my phone?
The reasons may be: Fastboot drivers are not installed (install via Mi PC Suite); a non-original cable is used (try another); the phone is not in fastboot mode (check if the connection indicator is on); USB port problems (connect to the rear port on the PC).
How to roll back the firmware to an older version?
The rollback is only possible within one version of Android. For example, from MIUI 15 to MIUI 14, if both builds are on Android 13. If you try to put firmware on an older version of Android (for example, from Android 14 to Android 13), anti-rollback protection will work, and the phone will become a β€œbrick”.
What if IMEIs are missing or the network is not working?
This is a typical problem when you're running custom Recovery or unofficial firmware. IMEI From the engineering menu: dial ##4636## β†’ Phone information β†’ Select a network (sometimes helps reset network settings). QCN-file (requires root and special utilities such as QPST). Contact the service center (if the warranty is valid). IMEI missing after official firmware via Mi Flash Tool, repeat firmware with the choice of clean all option.
How to check if the bootloader is unlocked on my Xiaomi?
Turn off the phone, then press Volume Down + Power to log in to fastboot. Connect it to your PC and type in the command: fastboot oem device-info If there is a line Device unlocked: true in the answer, the bootloader is unlocked. If false is locked.