Installing alternative firmware or updating official software on Xiaomi devices is a process that requires attention to detail. Many users face the need to unlock the bootloader before firmware, but not everyone knows how to do it safely. In this article, we will discuss all the steps from the preparation of the device to the final installation of the firmware, including nuances for different models of Redmi, POCO and Mi.
The process may seem complicated, but with the right approach, it is available even to beginners, the main thing is to follow the instructions and take into account the features of a particular model, since, for example, the Xiaomi 12T and Redmi Note 10 Pro have different unlock mechanisms.
Note that installing informal firmware (like LineageOS or Pixel Experience) may take you out of warranty, but for many users, itโs the only way to get current updates on older devices or expand functionality. If your goal is simply to update official software, the process will be easier, but it will also require caution.
1. Device Preparation: What to Do Before Unlocking the Booter
Before you start unlocking Bootloader, you need to follow a few critical steps, neglecting them can lead to a blink (complete failure) of the device or loss of data.
First, back up all your important data. Unlock the bootloader and firmware reset the device to factory settings. Use Mi Cloud, Google Drive, or local storage.
- ๐ฑ Contacts and Messages (Export through Settings) โ Google โ Backup)
- ๐ท Photos and videos (copy to PC or cloud)
- ๐ Passwords from apps (write down or use password manager)
- ๐ฎ Save games (if cloud backup is supported)
Second, check the MIUI version and the device model. This is critical, because the firmware is strictly model-specific. You can find out the version in Settings โ About the phone. Write down the exact model name (e.g. Redmi Note 11 Pro 5G codenamed veux).
Also make sure that the device has enough battery power (at least 60%) interrupting the process due to discharge can make the phone unusable for further use.
โ ๏ธ Note: If your device was purchased in China, it is likely that it is running Chinese firmware without Google services, in which case, after unlocking the bootloader, you will need to install a global version. MIUI or custom firmware with GApps.
2 Unlock the bootloader on Xiaomi
Unlocking Bootloader is a must-have step for installing any unofficial firmware or even some official updates. Xiaomi allows unlocking, but the process requires confirmation through a Mi Account.
First, you need to link your Mi Account to your device:
- Go to Settings โ Xiaomi Account and log in.
- Turn on data synchronization.
- In Settings โ Additional โ For developers, activate the options for debugging over USB and unlocking OEM.
Next, download the official Mi Unlock Tool from Xiaomi (Windows only). Make sure you have ADB and Fastboot drivers installed. Connect your phone to your PC in Fastboot mode (click Volume Down + Power When the device is off).
Launch the Mi Unlock Tool, log in to the same Mi Account as your phone, and follow the instructions.
- ๐ Linking an account to a device can take up to 72 hours (according to Xiaomi rules).
- ๐ฑ In some models (for example, POCO F4) Additional confirmation is required through SMS.
- ๐ง If the utility gives you a Couldnโt unlock error, try using a different version of the program or try again later.
Link Mi Account to your device
Enable USB debugging and OEM unlocking
Download Mi Unlock Tool from the official website
Install ADB/Fastboot drivers
Charge your phone at least 60%-->
โ ๏ธ Note: Once the bootloader is unlocked, all data, including files in internal memory, will be deleted from the device. Anti-Rollback protection may also work if you try to install firmware older than the current version.
3. firmware selection: official MIUI vs custom builds
Once you unlock the bootloader, you need to decide on the type of firmware. Each option has pros and cons:
| Type of firmware | Advantages | Deficiencies | Who's right for? |
|---|---|---|---|
| Official MIUI (Global/Chinese) | Stability, support OTG-Updates, the guarantee is maintained | Lots of Bloatware, Limited Customization | For those who value stability, |
| MIUI EU (unofficial) | No Ads, Weekly Updates, More Features | Maybe less stable, no. OTA-update | Experienced users, lovers of new features |
| Castomium (LineageOS, Pixel Experience) | Clean Android, Long-Term Support, No Bloatware | Some functions may not work (NFC, camera) | Enthusiasts, owners of old devices |
| Port firmware (from other devices) | Unique functions, experiments | High risk of brick, bugs | Developers, testers |
For most users, the best choice is the global version of MIUI (if it was originally Chinese) or MIUI EU for those who want to get rid of advertising. Cast firmware like LineageOS will work if your device no longer receives updates from Xiaomi, but be prepared for possible hardware problems (for example, the broken Widevine L1 for Netflix in HD).
Download the firmware only from verified sources:
- ๐ Official: en.miui.com (global) or miui.com (Chinese)
- ๐ง Informal MIUI EU: xiaomi.eu
- ๐ค Castomy: XDA Developers or LineageOS
๐ก
Before downloading the firmware, check that it is compatible with the code name of your device (for example, surya for POCO X3). Installing firmware from another model will lead to a blink!
4. Install firmware via Fastboot or Recovery
There are two main ways to install firmware on Xiaomi: through Fastboot (recommended for official firmware) and through Recovery (convenient for custom builds).
Method 1: Installation via Fastboot (for official firmware)
- Download the firmware in.tgz or.zip format and unpack it into a folder.
- Connect your phone to your PC in Fastboot mode (clip Volume Down + Power).
- Launch the file. flash_all.bat (Windows or flash_all.sh (Linux/Mac).
- Wait until the process is completed (usually 5-10 minutes).
Method 2: Installation with Recovery (TWRP)
- Install custom recovery TWRP via Fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img
- Copy the firmware (.zip format) on your phone or flash drive.
- In TWRP, select Install, specify the firmware file and confirm the installation.
- After installation, run Wipe โ Format Data (required for custom firmware!).
If you install custom firmware, additional customization may be required after the first run (e.g. installing GApps or fixing access rights through Magisk).
What to do if the firmware is not installed?
5. Solving problems after firmware
Even if installed correctly, firmware can get into trouble, and here are the most common ones and how to fix them:
Problem 1: The phone doesnโt turn on or hangs on the MI logo
Problem 2: Mobile network or Wi-Fi is not working
- ๐ถ Make sure the firmware supports your region (e.g., the global version for Europe).
- ๐ Reset network settings in Settings โ SIM-maps and mobile networks โ Resetting settings.
- ๐ก Refuse Modules and Vendor via Fastboot.
Problem 3: Constant reboots (bootloop)
- ๐ ๏ธ Remove the cache through TWRP (Wipe โ Advanced Wipe โ Dalvik/ART Cache + Cache).
- ๐ Reinstall the firmware without the Reboot after installation checkbox, then manually restart.
- ๐ง Check if the installed kernel or Magisk conflicts with the firmware.
โ ๏ธ Note: If biometric sensors (fingerprint, facial recognition) have stopped working after firmware, most likely, a firmware with an incompatible vendor was installed. vendor.img stock-stack.
6. System optimization after firmware
After successful firmware installation, several steps are recommended to improve performance and stability:
1. Superuser rights setting (Root)
If you have installed Magisk, check it through the Magisk Manager app. Update the modules and hide root from apps that block it (such as banking):
- ๐ Enable Magisk Hide in the settings.
- ๐ Update Magisk via Direct Install in the app.
- ๐ฑ Install modules to improve functionality (for example, ViPER4Android sound-wise).
Calibration of the battery
After the firmware is installed, the charge level display may be lost.
- Discharge the phone before automatically shutting down.
- Charge up to 100% without interruption (use the original adapter).
- Reset your battery statistics via TWRP (Wipe โ Battery Stats).
3. Optimization of productivity
- ๐ Enable Advanced Performance Mode in Settings โ Special facilities โ Font size and display (for MIUI).
- ๐งน Disable unnecessary system applications through ADB: adb shell pm uninstall --user 0 com.miui.analytics
- ๐ Use Greenify to hibernate background apps.
๐ก
Once you have custom firmware installed, be sure to check the basic features: calls, mobile internet, Wi-Fi, Bluetooth and camera. If something doesn't work, go back to stock firmware or look for an alternative build.
7 How to return the official firmware if something went wrong
If after experiments with firmware, the device began to work unstable or you want to return the warranty, you can restore the official software.
Step 1: Download the stock firmware
Find the latest stable version of MIUI for your model on Xiaomiโs official website. Pay attention to the region (e.g. Global, EEA, China).
Step 2: Switch through the Mi Flash Tool
- Unpack the downloaded archive with firmware.
- Install the Mi Flash Tool on your PC.
- Connect your phone in Fastboot mode.
- In the program, select a firmware folder and press Refresh, then Flash.
- Select Clean All (Full Cleaning) mode.
Step 3: Unlock the bootloader back (optional)
If you want to hide the fact of unlocking (for example, for warranty repairs), you can re-lock the bootloader through the Mi Unlock Tool. However, this is risky and can lead to a blink if the firmware is not completely stock.
โ ๏ธ Note: When you return to the official firmware, all data will be deleted, and the unlocked bootloader can remain in the system (this is visible in Fastboot under the label unlocked.