How to make a factory reset on Xiaomi without data loss: proven ways

Resetting Xiaomi smartphone to factory settings is a standard procedure when selling a device, fixing software failures or preparing for an update MIUI. But what if you don't want to lose personal data: photos, contacts, messages or save in games? The official hard reset via the settings menu erases everything irrevocably, but there are workarounds.

In this article, weโ€™ll break down 3 working methods on how to perform a Xiaomi reset (including Redmi, POCO and Black Shark) without losing critical files, you will learn what data can be stored in advance, how to use hidden functions. MIUI, And why Fastboot resets aren't always safe for user files. MIUI 12-14 and Android 11-14 devices.

Why a standard reset erases data and can it be avoided?

When selecting the option Reset settings in the Settings menu โ†’ The phone. โ†’ Resetting system Xiaomi formats the section /data, stored:

  • ๐Ÿ“ฑ Installed applications and their data (cache, game saves)
  • ๐Ÿ“ž Contacts, SMS/MMS (If not synced with Google or Mi Account)
  • ๐Ÿ–ผ๏ธ Photos and videos in the folder DCIM (unless moved to SD-map)
  • ๐Ÿ”Š System settings (wallpaper, sound profiles, gestures)

However, not all files are permanently deleted, such as the contents of the Download folder or the files on the file. SD-The card (if it is connected as a removable drive) remains intact, and the key problem is the loss of application data (such as chat history in Telegram or progress in games) that does not sync automatically with the cloud.

โš ๏ธ Note: Even if you use data retention techniques, Xiaomi may block access to certain features (such as Mi Pay or Face Unlock) after a reset (FRP) โ€” Re-entering of Mi Account data will be required.

To minimize losses, first check what data you can upload to the cloud or copy manually, and that's in the next section.

๐Ÿ“Š How often do you reset your settings on your smartphone?
Once a year.
Just before the sale.
Never.
In case of serious failures

What data can be saved before reset: checklist

Before you start resetting, back up your critical data, and Xiaomi has built-in tools and third-party solutions to do that, and here is a priority list of what to save first:

Synchronize contacts with Google or Mi Cloud

Copy folders. DCIM (Photos) and Pictures on PC

Export SMS via SMS Backup & Restore

Save game data via Google Play Games or Mi Game Center

Download notes from Mi Notes in PDF

Copy files WhatsApp/Databases (if there is no cloud backup)

-->

To automate the process, use the built-in Backup application (Settings) โ†’ Additionally. โ†’ Backup and reset โ†’ Local backup. It creates an archive with:

  • ๐Ÿ“ฑ System settings (Wi-Fi, sound, display)
  • ๐Ÿ“ž Call magazine and SMS (if not synchronized)
  • ๐ŸŽต Music and ringtones (from the Ringtones folder)

However, this method has limitations:

  • โŒ Does not store data from most third-party apps (such as Viber or Instagram)
  • โŒ The archive takes up a lot of space (up to 10-15 GB) and is not encrypted.
  • โŒ The recovery works only on the same Xiaomi model and version. MIUI

For complete confidence, combine local backup with cloud services (Google Drive, Mi Cloud) and manually copying important files to your PC.

๐Ÿ’ก

If you have Xiaomi with an unlocked bootloader, use custom recovery (TWRP) to create a full backup section /data. This is the only way to save all application data, including passwords and authorization tokens.

Method 1: Resetting with data storage through a โ€œSafe Environmentยป (MIUI 14+)

Starting with MIUI 14, Xiaomi has added an experimental Safe Mode feature that allows you to reset your system settings without affecting user files. 12, Xiaomi 13/13T, POCO F5 newer.

Instructions:

  1. Open the Settings. โ†’ The phone.
  2. Tap 7 times on the MIUI version to activate Developer Mode.
  3. Back to Settings โ†’ Additionally. โ†’ For developers.
  4. Activate the Safe Mode (Safe Mode) switch.
  5. Reboot the device. After you turn on, select Reset from the Safe Mode menu.

What persists:

  • โœ… Photos and videos in folders DCIM, Pictures
  • โœ… Files in Download and on SD-map
  • โœ… Data from some system applications (Mi Browser, Mi Notes)

What's removed:

  • โŒ Installed applications and their data
  • โŒ Wi-Fi, Bluetooth, and account settings (except Mi Account)
  • โŒ Wallpaper, sound circuits, gestures

โš ๏ธ Note: On some devices POCO Safe Mode may not be available or may not work well. Check for a developer menu item before using it. If you don't have an option, move on to the next method.

