Xiaomi Redmi 9 is one of the most popular budget smartphones, but over time its performance can be reduced due to outdated software. The firmware of the device helps not only to update the system to the current version, but also to eliminate bugs, improve autonomy or even install custom firmware with advanced features.
In this guide, we will analyze all the current ways of firmware Redmi 9 (codename lancelot), including official methods through MIUI Updater and Fastboot, as well as installing custom firmware such as LineageOS or Pixel Experience. Separately, we will focus on unlocking the bootloader - a mandatory step for most software manipulations. If you are a beginner, start with official instructions; experienced users will find here the nuances of working with ADB, TWRP and Magisk patches.
Preparation for firmware: what you need to know before starting
Xiaomi Redmi 9 firmware is not a complicated process, but it requires preparation. First and foremost, unlocking the bootloader is mandatory for any manipulation, except for updating through MIUI Updater. Without this step, you will not be able to install custom Recovery or flash your phone through Fastboot. Note that unlocking the bootloader erases all data from the device!
The second is firmware choice. The official MIUI versions come in two types:
- π¦ Stable β stable builds with minimal bugs, but no new features.
- π§ͺ Developer (Beta) β weekly updates with fresh features, but errors are possible.
Custom firmware (like LineageOS or HavocOS) gives you more freedom, but can take away some MIUI features like themes or built-in Xiaomi services.
The third thing is backup. Even if you upgrade through MIUI Updater, save important data to your PC or the cloud. For complete security, use TWRP to create a backup of the data and system partition. Don't forget IMEI, because losing it when you fail to run your firmware can make your phone unusable for calls.
β οΈ Note: If your Redmi 9 is purchased in China (market version) CN), firmware MIUI It can block the network. Check the model in Settings. β The phone. β Version. MIUI.
Official ways of firmware: MIUI Updater and Fastboot
The safest method is to upgrade through the built-in MIUI Updater, which is suitable for installing official builds without unlocking the bootloader and does not require a connection to a PC, but this method will not allow you to downgrade the MIUI version or install custom firmware.
To update with MIUI Updater:
- Go to Settings β About the phone β System update.
- Click on the three dots in the upper right corner and select Select the firmware file.
- Specify the path to the downloaded firmware file (.zip format).
- Confirm the installation and wait for the reboot.
The firmware file must match your model (Lancelot for Redmi 9) and region (Global, EEA, India, China) and download them only from the official Xiaomi website.
If the update is βhangingβ during the verification phase, try:
- π Rename the firmware file to update.zip And put it in the root of the internal memory.
- π΅ Shut down. SIM-Map and Wi-Fi before installation.
- π Charge your phone to at least 60%.
For more in-depth control, use the firmware via Fastboot.This method requires an unlocked bootloader and PC with the Mi Flash Tool installed and Xiaomi drivers.
- Download the firmware for Fastboot (.tgz file) from the official website.
- Unpack the archive in a folder without Cyrillic characters.
- Turn off your phone and press Power + Volβ to log into Fastboot.
- Connect the device to your PC and start the Mi Flash Tool.
- Select the firmware folder and press Refresh, then Flash.
β οΈ Note: In the Mi Flash Tool, select Clean All mode only if you want to erase all data. Use Clean All and Lock to save user files).
βοΈ Preparation for firmware through Fastboot
Unlocking the bootloader on Redmi 9: a step-by-step guide
Without bootloader unlocking, you wonβt be able to install TWRP or custom firmware. Xiaomi officially lets you unlock the bootloader, but the process requires a Mi Account and a wait (usually 7-15 days).
Steps to unlock:
- Link your Mi Account to your phone in Settings β Xiaomi account.
- Enable USB debugging: Settings β About Phone β MIUI version (click 7 times), then Additional β For Developers β Debugging over USB.
- Download the Mi Unlock Tool and run it on behalf of the administrator.
- Log in to the same Mi Account as on your phone.
- Turn off the phone, press Power + Volβ to log into Fastboot and connect to your PC.
- In Mi Unlock Tool, press Unlock and confirm the action.
Frequent mistakes and their solutions:
- π Couldn't unlock - account is not tied to phone or wait is not completed. β Additionally. β Special facilities β Status of release.
- β³ Waiting for 168 hours is the standard waiting time.
- π USB Not Recognized β Install Xiaomi drivers or try another cable/port.
Once the bootloader is unlocked, all data on the phone will be erased, including photos, messages and apps.
What if the Mi Unlock Tool canβt see the device?
Install custom Recovery (TWRP) on Redmi 9
TWRP (Team Win Recovery Project) is an alternative Recovery that allows custom firmware installation, backups and root rights. Redmi 9 has an informal TWRP build, as there is no official support.
Installation instructions:
- Download the current version of TWRP for lancelot from twrp.me (.img file).
- Rename the file to twrp.img and place it in the folder with ADB.
- Turn on USB debugging and connect the phone to the PC.
- Open the command line in the folder with ADB and execute: adb reboot bootloader fastboot flash recovery twrp.img fastboot reboot recovery
If after the reboot, TWRP is replaced with stock Recovery, follow the additional command:
fastboot flash recovery twrp.img
fastboot rebootAnd immediately after the reboot, press Power + Vol+ to log into TWRP.
TWRP recommends that you create a backup of the data and boot section immediately.
- π Choose Backup.
- π Check the boxes for Boot, Data, System.
- πΎ Press Swipe to Back Up.
β οΈ Attention: Some versions TWRP Redmi 9 may not work properly with data encryption. If after firmware the phone asks for a password, but does not accept it, you will have to format the data (loss of all data!).
Firmware custom firmware (LineageOS, Pixel Experience, etc.)
Custom firmware opens up new possibilities: pure Android without a MIUI shell, regular security updates and additional features. Redmi 9 popular:
- π€ LineageOS β as close as possible to Android stock.
- π± Pixel Experience β firmware with Google Pixel features.
- β‘ HavocOS β firmware with an abundance of customizations.
Installation of custom firmware requires:
- Unlocked bootloader.
- Installed TWRP.
- Downloaded firmware files (.zip) and, if necessary, Gapps (Google services).
Step-by-step:
- Download firmware and Gapps (like NikGapps for Android 11/12).
- Move the files to your phone or flash drive.
- Download to TWRP (Power + Vol+).
- Run Wipe β Advanced Wipe and mark Dalvik, Cache, System, Data.
- Go back to the main menu and select Install, then swipe through the firmware first, then Gapps.
- Reboot to the system (Reboot β System).
The first run can take 10-15 minutes. If the system does not load for more than 20 minutes, go back to TWRP and check the error logs.
| Firmware | Android version | Features | Reference |
|---|---|---|---|
| LineageOS | 12β13 | Minimalist Android, weekly updates | lineageos.org |
| Pixel Experience | 12β13 | Pixel: Now Playing, Live Captions | pixelexperience.org |
| HavocOS | 11β13 | Maximum customization, themes, gestures | havoc-os.com |
| ArrowOS | 12β13 | Balance between stability and features | arrowos.net |
π‘
If after firmware custom firmware does not work mobile network, check the settings APN In Settings β SIM-maps and mobile networks β Access points (APN). Often helps manually enter operator parameters.
Solving common errors in firmware
Even if you follow the instructions accurately, you can get errors, and let's look at the most common ones and how to fix them.
1. Anti-rollback error (Anti 3/4/5)
This error appears when you try to flash an older version of MIUI than the one installed today. Xiaomi blocks the rollback of the firmware to protect data.
- π Scroll down a newer version. MIUI (For example, if you have Anti 4, look for firmware with the Anti 4 tag.+).
- π§ Use Fastboot with Clean All and Lock option, but this will block the bootloader.
2. the phone does not turn on after firmware (brick)
If the device does not respond to the buttons, try:
- π Connect to charging for 30 minutes - maybe the battery has gone down.
- π₯οΈ Hold the Power. + Volβ 20-30 seconds for forced login to Fastboot.
- π Sweep through the official firmware through the Mi Flash Tool in Clean All mode.
If the phone is defined as Qualcomm HS-USB QDLoader 9008 will be required. EDL-Mode and authorized Xiaomi account for firmware.
Error 3: Footers are wrong in TWRP
This error occurs when you try to flash a corrupted or incompatible file.
- π Check the checksum (MD5) downloaded.
- ποΈ Move the firmware file to the phoneβs internal memory (not to the phoneβs internal memory) SD-map).
- π Try another version. TWRP.
β οΈ Attention: If the sensors (gyroscope, accelerometer) stop working after custom firmware firmware has been installed, check if your build supports lancelot. Some firmware requires additional patches for Redmi 9 iron.
π‘
If the phone does not turn on after a failed firmware, do not panic: in 90% of cases it can be restored via Fastboot or EDL. The main thing is not to interrupt the firmware process and use official tools.
Root rights to Redmi 9: pros and cons
Getting root rights gives you complete control over the system: you can delete embedded applications, modify system files, and use Magisk modules for advanced customization.
- π« Loss of warranty (if it is still valid).
- π‘οΈ Vulnerability to malware.
- π΅ Some apps (banking, Netflix, Netflix, PokΓ©mon GO) stop working.
To get root, use Magisk, which is the most reliable method.
- Download the latest version of Magisk (.zip) from GitHub.
- Move the file to the phone.
- Download to TWRP and run Magisk like regular firmware.
- Restart and check root through the Magisk Manager app.
To hide root from banking applications:
- π In Magisk, turn on MagiskHide (or Zygisk in newer versions).
- π± Add the app to the list of hidden in Magisk settings.
- π Reboot the phone.
Important: Once the MIUI update is over, OTA root will disappear. To return it, re-sweep Magisk through TWRP or boot.img patch.