How to put unofficial firmware on Xiaomi: from unlock to install

Installing informal firmware on Xiaomi smartphones is a process that opens up access to advanced features, current versions of Android and unique chips from community developers. However, this is not just an β€œair update”: the procedure requires unlocking the bootloader, working with the TWRP recavator, and risks turning the device into a β€œbrick.” In this article, we will discuss all the steps from preparation to final configuration, and also explain how to minimize risks and choose the right firmware for your model.

Before you start, it’s important to understand that Xiaomi doesn’t officially support third-party firmware installations, which means you’re out of warranty (if it’s still in place), and you take responsibility for possible failures. On the other hand, custom firmware like LineageOS, Pixel Experience or ArrowOS often offer cleaner Android without any extra software, better optimization and extended support for older models. Are you ready for experimentation? Then let’s get started.

1.Preparation: What to Know Before Installation

The first step is to assess the feasibility, and informal firmware is not for everyone.

  • πŸ”„ Your device is no longer receiving official updates (e.g., Redmi Note 5 or Mi). A2), But you want a new version of Android.
  • πŸš€ You lack performance or function MIUI (For example, there is no Always On Display or too aggressive battery optimization).
  • πŸ›‘οΈ Are you concerned about privacy and want to get rid of pre-installed Xiaomi services.

But there is a downside:

  • ⚠️ Loss of warranty (if the device is warranty, Xiaomi will refuse repairs if an unlocked bootloader is detected).
  • πŸ”‹ Possible issues with autonomy (some custom firmware is less optimized for battery life).
  • πŸ“± Risk of "bricking" (if you interrupt the process or choose incompatible firmware).

Before you move on, check:

  1. The model of your device (in Settings β†’ About Phone β†’ Model) For example, the Redmi Note 10 Pro has the code name sweet, and the POCO F3 is alioth.
  2. The current version of MIUI and Android (this will help you choose a compatible firmware).
  3. Availability of a backup of data (installation of firmware erases everything from internal memory!).
πŸ“Š Why do you want to install a custom firmware?
I want to get a new version of Android.
I don't like MIUI.
Additional functions needed
Experiment
Other

2. Unlocking the bootloader: step zero

Without bootloader unlocking, unofficial firmware cannot be installed. Xiaomi allows it, but the process involves waiting and confirming an account. Here's how it works:

1. Link the device to your Mi Account:

  • πŸ“± Go to Settings. β†’ Xiaomi account and log in.
  • πŸ”— Turn on sync and confirm. email/phone.

2. Activate Developer Mode and allow OEM unlocking:

  • πŸ› οΈ Go to Settings. β†’ About the phone and 7 times click on the version MIUI, To activate the Developer’s settings.
  • πŸ”“ Back to Settings β†’ Additionally. β†’ Developer settings and enable Unlocking OEM and debugging. USB.

3. Request unlocking via Mi Unlock Tool:

  • πŸ’» Download the utility from the official website (only for Windows).
  • πŸ”Œ Connect your phone to your PC in Fastboot mode (turn off the device, then press Volume down). + Nutrition).
  • ⏳ Run the Mi Unlock Tool, log in and follow the instructions. Usually you need to wait 72-168 hours (3-7 days) before confirmation.

⚠️ Note: If you have previously unlocked a bootloader on this device, you may not need to wait. However, binding to a Mi Account is mandatory - without it, unlocking is impossible.

What if the Mi Unlock Tool can’t see the device?
Make sure drivers are installed ADB/Fastboot (Download them through Android Studio or Universal Package ADB Also check that the cable supports data transfer (not all). USB-cables are suitable for Fastboot).

3. Select firmware: what to install instead of MIUI

