How to install a clean Android on a Xiaomi smartphone instead of MIUI: the complete guide

Xiaomiโ€™s MIUI shell is known for its functionality, but many users prefer pure Android (AOSP) for its minimalism, lack of advertising and smoother operation. Installing custom firmware allows you to get rid of pre-installed applications, speed up the system and get current security updates directly from Google. However, the process requires care: wrong actions can turn a smartphone into a โ€œbrickโ€.

In this article, we will look at all the steps of the transition to a pure Android, from unlocking the bootloader to choosing the firmware and installing it. Particular attention will be paid to Xiaomi models with a locked bootloader (for example, the Redmi Note 12 or POCO X5), where the process is more difficult than on older devices.

Why users want to install pure Android on Xiaomi

The main reason is dissatisfaction with MIUI. Despite regular updates, the shell is criticized for:

  • ๐Ÿ“ฑ Advertising in system applications (even in settings)
  • ๐Ÿข Slowdowns due to background processes and unnecessary services
  • ๐Ÿ”’ Limited customization compared to AOSP
  • ๐Ÿ“… Update delays (Xiaomi often lags behind Google with security patches)

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

  • โš ๏ธ Loss of function MIUI: No themes, duplicate applications, gestures Xiaomi
  • ๐Ÿ”ง Manual setting: some features (e.g. Double Tap to Wake) will have to be manually enabled
  • ๐Ÿ“ฑ Camera problems: Stock firmware often not optimized for Xiaomi hardware capabilities

Before you get started, assess whether youโ€™re ready for a loss of warranty (on most models) and possible bugs.For example, on the Xiaomi 13 Pro, some custom firmware doesnโ€™t support an ultra-wide camera lens.

๐Ÿ“Š Which shell do you like better?
MIUI
Pure Android (AOSP)
ColorOS
One UI
other

Preparation: What to do before installation

Installing a clean Android is a multi-step process, and a mistake at any step can cause the device to fail.

  1. Back up all your data. Use Mi Mover or third-party tools like Swift Backup (requires root). โš ๏ธ Note: After unlocking the bootloader and installing custom firmware, all data in the internal memory will be erased. Cloud copies (Google Photos, Contacts) will be saved, but SMS, Calls and files - no.
  2. Check the device model. Go to Settings โ†’ About Phone โ†’ Model. Some firmware supports only specific modifications (e.g. Redmi Note 11 Pro 5G and Redmi Note 11 Pro are different devices!).
  3. Check compatibility. On the XDA Developers website, find your model theme and check if it has stable AOSP builds (e.g. LineageOS, Pixel Experience).
  4. Charge the phone at least 70%, interrupting the process due to battery discharge can make the device inoperable.

Also prepare:

  • ๐Ÿ’ป Computer with Windows/Linux/macOS (for fastboot and ADB)
  • ๐Ÿ”Œ Cable USB (preferably original to avoid communication interruptions)
  • ๐Ÿ“ฑ The debugging bridge ADB (install Android SDK Platform Tools)

Backed up the data.|Checked the device model for compatibility|I downloaded the firmware and TWRP forecast|I got it. ADB and Xiaomi drivers|Charged the phone at least 70%-->

Unlocking the bootloader (Bootloader)

The Xiaomi bootloader is locked by default, and unlocking it is a must, but it comes with risks:

  • ๐Ÿ”“ All data dumping
  • ๐Ÿ“‰ Loss of warranty (on most models)
  • โณ Waiting 7-14 days (on new devices Xiaomi introduces a mandatory delay)

Instructions for unlocking:

  1. Activate USB debugging: Go to Settings โ†’ About Phone and 7 times click on the MIUI Version to turn on Developer Mode. Return to Settings โ†’ Additional โ†’ For Developers and enable USB Debugging and OEM Unlock.
  2. Link your Mi Account: Go to Settings โ†’ Xiaomi account and log in. In Developer, link your account to your device (Mi Unlock Status).
  3. Download the Mi Unlock Tool from the official website (the version must match your MIUI).

โš ๏ธ Note: If the Mi Unlock Tool gives you a "Couldn't unlock" error, check: Tool version (should be the last one), Account binding (sometimes helps changing your account region to China), Internet presence on your PC (tool checks Xiaomi servers).

What to do if the unlocking does not work?
If after waiting 7 days, the Mi Unlock Tool still does not unlock the bootloader, try: 1. Use another version of the tool (for example, modified from the previous version of the tool). XDA). 2. Change the region of the Mi Account to China in the phone settings. 3. Connect to the PC via another USB-port (preferably) USB Disable the antivirus on your PC (it can block the tool from working).If nothing helps, it may be that your model has a hardware lock (for example, some Redmis for the Chinese market).

Choosing custom firmware: which one to install?

Not all firmware based on pure Android is equally good. Here are the popular options for Xiaomi:

FirmwareFeaturesPlusesConsXiaomi support
LineageOSStock Android with minimal improvementsโœ… Stabilityโœ… Regular updatesโŒ No GApps by defaultโŒ Minimum customization๐ŸŸข Most models
Pixel ExperienceAndroid with Google Pixel proprietary chipsโœ… Optimizationโœ… Pixel (Now Playing, Call Screen)โŒ Camera bugs are possibleโŒ Required for iron๐ŸŸก Popular models
ArrowOSBalance between stock Android and customizationโœ… Flexible settingsโœ… Good productivity.โŒ Fewer updates than LineageOS๐ŸŸข Many devices
HaventOSFirmware with an emphasis on design and smoothnessโœ… Unique interfaceโœ… Optimization for gamingโŒ Closed source codeโŒ Rare updatesโŒ Limited list

