How to completely remove MIUI from Xiaomi and install another firmware

Xiaomi’s MIUI shell is known for its functionality, but not everyone likes its design, intrusive advertising or system limitations. If you want to get rid of MIUI forever – whether for pure Android, custom firmware (like LineageOS or Pixel Experience) or just for experimentation – this article will help you get it right.

The process of removing MIUI is not just about β€œdeleting apps”: it is a complete firmware replacement that requires unlocking the bootloader, installing alternative software and sometimes even manually interfering with system files. It is important to understand that such manipulations deprive you of warranties, can lead to a β€œbrick” of the device and require technical skills. If you are a beginner, carefully weigh the pros and cons before starting.

In this guide, we will discuss:

  • πŸ”“ How to officially unlock the bootloader on Xiaomi (without circumventing the rules).
  • πŸ“± What alternatives MIUI They exist and are better/worse than they are.
  • βš™οΈ Step-by-step installation instructions AOSP, LineageOS or Pixel Experience.
  • ⚠️ Possible problems and how to avoid them (from loss) IMEI soft-brickΒ»).

1.Why do users want to delete MIUI?

Despite its popularity, MIUI has been criticized for several key points:

  • πŸ“’ Advertising in system applications – even in settings or file manager (in some regions).
  • πŸ”„ Aggressive battery optimization that kills background processes (such as notifications from messengers).
  • 🎨 Non-standard design, far from β€œpure Android” (for example, the lack of an application panel).
  • πŸ”’ System-level restrictions: It is impossible to disable some Xiaomi services, and updates come with a delay.
  • πŸ“Š Data collection – even when telemetry is turned off MIUI Sends information to the company’s servers.

Alternative firmware solves these problems: LineageOS offers vanilla Android without unnecessary bells and whistles, Pixel Experience copies the Google Pixel interface, and HavocOS or ArrowOS add flexible customization.

⚠️ Attention: After removal MIUI You will lose the branded features of Xiaomi: πŸ“Έ Camera modes (such as Ultra Night Mode) AI-processing). πŸ”‹ Optimizing the battery for a particular model (can reduce the operating time). 🎧 Functions IR Blaster (DU remote) in some firmware. πŸ”„ Seamless updates "over the air" (you will have to install manually).

Before you start, check to see if your model is supported by custom firmware. For example, there are dozens of options for the Redmi Note 10 Pro (sweet), while for the new flagships (Xiaomi 14), the choice may be limited.

πŸ“Š Which firmware is more interesting to you?
Pure Android (AOSP)
LineageOS
Pixel Experience
Another custom firmware
I haven't decided yet.

Preparation: unlocking the loader

The first and mandatory step is to unlock the bootloader. Without this, you can’t install an alternative firmware. Xiaomi officially allows you to unlock the bootloader, but the process involves waiting and confirming an account.

Here's what you're gonna need:

  • πŸ“± Xiaomi Smartphone with Xiaomi MIUI (It doesn’t matter if it’s a Chinese or global version).
  • πŸ’» Windows computer (for the Mi Unlock Tool).
  • πŸ”Œ Cable USB Type-C (original to avoid connection issues).
  • πŸ”‘ Mi Account linked to phone (required with a confirmed number!).

Instructions for unlocking:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Back to Settings β†’ Additionally. β†’ For developers and activate: πŸ”“ Unlocking OEM (may require input PIN-code). πŸ”Œ Debugging by USB.

Mi Unlock Tool

Xiaomi

Fastboot

Loudness down + Nutrition

Mi Unlock Tool

Mi

72-168 hours

⚠️ If you see a "Couldn't unlock" or "Device not supported" error, it means: πŸ“΅ Your model does not support unlocking (relevant for some regional versions, for example, Redmi from India). πŸ”„ You are trying to unlock a too new firmware (try to roll back to an older version). MIUI). πŸ•’ It has not been 7 days since the account was linked to the phone.

Create a backup copy of data (photos, contacts, SMS)

Charge your phone at least 60%

Make sure that the ADB/Fastboot drivers are installed on the PC

Disable the antivirus (it can block the Mi Unlock Tool)

