How to change firmware to Xiaomi: official and alternative ways

Changing the firmware on Xiaomi smartphones is a process that can radically change the way a device works, from eliminating bugs to adding new features. However, not all users understand that firmware is official and customized, and their installation requires different approaches. Official updates from MIUI are distributed through OTA, but what if you want to upgrade to Global ROM from the Chinese version or install LineageOS for pure Android?

In this article, we will discuss all the current ways to change firmware to Xiaomi, including unlocking the bootloader, choosing the right version of software and step-by-step instructions for beginners. Special attention will be paid to the risks of loss of warranty and methods of minimizing them - information that is often hidden in surface guides. If you have never done firmware, start with official methods - they are safer and do not require deep technical knowledge.

1. Preparation for a firmware change: what you need to know

Before you start your firmware, identify the current MIUI and device model. This is critical: the firmware for the Redmi Note 10 Pro will not work for the POCO X3 Pro, even if they look similar. Check the version in the Settings menu β†’ About Phone β†’ MIUI version. Write down the full model name (for example, M2101K6G for the Redmi Note 10 5G).

Also consider:

  • πŸ”‹ The battery should be at least 60% charged, and if the process is interrupted due to a discharge, the device can turn into a brick".
  • πŸ“± Backup is mandatory. The firmware erases user files in the section /data.
  • πŸ” Unlocking the bootloader will reset all data on the device – it is an integral part of the process for custom firmware.
  • 🌍 Selecting a firmware region is important: Global ROM Optimized for Europe, China ROM It contains Chinese services, and EEA ROM conforms to European standards.

⚠️ Note: Installing custom firmware (e.g. Pixel Experience or ArrowOS) voids Xiaomi warranty. Official updates via Mi Flash Tool warranty are not removed, but require a device-bound Mi Account.

πŸ“Š Why do you want to change the firmware?
I want to take down ads in MIUI.
New functions needed
The device is slowing down on the current version
The custom firmware experiment
Other

2. Official ways to update MIUI

The safest method is to upgrade through Xiaomi’s built-in tools, which is suitable for upgrading to the new version of MIUI without loss of data and risks.

  1. OTA-Update (over the air): Automatic updates that come to the Settings menu β†’ The phone. β†’ System updates: Suitable for minor updates (e.g., with MIUI 14.0.3 at 14.0.4).
  2. Manual installation via Recovery: downloading the full firmware package (.zip) from MIUI Downloads and installing it via stock recovery. This method is needed for major updates (for example, from MIUI 13 to MIUI 14).

Instructions for manual installation via Recovery:

  1. Download the firmware for your model (for example, miui_BLOCKOTAGlobal_V14.0.3.0.TKUMIXM_210b123456_12.0.zip).
  2. Rename the file to update.zip and place it in the root directory of internal memory.
  3. Reboot the device in recovery: turn off the smartphone, then press Power + Volume up.
  4. In the recovery menu, select Install update.zip and confirm the installation.

β˜‘οΈ Preparations for formal renewal

Done: 0 / 4

If the device is stuck on the MI logo after the upgrade, wait 10-15 minutes. 90% of the time, the system completes the setup in the background. If the freeze lasts more than 30 minutes, try hard reset via recovery (Wipe Data option).

3. Unlocking the bootloader: a step towards custom firmware

To install unofficial firmware (LineageOS, Pixel Experience, HavocOS) you need to unlock the bootloader. Xiaomi officially allows this, but the process requires waiting and binding Mi Account.

Unlocking algorithm:

  1. Link your Mi Account to your device: Settings β†’ Xiaomi Account β†’ Sync.
  2. Activate debugging via USB: Settings β†’ About Phone β†’ MIUI version (click 7 times), then Additional β†’ For Developers β†’ Debugging via USB.
  3. Download Mi Unlock Tool and log in to the program.
  4. Connect your phone in Fastboot mode (clip Power + Volume down when the device is off).
  5. In Mi Unlock Tool, press Unlock and wait until it is completed (usually takes 72–168 hours to wait).

⚠️ Note: Once the bootloader is unlocked, the smartphone will perform a full reset (wipe), all data, including photos and apps, will be deleted, and some features (for example, Mi Pay or Widevine) will be deleted. L1 for Netflix HD) They may stop working.

If the Mi Unlock Tool is running a "Couldn't unlock" error, check:

  • πŸ”— Mi Account is linked to the device and confirmed by SMS/email.
  • πŸ“± The device has not been unlocked before (limit: 1 unlock in 30 days per account).
  • πŸ–₯️ Drivers are installed on the PC ADB/Fastboot (You can download it through Android Studio).

4. Installation of custom firmware: a step-by-step guide

Custom firmware gives you access to pure Android, additional features and updates for legacy devices.

  • πŸ“± LineageOS - stable firmware with minimalist interface.
  • 🎨 Pixel Experience – ported Android from Google Pixel.
  • ⚑ ArrowOS – Balance between productivity and customization.
  • πŸ”§ HavocOS – Maximum interface setting.

