How to flash Xiaomi through Recovery: step-by-step manual

Modern Xiaomi and Redmi smartphones are complex hardware and software complexes where the Android operating system and the MIUI shell (or HyperOS) are closely intertwined, sometimes faced with situations where a standard update “over the air” is impossible due to a server error, or the device has been in a cyclic restart (bootloop), in which case the recovery mode known as Recovery Mode comes to the rescue.

Firmware through Recovery is one of the safest ways to restore the gadget, since it does not require disassembling the case or connecting complex debugging cables. You do not need superuser rights (Root) to perform basic operations in this menu. However, it is important to understand that any manipulation of system files carries risks. Incorrectly selected firmware version can lead to the failure of communication modules or camera.

Before you start taking action, you need to be clear about the difference between a complete flash and a reset. Many users confuse these concepts, which leads to data loss or, conversely, to waiting for a result that does not come. In this article, we will discuss in detail the algorithm of actions that will allow you to bring the device back to life or update it to the current version of the software, bypassing standard restrictions.

⚠️ Note: All actions described in the article, you perform at your own risk. The author of the material is not responsible for damage to the software of your device.

Preparation of the device and choice of firmware

The foundation of successful firmware is thorough preparation. You can't just download the first file you get and run it. First, you need to determine the exact model of your smartphone. This is contained in the Settings menu → About the phone, which shows the model code, for example, 2201117SG or M2102J20SG. It is important not to confuse the global version (Global) with the Chinese (China) or Indian (India), as cross-regional updates can block the bootloader or lead to errors in the operation of communication modules.

The firmware file should be in Recovery format (often with the.zip extension) rather than Fastboot (.tgz). To install the archive through the recovery menu, you need to put it at the root of the device's internal memory. If the phone doesn't turn on and goes into reboot, it can be difficult to connect it to your computer to transfer the file, in which case you will need a microSD card if your smartphone supports its installation, or use an OTG adapter.

💡

Always check the checksum (MD5 or SHA-1) of the downloaded firmware file. A damaged archive may result in a Recovery verification error.

Make sure the battery is at least 60 percent charged, and the process of writing system partitions is energy intensive, and a sudden power outage at a critical moment can turn the smartphone into a “brick.” It is also recommended to free up space in internal memory: the installation process requires at least 5-10 GB of free space to work correctly, even if the firmware itself weighs less, since the system needs space for temporary files and unpacking.

☑️ Pre-firmware check

Done: 0 / 5

Enter Recovery Mode on Xiaomi

You can access the recovery menu on Xiaomi devices with a combination of physical buttons. This method works even if the screen does not respond to touch or the system does not boot. First, turn off the smartphone completely. If the device is frozen and does not turn off in the standard way, press the power button for 10-15 seconds before vibration.

After turning it off, press the Volume Up and Power button at the same time. Hold them until the Mi or Redmi logo appears, and then the power button can be released while holding the volume rocker. In a few seconds, the Main Menu will open to you. The navigation is done with volume buttons (up/down), and the choice of item is confirmed by a short press of the power button.

The interface can be in English or Chinese. If you see characters, don't panic. Usually, these menus have a Switch Language option (often the fifth or sixth on the list), where you can choose English or Russian if language support is built into a particular version of Recovery. The standard Xiaomi menu contains items: Reboot, Wipe Data, Connect with MIAssistant, Secure Mode and others.

What to do if the buttons do not respond?
If you press the buttons and nothing happens, you may have a broken button plume or a battery drain to zero. Try leaving your phone on charge for 30-40 minutes, then repeat the procedure. In rare cases, you need to disassemble and close the test points on the board.

There is also a software way to log in if the system is stable. Go to Settings → About Phone → MIUI version. Click multiple times on the shell logo until the message "Additional Features are enabled" appears. Then click on three dots in the corner of the screen and select Reboot to Recovery Mode. This method is more secure, as it eliminates the button-press timing error.

Algorithm of installation of firmware from ZIP-archive

After successfully logging in and selecting a language, we move to the main process. We are interested in Install zip (or “Install zip”). In some versions of Recovery, this item may be called Apply Update → Choose from internal storage.

Navigate the folders with volume buttons, choose with power buttons. Find a firmware file (usually at the root or in the Download folder) and click on it. The system will ask you to confirm the action, because the process is irreversible. Choose OK or Confirm. The process of verifying the file and installing it will begin.

The progress bar will appear on the screen. Don't touch the device at this point. It can take anywhere from 5 to 15 minutes, depending on the volume of partitions being updated and the memory speed, while new system libraries, kernels and interfaces are being recorded, and interrupting the process at this point is critically dangerous.

⚠️ Note: If you see a message “Verification failed” or “Signature verification failed” during installation, it means that the firmware file is corrupted, not suitable for your model, or you are trying to roll back to an older version (Anti-rollback protection).

Once the installation is completed successfully, the system will suggest restarting. Select Reboot → Reboot to System. The first run after the firmware can last longer than usual (up to 5-10 minutes), as the applications are optimized and new system files are created. Be patient and do not try to restart the phone manually during this period.

💡

Installing via ZIP in Recovery is the only way to upgrade or restore a phone without using PCs and cables, as long as the device is at least partially functional.

Data reset (Wipe Data) and cache cleanup