-->

3. Choosing an alternative firmware

After unlocking the bootloader, you need to choose which firmware to install instead of MIUI. There are many options, but they are divided into three categories:

Type of firmwareExamplesPlusesCons
Pure Android (AOSP)LineageOS, Pixel Experience, Paranoid AndroidMaximum stability, no unnecessary applications, quick updatesXiaomi’s proprietary features (camera, gestures) may not be available
Firmware with refinementsHavocOS, ArrowOS, crDroidFlexible interface configuration, additional features (e.g., changing fonts)It may be less stable than LineageOS.
Ported firmwareMIUI EU (publicity), MIUI ProMaintain MIUI functionality, but remove ads and restrictionsDo not completely remove the MIUI shell

How do you choose?

  • πŸ“± For maximum stability, take LineageOS (based on the AOSP It is supported by most devices).
  • 🎨 For the interface as on Google Pixel – Pixel Experience (includes branded wallpaper, launcher and Google apps).
  • ⚑ For performance and customization, ArrowOS or HavocOS (but check reviews for your model!).
  • πŸ”§ If you want to leave MIUI, without advertising β€” MIUI EU (Unofficial version without Bloatware).

Before installing, be sure to check the support for your model on the forums:

  • 🌐 XDA Developers – here are the firmware and instructions.
  • πŸ“‘ Telegram chats for specific models (e.g. Redmi Note 12 or POCO F5).
  • πŸ“Œ Official firmware site (for example, LineageOS).

πŸ’‘

Before downloading the firmware, check the model code version (e.g., raphael for the Redmi K20 Pro). Wrong firmware can lead to a "brick"!

4. Installation of custom firmware: step-by-step instructions

When the bootloader is unlocked and the firmware is selected, it is time to start installing, which requires custom recovery (usually TWRP) and the firmware itself in.zip format.

Step 1: Installation of TWRP Recovery

  1. Download TWRP for your model from the official website (file with the extension.img).
  2. Connect your phone to your PC in Fastboot mode (as when unlocking).
  3. Open the command line in the folder with TWRP Next Post:Fastboot Flash Recovery twrp-3.7.0_9-0-sweet.img Fastboot Reboot Recovery (replace sweet with your model code).

Step 2: Preparing for the installation of firmware

  • πŸ“ Copy the firmware file (.zip) and, if necessary, GApps (Google services) to your phone or phone SD-map.
  • 🧹 V TWRP Do the Wipe (clean up): Press the Wipe β†’ Advanced Wipe. Mark Dalvik / ART Cache, System, Data, Cache. Swipe for confirmation (this will delete all data!).

Step 3: Installation of firmware

  1. In TWRP, click Install and select the firmware file.
  2. Add (if necessary) GApps (if the firmware is without Google services).
  3. Swipe for installation and wait until it is completed (it can take 5-15 minutes).
  4. After installation, press Reboot System.

⚠️ Warning: If after the reboot the phone is stuck on the logo or went to bootloop (cyclic reboot): πŸ”„ Try repeating the installation by repeating the Wipe. πŸ“₯ Make sure you download the firmware for your model (check the device code in Fastboot with the fastboot getvar product command). πŸ”§ If the problem persists, look for a solution to the problem. XDA (You may need additional patches, for example, for a modem).

πŸ’‘

Never install firmware through Fastboot if it is designed to be installed via TWRP – this is guaranteed to lead to a β€œbrick”!

Possible problems and solutions

Even if installed correctly, you can have problems, and here are the most common ways to fix them:

Problem.Possible causeDecision
No network (IMEI missing)Incorrectly stitched modem or EFS-sectionRestore EFS from the backup or run the original modem through Fastboot
The camera's not working.There are no drivers for your model.Install a patch for the camera (search on XDA by model)
Fast battery dischargeUnoptimized kernel or background processesTry another firmware or kernel (e.g., FrancoKernel)
The gestures don't work.The firmware does not support branded gestures XiaomiConfigure alternative gestures in the system settings

