Flashing a smartphone Xiaomi is a process that can solve performance problems, add new functions, or even bring a โbrickedโ device back to life. However, without proper preparation and knowledge of the nuances, you risk getting a device that refuses to turn on. In this article we will analyze all the stages: from unlocking the bootloader to installing official or custom firmware, and also tell you how to avoid common mistakes.
The firmware Xiaomi is different from other brands due to the closed bootloader and proprietary shell MIUI. Even if you have previously flashed devices Samsung or Google Pixel, there are pitfalls waiting for you here. For example, linking your account Mi Account to the bootloader or mandatory waiting 7 days after unlocking. We will go into detail on each step so that you can confidently update or replace the firmware without the risk of losing data.
Why reflash Xiaomi?
The main reasons why users decide to reflash:
- ๐ Updating to a new version of MIUI - if official OTA updates no longer arrive (relevant for older models like Redmi Note 4X or Mi 5).
- โก Acceleration โcustom firmware (for example, LineageOS or Pixel Experience) are often free of โgarbageโ and work faster.
- ๐ Removing restrictions โ unlocking the bootloader allows you to install unofficial modifications, root the device or remove built-in applications.
- ๐ ๏ธ Recovery after a failure โif The smartphone does not turn on (โbrickโ), flashing via
Fastbootmay be the only way out.
However, flashing is not always justified. For example, on new models (Xiaomi 14, Redmi Note 13 Pro+) it can lead to loss of warranty or problems with the operation of the camera/sensors. Smartphones with processors MediaTek (for example, Redmi 10C or POCO M5) are more difficult to flash due to the closed bootloader architecture and the risk of โhard brickโ.
โ ๏ธ Attention: Firmware through unofficial sources (for example, 4PDA) may contain malicious code or unstable assemblies. Always check the hash sums of the files and reviews from other users.
Preparing for flashing: what you need to do before you start
Before you start flashing, follow the required steps:
Make a backup copy of your data (photos, contacts, messages)
Check the device model in Settings โ About phone โ Model
Download the official firmware from the site Xiaomi or a trusted forum
Charge the phone at least 60% (preferably 100%)
Prepare a cable USB Type-C (original or certified)
Install drivers Mi Flash Tool and ADB/Fastboot on PC
Disable Mi Cloud and Find device in account settings
-->
Pay special attention backup. Even if you plan to flash the device without resetting (OTA or Recovery), there is always a risk of data loss. Use:
- ๐ฑ Built-in function
BackuptoSettings โ Advanced(saves applications and settings). - ๐ฅ๏ธ apps like Mi PC Suite or Titanium Backup (requires
root). - โ๏ธ Cloud services (Google Drive, Mi Cloud) for photos and documents.
Also check bootloader version your device. Xiaomi there are two branches of firmware:
| Firmware type | Features | Suitable for |
|---|---|---|
| Global (EEA) | Official firmware for Europe with support for Google services | Redmi Note 12, POCO X5 Pro, Mi 11 Lite |
| China Stable | Chinese version without Google, but with new features earlier | Xiaomi 13T, Redmi K60 |
| Developer (Beta) | Test builds with bugs, but with the latest updates | For experienced users |
| Custom ROM | LineageOS, Pixel Experience โpure Android without MIUI | Old models (Mi 9, Redmi Note 8 Pro) |
โ ๏ธ Attention: If you are flashing the Chinese version (China ROM) on a global device, NFC may stop working, 4G bands or Google Pay. Before installation, check compatibility on the forum XDA Developers.
Official Global from Xiaomi
Chinese (China Stable)
Custom (LineageOS, Pixel Experience)
I donโt know, Iโm still choosing -->
Unlocking the bootloader on Xiaomi: step-by-step guide
Without unlocking the bootloader (Bootloader Unlock), you will not be able to flash the device via Fastboot or install custom recovery (TWRP). The process takes a minimum 7 days due to policy Xiaomi.
Steps to unlock:
- Link your account Mi Account to the device:
- Go to Settings โ Xiaomi Account data-i="129">Activate
Settings โ Xiaomi Account. - Turn on
SynchronizationAndFind device.
- Go to Settings โ Xiaomi Account data-i="129">Activate
Developer Mode:
Settings โ About phone โ MIUI version (tap 7 times)
Then enable USB debugging i OEM unlocking v Settings โ Advanced โ For developers.
After waiting, repeat the process - the bootloader will be unlocked. Make sure what does Mi Unlock Tool status display Unlocked.
What will happen if you interrupt the unlocking?
If you turn off the phone while unlocking the bootloader (for example, pull out the cable), the device may go into Fastboot error mode This device is locked. In this case, you will have to repeat the procedure from scratch, including a 7-day wait. In rare cases, you will need to contact the service center to unlock via EDL mode (paid).
Unlocking the bootloader resets all data on the phone. backup!
Xiaomi firmware methods: Fastboot vs Recovery
There are three main firmware methods Xiaomi:
- ๐ฒ Via Recovery (MIUI) โthe simplest way for official updates. Suitable if the bootloader is locked.
- ๐ฅ๏ธ Via Fastboot (Mi Flash Tool) - a universal method for any firmware, but requires an unlocked bootloader.
- ๐ง Through TWRP (custom recovery) - for installing custom firmware and modifications.
Let's look at each method in more detail.
1. Firmware via Recovery (without PC)
Suitable for updating the current version MIUI or recovering from a failure. Instructions:
- Download the firmware in format
.zip(for example,miui_BLOCKNAME_Global_V14.0.1.0.TKWMIXM_...) from the official website. - Rename the file to
update.zipand move to the root of the internal memory. - Go to
Settings โ About phone โ System update. - Click on the three dots in the upper right corner โ
Select file firmwareโ specifyupdate.zip. - Confirm the installation and wait for the reboot.
โ ๏ธ Attention: If after flashing the firmware viaRecoverythe phone is stuck on the logo MI, try resetting the settings viaWipe Datain the same recovery menu. To do this, when loading, pressPower + Volume Up.
2. Firmware via Fastboot (Mi Flash Tool)
This method is suitable for:
- Installing official firmware on a bricked device.
- Moving from China ROM to Global (and vice versa).
- Recovery after unsuccessful firmware via
TWRP.
Instructions:
- Download the firmware in format
.tgz(for example,whyred_global_images_V12.5.1.0.RDFMIXM_...) and unpack it. - Install Mi Flash Tool on PC and drivers ADB/Fastboot.
- Switch the phone to mode
Fastboot: turn off the device, then pressPower + Volume Down. - Connect the phone to the PC and start Mi Flash Tool.
- Click
Select, specify the folder with the unpacked firmware. - Select the firmware mode:
Clean allโfull cleaning (recommended when changing the firmware region).Clean all and lockโcleaning + blocking bootloader (for selling the phone).Save user dataโsaving data (risky, can lead to bugs).
Flash and wait for completion (5-10 minutes).If the process is stuck on 99% or an error appears anti-rollback, which means you are trying to install an older firmware version than the one that is already installed. In this case, you need to download new firmware or reset anti-rollback via EDL (requires an authorized account Xiaomi).
3. Firmware via TWRP (for custom firmware)
If you want to install LineageOS, Pixel Experience or other custom firmware, you will need TWRP RecoveryInstructions:
- Install TWRP for your model via
Fastboot:fastboot flash recovery twrp-3.7.0_9-0-whyred.imgfastboot boot twrp-3.7.0_9-0-whyred.img - Download the firmware (for example,
lineage-20-20231010-nightly-whyred-signed.zip) and GApps (if you need Google services). - In TWRP execut
Wipe โ Advanced Wipeand check:Dalvik / ART CacheSystemDataCache
Install.Reboot โ System).If after installing custom firmware the mobile network does not work, check the APN settings or install a patch IMS for your model (look at 4PDA).
Typical errors when flashing Xiaomi and how to avoid them
Even experienced users face problems. Let's look at the most common ones:
| Error | Cause | Solution |
|---|---|---|
This device is locked |
Bootloader not unlocked or account Mi not linked | Repeat the unlocking procedure via Mi Unlock Tool |
Anti-rollback check fail |
Attempting to install old firmware | Download a new version or reset anti-rollback via EDL |
| The phone does not turn on after the firmware | Incompatible firmware or interrupted process | Repeat the firmware via Fastboot with complete cleaning (Clean all) |
| No network after installation Custom ROM | No modem drivers | Install the patch IMS or return to MIUI |
If after the firmware the phone is stuck on the splash screen MI or reboots in a loop (bootloop), try:
- ๐ Reset the cache via
Recovery(Wipe โ Wipe Cache). - ๐ฅ Repeat the firmware with complete data clearing (
Clean allin Mi Flash Tool). - ๐ง Install a different firmware version (for example, instead of Global try EEA).
โ ๏ธ Attention: On some models (Redmi Note 10 Pro, POCO F3after flashing the firmware throughFastbootthe bootloader may not be unlocked. To avoid this, do not use the optionClean all and lock.
How to return official firmware after custom one
If you have experimented with LineageOS or other custom firmware and want to return to MIUI, follow these instructions:
- Download the official firmware from format
.tgzfor your model from the website Xiaomi. - Unpack the archive and connect the phone in the mode
Fastboot. - Run Mi Flash Tool, select the folder with the firmware.
- Select mode
Clean all(if you want to save the data, you risk getting bugs). - Click
Flashand wait for completion.
After returning to MIUI you may need to:
- ๐ Re-unlock the bootloader (if it is locked).
- ๐ถ Setting up a mobile network (APN).
- ๐ Update to the latest version via
OTA.
If after returning to MIUI it does not work Google Pay or banking applications, check the status SafetyNet via the app SafetyNet Test. If necessary, install Magisk and activate the module Universal SafetyNet Fix.
FAQ: Frequently asked questions about Xiaomi firmware
Is it possible to flash Xiaomi without unlocking the bootloader?
Yes, but only through Recovery (menu updates). This allows you to install official firmware MIUI without data loss. However, to change the region (for example, from China to Global) or install custom firmware, unlocking is required.
How long does it take to flash firmware via Fastboot?
On average 5โ15 minutes, depending on the model and speed USB port. On older devices (Redmi 4X, Mi A1), the process may take up to 20 minutes. If the firmware is frozen for more than 30 minutes, interrupt the process and try again.
Will I lose the warranty after unlocking the bootloader?
Yes, unlocking the bootloader and installing custom firmware will void the warranty. However, in some service centers you can pay for flashing to the official MIUI and restoration of the warranty (cost ~1500โ3000 โฝ).
Is it possible to flash Xiaomi on Mac or Linux?
Yes, but this will require:
- Install
ADB/FastbootviaHomebrew(Mac) orapt(Linux). - Use alternative tools like XiaomiTool V2 (for Linux).
- For Mi Flash Tool you will need a virtual machine with Windows.
What to do if the camera does not work after flashing the firmware?
This problem is typical for custom firmware on new models (Xiaomi 13, Redmi Note 12 Pro+). Solutions:
- Install the patch ANX Camera or GCam.
- Return to MIUI โsome camera drivers are closed to third-party firmware.
- Check the forum XDA Developers for fixes for your model.