How to install firmware on Xiaomi Redmi: official and alternative ways

The firmware of the Xiaomi Redmi smartphone is a process that can both bring the device back to life and turn it into a brick if you approach it without preparation. β†’ The phone. β†’ Updating the system, completely flashing requires unlocking the bootloader, choosing the right version of the software and strictly following the instructions. This article will help you understand how to safely install firmware on any Redmi models from the budget Redmi. 9A up to the flagship Redmi K70 Pro, including devices with MediaTek and Qualcomm Snapdragon chips.

Many users face the need to flash the phone after an unsuccessful update, infection with viruses or the desire to install custom firmware like Pixel Experience or LineageOS. However, even the official firmware through the Mi Flash Tool has nuances: For example, for models with a MediaTek processor (for example, Redmi Note 12). 5G) You need a separate driver package, and for Snapdragon devices, you need to unlock the bootloader through the Mi Unlock Tool, and we'll go through both scenarios in detail, and we'll also talk about how to avoid common bugs like Invalid image or logo getting stuck. MI.

Before you start, consider: the firmware of the smartphone will void the warranty (if it is still valid) and may lead to data loss. β†’ Google β†’ Backup or Mi Cloud is a must. Also, prepare your Windows computer. 10/11 (for Mi Flash Tool, cable USB Type-C (original or certified) and at least 4 GB of free space on the system disk.

πŸ“Š Why do you want to use your Xiaomi Redmi?
I want to install the latest version of MIUI.
You need to remove viruses/blocking
I'll try the custom firmware (AOSP, Pixel Experience and others.)
The phone does not turn on / hung on the logo
Other

1. Firmware preparation: unlocking the bootloader

The first obstacle to the new firmware is a locked bootloader. Xiaomi locks it on all devices from the factory to prevent the installation of unofficial software. Unlocking takes 3 to 30 days (depending on Xiaomi's policy) and requires the Mi Account to be linked to the device.

First, check the status of the loader:

  1. Turn off the phone.
  2. Press Volume Down + Power before the Fastboot logo appears.
  3. Connect your smartphone to your PC and open the command line (Win + R β†’ cmd).
  4. Enter the command: fastboot oem device-info

If you see Device unlocked: false in the answer, the bootloader is locked.

  1. Download the Mi Unlock Tool (the official tool from Xiaomi).
  2. Sign in to the program under the same Mi Account as on your phone.
  3. Please note that Xiaomi may require you to wait 72-720 hours (3-30 days) before unlocking.

⚠️ Note: If you have not previously linked your Mi Account to your device, unlocking will not be possible. Also, the Mi Unlock Tool does not work on virtual machines - use a physical PC.

Some users use workarounds to speed up the process (for example, changing the region of the account to China), but this can lead to locking the device.

What happens if you flash a phone with a locked bootloader?
Fastboot firmware with the bootloader locked will lead to an error Anti-rollback check fail or Flash is not allowed in Lock State. At best, the phone will simply not sewn, at worst, it will turn into a brick with a flashing red indicator.

2. Selection of firmware: official MIUI vs. custom

Once you unlock the bootloader, you need to decide on the type of firmware. Each option has pros and cons:

Type of firmwareAdvantagesDeficienciesWho's right for?
Official MIUI (Stable/Developer)Full Iron Compatibility Regular Security Updates All Features Work (NFC, IR-blaster.)Advertising in system applications Limited customization Slowdown on weak devicesFor those who want stability
AOSP (Pixel Experience, LineageOS)Clean Android without ads Long-term support (even for older models) Advanced settingsThe camera may not work, NFC Or sensors No official support Harder to installAdvanced users, fans of "stack"
Port from other devices (e.g. port from other devices, MIUI from Redmi Note 11 on Redmi 10)Unusual features, experimentsHigh risk of "bricking", bugsEnthusiasts willing to take risks

For official firmware, download files only from the official Xiaomi website.

  • πŸ“± Model of device (e.g, m2101k7ag For Redmi Note 10 Pro, you can find out in Settings β†’ The phone. β†’ Model or via the Quickboot Getvar Product command.
  • 🌍 Region: Global (world), China (Chinese, without Google), EEA (Europe), India (India).
  • πŸ”„ Version: Stable (stable) or Developer (for developers, may contain bugs).

For custom firmware, use proven sources:

  • πŸ”— XDA Developers – the largest community with firmware and instructions.
  • πŸ”— Telegram channels, like, MIUI Russia or Xiaomi EU.
  • πŸ”— Projects: Pixel Experience, LineageOS.

πŸ’‘

If you downloaded firmware in.tgz or.gz, unpack it before installing. Mi Flash Tool requires a.bat file or folder with the.images extension.

3. Install official firmware via Mi Flash Tool

This is the most reliable way to bring your phone back to life or upgrade to the latest version. MIUI. The Mi Flash Tool only works on Windows and supports firmware through Fastboot modes and EDL (emergency mode for bricks").

Step-by-step:

Download Mi Flash Tool from the official website|

Install Qualcomm or MediaTek drivers (depending on the processor)|

Unpack the firmware into a folder without Cyrillic (for example, C:\MIUI\redmi_note12_pro)|

Charge your phone at least 50% |

-->

  1. Install drivers: For Qualcomm: download QDLoader HS-USB Driver. For MediaTek: Use SP Flash Tool + driver VCOM.
  2. Launch Mi Flash Tool: Select a folder with unpacked firmware. Connect your phone in Fastboot mode (click Volume Down). + Power. Press Refresh, the device needs to be determined.

Select firmware mode:

  • Clean all – cleansing (deleting all data)
  • Clean all and lock - cleaning + Locking the bootloader (for the sale of the phone).
  • Save user data – saving user data (not always stable)
  • Start the firmware: press Flash and wait for completion (5-15 minutes).

If the Mi Flash Tool is flashing Flash is not allowed in Lock State, it means the bootloader is not unlocked. If the Anti-rollback check fail error, you are trying to install an older version. MIUI, than the one already worth.

⚠️ Attention: Firmware through EDL (Emergency mode requires an authorized Xiaomi account and a special cable, a method used by service centers to restore bricks. IMEI.

4. Install custom firmware through TWRP

To install Pixel Experience, LineageOS or other custom firmware, you will need custom recavers - usually TWRP (Team Win Recovery Project.This method is suitable for users who want to get rid of the problem. MIUI or get updates for older devices (e.g., the Redmi Note 8 Pro, which Xiaomi has stopped supporting).

Step 1: Installation of TWRP

  • πŸ”§ Download. TWRP for your model from the official website (file with extension.img).
  • πŸ“± Connect your phone in Fastboot mode and execute the command: fastboot flash recovery twrp-3.7.0_12-0-miatoll.img (Replace the file name with yours).
  • πŸ”„ Reboot to Recovery: Fastboot Reboot Recovery

Step 2. Firmware through TWRP

  • πŸ“ Copy firmware files (usually.zip) and GApps (if you need Google services) to your phone or flash drive.
  • 🧹 V TWRP run the Wipe β†’ Advanced Wipe and mark: Dalvik / ART Cache System Data Cache
  • πŸ“₯ Click Install, select a firmware file and confirm installation.
  • πŸ”„ After completion, repeat the step for GApps (if necessary).
  • πŸ”§ Reboot to the system (Reboot) β†’ Systems. The first launch can take 10 to 20 minutes.

If after firmware the phone is stuck on the logo or went into a bootloop (cyclic reboot), try:

  • πŸ”„ Repeat the Wipe and re-flash.
  • πŸ”§ Install a different firmware version (maybe your model requires a special kernel).
  • πŸ“± Check firmware compatibility with your device on the forum XDA.

πŸ’‘

Custom firmware often requires additional patches for the camera (e.g, ANX Camera for GCam) or cores. Without them, the main camera can run in low resolution or not start at all.

5. Solving common firmware errors

Even with strict follow-up, errors can occur, and we've collected the most common problems and ways to solve them:

Mistake.Reason.Decision
Invalid sparse file format at headerA damaged firmware file or incompatible version MIUI.Download the firmware again and check its hash (SHA-256).
This package is for "m2101k7ag" devices; this is a "m2101k7ai".The firmware is intended for other modifications of the device (for example, global vs Indian).Download the firmware for the exact model (check in fastboot getvar product).
The phone is not defined in the Mi Flash Tool.There are no drivers or faulty cables.Try another one. USB-port (preferably) USB Install drivers manually through Device Manager. Use the original Xiaomi cable.
Hanging on the MI logo after firmwareFirmware incompatibility or incomplete data cleaning.Enter in. TWRP And do the Wipe. β†’ Format Data (enter yes). Refuse the clean installation device.

If none of the methods worked, and the phone turned into a β€œbrick” (no buttons, no PC is detected), there are two options:

  • πŸ”§ Firmware through EDL (requires an authorized account and special equipment).
  • πŸ₯ Contact Xiaomi Service Center (if the warranty is valid, do not talk about firmware attempts).
How to restore IMEI after firmware?
If it's gone after the firmware. IMEI (No network, in Settings β†’ The phone. β†’ Status. SIM Try: Restore backup of nvram or nvdata (if you did backup in the TWRP). Use tools like Maui META (for MediaTek or QCN Rebuilder (for Qualcomm) Reaching the service - self-restore IMEI It may be illegal in some countries.

6. firmware without computer: through Recovery and OTA

If you don't have access to a PC, you can update your firmware directly from your phone, which is suitable for official updates or custom firmware installations through your phone. TWRP, if it has already been established.

Method 1. Update via Recovery (for official use) MIUI)

  • πŸ“± Download the firmware in.zip format from the official website.
  • πŸ“ Rename the file to update.zip Put it in the root of your internal memory.
  • πŸ”„ Turn off the phone and press the volume up. + Food to enter Recovery.
  • 🌍 Choose a language, then Install update.zip to System.
  • πŸ”§ Confirm the installation and wait for completion.

Method 2: Installation of custom firmware through TWRP (PCless)

  • πŸ“± Download firmware and GApps (if needed) to your phone.
  • πŸ”„ Enter in. TWRP (Loudness up + Nutrition).
  • 🧹 Run the Wipe. β†’ Advanced Wipe (Tag System, Data, Cache).
  • πŸ“₯ Click Install, select a firmware file and confirm.
  • πŸ”„ Repeat the step for GApps.
  • πŸ”§ Reboot to the system.

Please note: Firmware through Recovery will not work if:

  • You've got a loader locked.
  • The firmware file is designed to be installed via Fastboot.
  • The device does not support.zip installation via stock Recovery (relevant for new Redmi models after 2022).

7. System optimization after firmware

After successful firmware, it is recommended to follow several steps for stable operation of the device:

For the official MIUI:

  • πŸ”§ Turn off advertising: go to Settings β†’ Memory. β†’ Cleanup β†’ Settings β†’ Disable recommendations.
  • πŸ“± Update all apps through Google Play or App Store.
  • πŸ”„ Reset network settings: Settings β†’ SIM-maps and mobile networks β†’ Resetting network settings.

For custom firmware (AOSP):

  • πŸ”§ Install Magisk for root rights (if necessary): download Magisk.zip and pass through TWRP.
  • πŸ“· Set up the camera: install GCam or ANX Camera (seek configuration on the XDA for your model).
  • πŸ”‹ Calibrate the battery: discharge the phone to 0%, then charge to 100% without interruptions.

If there are bugs after the firmware (for example, it does not work). NFC or fingerprint sensor, check it out:

  • πŸ” Compatibility of firmware with your model on the forum XDA.
  • πŸ“₯ Presence of patches or fixes in the theme of firmware.
  • πŸ”„ Possibility of rollback to the previous version.

πŸ’‘

After installing custom firmware, some functions (for example, IR-The blaster or the Game Turbo may not be there. That's OK -- they're part of it. MIUI and not ported to AOSP-firmware.

FAQ: Frequent questions about Xiaomi Redmi firmware

❓ Can I flash Xiaomi Redmi without unlocking the bootloader?
No, the official firmware through the Mi Flash Tool requires an unlocked bootloader. Except for the update via Recovery (if the version is unblocked). MIUI compatible) or OTA-Update: Custom firmware is only installed on unlocked devices.
❓ How to find out which firmware is right for my Redmi model?
Check the exact model name in Settings β†’ The phone. β†’ Model or through the command fastboot getvar product. then download the firmware from the official Xiaomi website, selecting the right region (Global, EEA, For custom firmware, look for a topic on XDA by device code (e.g, m2101k7ag For the Redmi Note 10 Pro).
❓ What to do if there is no network after the firmware (IMEI missing)?
This is a common problem when running through Fastboot or EDL. Try: Restore backup copy nvram/nvdata (if you backup in TWRP). Use tools like Maui META (for MediaTek or QCN Rebuilder (for Qualcomm) Refuse the device with the correct firmware version (sometimes re-installation helps). If nothing works, contact the service center - self-restore IMEI may be illegal.
❓ Can I roll back the firmware to an older version?
Technically, yes, but Xiaomi uses an Anti-Rollback mechanism that blocks rollbacks on versions older than a certain date. If you try to install the old firmware, you get an Anti-rollback check fail error. To get around this, you need to find firmware with the same or newer Anti-Rollback number (indicated in the file name, for example, the name of the file, V12.5.1.0.RKFMIXM_20210728.0000.00_11.0_global, where 11.0 β€” Anti-Rollback version).
❓ How to flash Redmi with MediaTek processor (e.g. Redmi 9, 10, Note 11)?
For devices on MediaTek use SP Flash Tool instead of Mi Flash Tool. SP Flash Tool and Drivers VCOM. Unpack the firmware (scatter.txt file must be). Download scatter.txt to SP Flash Tool. Connect the phone that's turned off (no buttons!) - it has to be determined. Press Download and wait until it's done. ⚠️ Attention: Firmware through SP Flash Tool without preloader checkmark can lead to loss IMEI!