Castom firmware is divided into two types:

  • πŸ“± Ported GSI (Generic System Images are generic Android images that work on most Project Treble devices (supported with Android 8.0). GSI, Phhussons GSI.
  • 🎯 Specialized firmware, customized to a particular model, usually more stable. GSI, require exact matching of the device code.

Popular firmware for Xiaomi:

FirmwareFeaturesXiaomi supportComplexity of installation
LineageOSClean Android, regular updates, high stabilityMost models (Redmi 4X to POCO F5)Medium
Pixel ExperienceGoogle Pixel interface, chips like Now PlayingPopular models (Mi 9, Redmi Note 10 Pro)Medium
ArrowOSMinimalist design, a lot of customizationLimited list (mainly flagships)Tall.
MIUI EUOfficial MIUI without Chinese services and advertisingAlmost all Xiaomi devicesLow.

Where do I look for firmware?

  • 🌐 Official Project Sites (such as LineageOS or Pixel Experience).
  • πŸ“Œ Forum XDA Developers (search for a theme by your device code).
  • πŸ’¬ Community telegram chats (e.g, @xiaomifirmware or @lineageosru).

⚠️ Warning: Avoid firmware from unknown sources - they may contain malware or spyware (MD5/SHA1) post-download!

πŸ’‘

Before choosing a firmware, check the reviews on the forums. Pay attention to bugs: if many users do not have a camera or mobile connection, it is better to look for another option.

4. TWRP Installation: Your Swiss Firmware Knife

TWRP (Team Win Recovery Project) is a custom recovery that allows you to install firmware, backup and restore the system, without which installing unofficial software is almost impossible.

Installation instructions:

  1. πŸ” Download the version. TWRP for your model from an official website or trusted source (for example, XDA). The file must have the.img extension.
  2. πŸ’» Connect your phone to your PC in Fastboot mode (as when unlocking the bootloader).
  3. πŸ“₯ Place the file. twrp-3.x.x-x-<code>.img to the folder with the platform-tools (from Android) SDK) The command is: fastboot flash recovery. twrp-3.x.x-x-<code>.img
  4. πŸ”„ Reboot to Recavery, Holding Volume Up + Nutrition (on some models - Volume up) + Loudness down + Nutrition).

If you replace TWRP with standard backups after the reboot, you have Anti-Rollback protection on your device, and you will need to:

  • πŸ”§ Install TWRP via the fastboot boot command twrp.img (time-load).
  • πŸ“ Hand-stitch the file disable_force_encrypt.zip or no_verity_opt_encrypt.zip (look XDA).

Download the correct file.img for your model|Drivers installed ADB/Fastboot|The battery is charged at least by 70%|Backup of important data is made-->

5. Installation of firmware: step-by-step process

Now that you have the bootloader unlocked and you have TWRP installed, you can start the firmware. Never install the firmware through a standard backup, which will lead to error and possible data loss.

Algorithm of action:

  1. πŸ“ Download the firmware (usually this one) ZIP-file) and place it on the external SD-card or internal memory (if not encrypted).
  2. πŸ”„ Reboot to TWRP (Keep the Volume up. + Power on-set).
  3. 🧹 Make a full backup of the current system (Backup section in the system) TWRP). This will save your data if something goes wrong.
  4. 🧽 Perform Wipe (clean up): Press the Wipe β†’ Advanced Wipe, tick Dalvik / ART Cache, System, Data, Internal Storage (if the firmware is not available) GSI). Swipe for confirmation.
  5. βš™οΈ Install firmware: Press Install, select ZIP-Add (if required) GApps (Google services) and Magisk (root rights). Swipe to start installation.

Reboot β†’ System

If the system does not start after restarting (hangs on the logo or bootloop):

  • πŸ”™ Go back in TWRP and repeat the Wipe β†’ Format Data (enter yes to confirm).
  • πŸ”„ Refresh the firmware.
  • πŸ“‘ If the problem persists, try another firmware or kernel version.

πŸ’‘

Always check that the firmware is compatible with your device’s codename. Installing firmware for the Redmi Note 9 Pro (joyeuse) on the Redmi Note 9S (curtana) will cause the system to fail.

System configuration after installation

After a successful firmware, you will have:

  1. πŸ“± Go through the initial setting (choose language, connect to Wi-Fi, log in to your Google account).
  2. πŸ”’ Check the main functions: Mobile communication (calls, SMS, 4G/5G). Wi-Fi and Bluetooth. Camera (sometimes GCam or patches are required) Sensors (gyroscope, compass, fingerprint).
  3. πŸ”§ Install missing components: GApps (if not included in firmware) – download the appropriate package from OpenGApps. Magisk (for root rights) – ZIP through TWRP. Core (if productivity customization is required).

Typical problems and their solutions:

