How to put pure Android on Xiaomi Redmi 9: a complete guide with unlock and firmware

Installing pure Android on Xiaomi Redmi 9 is a challenge that attracts many users tired of MIUI with its advertising, duplicate services and specific design. Google’s stock firmware offers a minimalist interface, fast work and no redundant software. However, the process requires care, from unlocking the bootloader to choosing a compatible version of Android.

In this article, you will find the current 2026 manual tailored to the features of the Redmi 9 (the lancelot model), including avoidance of typical errors, backup recommendations and comparisons of popular custom firmware. We will not convince you to switch, just give clear steps and warn about the risks.

Why users want to remove MIUI with Redmi 9

The main complaint against MIUI on Redmi 9 is over-optimization for the Chinese market.

  • πŸ“’ Intrusive advertising in system applications (for example, in the Browser or Music).
  • πŸ”„ Duplicate services (two file managers, two app stores).
  • 🐒 Slowdowns due to Xiaomi background processes that can’t be turned off without root.
  • πŸ”’ Restrictions on changing system settings (for example, blocking the ability to disable flashing notification indicator).

Pure Android solves these problems, but it also has disadvantages:

  • ⚠️ Lack of support for some Redmi 9 features (e.g, IR-The port may not work in custom firmware).
  • πŸ”‹ Faster battery discharge due to lack of aggressive optimization MIUI.
  • πŸ“± Loss of warranty (if the device is still warranty).
πŸ“Š What annoys you the most in MIUI?
Advertising
Slow work
Unnecessary applications
Limitations of settings
Nothing annoys.

Preparation for installation: what to do before the firmware

Before you start installing a pure Android, follow the mandatory steps:

⚠️ Note: Failure to comply with these points may result in a device blinking (total inoperability) for example without a backup. IMEI You risk losing your network after you have been firmware.

  • πŸ”‹ Charge your phone to at least 70% – the process can take 1-2 hours.
  • πŸ“± Make sure you have a Redmi 9 model codenamed Lancelot (check in Settings). β†’ The phone. β†’ Version. MIUI).
  • πŸ’Ύ Make a full backup through the Mi PC suite TWRP (if already established).
  • πŸ” Save it. IMEI, MAC-addresses and data modemst1/st2 (guideline).

To preserve the IMEI:

  1. Install the MTK Engineering Mode app from the Play Market.
  2. Go to MTK Settings β†’ Connectivity β†’ CDS Information β†’ Radio Information.
  3. Select Phone 1 (or Phone 2 for the second slot) SIM), copy AT+EGMR=1,7.
  4. Save both IMEIs to a text file.

β˜‘οΈ Checklist before firmware

Done: 0 / 5

Unlock the bootloader on Redmi 9

Without unlocking the bootloader, custom firmware cannot be installed. Xiaomi officially allows you to unlock the lancelot, but the process requires waiting.

Steps to unlock:

  1. Link the device to Mi Account (required!): Settings β†’ Xiaomi Account.
  2. Activate Developer Options: Tip 7 times on the MIUI version in Settings β†’ About Phone.
  3. Enable USB Debugging and OEM Unlock in Settings β†’ Additional β†’ For Developers.
  4. Download the official unlock tool (Mi Unlock Tool).
  5. Connect your phone in Fastboot mode (turn off, then press Power + Volβˆ’).
  6. Start the Mi Unlock Tool, log in and follow the instructions.

⏳ Waiting time: usually 7-14 days (depending on Xiaomi policy).If the tool shows a "Couldn't unlock" error, try again after 24 hours.

