How to flash Xiaomi Redmi through the recavers: a complete guide to debriefing errors

Firmware on Xiaomi Redmi smartphone through recovery mode is one of the most reliable ways to update or restore the system when standard methods do not work. MIUI-Firmware and custom builds (like LineageOS or Pixel Experience) The main advantage of firmware through the Recovery is the ability to bypass system locks and bring the phone back to life even after serious failures.

However, not all users know that there are two types of recovery: stock (from Xiaomi) and custom (for example, for example, TWRP). The first is suitable only for official firmware and has limited functionality, the second opens access to advanced features, including backups, installation of modified cores and root rights. In this article, we will analyze both options, pay attention to the preparation (unlocking the bootloader, backup) and describe in detail each step - from downloading the firmware to the final restart.

Important: The process of firmware through the Recovery irreversibly erases user data on the partition /data, If you don't backup in advance, there are also some Redmi models (like the Redmi Note). 12 or Redmi 10C) may have additional protections requiring circumvention EDL-We'll look at these nuances.

1. Firmware Preparation: What to Do Before Starting

Before you start firmware, make sure all the prerequisites are met. Neglecting preparation can lead to a device being "bricked" or critical data being lost.

  • πŸ”‹ Battery charge at least 60 percent, and it can take up to 30 minutes to run through the Recovery, and the discharge in the process will interrupt the installation.
  • πŸ“± Unlock the bootloader. Without that, the stock recavator won't allow you to install the firmware, and TWRP It won't start at all. More on that in the next section.
  • πŸ’Ύ Backup: Use Mi Cloud, Google Drive, or physical copying to your PC. In the recavator, the internal memory will be erased!
  • πŸ”— Cable USB Original or high-quality. Cheap cables can interrupt data transmission during firmware.

Also check your Redmi model in settings (Settings) β†’ The phone. β†’ The firmware is strictly linked to the model code (e.g. Redmi Note 11 Pro). 5G It has the code veux and Redmi. 9A β€” Installing firmware from another model will cause an Error 7 error or device failure.

πŸ“Š What kind of firmware do you plan to install?
Official MIUI
LineageOS (Pixel Experience)
Stock, but newer version
I don't know.

Pay special attention to drivers. To work with Xiaomi via PC, you need Mi Flash Tool drivers and ADB/Fastboot. You can download them from the official Xiaomi website or through Android. SDK Platform-Tools. Make sure your PC recognizes your phone in Fastboot mode (checked by the fastboot device team at the terminal).

2 Unlock the bootloader on Xiaomi Redmi

The bootloader on all Xiaomi smartphones is locked by default, a security measure that makes it harder to run through the recovery, and unlocking requires:

  1. Linking your Mi Account to your device (required!).
  2. Getting permission through the Mi Unlock Tool service.
  3. Expectations of 7-168 hours (depending on Xiaomi policy)

The unlocking process:

  1. Download and install the Mi Unlock Tool.
  2. Turn on the developer mode on the phone (7 times click on the version) MIUI in settings) and activate OEM Unlock and Debugging by USB.
  3. Connect your phone to your PC in Fastboot mode (turn off your phone, press Volume down). + Nutrition).
  4. Launch the Mi Unlock Tool, log in to your Mi Account and follow the instructions.
What to do if Mi Unlock Tool gives you a "Couldn't unlock" error

A Couldn’t unlock error usually means that:

  • Mi Account is not tied to the phone (you need to go to the account settings on the device).
  • It has not been 168 hours since the first tether (Xiaomi may require a wait of up to 7 days).
  • The unofficial version of the Mi Unlock Tool is used (download only from the official website!).
  • The phone does not support unlocking (relevant for some regional versions, such as Redmi for India).

Solution: Check your account’s binding, wait a specified time, or try unlocking from another PC.

Once the bootloader is successfully unlocked, the phone will automatically reset to factory settings. That's fine -- that's how Xiaomi protects user data. Now you can start installing the recaveri.

3. Recovery selection: stock vs. TWRP

Xiaomi's stock recovery is only suitable for.zip firmware installation, and does not support backups, custom cores or modified firmware installations.

  • ❌ No support. ADB sideload (installation of firmware from PC).
  • ❌ You can't sew custom. ROM.
  • ❌ No access to the file system to manually delete files.