Why does Safe Mode not guarantee 100% data security?
Even in Safe Mode, the system can delete files if they are associated with application settings (e.g., Gallery cache or video thumbnails). FBE (File-Based Encryption: Some of the data may become unavailable after reset due to changes in encryption keys.

Method 2: Partial discharge through the Laboratory MIUIยป (covert)

In the firmware MIUI 12โ€“14 There is a hidden menu called โ€œLaboratoryโ€. MIUIยป, It allows you to selectively reset โ€” for example, only network or application settings without affecting personal files. 10/11, Xiaomi Mi 11, POCO X3/X4 and other Android-based models 11โ€“13.

How to open a MIUI Laboratory:

  1. Go to Settings โ†’ About the phone โ†’ All the characteristics.
  2. Tap 5 times on the item Version of the kernel (or Version) MIUI on some models).
  3. Enter the password from the lock screen if a request appears.
  4. Return to the main Settings menu โ€“ a new item will appear MIUI.

Next:

  1. Open the lab. MIUI โ†’ Resetting and remediation.
  2. Select Partial Reset.
  3. Check only the sections that you want to reset (for example, Network Settings or Default Applications).
  4. Confirm the action and wait for the reboot.
Type of dischargeWhat's removedWhat's persisting
Network settingsWi-Fi, Bluetooth, mobile networksFiles, applications, accounts
Default applicationsApplication Launch SettingsApplications themselves and their data
Sound settingsVolume profiles, ringtonesMusic in the Music folder
Screen settingsBrightness, color temperatureWallpaper, widgets.

This method is not suitable for a complete reset when selling a device, but is ideal for fixing specific crashes (such as Wi-Fi connection issues or audio setting errors).

๐Ÿ’ก

Partial discharge through the Laboratory MIUI โ€” The only official way to remove only system settings without affecting user data is on some models (e.g. Redmi). 9A) This menu may not be available.

Method 3: Reset via Fastboot with Save Partition /data (advanced)

If the first two methods do not work (for example, on older Xiaomi models or in case of serious failures), you can perform a selective reset via Fastboot, saving the partition. /data. This method requires an unlocked bootloader and basic knowledge of working with the ADB/Fastboot.

โš ๏ธ Warning: Incorrect commands in Fastboot can result in complete data loss or a โ€œbrickโ€ of the device.

Instructions:

  1. Install Platform Tools on your PC.
  2. Connect Xiaomi to your computer in Fastboot mode (press Power) + Vol- when switched on).
  3. Open the command line in the folder with fastboot and do:
fastboot erase frp


fastboot erase metadata




fastboot erase config




fastboot reboot

These teams will drop:

  • ๐Ÿ”’ FRP (post-reset)
  • ๐Ÿ“ฑ System settings (config)
  • ๐Ÿ”‘ Account metadata (metadata)

In this case, the section /data (And the apps, with photos, videos and files, will remain intact, but they may not work properly, and they will need to be reinstalled.

โš ๏ธ Note: On devices with Dynamic Partition (e.g. Xiaomi 12 and later), this command may cause an error in the Invalid sparse file format. TWRP (if established).

To restore the system after such a reset:

  1. Reboot the device in Recovery Mode (Power) + Vol+).
  2. Select Wipe Data, but donโ€™t confirm it โ€“ go back to the main menu instead.
  3. Select Reboot โ†’ System.

The system will boot with clean settings, but all files are in folders DCIM, Download and on SD-map will remain in place.

What to do after reset: data recovery and settings

After any type of reset (other than full Wipe Data) you will need to:

  1. reconfigure the device: ๐Ÿ”‘ Enter Mi Account data (required, otherwise Xiaomi will block access to the features) ๐Ÿ“ถ Connect to Wi-Fi or mobile network ๐Ÿ”„ Restore backup (if created through Settings) โ†’ Backup)
  2. Bring back applications and data: ๐Ÿ“ฑ Install apps from Google Play or Mi App Store ๐Ÿ”„ Recover game data via Google Play Games or Mi Game Center ๐Ÿ“ž Import contacts from Google or Mi Cloud

Check the integrity of the files:

  • ๐Ÿ–ผ๏ธ Open the gallery and make sure the photos are displayed
  • ๐ŸŽต Check the playback of music and video
  • ๐Ÿ“„ Make sure that documents in the Documents folder are not damaged

If some files donโ€™t open (for example, photos show as corrupted), use the recovery utilities:

  • ๐Ÿ–ฅ๏ธ Recuva (for Windows)
  • ๐Ÿ“ฑ DiskDigger (for Android)
  • ๐ŸŒ TestDisk (for advanced users)