If the phone doesn't turn on at all (called a "hard brick") after installing the firmware, don't panic. In most cases, it can be restored through a computer. EDL-The system (emergency firmware), but this will require:

  • πŸ’» Mi Flash Tool Programming.
  • πŸ“ Official firmware MIUI.tgz.
  • πŸ”Œ EDL-cable (or closing contacts on the board for forced transition to the EDL).

Instructions for recovery via EDL are on XDA, but this method requires experience - if you make an error, you can permanently damage the device.

What to do if the firmware is not installed?
If TWRP Issuing an error 7" or "Failed to mount" /system", that means that: 1. The firmware is not compatible with your model (check the device code). 2. V TWRP DM-verity support is disabled (you need to patch the patch) Disable_Dm-Verity_ForceEncrypt.zip). 3. Lack of space in the System section (try firmware with less weight).

6 How to get MIUI back if something goes wrong

If custom firmware did not meet expectations or there were critical problems, you can return MIUI.

  1. Download the official firmware for your model from the Xiaomi website (choose the Fastboot version).
  2. Unpack the archive and launch the Mi Flash Tool.
  3. Connect your phone in Fastboot mode and select a folder with firmware.
  4. Press Refresh, then Flash (select Clean all option for full cleanup).
  5. Wait until the phone is finished (the phone will reboot automatically).

If the Mi Flash Tool is not done, the error is Flash is not done.

  • πŸ”Œ Try another one. USB-port.
  • πŸ“₯ Download the firmware again (maybe the archive is damaged).
  • πŸ”§ Install Qualcomm drivers (if you have a Snapdragon processor).

⚠️ Note: After returning to the MIUI The bootloader will remain unlocked. To lock it back, run it in Fastboot: fastboot oem lock But remember, this will block the ability to install custom firmware again!

7.Alternatives: can you do without a complete firmware replacement?

If you wanted to get rid of ads or apps that you don't have to remove MIUI completely, there are simpler ways to do this.

  • 🚫 Disabling Advertising: Go to Settings β†’ Memory. β†’ Clean and disable the Recommendations. β†’ Mi Account β†’ Mi Cloud disable Advertising and Analytics. Install ADB and execute the command: adb shell pm uninstall --user 0 com.miui.systemAdSolution
  • 🧹 Removing embedded applications: With the help of ADB You can uninstall unnecessary services (e.g. com.xiaomi.mipicks, theme store). Use App Inspector (from Google Play) to find package names.
  • πŸ”„ Alternative Launcher: Nova Launcher or Lawnchair to Replace the Standard Interface MIUI. Set up your gestures and wallpapers to suit you.

If you don’t like performance or upgrades, consider MIUI EU. This is an unofficial version of MIUI without ads, with weekly updates and advanced settings, and installs it just like other custom firmware (via TWRP).

FAQ: Frequent questions

❓ Can I remove it? MIUI loader-free?
No. Without an unlocked bootloader, you can't install an alternative firmware. The only workaround is to use Magisk to modify MIUI (like removing ads or system applications), but it won't replace the shell completely.
❓ What Xiaomi models are best supported by custom firmware?
The most popular models with good support: Redmi Note 10 Pro (sweet) POCO F3 (alioth) Xiaomi Mi A2/A3 (officially on Android One, easy to flash) Redmi K20 Pro (raphael) New flagships (Xiaomi 13/14) are supported worse due to closed source for some components.
❓ What will happen to the warranty after removal MIUI?
Xiaomi officially considers unlocking the bootloader to be a violation of warranty conditions, but in practice: If the problem is not related to the software part (for example, a broken screen), the service center can turn a blind eye to this, before contacting the service, you can return the MIUI and block the bootloader back.
❓ How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power to log in to Fastboot. If the bottom of the screen says "Unlocked" - the bootloader is unlocked. You can also check by command: fastboot oem device-info Look for Device unlocked: true.
❓ Can we determine MIUI A phone that originally ran on a pure Android (e.g., Mi). A3)?
Yes, but the process is more complicated: you need to unlock the bootloader (even if the phone is on Android One). TWRP sniff MIUI via Fastboot (use firmware for your model, for example, laurel_sprout for Mi A3). Possible problems with the camera or modem (more patches are required).