For most users, LineageOS or Pixel Experience are the best choice. They are stable and have an active community.

  • ๐Ÿ” User feedback XDA or 4PDA (Look for bugs with a camera, network, or battery).

Download the firmware only from official sources:

  • ๐Ÿ”— LineageOS
  • ๐Ÿ”— Pixel Experience
  • ๐Ÿ”— ArrowOS

โš ๏ธ Warning: Do not download firmware from torrents or little-known forums. They may be embedded with malicious scripts or spyware.

Installation of TWRP and custom firmware

To install pure Android will need custom recovery TWRP. the Official version supports not all models Xiaomi, so sometimes you have to use informal builds.

Step 1: Installation of TWRP

  1. Download TWRP for your model from an official website or trusted sources (e.g. XDA).
  2. Rename the file to twrp.img and place it in the folder with fastboot.
  3. Connect your phone in fastboot mode and execute the command: fastboot flash recovery twrp.img
  4. Download to TWRP (otherwise MIUI will overwrite the Recovery): fastboot boot twrp.img

Step 2: Preparing for TWRP

  1. In TWRP, make Wipe โ†’ Format Data (this will remove everything from internal memory!).
  2. Copy the downloaded firmware to your phone via MTP (TWRP has the option Mount โ†’ Enable MTP).

Step 3: Installation of firmware

  1. V TWRP Select Install and specify the path to the firmware file (usually this is the ZIP-archive).
  2. Add GApps (if they are not included in the firmware). Pixel Experience doesn't need them.
  3. Swipe for confirmation and wait for the installation to finish (5-15 minutes).
  4. Once installed, run Wipe โ†’ Dalvik / ART Cache and restart.

The first run can take up to 10 minutes, and if the system doesnโ€™t boot for more than 20 minutes, something has gone wrong (it may not be compatible with the model).

๐Ÿ’ก

If there is no mobile network after installation, check the APN settings. Often it helps to manually enter operator settings or install an IMS patch (available on XDA for some models).

Solving typical problems after installation

Even if the installation is successful, there may be problems, and here are the most common ways to solve them:

  • ๐Ÿ“ถ No mobile network: Check if the firmware supports your modem model (some Redmis require a patch). APN (You can find them on your operatorโ€™s website).
  • ๐Ÿ“ท Camera not working: Install Google Camera with configured config for your model (look at 4PDA). Check if there is a patch for the camera in the firmware (for example, ANX Camera for LineageOS).
  • ๐Ÿ”‹ Fast battery discharge: Turn off Always-on Display (if any). Check background processes in Settings โ†’ Install a kernel with better optimization (e.g. FrancoKernel if supported).
  • ๐Ÿ”Š Sound problems: Check if SafetyNet is disabled (some banking apps block sound). ViPER4Android To improve the sound (requires Magisk).

If the problem is not solved, try:

  1. Reinstall the firmware (possibly the file was corrupted when downloaded).
  2. Search for solutions on forums (XDA, 4PDA) using the exact phone model.
  3. Return to MIUI via fastboot (instructions are available on the official website of Xiaomi).

๐Ÿ’ก

If banking applications (such as Sberbank or Tinkoff) stop working after installing a clean Android, install Magisk and activate the Universal SafetyNet Fix module.

Alternatives: How to get a clean Android experience without firmware

If unlocking the bootloader and installing custom firmware seem too risky, there are alternative ways to get a near-pure Android experience:

  • ๐Ÿ“ฑ Launcher installation: Nova Launcher or Lawnchair mimics the Pixel interface. MIUI and gesture.
  • ๐Ÿ”ง Disabling unnecessary services: adb shell pm uninstall --user 0 com.miui.analytics This command removes Xiaomi analytics (requires) ADB).
  • ๐Ÿ›ก๏ธ Use of the MIUI In "Advertless" mode: In the Mi Account settings, turn off personalized ads. MIUI Hidden Settings to access hidden options.
  • ๐Ÿ“ฆ Installing Google Feed: Download Google Now Launcher (outdated but working) or use Rootless Launcher.Tune Google Discover widget to the home screen.

These methods wonโ€™t give a full-fledged pure Android, but will greatly improve the user experience without risking the device.

FAQ: Answers to Frequent Questions

Can I install a pure Android on Xiaomi without unlocking the bootloader?
No. All official and most unofficial firmware require an unlocked bootloader. EDL-Mode (requires an authorized Xiaomi account and special equipment).
Will I lose my warranty after installing custom firmware?
Yes, on most Xiaomi models, unlocking the bootloader will void the warranty. However, in some countries (e.g. the EU), the manufacturer is required to repair the device if the fault is not related to the firmware. MIUI fastboot.
Which firmware is better for gaming: stock MIUI or pure Android?
On flagships (Xiaomi 13 Ultra, Black Shark), MIUI is often better optimized for gaming thanks to proprietary utilities (Game Turbo). On pure Android, you can achieve more FPS, but you will need manual kernel and thermal settings setup.
Can I upgrade to pure Android through OTA?
Yes, but only if the firmware supports OTA-Updates (e.g. LineageOS or Pixel Experience) to: Install firmware with support AB-partitions (if your device supports them) Do not manually remove system applications (this can break down) OTA). Use stock Recovery (not use stock Recovery) TWRP) update.
How to return MIUI after installing a clean Android?
To get back to MIUI: Download the official firmware for your model from Xiaomi. Reboot to fastboot and execute the command: fastboot flash all.zip If the firmware is in.tgz format, unpack it and use the script flash_all.bat (After that, the bootloader will remain unlocked, but the device will return to the stock. MIUI.