Castom Recovery TWRP (Team Win Recovery Project removes these restrictions. It allows you to do this:

  • βœ… Install any firmware (including unofficial ones).
  • βœ… Make full backups (Nandroid backup) and restore them.
  • βœ… Mount system sections for editing files.
  • βœ… Use it. ADB sideload and terminal directly to the Recovery.

However, TWRP unofficial software, and its installation may lead to problems with data encryption or OTA-For most Redmi models (e.g. Redmi Note 10 Pro, Redmi) 9T) stable assemblies TWRP, New devices (released after 2023) may require a special version with dynamic partition support.

πŸ’‘

Before installation TWRP check out the forum XDA Developers, is there a working build for your Redmi model. K50) require patchy TWRP because of the changed partition structure.

CriteriaStock riversTWRP
Support for official firmwareβœ… Yes.βœ… Yes.
Support for custom firmware❌ No.βœ… Yes.
Backup and recovery❌ No.βœ… Complete Nandroid.
ADB sideload❌ No.βœ… Yes.
Risk of "brick"⚠️ Low.⚠️ Medium (in case of errors)

Installation TWRP Xiaomi Redmi

If you choose TWRP, Take the Redmi Note 11 Pro model for example.+ 5G (peux code), but the steps are relevant for other devices with the name of the file recaveri.

What you need:

  • πŸ“± Unlocked loader (see section 2).
  • πŸ’» PC with installation ADB and Fastboot.
  • πŸ”— File. TWRP For your model (download from twrp.me or XDA).

Step-by-step installation:

  1. Download the file. TWRP in.img format (e.g, twrp-3.7.0_12-peux.img) And put it in a folder with platform-tools.
  2. Connect your phone to your PC in Fastboot mode (turn off your phone, press Volume down). + Nutrition).
  3. Open the command line in the platform-tools folder and execute the command: fastboot flash recovery. twrp-3.7.0_12-peux.img
  4. After a successful firmware immediately go to TWRP, Do not reboot your phone to the system! + Food before the appearance of the logo TWRP.

β˜‘οΈ Pre-installing check TWRP

0

Downloaded the correct file TWRP for your model|Loader unlocked|Drivers installed ADB/Fastboot|Phone in Fastboot mode|Encryption is disabled (if you plan to use custom firmware)

⚠️ Attention: New Redmi models (2023–2026 year) stock firmware may be rewritten TWRP When you first load, to avoid this, after you install it. TWRP I need to sew it up right away. disable_dm-verity_forceencrypt.zip (If you are planning to use custom firmware) or patched boot.img.

5. Firmware through the Recovery: step-by-step instructions

Now that the Recovery is installed, we can start to run the firmware, and let's look at both of these options: through the stock Recovery and TWRP.

Firmware through the stock Recovery (MIUI)

This method is suitable for installing official firmware in.zip format. Download the desired version. MIUI from en.miui.com (select Recovery) ROM, Not Fastboot. ROM!).

Instructions:

  1. Place the firmware file (for example, miui_VEUXGlobal_V14.0.2.0.TKCMIXM_210a123456_12.0.zip) root folder of the phone's internal memory.
  2. Turn off your phone and go into the stock recap: press Volume up + Nutrition.
  3. Select the language (if available), then Install update.zip to System.
  4. Confirm the installation and wait until the completion (usually 5-15 minutes).
  5. After you complete the process, select Reboot to System.

⚠️ Note: If the firmware is interrupted with an Error error: E3004, It means that the file is corrupted or not suitable for your model (MD5) downloaded file and try again.

5.2. Firmware through TWRP

TWRP It's more powerful, but it's also a little bit more careful:

  1. Download firmware (for example, LineageOS or MIUI Recovery ROM) and place it on the internal memory or SD-map.
  2. Come in. TWRP: Turn off the phone, press the volume up. + Nutrition.
  3. Backup your current system (optional, but recommended): Go to Backup. Select Boot, System, Data. Swipe to create a backup.
  4. Click on Wipe β†’ Advanced Wipe and mark Dalvik / ART Cache System Data Cache

Swipe for confirmation.

Install

GApps

Magisk

Reboot β†’ System

πŸ’‘

When you're firmware through TWRP Never format the Internal Storage section in the Wipe section – it will erase all data, including the firmware you wanted to install!

If you've had your phone hang on the Redmi logo for more than 10 minutes after you've been firmware, you've made a mistake. Try repeating the process or flashing a different version of the firmware.

6. Common errors and their solution

Even with the correct instructions, errors can occur, and here are the most common ones and how to correct them:

