How to flash Xiaomi Redmi 9: 3 working methods + error solving

The firmware of the Xiaomi Redmi 9 is a challenge that every owner of this device faces sooner or later: someone wants to upgrade to the current version of MIUI, someone wants to fix bugs after a failed update, and someone plans to install custom firmware for advanced features. But regardless of the purpose, the process requires care: wrong actions can turn the phone into a brick.

In this article, we will discuss all the current ways to run Redmi 9 (codenamed lancelot), including official and alternative methods. You will learn how to prepare a device, where to download the correct firmware files, and what to do if something goes wrong. And also unique nuances for this model that are not mentioned in the general instructions (for example, the features of working with an unlocked bootloader on the MediaTek Helio G80 chipset).

If you're a beginner, start with the official methods (via MIUI Updater or Recovery). Alternative methods like Fastboot or custom firmware (LineageOS, Pixel Experience) require unlocking the bootloader and can be unwarranted. But don't worry, with the right approach, the risks are minimal.

1. Firmware Preparation: What to Do Before You Start

The first and most important step is preparation, and neglecting these steps often leads to errors like Error: Critical Partition or hanging on the MI logo.

  • ๐Ÿ”‹ Battery charge: at least 60%. When you run through Fastboot, the phone doesn't charge from the battery. USB, And a sudden shutdown will interrupt the process.
  • ๐Ÿ“ฑ Device model โ€“ make sure you have a Redmi 9 (lancelot code) and not a Redmi 9A (dandelion) or Redmi 9C (Angelica's firmware incompatible!
  • ๐Ÿ”“ Unlocked bootloader - only needed for custom firmware or manual installation via Fastboot. checked by the fastboot oem device-info command (must be Device unlocked: true Device unlocked: true).
  • ๐Ÿ’พ Backup: The firmware will reset all the data. Use Mi Cloud or TWRP backup.

Also prepare:

  1. USB Type-C cable (original or quality) cheap cables can cause data transmission errors.
  2. Windows computer 10/11 (for Fastboot or ADB-drivers for Xiaomi.
  3. Firmware file โ€“ download only from official sources (links below in the section โ€œWhere to get firmwareโ€).

โš ๏ธ Note: If you are flashing a phone with a locked bootloader (by default), then Fastboot methods and custom firmware will not be available. Unlocking takes up to 72 hours and requires a Mi Account binding.

๐Ÿ“Š What kind of firmware you plan to use?
Official Update via MIUI Updater
Firmware through Recovery
Fastboot method
Custom firmware (TWRP)

2.Where to download firmware for Redmi 9: official and alternative sources

The right firmware file is responsible for 90% of the success, and Redmi 9 (lancelot) has three types of firmware available:

Type of firmwareWhat's the point?Where to downloadFile size
Stable MIUI (official)Update the system without data loss, fix bugsOfficial Xiaomi website1.8-2.2 GB
Fastboot ROMRestoration of the โ€œbrickโ€, complete flashing from the PCXiaomi Firmware Updater2.5โ€“3 GB
Recovery ROMInstallation through stock or custom RecoveryThe same official website (section "Recovery ROM")1.5-1.9 GB
Castomic (LineageOS, etc.)Advanced features, pure AndroidXDA Developers1-1.5 GB

Important: for Redmi 9, there are firmware for different regions:

  • ๐ŸŒ Global (world version, supports Russian language)
  • ๐Ÿ‡จ๐Ÿ‡ณ China (without Google services)
  • ๐Ÿ‡ช๐Ÿ‡บ EEA (Europe, with GDPR-restraint)
  • ๐Ÿ‡ฎ๐Ÿ‡ณ India (specific settings for India)

Just download the version that matches your current firmware, for example, if you have Global Stable, you can't flash China, which will cause problems with IMEI or mobile network.

โš ๏ธ Note: Firmware files with names like lancelot_global_images_V12.0.1.0.QJCMIXM The file contains a full system image (Fastboot) and the files miui_LANCELOTGlobal_V12.0.1.0.QJCMIXM_... โ€” It's Recovery. ROM. Don't mix it up!

๐Ÿ’ก

Before downloading, check the checksum (MD5) of the firmware file, which will protect against corrupted or fake files, and compare the hash to what is listed on the source site.

3. Method 1: Firmware via MIUI Updater (the safest method)

This method is suitable for updating the current version of MIUI without losing data. It does not require unlocking the bootloader and works even on locked devices.

Instructions:

  1. Open on the phone Settings โ†’ About the phone โ†’ System update.
  2. Click on the icon ยซโ‹ฎยป (three dots) in the upper right corner and select Select firmware file.
  3. Specify the path to the downloaded Recovery ROM file (with the.zip extension).
  4. Confirm the installation and wait for the restart (it will take 5-10 minutes).

Advantages of the method:

  • โœ… All data and settings are stored.
  • โœ… Minimum risk of error.
  • โœ… No need for PC or special knowledge.

Disadvantages:

  • โŒ You can only upgrade to the version that the current firmware allows (for example, with the MIUI 12 on MIUI 13, but not on MIUI 14, unless there are interim updates).
  • โŒ It wonโ€™t help if the phone doesnโ€™t turn on or hangs on the logo.
What if MIUI Updater doesnโ€™t see the firmware file?
If you select a file with a Can't verify update error, you can see 1. The firmware file is corrupted (check MD5). 2. You downloaded the firmware for another model (for example, Redmi 9 Prime). 3. The current version of MIUI is too old for the selected update (you need to flash the intermediate version first).

๐Ÿ’ก

MIUI Updater is the only official way to upgrade the Redmi 9 without risking losing warranty or data.Use it first if the phone is stable.

Method 2: Firmware through Recovery (to restore the system)

This method is useful if the phone is turned on but is unstable (for example, constantly restarting or not loading the system), and it is suitable for installing official firmware without a computer.

Step-by-step:

  1. Download Recovery ROM (.zip file) and rename it to update.zip.
  2. Move the file to the root directory of the phoneโ€™s internal memory (not to folders!).
  3. Turn off the device, then press Power + Volume up to enter Recovery Mode.
  4. From the Recovery menu, select Install update.zip to System (use volume buttons for navigation, power button for confirmation).
  5. After you complete the process, select Reboot to System.

Important nuances:

  • ๐Ÿ”„ If after firmware the phone hung on the logo for more than 15 minutes, perform a data reset (Wipe Data) in the same Recovery.
  • ๐Ÿ“ Don't unpack the file. update.zip โ€” It should remain an archive.
  • ๐Ÿ”’ If Recovery asks for a password, it means that you have custom Recovery installed (for example, TWRP). In this case, use the method for custom firmware (section 6).

โš ๏ธ Attention: The Redmi 9 stock Recovery doesn't have backup function.If you don't backup in advance, all data will be lost when reset!

Downloaded official update.zip for Redmi 9 (lancelot)| File renamed and located in the root of memory | Battery charge > 50%| I know how to log in to Recovery Mode-->

5. Method 3: Fastboot firmware (complete system reinstallation)

Fastboot is the most reliable way to bring a phone back to life if it doesn't turn on or is "bricked." It requires a computer, USB-cable and unlocked loader.

What you need:

  • ๐Ÿ–ฅ๏ธ PC with installation ADB and Fastboot.
  • ๐Ÿ“ฆ Fastboot ROM for Redmi 9 (file.tgz or.zip).
  • ๐Ÿ”Œ Cable USB Type-C (preferably original).

Instructions:

  1. Unpack the archive with the firmware in the folder platform-tools (where are adb.exe and fastboot.exe).
  2. Turn off the phone and press Power + Volume down to log into Fastboot Mode.
  3. Connect the phone to your PC and check the connection with the command: fastboot devices (should display the serial number of the device).
  4. Start the firmware script: For Windows: double-click on the file flash_all.bat. For Linux/macOS: execute./flash_all.sh terminally.

Wait until it is completed (the process will take 5-10 minutes).

Frequent mistakes and decisions:

  • ๐Ÿšซ Error: Failed to boot into fastbootd โ†’ Check the cable or port USB, Try another computer.
  • ๐Ÿšซ Invalid sparse file format at header โ†’ Download the firmware again (file damaged).
  • ๐Ÿšซ Phone is not defined in fastboot devices โ†’ Install the Mi Flash Tool drivers.
fastboot flash boot boot.img

(file boot.img it's in the firmware folder).-->

6. custom firmware installation (TWRP + LineageOS/Pixel Experience)

Custom firmware gives Redmi 9 new features: clean Android without ads, current security updates and advanced settings.

  1. Unlock the bootloader (instructions on the official Xiaomi website).
  2. Install custom recovery (TWRP).
  3. Switch the firmware itself and GApps (Google services).

Step-by-step:

  1. Download: ๐Ÿ“ฑ TWRP for Redmi 9 (file.img). ๐Ÿค– Custom firmware (e.g. LineageOS for lancelot). ๐Ÿ“ฆ Open GApps (select the option) arm64 โ†’ 11.0 โ†’ pico).

TWRP

Fastboot

fastboot flash recovery twrp-3.7.0_9-0-lancelot.img


fastboot boot twrp-3.7.0_9-0-lancelot.img

TWRP

Wipe โ†’ Format Data

yes

GApps

Install โ†’ Select a firmware file โ†’ Add GApps โ†’ Swipe to Confirm Flash

Reboot โ†’ System

Warnings:

  • โš ๏ธ Castom firmware may not support Widevine L1 (no HD into Netflix/YouTube).
  • โš ๏ธ Some banking applications (Sberbank, Tinkoff) refuse to work on unofficial firmware.
  • โš ๏ธ There is no official support MIUI Camera โ€“ you will have to use Google Camera with manual settings.
How to return the official MIUI after custom firmware?
1. Download Fastboot ROM for your model. 2. Boot into Fastboot Mode (Power + Volume Down). 3. Sweep through the official firmware via Mi Flash Tool (select Clean All option). 4. After the reboot, reset the data to Recovery. Attention: This process will delete all data, including internal memory!

7 Frequent Firmware Errors in Redmi 9 and How to Fix Them

Even when you follow instructions, you can get errors, and here are the most common ways to solve them:

Mistake.Reason.Decision
This package is for "lancelot" devices; this is a "dandelion".Firmware for another model (e.g. Redmi 9A)Download the correct firmware for lancelot
phone is stuck on startup MI logo after firmwareIncompatible version of MIUI or damaged partitionsRun Wipe Data in Recovery or run through Fastboot
Anti-rollback check failTrying to flash the old version of MIUI after the new oneOnly use the version that is newer than the current one.
The mobile network does not work after the firmwareA version for another region (e.g. China)Please use the Global or EEA version.
E: Footer is wrong in RecoveryThe damaged file update.zipDownload the firmware again and check the MD5

If your error is not in the table, try:

  1. Repeat firmware from another USB-port/cable.
  2. Use a different computer (especially if you have a driver problem).
  3. Contact the 4PDA or XDA forums with an error log.

๐Ÿ’ก

90% of Redmi 9 firmware errors are due to faulty firmware file selection or corrupted firmware. USB-Always check the compatibility of the model and the integrity of the archive!

8. FAQ: Answers to frequent questions

Can I flash Redmi 9 without unlocking the bootloader?
Yes, but only official firmware via MIUI Updater or Recovery. Fastboot and custom firmware are required to unlock.
How to find out the current version of MIUI on Redmi 9?
Go to Settings โ†’ About Phone โ†’ MIUI Version. There will be something like V12.5.3.0.RJCMIXM, where: V12.5.3.0 is the MIUI version, RJC is the Android version code (R = Android 11), MIXM is the region (Global).
Lost IMEI after firmware.
This is a common problem with China. ROM To global devices. Solution: Download. QCN-MediaTek editor.Restore. IMEI Engineer Mode (code #3646633## โ†’ CDS Information โ†’ Radio Information. If it doesn't work, run the modem file (NVRAM) Attention: improper recovery IMEI It may violate the law (in some countries it is equivalent to counterfeiting a serial number).
How to roll back the firmware to an older version?
Recoiling is possible, but with caveats: If the current firmware is newer than the one you're rolling back on, Anti-Rollback may work (phone locks). ROM the same branch (e.g. with MIUI 13 on MIUI 12.5, but not on MIUI Before rolling back, make a backup through TWRP!
Do I need to use Redmi 9 if everything is stable?
Not necessarily. Only sew it if you want to: ๐Ÿ”„ Want a new version of Android (like Android 10 on Android 11). ๐Ÿ› Experiencing critical bugs (such as fast battery discharge or overheating). ๐Ÿ”“ You need custom firmware features (like Root or Magisk) if the phone is working properly and the current version is working properly. MIUI Getting security updates โ€“ itโ€™s better not to risk it.