Xiaomiโs smartphone firmware is standard for users looking to get new features, fix bugs, or improve performance. However, most upgrade methods (especially fastboot or recoveries) delete all data from the device by default, putting photos, messages, settings, and even accounts at risk. In this article, weโll look at how to flash Xiaomi without resetting to factory settings, saving personal files and apps.
Itโs important to understand that not all models and firmware versions support saving updates. For example, switching from MIUI Global to MIUI China or custom firmware (like Pixel Experience) almost always requires a complete reset. While a single-strand update (like MIUI 14.0.3 to 14.0.5) usually goes without loss. Weโll look at Xiaomiโs official methods, as well as alternative solutions for power users.
Before you start, check:
- ๐ Battery charge of at least 60% (when discharged during firmware, the device can turn into a โbrickยป).
- ๐ก Stable Wi-Fi connection (if you upgrade over the air) or original USB-cable.
- ๐ฑ Phone model and current version MIUI (find out in Settings โ The phone).
Official Air Update (OTA) โ the safest method
The OTA (Over-The-Air) method is an automatic update that comes in the form of a notification, and it is guaranteed to store all data, as it actually adds new files on top of the old system, suitable for incremental updates (small patches) and major versions (e.g., from MIUI 13 to MIUI 14) if they are officially supported by your model.
How to check for OTA:
- ๐ฑ Open the Settings. โ The phone. โ Updating the system.
- ๐ Click on the icon ยซโฎยป (three dots) in the upper right corner and select Download the latest version.
- ๐ฅ If the update is available, download it (weighing usually 1-3 GB) and wait for the offer to install it.
โ ๏ธ Note: If after the update OTA phone hangs on the logo MI longer 10 - Don't panic. Give him until you're done. 30 The interruption of the process may cause damage to the partition /data and the need for complete resetting.
Advantages of OTA:
- โ All applications, settings and files are saved.
- โ Does not require unlocking the bootloader or root rights.
- โ Minimum risk of โbrickingโ the device.
Disadvantages:
- โ Updates come with a delay (sometimes months after release).
- โ You canโt go back to the previous version without resetting.
- โ Sometimes. OTA ยซIt gets stuck by 50% โ in this case, only hand firmware will help.
๐ก
OTA-Update is the only method that Xiaomi officially recommends for data retention.
2. Manual update via Recovery without reset (for power users)
If OTA is not available, but you want to upgrade without losing data, you can use stock recavers (not to be confused with TWRP!). This method only works for official firmware of the same branch (for example, from MIUI 14.0.2.0 to 14.0.3.0).
Step-by-step:
- Download the full firmware (not incremental!) for your model from en.miui.com. The file should have a.zip extension and weigh 2-4 GB.
- Rename the file to update.zip and move it to the root of internal memory (not to folders!).
- Turn off the phone and press Volume Up + Power to enter Recovery Mode.
- In the Recovery menu, select Install update.zip to System (navigation with volume buttons, choice with power button).
- Confirm the installation and wait until the completion (usually 5-15 minutes).
Download the correct version of the firmware|Rename the file to update.zip|Check the battery charge (>50%)|Make a backup copy of important data|Disable protection with a pattern lock/password-->
โ ๏ธ Note: If there is no Install item in the Recavรฉre update.zip, If you try to install the firmware through Wipe & Reset, you will reset completely!
What happens if the firmware does not fit:
- ๐จ The phone will hang on the logo MI (It is solved by flashing through fastboot).
- ๐ Automatically rolls back to the old version (if the section is /data untouched).
- ๐ต It will stop being activated (required) EDL-Regime and Authorized Mi Account).
How to check the compatibility of the firmware?
3. When data retention is not possible: forced wipe and alternatives
Some scenarios will definitely require resetting, even if you use official methods:
- ๐ Transition from MIUI China on Global and vice versa).
- ๐ Reverse to an older version MIUI (downgrade).
- ๐ ๏ธ Install custom firmware (LineageOS, Pixel Experience, etc.).
- ๐ Unlocking the loader (washing) /data default).
In these cases, the only way to save data is to back up to firmware.
| Type of data | Method of reservation | Recovery after firmware |
|---|---|---|
| Contacts, calendar | Sync with Google Account or Mi Cloud | Automatically after logging into your account |
| Photo/video | Copying on PC or Google Photos | Manual transfer back to the phone |
| Messages (SMS) | SMS Backup & Restore or Mi Mover | Recovery through the same applications |
| Annexes and their data | Mi Mover or Adb Backup | Partial (not all apps support backup) |
Mi Mover is Xiaomi's official data porting app, and it allows you to backup another Xiaomi phone or the cloud.
- โ Not all system settings are saved (e.g. fingerprints).
- โ Applications are restored without data (for example, game progress will be lost).
- โ It works even on a blocked loader.
๐ก
If you have root access, use Titanium Backup or Swift Backup for a full backup of data applications. Without root, these programs are useless.
4. Fastboot Firmware with data saving: myth or reality?
The fastboot method is considered the most reliable for Xiaomi firmware, but by default it erases /data. However, there is a workaround to use the fastboot flash command without fastboot erase userdata. This only works for official firmware of the same branch and requires an unlocked bootloader.
Step-by-step instructions (for Windows):
- Unpack the downloaded firmware (.tgz file) in the folder with fastboot files.
- Connect your phone in Fastboot mode (clamp Volume down + Power).
- Run the command line in the firmware folder and type: fastboot flash boot boot.img fastboot flash system.img fastboot flash vendor vendor.img fastboot reboot Don't use fastboot -w or erase userdata!
โ ๏ธ Note: If the phone is loaded into an endless bootloom (cyclic reboot) after firmware is fastboot, then the firmware is incompatible with your anti-rollback version. EDL (Requires authorization for Mi Account).
Risks of the method:
- ๐ด 30% chance of โbrickingโ when teams fail.
- ๐ด Does not work for firmware with another anti-rollback (e.g., with a MIUI 12 on MIUI 14 through the missed versions).
- ๐ด Maybe break it. DRM-Keys (problems with Widevine) L1 for Netflix in high resolution).
What is an anti-rollback?
5. Custom firmware and data retention: is it possible?
Installing LineageOS, Pixel Experience or other custom firmware always requires a data reset on the first run, but there are ways to minimize the loss:
- ๐ Create a backup through TWRP (Data, System, Boot).
- ๐ Use the Migration Tool (built into some custom firmware to transfer data from the stock MIUI).
- ๐ฑ Install Magisk to backup data applications.
Example of a backup command via TWRP:
adb pull /sdcard/TWRP/BACKUPS/This backup can be restored after installing custom firmware, but only if the Android version matches (for example, with Android 13 on Android 13).
The problems you will face:
- ๐ซ SafetyNet will stop (issues with banking applications).
- ๐ซ Some Xiaomi features (such as Mi Share or Game Turbo) wonโt work.
- ๐ซ Bugs with camera or sensors are possible (solved by installing the correct GApps and kernels).
6. Frequent mistakes and how to avoid them
Even when following instructions, users often encounter problems, and here are the most common:
| Mistake. | Reason. | Decision |
|---|---|---|
| Error "Couldn't verify update" | A damaged update.zip file or an incorrect firmware model | Download the firmware, check the MD5 hash |
| Hanging up to 50% with OTA | Conflict with installed Magisk or Xposed modules | Remove modifications before updating |
| "This MIUI version cannot be installed" | Trying to install firmware with a lower anti-rollback | Find a firmware with a compatible anti-value |
| Bootloop after fastboot | Incompatibility of vendor or boot with current version | Sweat the full package with flash_all.bat (erase!) |
If the phone is not turned on after the firmware:
- Try to pinch the Loudness up + Power for 20 seconds (hard reset).
- Connect to your PC and check if Device Manager defines it as Qualcomm 9008 (EDL mode).
- If nothing helps, contact the Xiaomi service center (for warranty devices).