Installation process:

  1. Unlock the bootloader (see the previous section).
  2. Download firmware from the site XDA Developers (e.g., developers, lineage-20.0-20231010-nightly-redmi_note_10_pro-sweet.zip).
  3. Install custom recovery TWRP: fastboot flash recovery twrp-3.7.0_12-0-redmi_note_10_pro.img fastboot boot twrp-3.7.0_12-0-redmi_note_10_pro.img
  4. In TWRP, run Wipe β†’ Advanced Wipe (mark Dalvik, Cache, Data, System).
  5. Install the firmware through Install β†’ Choose. ZIP-file.
  6. After installation, go to Gapps (if you need Google services) and Magisk (for root rights).
FirmwareRequirementsPlusesCons
LineageOSUnlocked bootloader, TWRPStability, long updatesMinimum customization
Pixel ExperienceUnlocked bootloader, GappsThe interface is like Google PixelSometimes camera bugs
MIUI EUUnlocked loaderMIUI without Chinese servicesNo official support
HavocOSUnlocked bootloader, TWRPMaximum adjustmentCan brake on weak devices

πŸ’‘

Before installing custom firmware, check reviews on the XDA or 4PDA forum. Some builds may not support NFC, wireless charging, or the camera in full functionality.

5 Risks and How to Avoid Them

Firmware change is a process that is fraught with errors, and let's look at the main risks and ways to prevent them:

  • πŸ’€ "Brick: device not switching on. Cause: wrong firmware, interrupted process, errors in TWRP. ⚠️ Warning: If the screen is black after firmware and the indicator is on, try to pinch the power supply. + Volume up for 20 seconds. If that doesn't work, you'll need firmware through Fastboot from PC.
  • πŸ”’ Loss of loss IMEI: This is done when you run a modified modem. QCN-file (backup required).
  • πŸ“΅ Network problems: if after firmware does not catch mobile Internet, check the settings APN Or re-follow the vendor section.
  • πŸ”‹ Fast battery discharge: typical of non-optimized custom firmware.Solution: calibrate the battery (discharge to 0%, charge to 100% without interruption).

To minimize the risks:

  • πŸ“Œ Use firmware only for your model (check the device code, for example, vili for Xiaomi Mi 11 Lite).
What to do if the firmware ended with an error "Error 7"
This error in TWRP means that the firmware is incompatible with the device. Solutions: 1. Check the correct firmware model. 2. Try another version of TWRP (for example, Redmi Note 9 Pro may need TWRP-3.5.2 instead of 3.7.0). 3. Delete the statement (assert) in the updater-script file inside the ZIP-archive of the firmware (requires knowledge of working with ADB).

6.Recovery after failed firmware

If the device doesn’t turn on or gets stuck in the bootloop (cyclic reboot), use one of the recovery methods:

Method 1: Fastboot firmware

  1. Download the official firmware for Fastboot from the Xiaomi website (file.tgz).
  2. Open the archive and start the script: fastboot flash all bat-file-name.sh (Use it for Windows flash_all.bat).
  3. Wait until the process is completed (the process will take 5-10 minutes).

Method 2: Recovery through EDL (for "bricks")

If the device is not defined in Fastboot, you will need EDL (Emergency Download Mode) mode.

  1. Download the Mi Flash Tool and the firmware for EDL.
  2. Connect the phone to the PC by holding Volume up + Volume down (on some models you need to close the test points on the board).
  3. In the Mi Flash Tool, select Clean All and start the firmware.

⚠️ Attention: Regime EDL If you do not have a license, contact the service center - self-attempts can lead to the complete loss of the device.

Frequently asked questions

Can I return the official firmware after the custom?
Yes, download the official Fastboot firmware and run it through the Mi Flash Tool. Select the Clean All option for full cleanup. After that, the device will return to the stock MIUI, but the bootloader will remain unlocked.
Why does Google Pay not work after the firmware?
This is due to the unlocked bootloader or the presence of root rights. Google Pay requires a certified device with SafetyNet. Solutions: Hide root through Magisk (Universal SafetyNet Fix module). Return the official firmware and lock the bootloader.
How to check if the bootloader is unlocked?
Turn off the device and press Power + Volume down to log in to Fastboot. If the bottom of the screen says "Unlocked" - the bootloader is unlocked. You can also check this by command: fastboot oem device-info (see Device unlocked: true).
What Xiaomi models can not be stitched with custom firmware?
Technically, you can flash any device, but for some models (for example, Xiaomi). 12T or Redmi K50 Ultra) may not have stable custom firmware because of the drivers' closed source code. Check support on LineageOS Wiki or XDA.
Will the unlock counter be dropped after returning to the official firmware?
No, the bootloader unlock counter is only reset via Xiaomi's official service, and re-unlock is possible no earlier than 30 days.

πŸ’‘

Before any firmware check the compatibility of files with your model of the device. Mistake in choosing firmware is the main reason for the "bricking" of Xiaomi smartphones.