Installation of updates via recovery on Xiaomi: a complete guide with nuances

Why install updates through the Recovery and when it is necessary

Update the firmware through the standard menu MIUI It usually goes without problems, but there are situations where an alternative method through the Recovery becomes the only way out. OTA-Update or system refuses to install a new version because of corrupted files. Recavery (recovery mode) allows you to bypass these restrictions, but requires care - an error can turn the phone into a brick".

Another common case is the manual firmware of custom ROMs (like LineageOS or Pixel Experience) that are not supported by official tools, where recovery becomes a must-have, and it's important to understand that the procedure is different for TWRP (castom recovery) and MIUI Recovery (stock), the first option is more powerful, but requires pre-unlocking the bootloader, the second is simpler, but limited in functionality.

Before you start, check:

  • πŸ”‹ Battery charge of at least 50% (better than 70)+).
  • πŸ“± The smartphone model is compatible with the selected firmware (for example, Redmi Note 10 Pro does not support files for the device). POCO X3 Pro).
  • πŸ”— The firmware is downloaded from an official source (Xiaomi Firmware or trusted forums like Xiaomi Firmware). XDA Developers).

πŸ“Š What kind of Recovery do you use?
Stock MIUI Recovery
TWRP
OrangeFox
Other
I don't know.

Preparation for installation: what to do before the firmware

The first step is backup, and even if the update is successful, there is still a risk of losing photos, contacts, or messages. Use Mi Cloud, Google Drive, or local copying on your PC.

  • πŸ“ pup DCIM (photo/video).
  • πŸ“ž Contacts (export to.vcf).
  • πŸ”‘ Application passwords (write down or use Google Smart Lock).

Next, check the recovery version. Stock MIUI Recovery does not support installation of unofficial firmware, so custom ROMs will require TWRP.

  1. Turn off your smartphone.
  2. Press Power + Volume up until the Mi logo appears.
  3. In the Recovery menu, check the version at the bottom of the screen (e.g. MIUI Recovery 3.0 or TWRP 3.7.0).

If you have TWRP, upgrade to the latest version through the official website. For MIUI Recovery,.zip stock firmware downloaded from Xiaomi is enough.

πŸ’‘

If the smartphone doesn't load even in a recaveri, try plugging it into a PC and using fastboot to flash it. For instructions for your model, look for 4PDA or XDA.

Downloading firmware: where to get files and how to avoid fakes

Official firmware for Xiaomi is divided into three types:

  • πŸ“¦ Recovery ROM β€” for installation through stock Recovery (.zip).
  • πŸ“¦ Fastboot ROM β€” For firmware via Mi Flash Tool (.tgz or.tar).
  • πŸ“¦ OTA-Packages – Incremental updates (.zip, weigh less).

Only Recovery ROM is suitable for our task.

Download files only from verified sources:

SourceType of firmwareFeatures
Official Xiaomi websiteRecovery/FastbootThe safest option, but it may be an outdated version.
Xiaomi Firmware UpdaterRecovery/FastbootUp-to-date builds, including beta versions.
XDA DevelopersCustom ROMRegistration is required, and the risk of unofficial modifications is high.
4PDALocalized firmwareOften with pre-installed GMS for Russian users.

Critical: Never download firmware from torrents or little-known sites β€” there is a high risk of getting a virus or a β€œbrick” due to corrupt files. Before installing, check the hash amount (MD5 or SHA-1) of the downloaded file. Use utilities like 7-Zip (right-click β†’ CRC SHA β†’ SHA-1) and compare the result with the official value on the Xiaomi website.

How to check MD5-hash on Windows?
1. Open the command line (Win + R β†’ enter cmd). 2. Go to the firmware folder: cd C:\path\to folder. 3. Enter the command: certutil -hashfile name file.zip MD5. 4. Compare the received hash with the official one.

Installation with MIUI Recovery

This method is suitable for official MIUI firmware in.zip format. The main advantage is that you do not need to unlock the bootloader or install TWRP.

Download Recovery ROM for your model | Check battery power (minimum 50%)|Rename the firmware file to update.zip|Disable password/pattern lock protection

-->

Instructions:

  1. Copy the update.zip file to the root directory of internal memory (not to the folder!).
  2. Turn off your smartphone.
  3. Press Power + Volume Up to enter MIUI Recovery.
  4. Select the language (if available) and tap Install update.zip to System.
  5. Confirm the installation and wait until the completion (usually 5-15 minutes).
  6. After the reboot, the smartphone will launch with a new firmware.

⚠️ Warning: If the smartphone has been stuck on the Mi logo for more than 20 minutes after installation, force it to restart (Power) + Volume down for 10 seconds. If the problem recurs, go through the Fastboot.

Installation via TWRP: nuances and possible errors