Problem.Possible causeDecision
Mobile phone service is down.Absent. IMS-fashions or misconfigurements APNInstall a patch for the modem or manually add an operator APN
Fast battery dischargeUnoptimized kernel or background processesSweat a custom core (like FrancoKernel) or calibrate the battery
NFC's not workingThere is no support in the firmwareLook for firmware marked "NFC fixed" or return to MIUI

If you encounter a bug that can’t be fixed, go to the XDA Developers forum or Telegram themed chats. There are usually solutions for popular devices.

7 Risks and how to minimize them

Installing custom firmware is always a trade-off between stability and the main risks and ways to avoid them:

  • πŸ’₯ "Bricking" (complete device failure): Cause: interrupted firmware, incompatible file, errors when wipe. Prevention: use stable power (laptop charging or UPS), check hashes of files.
  • πŸ”‹ Battery problems: Cause: unoptimized core or background processes.Prevention: monitor battery consumption through Settings β†’ Battery, stitch the custom core.
  • πŸ“Ά Poor communication or GPS: Reason: no proprietary drivers for your region. Prevention: look for firmware marked "Global" or manually install modems.

What to do if the phone is not turned on?

  1. πŸ”Œ Try charging the battery for 30 to 60 minutes (sometimes the discharge will block the start).
  2. πŸ”„ Go to Fastboot (Loudness Down) + Food, and ask again TWRP:
  3. πŸ“ V TWRP Repeat the firmware installation or restore the backup.
  4. πŸ†˜ If nothing helps, contact the service center (indicate that the firmware was unofficial).

⚠️ Note: On some Xiaomi models (such as the Redmi Note 8 Pro with a Mediatek chip), unlocking the bootloader can cause the camera to lock hardware.

8.Alternatives: what to do if the firmware is not suitable

If custom firmware is unstable or you lack MIUI features, consider alternatives:

  • πŸ”„ Back on. MIUI: Download the official firmware from Xiaomi. Sweat it through Fastboot using the Mi Flash Tool (select the clean all option).
  • πŸ› οΈ Use it. MIUI with patches: Install MIUI EU (A version without Chinese services, or scrolling Magisk for root rights and modules (e.g. Xiaomi.eu Patched). ADB: adb shell pm uninstall --user 0 com.miui.analytics
  • πŸ“± Buy a new device: If your model is outdated, it may be easier to purchase a smartphone with official update support (e.g., a new device that is not available, POCO F5 Or the Redmi Note 12 Pro.+).

Remember, custom firmware is not a panacea; sometimes it’s better to stay on MIUI but customize it to suit you (e.g., disable ads through ADB or install a Nova Launcher launcher).

πŸ’‘

If you're not sure about your abilities, try flashing a custom recap and backing it up first, and you can experiment without losing data.

FAQ: Frequent questions

❓ Can I install custom firmware without unlocking the bootloader?
No, Xiaomi blocks the installation of unofficial software at the bootloader level. Without unlocking, you can only flash official updates through Fastboot or Recovery.
❓ How to check if the bootloader is unlocked?
Turn off the phone, then press Volume Down + Power to log in to Fastboot. If there's Unlocked at the bottom of the screen, the bootloader is unlocked. If Locked isn't.
❓ Which firmware to choose for maximum stability?
For most Xiaomi devices, the most stable are LineageOS β€” if you want a clean Android; MIUI EU β€” if you want to keep the brand interface, but without Chinese services; Pixel Experience β€” if Google chips are important (for example, Call Screen); Avoid night builds (nightly) β€” they often contain bugs.
❓ How to return the official firmware if something went wrong?
Download the official Fastboot-ROM for your model from Xiaomi. Then: Unpack the archive into a folder. Launch the Mi Flash Tool, select the firmware folder. Connect the phone in Fastboot mode. Press Refresh, then Flash (select the clean all option). Attention: this will completely erase the data!
❓ Why does the bank application not work after firmware?
Banking applications (such as Sberbank or Tinkoff) block work on devices with an unlocked bootloader or root rights: πŸ”’ Use Magisk with MagiskHide Props Config to hide the root. πŸ“± Install an alternative application (e.g., a web version of a bank). πŸ”„ Return to the official firmware without root rights.