How to change the shell on the Xiaomi smartphone: from MIUI to custom firmware

Xiaomi smartphones are known for their MIUI, which combines rich functionality with branded design. However, not everyone likes its style, advertising inserts or restrictions. Fortunately, owners of Xiaomi devices can replace standard firmware with an alternative one - from pure Android (AOSP) to custom builds like Pixel Experience or LineageOS. But this process requires caution: the wrong actions can turn a smartphone into a brick.

In this article, we’ll look at all the steps from choosing the right shell to the final configuration of the system, how to unlock the bootloader, install custom recovery (TWRP), and which firmware is best suited for specific Xiaomi, Redmi or POCO models.

Why do users want to change MIUI?

The MIUI branded shell has both fans and opponents, and here are the main reasons Xiaomi owners are choosing to replace:

  • 🚫 Bloatware and Advertising: Even in Global Versions MIUI contains pre-installed apps and banner ads that can not always be turned off.
  • πŸ”„ Unstable updates: frequent updates MIUI Sometimes they bring new bugs instead of fixes, especially on older models.
  • 🎨 Design and animation: some users consider the interface MIUI overloaded or unmodern.
  • πŸ”’ Restrictions of regional versions: Chinese firmware is deprived of Google services, and global – some features (for example, a theme store).
  • ⚑ Productivity: custom firmware based AOSP Often work faster due to the absence of unnecessary background processes.

On the other hand, MIUI offers unique features like Second Space, extended gestures, or a built-in screencast. Before you change the shell, evaluate what features you really need β€” some of which may not be available in alternative firmware.

πŸ“Š Which shell do you like better?
MIUI (stack)
Pixel Experience (Pure Android)
LineageOS (stability)
Another custom firmware
I don't care.

What shells can be installed on Xiaomi

The choice of alternative firmware depends on the smartphone model, your needs and level of training.

Type of firmwareExamplesPlusesConsComplexity of installation
Stock Android (AOSP)Pixel Experience, Havoc-OS, CrDroidClean interface, minimalism, fast workSome functions may not be supported (for example, IR-blaster)Medium
MIUI-basedMIUI EU (without advertising) MIUI MixIt saves all MIUI chips, but without BloatwareRequires regular updates, possible bugsLow.
Firmware for enthusiastsLineageOS, Resurrection RemixMaximum customization, long-term support for old modelsComplex setup, possible problems with the camera or modemTall.
Port firmwareMIUI from other models, ColorOS for XiaomiUnique design, unusual featuresHigh probability of bugs, no OTA-updateVery high.

For most users, the best choice is Pixel Experience (if you want a pure Android) or MIUI EU (if you want to keep the brand functionality, but without advertising).Be sure to check before installing whether your model is supported on the official firmware website or the XDA Developers forum.

πŸ’‘

Use the XDA Developers site to find the latest firmware. The theme description always lists the functions that are working and not working (e.g., VoLTE or Widevine L1).

Preparation for changing the shell: unlocking the loader

The first and most critical step is to unlock the bootloader, without which you can't install custom recovery or firmware. Attention: the procedure erases all the data on the device, including internal memory!

⚠️ Note: Unlock the bootloader on some Xiaomi models (e.g. Redmi Note 10 Pro or POCO X3 Pro) requires waiting 7-14 days after the Mi Account is linked.

Instructions for unlocking:

  1. Download the official Mi Unlock Tool from Xiaomi website.
  2. Enable OEM Unlock and USB Debugging modes in the developer settings (Settings β†’ About Phone β†’ MIUI version – press 7 times, then go back to Additional Settings β†’ For Developers).
  3. Log in to Mi-account on your phone and in the utility on PC.
  4. Connect your smartphone to your computer in Fastboot mode (clip Volume down + Power when the phone is off).
  5. Run the Mi Unlock Tool and follow the instructions. If you receive a waiting message, try once a day.

After successful unlocking, check the status of the command in the terminal:

fastboot oem device-info

The answer should be Device unlocked: true.

Save all data (photos, contacts, SMS) on PC

Check the battery power (minimum 60%)

Make sure the model supports unlocking

Download firmware and TWRP in advance

-->

Installation of custom recovery (TWRP)

Xiaomi's standard recovery doesn't allow you to install unofficial firmware. You need TWRP (Team Win Recovery Project) β€” custom recovery with advanced features. It's important to choose a version that is compatible with your model!

Download the current TWRP image for your device from the official twrp.me website or trusted source (e.g. XDA).The file must have the.img extension.

  1. Put your phone in Fastboot mode (like when unlocking).
  2. Connect to your PC and execute the command: fastboot flash recovery twrp-3.7.0_12-0-redmi_note_10_pro.img (Replace the file name with yours).
  3. Immediately after the firmware, go to TWRP, holding Volume Up + Power. If you boot into the system, standard recovery will rewrite TWRP!

In TWRP, you should immediately make a full backup of your current firmware (Boot, System, Data, Modem) and this will save you if the new shell is unstable.