To speed up the recovery process, use automatic synchronization:

  • ๐Ÿ“ Enable Autosynchronization in Google Drive (Settings) โ†’ Accounts. โ†’ Google โ†’ Synchronization)
  • โ˜๏ธ Activate Mi Cloud to back up notes, contacts and SMS

๐Ÿ’ก

If Xiaomi resets constantly after resetting or gives an error "Unfortunately, Settings has stopped", perform a cache reset via Recovery Mode (Wipe Cache Partition).

Frequent Mistakes and How to Avoid Them

Even with careful execution of instructions, users face problems.-5 errors and ways of solving them:

Mistake.Reason.Decision
"This device is locked" after resettingFRP (Reset Protection) activatedEnter the Mi Account that was tied before the reset
Photos are blurry or not openingDamage to miniatures in Gallery cacheClear the Gallery cache or use Google Photos to re-upload
Apps fly out after recoveryIncompatibility of data and application versionsUpdate apps through Google Play or reinstall them
"Invalid IMEI" after resetDamage to modemst1/st2Restore. IMEI through the Engineer Mode or QCN-file
Face Unlock or fingerprint is not working.Resetting the Keymaster security moduleAdd biometric data back to Settings โ†’ Screen locking

If after reset the device does not turn on or hung on the logo MI, try:

  1. Hold the Power. + Vol+ 10-15 seconds for forced reboot.
  2. If it doesnโ€™t work, connect to your PC and execute the command: fastboot reboot.
  3. If you experience repeated failures, reflash the device through the Mi Flash Tool (requires an unlocked bootloader).

For Xiaomi models with MediaTek processors (e.g. Redmi) 10A, POCO M4) Instead of Fastboot, you may need to use a utility SP Flash Tool. In this case, we recommend contacting the service center, since incorrect firmware is fraught with a complete failure of the device.

FAQ: Answers to Frequent Questions

Can you reset Xiaomi without losing data if you forget your pattern lock?
If you forget the pattern lock or PIN-code, the only way to unlock the device is to reset it via Fastboot or Recovery, which will result in data loss. However, you can try: Enter the key through Mi Account (if the device is connected to the Internet and is linked to an account). ADB To delete the gesture.key file (debugging is required) USB, on before locking. On models with MIUI 13+ Android 12+ These methods may not work due to increased protection.
Will Google Pay work after being reset via Safe Mode?
No. In any type of reset (even partial) Google Pay data is deleted due to security requirements. After reset: Delete and add the card again to Google Pay. SMS If the card is not added, check that: The device is certified by Google (Settings) โ†’ Google โ†’ Device certified. No root or custom firmware.
How to reset Xiaomi without losing data if the screen is not working?
If the screen is broken or does not respond to touch, but the device turns on, try: Connect the mouse to the OTG โ€” Many Xiaomi models support cursor control through USB-Use a mouse. ADB: adb shell am start -n com.android.settings/.Settings Then, using the Tab and Enter keys on your PC, go to the reset menu.Reset via Fastboot (see Method). 3), But it's going to cause some data loss. If the screen is completely black, but the device is making sounds, try connecting it to Mi. PC Suite and reset via computer (not available on all models).
Can you save games when you reset Xiaomi?
Yes, but only if the games support cloud-based saves: ๐ŸŽฎ Google Play Games โ€“ most popular games (e.g. Genshin Impact, Call of Duty Mobile) sync progress with your Google account. ๐Ÿ•น๏ธ Mi Game Center โ€“ works for some Xiaomi games (e.g. Mi Racing). ๐Ÿ–ฅ๏ธ Manual copying of save files (usually in a folder) /Android/data/[title of the game] or /Android/obb). For games without cloud sync (such as Minecraft or emulators), copy the save folder to your PC before resetting.
Why did Xiaomi become slower after the reset?
This is a normal phenomenon after a reset associated with: ๐Ÿ”„ Re-indexing files โ€“ the system scans all media files again. ๐Ÿ“ฆ Background optimization โ€” MIUI adapt to new conditions of use. ๐Ÿ”‹ Caching - applications take time to create cache. To speed up: Reboot the device 2-3 times. Turn off animation in Settings โ†’ For developers โ†’ Cache the Cache via Recovery Mode (Wipe Cache Partition). If the brakes last longer than 2-3 days, check the device for viruses or reset the app cache (Settings) โ†’ Annexes โ†’ Application management โ†’ Clear everyone's cache).