What if the Mi Unlock Tool can’t see the device?
1. Make sure the drivers ADB installed (use) [Mi Flash Tool](https://xiaomiflashtool.com/)). 2. Try another one. USB-cable (original from Xiaomi). 3. Disable the antivirus – it can block the tool. 4. Launch Mi Unlock Tool on behalf of the administrator.

Selecting the firmware: which version of Android to install

There are several types of firmware available for Redmi 9 (lancelot):

Type of firmwareAdvantagesDeficienciesRecommended version
LineageOSIt is as close to the stock Android as possible, stable, and has regular updates.No Google Apps (you need to install separately), there are possible bugs with the camera.LineageOS 20 (Android 13)
Pixel ExperienceThe interface is like Google Pixel, good optimization.Can brake on weak gland, bugs with sensors.PixelExperience Plus (Android 13)
HaventOSLight firmware with minimalist design, good performance.Fewer features, rare updates.HaventOS 4.12 (Android 12)
CrDroidBalance between customization and stability.There is no official support for lancelot (look for unofficial builds).CrDroid 9.x (Android 13)

For beginners, we recommend LineageOS, which is the most stable and has an active community. If you want a Pixel interface, take the Pixel Experience, but be prepared for possible lags.

πŸ’‘

Before downloading the firmware, check its compatibility with your version of Redmi. 9. For example, the Lancelot (Redmi) model 9/9 Prime is not suitable for firmware for lancelot_in (Indian).

Installation of TWRP and firmware of pure Android

Custom firmware installation requires TWRP, a custom recovery, and the official version for Redmi 9 is available at twrp.me.

Step-by-step:

  1. Download. TWRP for lancelot (e.g. for lancelot, twrp-3.7.0_9-0-lancelot.img).
  2. Move the firmware (.zip) and GApps (if you need Google services) to the memory card.
  3. Connect your phone in Fastboot mode and execute the command: fastboot flash recovery twrp-3.7.0_9-0-lancelot.img
  4. Boot to TWRP: Hold Power + Vol+ after the reboot.
  5. In TWRP, run Wipe β†’ Advanced Wipe and mark Dalvik / ART Cache System Data Internal Storage (if the firmware is on the memory card).

Install β†’ Select ZIP

GApps

Reboot to the system.

⚠️ Note: If after firmware, the phone is stuck on the Xiaomi or Google logo for longer than 10 minutes, then the firmware is incompatible with your model. MIUI via Fastboot.

Solving typical problems after installation

Even with the right installation, errors can occur, and here are the most common ways to correct them:

  • πŸ“Ά No network (IMEI missing: Restore IMEI through MTK Engineering Mode or Maui Tool META (spoiler).
  • πŸ”Š No sound: Check the AudioFX settings in the firmware or reflash the vendor from the original MIUI.
  • πŸ“· The camera emits an error: Install ANX Camera or GCam with MediaTek Helio support G80.
  • πŸ”‹ Fast battery discharge: Turn off AOD (Always on Display and background activity of Google Services.
How to restore IMEI after firmware?
1 Download [Maui META](https://forum.xda-developers.com/t/tool-maui-meta-3g.3619084/) and drivers for MediaTek. 2. Connect the phone in Meta Mode (usually Vol+ and Volβˆ’ when connected to a PC). 3. In Maui META, go to IMEI Download and enter the previously saved values. 4. Reboot the phone.

If the problem is not solved, check the error logs in TWRP (Advanced β†’ Copy Log) and refer to the XDA-Developers forum.

Return to MIUI: How to Reverse the Way

If pure Android didn’t live up to expectations, you can return MIUI.

  1. Download the official firmware for Redmi 9 (Fastboot version).
  2. Unpack the archive in a folder with the Mi Flash Tool.
  3. Connect your phone in Fastboot mode.
  4. In the Mi Flash Tool, select the firmware folder and press Refresh (the device must be determined).
  5. Press Flash and wait until it is completed (the process will take 5-10 minutes).

⚠️ Note: After returning to the MIUI The bootloader will automatically lock. To re-install the custom firmware, you'll have to re-unlock.

πŸ’‘

Before rolling back to MIUI, make a backup of data in TWRP – when you run through Fastboot, all user files will be erased.

FAQ: Frequent questions about installing clean Android on Redmi 9

Can I install a pure Android without unlocking the bootloader?
No. Xiaomi blocks the installation of unofficial firmware at the hardware level. Without unlocking the bootloader, you can only flash official versions of MIUI through Fastboot.
Which firmware is better for gaming: stock Android or MIUI?
MIUI has better optimization for games thanks to Game Turbo. On pure Android, heavy games (such as Genshin Impact or Call of Duty Mobile) can lag. If games are a priority, stay on MIUI or choose a firmware with a core optimized for MediaTek Helio G80.
Will Google Pay work after installing custom firmware?
Google Pay requires a certified device with a locked bootloader. Some firmware (like Pixel Experience) passes SafetyNet, but there is no warranty. Check status through the SafetyNet Test app.
How to update custom firmware?
Updates are installed via TWRP or a built-in firmware updater (if supported). For example, LineageOS has System Updates. Important: Before upgrading, back up to TWRP and clear Dalvik/Cache.
Can I get it? OTA-Updates on pure Android?
Yes, but only if the firmware supports OTA. LineageOS and Pixel Experience, for example, have built-in updates. However, they come less frequently than MIUI and may require manual installation.