What to do if TWRP does not start?
If after TWRP firmware the phone loads into standard recovery or flashes the Xiaomi logo, it means: 1. Your model has anti-rollback protection (for example, Redmi Note 8 Pro). 2. You need to use a special version of TWRP with bypass protection (look for XDA on the model + "anti-rollback bypass"). 3. The alternative is to flash the firmware through Fastboot without TWRP (fastbootd method).

New shell installation process

Once the TWRP is installed, you can start the firmware, and the algorithm depends on the type of shell you choose, but the general scheme is this:

  1. Partition Cleanup: In TWRP, select Wipe β†’ Advanced Wipe and tick Dalvik/ART Cache, System, Data, Internal Storage (if required). Don't touch Modem and Persist!
  2. Firmware: For AOSP-Firmware: First install the firmware file (.zip), then GApps (if you need Google services). MIUI-based: one is sufficient ZIP-file.

First launch

Example of commands for firmware via fastboot (if TWRP is not suitable):

fastboot flash boot boot.img


fastboot flash system system.img




fastboot flash vendor vendor.img




fastboot -w




fastboot reboot

⚠️ Note: On some models (e.g, POCO F3 Xiaomi 11T) Firmware via fastboot requires the use of a script flash_all.sh Run it from the firmware archive, run it in the Linux terminal or through the WSL Windows.

After successful installation, check the performance of the main functions:

  • πŸ“Ά Network: calls, mobile Internet, Wi-Fi.
  • πŸ“· Camera: all modules (main, wide-angle, macro).
  • πŸ”‹ Charging: fast charging, wireless (if supported).
  • πŸ”Š Sound: speakers, microphone, 3.5 mm connector (if available).

πŸ’‘

If you don't have a sensor, camera or network after you've run your firmware, you've probably picked an incompatible version of the firmware. Go back to TWRP and restore the backup or run another build.

Solving typical problems after a shell change

Even when installed correctly, new firmware can be unstable, and here are the most common problems and ways to solve them:

Problem.Possible causeDecision
The phone is not turned on (bootloop)Incompatible firmware or damaged partitionsReturn to TWRP and flash it again by pre-executing Format Data (not Wipe!).
The mobile network is not workingNo modem or incorrect APN settingsSwipe the modem.img file from the stock firmware or manually add the operator's APN.
Fast battery dischargeBackground processes of a new shell or an unoptimized coreCalibrate the battery (discharge to 0% and charge to 100% without interruption) or flash another core.
Widevine L1 (Netflix in HD) is not working.There is no DRM certificationInstall the Magisk patch or flash the firmware with L1 support.

If the problem is not resolved, please refer to the XDA Developers forum or the thematic group on Telegram.

  • πŸ“± Model phone;
  • πŸ”§ Firmware version (e.g. Pixel Experience 13);
  • πŸ“ Error Logs (can be obtained in the TWRP or through adb logcat).

How to get back MIUI if something goes wrong

If the alternative shell fails to meet expectations or critical errors occur, you can always return to the standard MIUI.

  1. Download the official firmware for your model from MIUI Download. Choose the Fastboot version (.tgz extension).
  2. Unpack the archive and launch the script flash_all.bat (Windows or flash_all.sh (Linux/Mac).
  3. If the phone doesn’t boot, use EDL (Mi Flash Tool Emergency Firmware) mode, which requires an authorized Xiaomi account and a special cable.

⚠️ Attention: Firmware through EDL Resets anti-rollback protection, but can block the bootloader if you use unofficial tools.The official method requires permission from Xiaomi.

After returning to MIUI, it is recommended to:

  • πŸ”„ Update to the latest version through Settings β†’ Updating the system.
  • πŸ”’ Block the bootloader with the command fastboot oem lock (optional, but increases security).
  • πŸ“± Check it out. IMEI and the serial number in *#06# - they must match the sticker on the box.

FAQ: Frequent questions about changing the shell to Xiaomi

Can I change the shell without unlocking the loader?
No, unlocking the bootloader is mandatory for custom firmware installation, the only exception being the firmware of official MIUI updates via Fastboot or Recovery, but it won't change the shell to an alternative one.
Will I lose my warranty after I change my shell?
Yes, unlocking the bootloader and installing custom firmware will void the warranty, but you can return the official MIUI before visiting the service center – this will hide the traces of the changes (but does not guarantee the restoration of the warranty).
What is the most stable firmware for everyday use?
For most Xiaomi models, the best balance of stability and functionality is offered: Pixel Experience – if you want a clean Android; MIUI EU – if you want to save branded features without advertising; LineageOS – for older devices (for example, Redmi Note 4). Avoid β€œport” firmware (for example, ColorOS for Xiaomi) – they often contain critical bugs.
How to update custom firmware?
Most of the custom firmware supports OTA-Update via built-in menu (e.g. Settings) β†’ System system β†’ Update. Alternative way: Download a new one ZIP-Firmware file; Download to TWRP; Install ZIP Without cleaning data (Dirty Flash); Switch updated GApps (if necessary). Always read changelog before updating - some builds require complete flashing (Clean Flash).
Can you set two shells and choose between them?
Technically, yes, but it requires a complex setup using MultiROM or dual-boot patches, which is unstable and takes up a lot of space, and it's better to choose one firmware or use Second Space in MIUI to split work profiles.