Xiaomi Redmi 9 (codenamed lancelot) remains a popular budget smartphone even in 2026, but over time its performance may decline due to outdated software. Flashing the device will help to restore the old speed, install a fresh version of MIUI or even custom firmware like LineageOS or Pixel Experience. However, the process requires care: wrong actions can turn the phone into a βbrickβ.
In this guide, we will analyze all methods of firmware - from official updates through Recovery to install custom software through Fastboot and TWRP. You will learn how to unlock the bootloader, where to download proven firmware for Redmi 9, and how to avoid errors like anti-rollback or hanging on the Mi logo. EEA-version MIUI β The wrong choice can lead to problems with IMEI mobile.
Preparation for firmware: what to do before the start
Flashing is not just about pressing a few buttons, but it's about your preparation whether Redmi 9 will stay functional or turn into an expensive alarm clock.
- π Charge the battery to at least 60%, and when discharged during firmware, the phone may turn off, leading to a software failure.
- π± Back up. Use Mi Cloud, Google Drive, or local copy on your PC. The firmware erases the data in the section. /data!
- π Find out the version. MIUI And the region. Go to Settings. β The phone. β Version. MIUI. If it says China and you download Global, you risk losing your network.
- π» Install the Mi Flash Tool (for Fastboot) and Xiaomi drivers (or use the Mi). PC Suite).
If you plan to install custom firmware, you will additionally need:
- π Unlock the bootloader through the Mi Unlock Tool (more on this below).
- π οΈ Install TWRP Recovery β custom recovery for installation of unofficial firmware.
- π‘ Download the firmware from a verified source (recommended) XDA Developers or Xiaomi Firmware Updater).
β οΈ Note: If your Redmi 9 is purchased in China (China version), Global firmware or EEA Check compatibility on the Mi Verify website.
Method 1: Update via Recovery (without PC)
The easiest and safest method is to upgrade through stock recovery, which is suitable for installing official MIUI updates if:
- π² You already have. MIUI (custom-free).
- π You are updated within a single branch (e.g., with a MIUI 12 on MIUI 13, but not from China to Global).
- π You have a firmware file in.zip format (not.tgz for Fastboot!).
Step-by-step:
- Download the firmware from the official website (select the Redmi 9 model and region).
- Rename the file to update.zip and move it to the root directory of the phoneβs internal memory.
- Turn off the phone, then press Volume Up + Power to enter Recovery.
- Select the language (if you have an option), then go to Install update.zip to System.
- Confirm the installation and wait for completion (5-10 minutes).
- Select Reboot to System.
If you reboot your phone with the Mi logo, reset it with Recovery (Wipe Data β Wipe All Data) and delete all data, but it will restore the functionality.
βοΈ Preparation of a firmware file for Recovery
Method 2: Fastboot Firmware (official MIUI)
Fastboot is suitable for βreanimatingβ the phone if it does not turn on, or for forced installation of official firmware.
Important: This method completely erases data, including internal memory! and it does not work with a locked bootloader (unless you have unlocked it before).
Instructions:
- Download the Fastboot firmware (.tgz file) for Redmi 9 from the official website.
- Uncancel the file into a folder without Cyrillic characters (e.g., C:\MIUI\lancelot).
- Turn off your phone and put it in Fastboot mode: Press Volume Down + Power.
- Connect your phone to your PC through USB-cable (preferably original).
- Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
- At the bottom, choose Clean All (full cleaning) or Clean All and Lock (clean + lock bootloader).
- Press Flash and wait until it is completed (the process will take 5-15 minutes).
β οΈ Note: If the Mi Flash Tool is an anti-rollback error, you are trying to install an older version. MIUI, Solution: download the firmware with a newer build date or use a patch from the phone. XDA.
| Mistake. | Reason. | Decision |
|---|---|---|
| anti-rollback | Reverse to the old version of MIUI | Use firmware with a newer date or patch |
| This device is locked | bootloader locked | Unlocking with Mi Unlock Tool |
| Flash not done | Problems with drivers or USB-connection | Reinstall drivers, try another cable/port |
| Phone is not defined in Fastboot | Incorrect drivers or mode | Install Mi USB Driver, check the connection mode |
π‘
If the Mi Flash Tool is 99% hanging, don't turn off the phone! wait 10-15 minutes - sometimes the process is completed with a delay.
Method 3: Install custom firmware (TWRP + LineageOS/Pixel Experience)
Custom firmware like LineageOS or Pixel Experience delivers pure Android without ads or Xiaomi apps, but requires an unlocked bootloader and TWRP Recovery.
Warning: this method voids the warranty and may cause problems with Widevine L1 (loss of HD support on Netflix/Disney+).
Step-by-step:
- Unlock the bootloader through the Mi Unlock Tool (instruction below).
- Download: π± TWRP Recovery for Redmi 9 (for example, here). π¦ Custom firmware (e.g. LineageOS 20). π Disable Force Encryption (if the firmware does not support encryption).
TWRP
Fastboot
fastboot flash recovery twrp.img
fastboot boot twrp.imgTWRP
Wipe β Format Data β Yes
MTP
TWRP
Install β Select a file β Swipe to Confirm
Disable Force Encryption
Magisk
Reboot β System
β οΈ Note: After installing custom firmware, do not update through OTA! This can lead to a freeze. All updates are manually installed through the TWRP.
What is Disable Force Encryption and Why is it Used?
How to unlock the bootloader on Redmi 9
Without unlocking the bootloader, you will not be able to install custom firmware or TWRP. Xiaomi allows you to do this officially, but with restrictions:
- π Wait 168 hours (7 days) after linking your account to your phone.
- π± The phone should be on the official MIUI (casteless!).
- π Mi Account must be linked to the phone and confirmed by SMS.
Instructions for unlocking:
- Enable OEM Unlock and USB Debugging: Go to Settings β About Phone β MIUI Version and tap 7 times on the build number to activate Developer Mode. Return to Settings β Additional β For Developers and enable: OEM Unlocking (unlock bootloader), USB Debugging (USB debugging).
Mi
Settings β Xiaomi Account β Synchronization
Mi Unlock Tool
Mi
Fastboot
Loudness down + Nutrition
Unlock
Wait until the end (if there is an error, try again in 24 hours).
If the Mi Unlock Tool is a Couldn't unlock error, check:
- π Cable and port USB (Use the original cable and port USB 2.0).
- π Has it been 168 hours since the account was linked.
- π± Is there an official phone on the phone? MIUI (Custom firmware blocks unlocking).
π‘
Unlocking the bootloader erases all data from the phone! make a backup in advance.
Frequent mistakes and their solutions
Even with the exact following of the instructions, there can be problems.
| Problem. | Possible cause | Decision |
|---|---|---|
| The phone does not turn on after the firmware | Incorrect firmware (e.g. China instead of Global) | Switch the correct version through Fastboot |
| Hanging on the Mi logo | Version conflict or incomplete firmware | Run Wipe Data in Recovery or Refuse |
| The anti-rollback error | Reverse to the old version of MIUI | Use a firmware with a newer date |
| No network after firmware | Incompatibility of modems (e.g. China β Global) | Restore the correct version or restore the IMEI |
| Mi Flash Tool doesn't see the phone | No drivers or incorrect mode | Install Mi USB Driver, check Fastboot |
If the IMEI is missing after the firmware or the mobile network is not working, try:
- Restore IMEI via Engineer Mode (type ##4636## β Information).
- Swipe modem and nvram through Fastboot (files can be found on 4PDA).
- Reset network settings: Settings β SIM-maps and mobile networks β Resetting settings.
π‘
If Google services do not work after custom firmware, install NikGapps or OpenGapps via TWRP.