TWRP (Team Win Recovery Project) is a customized recovery that allows you to install unofficial firmware, cores and modifications. However, it requires an unlocked bootloader (the instructions for unlocking are available on the Xiaomi website).

Installation algorithm:

  1. Copy the firmware (.zip) and, if necessary, Magisk (for root rights) to internal memory or microSD.
  2. Enter TWRP (Nutrition + Volume Up).
  3. Press the Wipe. β†’ Advanced Wipe and mark: 🧹 Dalvik / ART Cache 🧹 System 🧹 Data (if you switch to a new version of Android) 🧹 Cache

Install

Magisk

Reboot System

Typical errors and decisions:

  • 🚫 Error 7 β€” mismatch between the smartphone and firmware model. Check the file name (e.g, miui_HMNote10ProGlobal_V12.5.1.0.RKFMIXM_... It should contain the code of your model).
  • 🚫 Error 255 is a corrupted firmware file. Download it and check it. MD5.
  • 🚫 Hang on TeamWin – reset your settings via Wipe β†’ Format Data (all data will be deleted!).

πŸ’‘

If the smartphone does not turn on after firmware through TWRP, try flashing stock firmware through the Mi Flash Tool in clean all mode.

What to do if the update is not installed

If the process is interrupted or the smartphone refuses to see the firmware file, act according to the scheme:

  1. Check the file name: it should be in Latin, without spaces or special characters β€” update.zip.
  2. Format a memory card: If the firmware is on a microSD, format it in FAT32 (not exFAT!).
  3. Try another one. USB-Port or cable: Sometimes the problem is connecting to a PC when copying a file.
  4. Install the firmware through ADB Sideload: adb sideload path\to file.zip (requires enabled debugging by USB and ADB-driver).

If none of the methods helped, and the smartphone does not boot, there is still firmware through Fastboot:

  1. Download Mi Flash Tool and Fastboot ROM for your model.
  2. Connect your smartphone in Fastboot mode (Power + Volume Down).
  3. In the program, select the firmware folder and press Refresh β†’ Flash.

⚠️ Note: Fastboot firmware erases all data, including internal memory (userdata).If your smartphone had important files, try extracting them first through the device. TWRP (Mount β†’ Connect to the PC on MTP).

How to Get Back Stock Recovery After TWRP

If you have been installing custom firmware but decided to return to the official MIUI Recovery, do the following:

  1. Download the stock firmware in the format of Fastboot ROM.
  2. Unpack it in a folder and find the recovery.img file.
  3. Connect your smartphone in Fastboot mode and execute the command: fastboot flash recovery recovery.img
  4. Reboot to the reboot and check that the menu is standard.

After that, it is possible to establish official OTA-updates without problems if you plan to return to TWRP, Re-unlock the loader - the stock recavator will block it.

FAQ: Answers to Frequent Questions

Can I install firmware through the recavers without losing data?
Yes, but only if: πŸ“Œ You are updated in one version MIUI (for example, 12.5.1 β†’ 12.5.2). πŸ“Œ Do not use Wipe Data in your TWRP. πŸ“Œ The firmware is compatible with your model (check the device code!) and when you upgrade to a new version of Android (for example, 11 to 12), the data will be deleted.
Why is it that after TWRP, there is no network or cameras?
This is a typical problem when installing custom ROMs without the vendor and firmware in question. Solution: Download the latest Firmware for your model (see XDA or 4PDA). Run it through TWRP before installing custom firmware. If the problem persists, try another ROM build.
How to find out the code of your Xiaomi model to choose a firmware?
There are three ways: πŸ“± In settings: Settings β†’ The phone. β†’ Model (e.g, M2101K6G For the Redmi Note 10 Pro). πŸ” On the box or under the battery (if removable). πŸ’» Through ADB: adb shell getprop ro.product.model The code of the model must be the same as the firmware name (e.g., the name of the firmware, miui_M2101K6G...).
Can I roll back the firmware to an older version?
Yes, but with reservations: πŸ”™ Through MIUI Recovery rollback is possible only on the version that was installed earlier (the system blocks the downgrade for security reasons). πŸ”™ Through TWRP You can flash any version, but the risk of a brick is higher due to vendor incompatibility. πŸ”™ Downgrades often require Format Data (full reset). TWRP (backup β†’ Check Boot, System, Data).
What if, after firmware, the smartphone asks for a password that was not there?
This is due to data encryption in new versions. MIUI. Decisions: πŸ” If you bet TWRP, Try to enter an old password or pattern lock. πŸ” Reset your password through Format Data in TWRP (data will be deleted!). πŸ” If it doesn't work, go through Fastboot with a full reset (clean all). In the future, before firmware, turn off encryption in the settings (Settings) β†’ Security β†’ Encryption).