Introduction: Why install custom Android on Xiaomi
Xiaomi smartphones, despite the excellent price-quality ratio, often come with a shell MIUI, Built-in advertising, limited system settings, unnecessary services and not always optimal optimization are just some of the reasons why Redmi owners are not happy, POCO Or Mi decide to install alternative firmware. Castomy Android (for example, LineageOS, Pixel Experience or ArrowOS) offers a clean interface, longer support for updates and advanced customization options.
But the installation process is not limited to just copying files, it's a complex process that involves unlocking the bootloader, installing custom Recovery (TWRP), Errors at any stage can lead to a device "brick" (inoperability), so it is important to follow the instructions with an understanding of each step. In this article, we will analyze the entire process from preparation to final configuration, taking into account the nuances for different Xiaomi models and the current requirements of 2026.
Before you start, answer a key question: what exactly do you want from custom firmware? This can be removing ads, supporting new versions of Android after the official updates, improving performance or accessing features that are not available in the company. MIUI. The answer depends on the choice of firmware and further actions.
Preparation of the device: what to do before installation
The first and most important step is data backup. Installing custom Android involves completely resetting your device, so all photos, contacts, messages and apps will be deleted. Use Google Photos for media files, Mi Cloud or Titanium Backup (for rooted devices) to back up your applications.
- ๐ฑ Contact and SMS โ export them to the file VCF or through a Google Account.
- ๐ Passwords and tokens โ save data from two-factor authentication (Google Authenticator, Telegram).
- ๐ฎ Game saves โ many games (such as Genshin Impact or Honor of Kings) are tied to an account, but some require a manual backup.
- ๐ Files in internal memory โ copy folders DCIM, Downloads and WhatsApp on PC.
Next, check your modelโs compatibility with the firmware you choose. Not all custom builds support all Xiaomi devices. For example, the Pixel Experience may not have builds for the Redmi Note 8 Pro (codename begonia), but support the design of the new model. POCO F3 (Please specify the code name of your smartphone:
- Open the Settings app โ About Phone โ MIUI version.
- Slip the kernel version several times until the developer menu appears.
- Back to Settings โ Additionally. โ For developers and find the code name of the device.
Also prepare the necessary tools:
- ๐ฅ๏ธ Computer with Windows/Linux/macOS and USB-cable (preferably original).
- ๐ง ADB Fastboot โ utilities for interacting with the device through the command line.
- ๐ฆ Firmware and TWRP โ Download files only from official sources (for example, XDA Developers or firmware sites).
- ๐ Battery charge of at least 70% is critical to avoid failures during firmware.
โ๏ธ Firmware preparation
Unlocking the bootloader: a step without which you can not do
The bootloader on Xiaomi devices is locked by default, a security measure that prevents unauthorized changes to the system. To install custom Android, it must be unlocked. The process is officially supported by the company, but has a number of restrictions:
- โณ Wait 7 days โ after linking the Mi Account to the device, you need to wait a week (on some models โ 360 hours!).
- ๐ Account binding โ unlocking is possible only through an authorized Mi Account, which should not be created on the account. VPN.
- ๐ฑ Model Restriction โ Some devices (e.g. Mi A-series with Android One) have a simplified procedure.
Instructions for unlocking:
- Activate Developer Mode (as described above) and enable OEM-unlocking in the settings for developers.
- Connect your phone to your PC, open the command line in the folder with ADB and execute: adb reboot bootloader The device will reboot to Fastboot mode.
- Run the Mi Unlock Tool (download from the official website), log in and follow the prompts. If you receive a waiting message, wait for the specified time.
- After unlocking, the phone will automatically reset to factory settings.
โ ๏ธ Warning: Unlocking the bootloader will void Xiaomiโs warranty and could lead to problems with Google Pay, Netflix services HD Widevine L1 (downgrad L3). In some models (for example, POCO F5) After unlocking, support is lost 5G in some regions.
If the Mi Unlock Tool gives you a "Couldn't unlock" error, try:
- Use the other USB-cable.
- Disable the antivirus on the PC.
- Try another Mi Account (not older than 30 days).
- Make sure the Mi Unlock Tool version matches the version MIUI phone-on.
What to do if the unlock is 99% frozen?
Installation of TWRP: custom Recovery for firmware
TWRP (Team Win Recovery Project is an alternative recovery that allows you to install custom firmware, create backups and restore the system. Without it, most firmware installation is impossible. TWRP, compatible with your device and Android version.
Installation process:
- Download the image TWRP for your model (for example, twrp-3.7.0_12-0-begonia.img For the Redmi Note 8 Pro).
- Reboot your phone to Fastboot mode (as in the unlock step).
- In the command line, run: fastboot flash recovery twrp.img fastboot reboot recovery if TWRP Try an alternative command: fastboot boot twrp.img (It's a temporary launch without a flash in memory).
- V TWRP You may need to enter a password from encryption (if the data was encrypted in the MIUI).
After the first TWRP run, it is recommended that:
- ๐ Make a full backup of the current firmware (Backup item) โ Choose Boot, System, Data).
- ๐งน Format the Data partition (if you plan to clean installation).Warning: this will delete all user data!
- โ๏ธ Set up TWRP: Turn off encryption (if not necessary) in Wipe โ Format Data โ enter".
โ ๏ธ Note: Some new Xiaomi models (e.g. Xiaomi 13 or Xiaomi) POCO F5) standard TWRP You may not work because of changes in partition structure, in which case you can use OrangeFox Recovery or Dynamic Partitions special builds.
| Xiaomi model | Code name | Recommended TWRP | Features |
|---|---|---|---|
| Redmi Note 10 Pro | sweet | TWRP 3.7.0 | Supports encryption, but requires disconnection before firmware. |
| POCO X3 Pro | vayu | TWRP 3.6.2 | It doesnโt work with Android 13.+ patchless. |
| Mi 11 Lite | renoir | OrangeFox | Required to turn off avb2.0 before-fixing. |
| Xiaomi 12T | plato | TWRP For Dynamic Partitions | A modified version with support is needed super.img. |
Selection and installation of custom firmware
At this point, you will have to choose the firmware that suits your needs. Here is a brief overview of popular options:
- ๐ฑ LineageOS is the most stable and close to โpureโ Android. supports a large number of devices, but without the branded features of Google (they need to install separately).
- ๐จ Pixel Experience โ firmware with the interface and features of Google Pixel, including Google Camera and Now Playing. Perfect for fans of stock Android.
- โก ArrowOS is a balance between customization and stability, it includes many interface settings, but it retains performance.
- ๐ MIUI Europa - modified version MIUI No ads and weekly updates, suitable for those who want to stay on the job MIUI, but to get rid of her shortcomings.
- ๐ง Havoc-OS or crDroid โ for enthusiasts who want maximum customization (statusbar setting, animations, gestures, etc.).
Installation process (LineageOS example):
- Download the firmware (for example, lineage-20.0-20260510-nightly-begonia-signed.zip) and, if necessary, GApps (Google service package, for example, NikGapps).
- Reboot to TWRP (Power + Volume Up)
- Run the Wipe. โ Advanced Wipe and mark Dalvik/ART Cache, System, Data, Cache.
- Install firmware: Install โ choose ZIP-file โ Swipe to Confirm Flash.
- If you install GApps, do so immediately after the firmware is installed (no reboot!).
- Reset the device. The first start may take 10-15 minute.
After installation:
- ๐ Set up Magisk to get root rights (if necessary). Download Magisk-v26.4.zip and pass through TWRP.
- ๐ Update the firmware through the built-in updater (in LineageOS this is Settings). โ System system โ Update).
- ๐ ๏ธ Check the basic functions: camera, mobile network, Wi-Fi, Bluetooth. If something doesn't work, look for fixes on the phone. XDA or 4PDA.
โ ๏ธ Note: On devices with Dynamic Partitions (e.g. Xiaomi) 12/13 (a) the standard installation method may not work: 1. Unpack. payload.bin firmware MIUI. 2. Replace files in custom firmware with the new partition structure. 3. Use special scripts for firmware (for example, XiaomiTool) V2).
๐ก
If the mobile network does not work after firmware, check the settings APN. Often helps manually entering operator parameters or installing a patch IMS Fix for your model.
Setup of the system after installation
After successful firmware custom Android will be the initial setup.AOSPLineageOSPixel Experience functions may work differently than in the MIUI. Here's what you should pay attention to:
1. Google Account and Sync:
- Add an account through Settings โ Accounts.
- Enable synchronization of contacts, calendar and Google Photos.
- If Google services (such as Play Market) are not working, check the GApps or access rights.
Performance and battery:
- B Settings โ Battery disable unnecessary optimizations for background apps.
- If you have a quick discharge, check the settings. โ Annexes โ Special access โ Optimizing the battery.
- For gaming smartphones (for example, POCO F4 GT) Install Game Turbo from Magisk modules.
Security and updates:
- Set up a Smart Lock to unlock in trusted locations.
- Enable monthly security updates (in LineageOS, this is done automatically).
- Install Magisk to manage root rights and modules (e.g, ViPER4Android sound-wise).
4. Re-establishment of functions MIUI (if necessary):
- If you miss Second Space or App Lock, install Xiaomi.eu or use alternatives from the Play Market (like Island for app isolation).
- For IR Blaster (Infrared Port) Download Mi Remote from APK Or use AnyMote.
- If Always-on Display is not working, check the settings in Settings โ Screen. โ Extended or install module AOD Enabler.
If Widevine is missing after the firmware L1 (no HD Netflix or Disney+), try:
- Refresh the original vendor.img stock-flow MIUI.
- Install Widevine Fix module via Magisk.
- Reset the settings DRM In Settings โ Annexes โ Special access โ DRM.
๐ก
After installing custom firmware, the first 2-3 It can be unstable (overheating, fast discharge) that's OK, Android optimizes background processes. If problems persist longer, check firmware compatibility with your device.
Solving common problems
Even with the correct following of the instructions, errors can occur, and here are the most common ones and ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| The phone does not turn on after firmware (black screen) | Incompatible firmware or installation error | Check out the official Fastboot MIUI, then repeat the process. |
| Logo hanging (bootloop) | Module conflict or incorrect Wipe | Enter in. TWRP, Run Advanced Wipe (including System) and then re-install. |
| Camera or sensors are not working. | There are no drivers for your model. | Install the patch. ANX Camera or stitch vendor.img stock-stack. |
| No mobile network (IMEI lost) | The modem or EFS partition is damaged | Restore. EFS from the backup or stream modem through the Fastboot. |
| Magisk or root is not working | Incorrect installation or module conflict | Remove Magisk through TWRP, Then install the latest version. |
If your problem is not described above, use the following resources:
- ๐ ๏ธ XDA Developers โ search for the device model.
- ๐ฌ 4PDA โ Russian-speaking community with guides and patches.
- ๐ Official documentation of LineageOS.
- ๐ค Telegram chats for firmware (e.g. Pixel Experience Chat or ArrowOS Official).
If the device doesnโt turn on at all (even in Fastboot), try:
- Connect to charging for 30 minutes - sometimes helps with the discharge of the battery.
- Hold the Power. + Volume Down for 20 seconds for forced reboot.
- Use the Mi Flash Tool to run the official firmware MIUI mode EDL (Authorized account required).
โ ๏ธ Note: If you have firmware for another model (for example, installed the build for the Redmi Note 10 on the Redmi Note 10 Pro), the device may stop responding to the buttons. EDL-Mode (emergency firmware through testpoints) Contact the service center or look for soldering instructions for your model.