Often, a complete data reset is required after firmware or software failures. The Wipe Data (or “Erase Data”) is responsible for this in the Recovery menu. Within this section, there are usually two main options: Wipe All Data (full reset) and Wipe Cache (clean up cache).

Cache removes temporary system and application files. This is a secure operation that does not affect your personal photos, contacts or messages. It is recommended to do this if the phone is slow, applications fly out or artifacts are observed in the interface after the update.

Wipe All Data removes all user data, returning the phone to the “out of the box” state, a step that is mandatory when switching between major versions of Android (for example, from Android 11 to 12) or changing the firmware region. If you do not make Wipe All Data during such transitions, there is a high probability of errors, “junk” in the system and unstable work.

Action.What's removedRisk of data lossWhen to apply
Wipe CacheTemporary files, logsNo.Brakes, application errors
Wipe All DataPhotos, contacts, applications, settingsHigh (100%)Change of Android version, sale
Install ZipReplaces system filesDepends on the firmware.Update, refurbishment

Once you run Wipe All Data, the phone will restart and prompt you to select a language and reconfigure the device, just like when you first turn on. This is normal behavior. If you plan to use a Google backup or Mi Cloud, make sure you have access to your account and passwords.

📊 Why are you going to sew your phone?
Recovery after failure
Delete the advert
Update Android
Change the region
Just curious.

Possible errors and ways to eliminate them

One of the common bugs is Error 7 or not being verified, which often happens if you try to install global firmware on top of Chinese (or vice versa) without unlocking the bootloader, in which case Recovery blocks the installation for security reasons.

Another common problem is the brick, where the phone doesn't turn on after the firmware is installed or hangs on the logo. If the phone responds to buttons and enters Recovery, try doing Wipe All Data again. If the phone doesn't respond to anything other than charging, you may need Fastboot mode and the Mi Flash Tool software through your computer.

Users also often experience an error when upgrading from a newer version to an older version (Downgrade), MIUI and HyperOS have anti-rollback protection, and if you try to flash the old version, the phone may lock up dead. Always check the anti-rollback version before trying downgrade.

⚠️ Attention: The message "Can't verify update" often means regions are incompatible. EEA (Europe) will not be able to use a device with a regional code RU (Russia) or Global without special manipulation and unlocked bootloader.

If the process is stuck at a certain percentage (e.g. 45% or 99%) during the installation process and does not move for more than 20 minutes, the firmware file is likely broken or damaged in one of the memory partitions, in which case you will have to remove the battery (if possible) or pinch the power button for 20 seconds to force a reboot and try another firmware file.

How Recovery is Different from Fastboot

Many beginners confuse Recovery and Fastboot modes, although they are fundamentally different tools. Recovery is a recovery environment built into the Android operating system itself. It has limited functionality: reset, install. ZIP-You don't need a computer to run Recovery, it's done with buttons on the phone.

Fastboot is a low-level debugging protocol that works before Android boots, allows you to directly interact with the memory partitions of the device (flash, erase, reboot, USB-Fastboot gives more rights: through it you can unlock the bootloader, reflash any partition, flash Recovery (for example, TWRP).

If you just need to upgrade, reset your password, or restore your system after a failed upgrade, use Recovery. If your phone doesn't turn on at all, you need to change the firmware region from China to Global, unlock the bootloader, or restore the brick, you'll need a Fastboot and a PC.

Can I run TWRP through standard Recovery?
No, Xiaomi’s standard Recovery does not allow you to install custom Recovery (TWRP) directly. To install TWRP, you need an unlocked bootloader and use Fastboot.

Understanding this difference will save you a lot of mistakes. Don't try to flash a full system image through the Recovery menu if the instruction requires Fastboot, and vice versa. Each tool is designed for its own purposes and has its own security and file system access limitations.

Frequently Asked Questions (FAQ)

Will the warranty fly after firmware through Recovery?
Official flashing through the Recovery menu to the same version or newer (OTA-However, if you unlock the bootloader (which is often required for custom firmware) or install a modified Recovery, it does not affect the warranty (TWRP), The warranty may be cancelled, and the warranty does not cover software failures caused by user actions.
How do I know which version of the firmware I need?
Go to Settings → About phone and see the current version (e.g. 12.5.6). You need a version with numbers higher or equal to the current one if you don't want to roll back (which is risky). Also important is the region: Global (MIUI Global) for world versions, CN for Chinese. The region code is listed at the end of the version (e.g. RU, EEA, ID, IN).
Can I flash Xiaomi through Recovery without unlocking the bootloader?
Yes, you can install official firmware in the same region and versions as old as the current one, but you can't install custom Recovery (TWRP) Or modified firmware without unlocked bootloader. Standard Recovery will block the installation of unsigned or incompatible ZIP-file.
What to do if the phone after firmware goes into a cyclic reboot?
Try re-entering Recovery (Volume Up + Power) and running Wipe All Data. If that doesn't work, the firmware may not be compatible. Try finding a firmware archive for your model and region. At worst, you'll need firmware on your computer via Fastboot.
Where can I download a secure firmware?
Use only trusted sources: the official website miui.com, the 4PDA forum (branches of specific models) or specialized firmware aggregators sites such as xiaomifirmwareupdater.com. Avoid files from questionable Telegram channels without comments or feedback.