Mistake.Reason.Decision
Error 7 in the drainage RecoveryInappropriate firmware for the modelDownload the correct version MIUI for your device code
Failed to mount /data in TWRPEncryption of the data sectionData format in TWRP (Wipe β†’ Format Data β†’ yes)
The phone does not turn on after the firmwareA damaged boot partition or incompatible kernelFastboot (Mi Flash Tool)
E3004 drain-riverA damaged firmware fileCheck it out. MD5-hash the file and download it again
TWRP Asks for a password when mounting dataFBE (File-Based Encryption)Format data or use patched data TWRP

If your error is not listed in the table, try searching for a solution in the forums. 4PDA or XDA Developers, specifying the exact Redmi model and error text.

What to do if your phone is stuck in a bootloop (cyclic reboot)

Bootloop is when the phone is constantly rebooted on the Redmi logo.

  • Incompatible firmware or core.
  • Damaged boot or system partitions.
  • Error in installation through the Recovery.

Decision:

  1. Go into the Recovery (TWRP stock-stock).
  2. Make a Wipe. β†’ Advanced Wipe (tag Dalvik, Cache, Data, System).
  3. Make sure you have a good workout (preferably an official one).
  4. If it doesn’t work, then run through Fastboot using the Mi Flash Tool (select Clean All).

7. Firmware through ADB Sideload (alternative method)

If you can’t copy the firmware to your phone (for example, due to damaged memory), you can use it. ADB Sideload. This method works in both the drain Recovery (if supported) and in the TWRP.

Instructions:

  1. Download the firmware on your PC and place it in the folder with the platform-tools.
  2. Go to the recavery on your phone.
  3. Select Apply Update β†’ Apply from ADB (in drainage Recovery or Advanced β†’ ADB Sideload (in) TWRP).
  4. Connect your phone to your PC and do: Adb sideload miui_VEUXGlobal_V14.0.2.0.TKCMIXM_12.0.zip
  5. Wait until the installation is complete (Total xfer will appear in the terminal: 1.00x).

⚠️ Attention: When in use ADB Sideload in the Xiaomi sewage recavery firmware must be official and signed. Castom firmware cannot be installed this way - you need to use it. TWRP.

8.After Firmware: First Steps and Optimization

After successful firmware, the phone can boot longer than usual (up to 10-15 minutes). Don't panic, this is normal, especially for custom firmware. Here's what you need to do after the first download:

  • πŸ”„ System settings: Go through the initial setup (choice of language, connection to Wi-Fi, login to your account) Google/Mi).
  • πŸ”’ Safety: If you have been given a custom ROM, Install Magisk for root rights management and check for SafetyNet (via SafetyNet Checker app).
  • πŸ“± Functional check: Make sure your camera, sensors, mobile network and Wi-Fi are working. If something isn't working, it may be that the firmware is incompatible with your hardware.
  • πŸ”‹ Battery calibration: After firmware, reset the battery statistics: charge the phone to 100%, then discharge to 0% and recharge without interruption.

If you have been through the official MIUI, Check for updates in Settings β†’ The phone. β†’ System Update: Custom firmware (e.g. LineageOS) is updated through the built-in update menu or manually through the Recovery.

πŸ’‘

After installing custom firmware, turn off automatic optimization MIUI in the battery settings (Settings) β†’ Battery β†’ Battery optimization: This will prevent background processes from accidentally closing down.

FAQ: Frequent questions about Xiaomi Redmi firmware

Can I flash my phone without unlocking the bootloader?
No, Xiaomi stock recavators do not allow you to install firmware without unlocked bootloader. β†’ Update the system, but it doesn't apply to the firmware through the Recovery. TWRP unlocking is mandatory.
How to return stock recavator after installing TWRP?
Download the official file recovery.img For your model (can be extracted from Fastboot) ROM) Fastboot: Fastboot Flash Recovery recovery.img Then reboot the phone. Be aware that it will delete TWRP.
Why is the mobile network not working after the firmware?
This is a typical problem when installing custom firmware Solutions: Check if the firmware supports your modem model (e.g., some LineageOS builds do not include proprietary drivers for Redmi). 4PDA or XDA Back to the stock firmware via Fastboot.
How to flash the phone if it does not turn on (brick)?
If the phone doesn’t respond to buttons or is stuck on the logo, try: Log in Fastboot (clamp Volume down) + Power. If you can, run the stock firmware through the Mi Flash Tool. If the Fastboot is not available, try the mode. EDL (This requires special cables or boxes (for example, Deep Flash Cable.
Can I run my phone through the receptacles without losing data?
Most of the time, no. Firmware through the Recovery involves cleaning the partition. /data, where user files are stored. Exception - update via ADB Sideload in the drain Recovery (if the firmware supports) OTA However, even in this case, it is recommended to make a backup.