Why do users choose custom firmware for Xiaomi?
Xiaomi, Redmi and POCO are known for their price-performance ratio, but the standard MIUI shell doesnβt always suit owners. Official software is overloaded with advertising, unnecessary services and restrictions that prevent full control of the device. Informal firmware (such as LineageOS, Pixel Experience or ArrowOS) solve these problems by offering βcleanβ Android, advanced settings and regular security updates even for older models.
But installing custom firmware isnβt just a software replacement, itβs a deep intervention. The process requires unlocking the bootloader, which resets the device to factory settings, and installing a custom TWRP recavator. Errors at any stage can lead to a phone βbrickβ (inoperability), and in this article weβll look at all the stages of the firmware to meet the current requirements of Xiaomi in 2026, including bypassing the new restrictions on unlocking the bootloader for models on the Qualcomm Snapdragon 8 Gen 2/3 platform.
Preparation: What to Know Before Firmware
Before you start, make sure your Xiaomi model is supported by the firmware you choose. For example, LineageOS officially supports Redmi Note 10 Pro (sweet), but not all POCO X5 modifications. Check compatibility on the firmware developer's website or in thematic forums (for example, 4PDA or XDA Developers).
Also consider:
- π The battery charge should be at least 70%. The firmware may take up to 30-40 minutes, and the discharge in the process will lead to failure.
- π± Backup is a must! Unlocking the bootloader erases everything, including photos, contacts and apps. Use Mi Mover or third-party tools like Swift Backup (requires root).
- π Mi Account must be tied to the device for a minimum of 7 days (a new requirement from Xiaomi in 2023.
- π» Windows PC 10/11 MacOS will require additional drivers (Android File Transfer is not suitable!).
β οΈ Note: On models with a MediaTek processor (e.g. Redmi) 12C or POCO M6 Pro) unlocking the loader may block IMEI module 5G. Before firmware check user reviews of your model!
Unlocking the bootloader: bypassing the restrictions of Xiaomi
Xiaomi has tightened the rules for unlocking from 2023, and now requires:
- Link your Mi Account to your device and wait 168 hours (7 days).
- Enable OEM Unlock in the Developer Settings (Settings β About Phone β MIUI Version β Tap 7 times, then go back to Settings β Additional β For Developers).
- Get permission through the official Mi Unlock Tool app (download here).
Newer models (such as the Xiaomi 14 or Redmi K70) may require additional confirmation via SMS or email. If the tool gives a "Couldn't unlock" error, try:
- π Restart your phone and PC.
- π Use the original USB-cable (not all cables support data transmission).
- π‘ Connect to another Wi-Fi network or use mobile internet (sometimes the lock is linked to a connection to the Internet) IP).
What if the Mi Unlock Tool canβt see the device?
Once successfully unlocked, the phone will automatically reset, and you can now start installing TWRP.
Installation of custom TWRP Recovery
TWRP (Team Win Recovery Project) is an alternative recovery that allows you to install informal firmware, make backups and obtain root rights. For each Xiaomi model, there is a version of TWRP. You can download it on the official website twrp.me or in the theme of the device on XDA.
Installation process:
- Download the image TWRP for your model (for example, twrp-3.7.0_12-0-sweet.img For the Redmi Note 10 Pro).
- Rename the file to recovery.img and place it in the platform-tools folder.
- Connect your phone to your PC in fastboot mode (clip Volume Down + Power when the device is off).
- Fastboot flash recovery recovery.img
- Reboot to TWRP, holding Volume Up + Power.
β οΈ Note: On some models (e.g, POCO F5 Xiaomi 13T) post-fix TWRP And the standard way is to replace the Recovery with the stock one at the first load, so to avoid that, right after installation. TWRP Execute the command: fastboot flash recovery_ab recovery.img (partition recovery_ab).
βοΈ Preparation for installation TWRP
Selection and installation of informal firmware
Popular custom firmware for Xiaomi:
| Firmware | Features | Support for models | Complexity of installation |
|---|---|---|---|
| LineageOS | Clean Android, regular updates | Redmi Note 9/10/11, POCO X3/F3 | Medium |
| Pixel Experience | Interface like Google Pixel, Google Camera | Xiaomi Mi 11, POCO F4 GT | High (requires additional patches) |
| ArrowOS | Balance between customization and stability | Redmi K40, Xiaomi 12T | Low. |
| MIUI Pro | Modified MIUI without advertising and unnecessary services | Most models on Snapdragon | Low. |
Installation instructions:
- Download firmware (.zip format) and, if necessary, GApps (Google services) from the OpenGApps website.
- Transfer files to your phone or flash drive (TWRP supports OTG).
- In TWRP, run Wipe β Advanced Wipe and mark Dalvik, Cache, System, Data.
- Return to the main menu, select Install and specify the path to the firmware file.
- After installing the firmware, repeat the step for GApps (if needed).
- Run the Reboot System.
π‘
If the phone has been stuck on the logo for more than 10 minutes after firmware, don't panic! Try clamping Volume Up + Power for 15-20 seconds for a forced reboot. Often the first download takes up to 15-20 minutes.
Addressing common mistakes
Even with proper execution of instructions, there can be problems, and here are the most common ways to solve them:
Error 1: "Invalid IMEI" after firmware
Reason: Damage to the modem or nvram partition when installing firmware.
- π§ Restore the stock firmware through the Mi Flash Tool (download here).
- π‘ Use the tool. SN Write Tool for Recovery IMEI (requires authorization on some models).
Error 2: Bootloop (Cyclical Reboot)
Reason: Incompatibility of firmware with the kernel or lack of patches for Dynamic Partition (on new devices).
- π Install the firmware again by pre-executing Format Data in TWRP (Not Wipe, but Format!).
- π¦ Check that the firmware version matches the type of bootloader (AB or A/B).
Error 3: "No OS installed" in TWRP
Reason: Damage to the system partition or installing firmware is not for your model.
- π Make sure the downloaded firmware is specifically for your device (check the codename, for example, alioth for the app). POCO F3).
- π₯ Reinstall firmware by pre-formatting the system, vendor and product sections.
π‘
If you don't have a sensor, camera or speaker after you've run your firmware, it probably doesn't support your hardware. Go back to stock MIUI and pick a different custom build.
Firmware recovery
If custom firmware was unstable or you need to return the warranty, restore the original MIUI.
- Download stock firmware for your model from the official website (MIUI Downloads). Choose the version of Fastboot (not Recovery!).
- Unpack the archive in a folder without Cyrillic characters.
- Connect your phone in fastboot mode and start the Mi Flash Tool.
- Select a firmware folder and press Refresh. The device must be determined.
- At the bottom, select Clean all and lock (this will lock the bootloader and return everything to factory state).
- Press Flash and wait until it is completed (it will take 5-10 minutes).
After the stock firmware has been restored:
- π The phone will automatically restart and perform the initial setup.
- π The bootloader will be blocked and all data deleted.
- π± Re-unlocking will require 7 days to wait again.
β οΈ Note: On models with MediaTek (e.g. Redmi Note 12), the recovery of stock firmware via the Mi Flash Tool may require an authorization file (auth.ini) to be obtained from official service centers or on paid forums.