Reinstallation of software on Xiaomi smartphone is a procedure that may be necessary in a variety of situations: from banal slowing down of the device to critical failures after a failed update. Unlike a normal reboot or reset, a complete reinstallation involves either restoring factory firmware. MIUI, Or installing an alternative version (like LineageOS or Pixel Experience), but not all users understand that this process requires preparation, otherwise the risk of turning the phone into a brick increases significantly.
In this article, we will discuss all stages of reinstallation: from backing up data to unlocking the bootloader and choosing the right firmware. We will pay special attention to the nuances that are often missed even by experienced users β for example, why some Xiaomi models automatically reset after unlocking the bootloader. IMEI, You'll also learn when a standard Settings reset is enough, and when you can't do without a computer and cable.
When to reset and when to reset enough
Many users confuse two concepts: hard reset and firmware reflash: the first erases user data but leaves the system intact, the second completely replaces software. Here are the key scenarios when each method is required:
- π Resetting will help if: the phone slows down due to filled memory, bugs in the interface appear after the update, you need to delete all personal data before selling.
- π± Reinstallation MIUI necessary if: the device does not turn on (hangs on the logo), after firmware disappeared IMEI Mobile network or mobile network, you need to downgrade the version MIUI, You need to install a global firmware instead of Chinese.
- π οΈ Installation of custom firmware is relevant for: removal of built-in Xiaomi software, getting current Android updates on old models, experiments with alternative shells (for example, Pixel Experience for pure Android).
Important: If your goal is to speed up your phone, try Settings first. β Memory. β Clean up and disable the autoload of unnecessary applications, 70 percent of the time enough to avoid drastic measures, but if the audio is gone after the upgrade or the camera is not working, then you can't do without flashing the firmware.
Preparation for reinstallation: backup and unlock
Before you start manipulating firmware, be sure to save all the important data, even if you plan to just update. MIUI There's always a risk of failure through system updates:
- Synchronization with Mi Account: Go to Settings β Xiaomi account β Mi Cloud and enable backup for contacts, notes, SMS Make sure you have enough space (free 5GB).
- Local Copy: Connect your phone to your computer and copy folders DCIM (Photo/video, Downloads and WhatsApp (if you use it). PC Suite.
- Conservation IMEI: on some models (for example, Redmi Note 8 Pro or POCO F1) After the re-flashing, it can be reset IMEI. To avoid problems with the mobile network, write it down in advance: enter in the dialer *#06#.
If you are planning to install custom firmware or an informal version MIUI, This process is officially supported by Xiaomi, but has limitations:
- β³ Unlocking takes 72β168 hours (3β7 days) β a measure of protection against theft.
- π Requires a link to your Mi Account (make sure it is not blocked).
- π± On some models (e.g. Xiaomi) 12T or Redmi K50) Unlocking can lead to loss DRM-The keys that will stop Widevine L1 (no HD Netflix).
Create a backup copy of the data|Link Mi Account to your phone|Make sure the version MIUI less than 10|Download Mi Unlock Tool from the official website|Prepare. USB-cable (preferably original)
-->
β οΈ Note: If you bought the phone with your hands and the previous owner did not untie his Mi Account, you will not be able to unlock the bootloader.
Reinstallation methods: from standard reset to Fastboot
Depending on the purpose and condition of the phone, you can choose one of four methods of reinstallation, below is a comparative table with the pros and cons of each:
| Method | When to use | You need a PC? | Are the data stored? | Risk of "bricking" |
|---|---|---|---|---|
| Reset via Recovery | The phone is on, but it's glitchy. | No. | No. | Low. |
| Update via OTA | Official update available MIUI | No. | Yes. | Very low. |
| Firmware through Fastboot | The phone is not turned on or you need another version. MIUI | Yes. | No. | Medium. |
| Installation of custom firmware | You want an alternative shell (LineageOS, Pixel Experience) | Yes. | No. | High-pitched |
The safest way is to reset via Recovery, which is suitable if the phone turns on but is unstable.
- Turn off the phone.
- Press the Power + Volume buttons up until the Mi logo appears.
- In the Recovery menu, select Wipe Data β Wipe All Data (manage by volume buttons, confirm by power button).
- After reset, select Reboot β Reboot to System.
If the phone is not turned on or you need to install another version MIUI, It's a more complicated method, but it's more reliable. We'll go through the detailed instructions for it in the next section.
π‘
Before resetting via Recovery, remove SIM-card and memory card. Some Xiaomi models also format external drive.
Step-by-step: Firmware via Fastboot
Fastboot is a universal method that works even if the phone doesn't turn on. USB-The cable and official firmware from Xiaomi's website. Here's the detailed instructions:
1. Downloading firmware
The official firmware for Xiaomi can be downloaded from en.miui.com. Choose the version of Fastboot (file with the extension.tgz or.zip).
- π Region: Global (world), China (Chinese), EEA (Europe, India (India) is usually suitable for Russia Global or EEA.
- π Android Version: For example, MIUI 14 based on Android 13. You can not install firmware with a newer version of Android on old hardware.
- π§ Type: Stable (stable) or Developer (developer). For everyday use, use Stable.
2. Installation of drivers and Mi Flash Tool
Download and install:
- Mi Flash Tool (official firmware utility).
- Xiaomi drivers for Fastboot (can be found in the archive with firmware or download separately).
- ADB Fastboot (part of Android) SDK Platform Tools).
Unpack the downloaded firmware in a folder without Cyrillic characters (for example, C:\MIUI\). Run MiFlash.exe on behalf of the administrator.
3. Phone firmware
Now connect your phone to your computer in Fastboot mode:
- Turn off the phone.
- Press the Nutrition + Volume down until the hare appears in the hat-eared (Fastboot logo).
- Connect your phone to your PC. In the Mi Flash Tool, press Refresh, and the device should appear.
- Select a folder with unpacked firmware.
- At the bottom, select firmware mode: Clean all β complete clean (recommended); Save user data β save user data (risky); Clean all and lock β clean up + Loader lock (only for official firmware).
Flash
What to do if the Mi Flash Tool gives you a "Couldn't find device" error
β οΈ Note: If an anti-rollback error occurs during firmware, you are trying to install an older version. MIUI. In this case, you either need to search for firmware with the same or newer Anti-Rollback number (indicated in the file name), or stitch through the file. EDL-Mod (requires an authorized Xiaomi account).
Install custom firmware: LineageOS, Pixel Experience and others
If you are not satisfied with the standard shell MIUI, You can also install an alternative firmware, for example:
- π± LineageOS β pure Android without unnecessary applications.
- π¨ Pixel Experience β the shell as close as possible to Googleβs Pixel.
- β‘ ArrowOS β Balance between performance and functionality.
- π§ Havoc-OS - firmware with wide customization possibilities.
However, before installation, consider:
- β οΈ The phone warranty will burn (if it is still in effect).
- π΅ Widevine may stop working L1 (no HD Netflix), NFC, Camera (if there are no ported drivers).
- π Updates will have to be installed manually.
The process of installing custom firmware includes the following steps:
- Unlock the bootloader (as described above).
- Installation of custom Recovery (usually) TWRP). Download the version for your model from twrp.me and scroll through Fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img
- Formatting sections. TWRP Choose the Wipe β Format Data (this will delete everything, including internal memory!).
- Install the firmware. ZIP-Firmware and GApps (Google services, if they are not included), transfer them to your phone and install them via Install in the TWRP.
- First run. Once installed, run the Wipe. β Dalvik / ART Cache and reboot.
π‘
Before installing custom firmware, check if it supports your Xiaomi model on the forum. XDA Some firmware only works on certain modifications (for example, for the Redmi Note 10 Pro, there may be a separate build for the version with a Snapdragon processor and for MediaTek).
Frequent Mistakes and How to Avoid Them
Even experienced users sometimes face problems when reinstalling Xiaomi, and here are the most common mistakes and ways to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| This device is locked in Fastboot | The bootloader is not unlocked | Unlock the bootloader through the Mi Unlock Tool (see section above) |
| The phone does not turn on after the firmware | Inappropriate version MIUI or- | Repeat the firmware through Fastboot with the choice of Clean all |
| No mobile network after reinstallation | Dropped. IMEI or the wrong firmware for the region | Check it out. IMEI (*#06#) and run the correct version MIUI |
| Anti-rollback check fail | Trying to install a too old firmware | Find firmware with the same or newer Anti-Rollback number |
| TWRP asks for a password when downloading | Data Encryption (FBE) enabled | Format Data in TWRP (All data will be deleted!) |
β οΈ Warning: If the phone hangs on the Mi logo for longer than 15 minutes after firmware is installed, don't try to turn it off with the power button! this can damage system files:
- Wait another 10-20 minutes (the first run after firmware can be long).
- If nothing changes, then shut down the food. + Volume up 20 seconds for forced reboot.
- If the phone doesnβt respond, repeat the firmware via Fastboot.
Another common problem is loss. DRM-keys after unlocking the bootloader:
- Widevine's absence L1 (no HD Netflix, Disney.+, Prime Video).
- A broken camera in some applications (e.g. Google Camera).
- Errors in Google Pay (not certified by SafetyNet)
Decisions:
- For Widevine. L1: Flick the official firmware through Fastboot with the Clean all and lock option, then unlock the bootloader again.
- For Google Pay: Use the Magisk module to navigate SafetyNet.
Data recovery after reinstallation
If you backed up before reinstalling, it's easy to recover the data. Here's how to do it depending on the backup method:
1.Recovery from Mi Cloud
When you first turn on the phone after reset, the system will prompt you to log in to Mi Account.
- Select Restore from backup.
- Please note the required data (contacts, SMS, photos, applications).
- Wait for the synchronization to be completed.
β οΈ Note: If you have installed custom firmware, Mi Cloud may not work due to the lack of Xiaomi services. In this case, manually restore the data (see below).
2. Manual recovery from computer
If you have copied files to your PC, just transfer them back:
- π folder DCIM β in the internal memory or SD-map.
- π± Contacts β import from the file VCF via Contact β Settings β Imports/Exports.
- π¬ Messages β Restore from backup via SMS Backup & Restore (Google Play app).
3. Recovery IMEI
If it's gone after the firmware. IMEI (No mobile network, and you can restore it in two ways:
Method 1: Engineering Mode (for Qualcomm processors)
- Install the app MTK Engineering Mode (for MediaTek) or QCN Rebuilder (for Qualcomm).
- Enter the engineering code for your model (e.g. ##4636## or #36446337##).
- Move to the CDS Information β Radio Information.
- Enter commands (replace) IMEI1 and IMEI2 yours): AT +EGMR=1,7,"IMEI1" AT +EGMR=1,10,"IMEI2"
- Reboot the phone.
Method 2: Through QCN-file (for Qualcomm)
This method is more complex and requires:
- Backup copy QCN (if you did it before the firmware).
- Programme programmes QPST or QCN Rebuilder.
- Qualcomm drivers HS-USB QDLoader 9008.
π‘
If you have not made a backup copy IMEI, Try to find the original QCN-file for your model in forums (for example, XDA). Be careful, though, of using someone else. IMEI unlawfully!