How to reset Xiaomi Redmi to factory settings without data loss: 3 working ways

Introduction: Why You Need a Soft Reset and When It Works

Resetting a Xiaomi Redmi smartphone to factory settings is usually associated with completely cleaning the device โ€” removing photos, apps, and even your Mi Account. But what if you need to return a clean system while saving personal files? This is a scenario that is possible, and it is called a soft reset.

The main difference from the classic hard reset is to save user data in /data/media/0 (internal memory), while system settings, application cache and temporary files are reset. This method works on all Redmi models (including the Note 12 Pro+, Redmi 13C and older versions), but with important caveats: not all data will remain intact, for example, photos and videos will be saved, but deleted:

  • ๐Ÿ“ฑ Wi-Fi and Bluetooth settings (you will have to connect again)
  • ๐Ÿ”‘ Passwords from apps and websites (if not synced with Google Smart Lock)
  • ๐ŸŽฎ Save in games (unless linked to an account)
  • ๐Ÿ“‹ Data from some system applications (e.g. Mi Fit or Mi Home)

When is such a reset justified?

  • ๐Ÿข Smartphone slows down due to overcache, but you donโ€™t want to lose files.
  • ๐Ÿ”„ System errors should be fixed after a failed update MIUI.
  • ๐Ÿ“ฒ Apps are constantly crashing, but reinstallation does not help.
  • ๐Ÿ”’ You sell your phone and want to leave the photos to the new owner (not recommended!).
๐Ÿ“Š Why do you want to reset your Redmi settings?
Eliminate the lags
Prepare for sale
Correct errors after updating
Another option

Method 1: Reset via the settings menu (official method)

The safest and most recommended way for Xiaomi is to use the built-in Settings Reset feature with the option to save data. It works on all devices with MIUI 12 and later (including MIUI 14 on the Redmi Note 13 Pro).

Step-by-step:

  1. Open the Settings. โ†’ The phone.
  2. Tap 5-7 times on the MIUI version to activate the developer mode (if not already activated).
  3. Return to the main Settings menu and select Additional โ†’ Reset.
  4. Select Resetting (save media files).
  5. Confirm the action with a password / pattern lock and wait for the reboot (it will take 5-10 minutes).

What exactly is being preserved:

Type of dataIt's still there?Notes
Photos and videosโœ… Yes.In folders DCIM, Pictures, Movies
Music and documentsโœ… Yes.In folders Music, Downloads, Documents
Contactsโš ๏ธ Partially.Only if synced with Google or Mi Account
SMS messagesโŒ No.Removed irrevocably
Application settingsโŒ No.Including game data and passwords in the browser

โš ๏ธ Note: If the device protection function is activated on the phone (in Settings) โ†’ Google โ†’ Security, after reset, you will need to enter a password from the last Google account, even if you saved files. FAQ.

Make a backup of contacts in Google

Write down Wi-Fi passwords (they will erase)

Make sure the battery is charged >50%

Disable the protection of the pattern lock (if you do not remember it)

-->

Method 2: Recovery Mode (for advanced users)

If the phone is not turned on or the settings menu is not available, you can use the Recovery Mode (Recovery Mode), which works on all Redmis, but requires caution: improper actions can lead to complete data loss or a โ€œbrickโ€ of the device.

Instructions for Redmi with stock Recovery (not TWRP!):

  1. Turn off the phone.
  2. Press the Power button + Volume up for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select the language (volume buttons) and tap on Wipe Data.
  4. Select Wipe All Data (Keep Media Files) โ€“ this option is only available in the official MIUI Recovery!
  5. Confirm the action and wait for the completion (the phone will restart automatically).

Important nuances:

  • ๐Ÿ”ง On some models (e.g. Redmi) 9A) Keep Media Files may not be available, but this method is not suitable.
  • ๐Ÿ”‹ If the battery is under 30%, the recovery can interrupt the process!
  • ๐Ÿ“ฑ After reset, the phone can take a long time to load (up to 20 minutes) - do not interrupt the process.
What if you donโ€™t have a โ€œKeep Media Filesโ€ option in Recovery?
If your Redmi model does not support file saving via Recovery, the only way out is to use TWRP (Castom Recovery). However, this requires unlocking the bootloader and installing unofficial software, which will void the warranty. Read more about unlocking in our Bootloader unlock guide on Xiaomi

โš ๏ธ If you see this in Recovery, you will see this MIUI version cannot be installed on this device, which means the firmware is corrupted, in which case you can't choose Wipe Data, which will result in complete data erasure.

Method 3: Use of ADB (for power users)

The method is Android Debug Bridge (ADB) This is good if the first two methods didn't work or you need more flexible process management. You'll need a computer with Xiaomi drivers installed and debugging enabled. USB.

Step-by-step:

  1. Activate Developer Mode (as in Method 1) and enable USB Debugging in Settings โ†’ Additional โ†’ For Developers.
  2. Connect your phone to your PC and execute on the command line: Adb devices Make sure the device is identified (serial number should appear).
  3. Enter the command to reset with saving media files: adb shell pm clear --user 0 com.android.providers.settings adb shell pm clear --user 0 com.miui.home adb shell rm -rf /data/system/package_cache/*
  4. Reboot your phone: adb reboot

What these teams do:

  • ๐Ÿ”ง Clean the system settings and launcher MIUI.
  • ๐Ÿ—‘๏ธ Remove the cache of application packages.
  • ๐Ÿ”„ Save files to /sdcard/ (memory).

โš ๏ธ Limitations of method:

  • It does not work on MIUI older than version 11 (other commands are needed).
  • It does not reset network settings (Wi-Fi, mobile data).
  • Requires an unlocked bootloader on some models (e.g. Redmi K50).

adb shell su -c "rm -rf /data/dalvik-cache/*"

But it requires root access to do it!-->

What to do if the reset did not help: alternative solutions

If after the "soft" reset problems remain, perhaps they are not related to settings, but with:

  • ๐Ÿ› ๏ธ Damaged firmware โ€“ requires flashing through Fastboot.
  • ๐Ÿ”‹ Worn-out battery โ€“ lags with low charge (less than 15%) can simulate software failures.
  • ๐Ÿ“ฑ Hardware malfunctions, such as damage to flash memory.

Diagnosis:

  1. Check battery status in Settings โ†’ Battery โ†’ Battery status. If capacity is below 80%, replace the battery.
  2. Run the memory test via Mi Diagnostics (hidden menu: dial ##4636## and select Testing โ†’ Storage).
  3. Install MIUI again via Fastboot (instructions here).

If none of the methods worked, contact Xiaomi Service Center. 80% of the time, the โ€œincorrigibleโ€ lags are associated with wear and tear of eMMC memory (a typical problem for the Redmi 4X, Redmi 5 and other budget models of 2017-2019).

๐Ÿ’ก

Before visiting the service, make a full backup via Mi PC Suite or Google Drive โ€“ even if the phone seems dead, data can sometimes be recovered.

How to recover data after reset (if something is lost)

Even with a soft reset, some of the data can disappear.

Contacts and SMS:

  • ๐Ÿ“ฑ If sync with Google is enabled, contacts will be restored automatically after logging in to your account.
  • ๐Ÿ’ฌ SMS You can restore it via Google Drive (if you had a backup) or programs like SMS Backup & Restore.

Photo and video:

  • ๐Ÿ–ผ๏ธ Check the folder. MIUI/Backup/AllBackup โ€” Sometimes media files are copied there.
  • ๐Ÿ” Use DiskDigger or Recuva to scan internal memory (root required).

3.Save games and applications:

  • ๐ŸŽฎ If the game is tied to Google Play Games or Mi Account, progress will recover after re-installation.
  • ๐Ÿ“ฑ For local saves (such as Genshin Impact), try programs like Titanium Backup).

Passwords from Wi-Fi:

  • ๐Ÿ”‘ If the phone was previously connected to a router, look up the password on the device sticker or in the router's web interface (192.168.1.1).
  • ๐Ÿ“ฑ On some Redmi models, passwords are stored in a file. /data/misc/wifi/WifiConfigStore.xml โ€” It can be extracted through ADB (unless you've reset).

โš ๏ธ Note: If you have used Wipe Data in TWRP Without the Keep Media tick, file recovery is extremely difficult, in which case only professional software like Dr.Fone or contacting the data recovery laboratory (costs from 5,000) will help. โ‚ฝ).

Frequent Mistakes and How to Avoid Them

Even experienced users make mistakes when resetting Redmi, and here are the most common ones:

Mistake.Effects of consequencesHow to avoid
Reset with discharged battery (<30%)Interrupting the process, "brick" deviceCharge your phone or connect to a charger during a reset
Use Fastboot instead of RecoveryComplete erasure of data (including media files)Select Wipe Data (Keep Media) only in MIUI Recovery
Resetting without detachment Mi AccountLocking the phone (old password required)Delete your account in Settings โ†’ Accounts โ†’ Mi Account before resetting
Interruption of the process (output power outage)Damage to system files, reboot cyclesDo not touch the phone during reset (even if it is โ€œhangโ€)

Tips for safe discharge:

  • ๐Ÿ”„ Always backup your Mi Cloud or Google Drive, even if youโ€™re planning a soft reset.
  • ๐Ÿ“ก Turn off before resetting. SIM-map SD-Card (if any) โ€“ this will eliminate damage.
  • ๐Ÿ”ง If your phone is already locked (requests for a password after reset), try unlocking it through Xiaomiโ€™s official service.

FAQ: Answers to Frequent Questions

โ“ Can you reset Redmi without losing data if you forget your pattern lock?
If you forget the pattern lock or PIN-code, the only official way to unlock is to reset through Recovery with complete data clearing. Alternatively, contact the Xiaomi service center with proof of purchase (check). ADB) Preliminary activation of the debugging USB.
โ“ Why does the phone ask for a password from an old Google account after a reset?
This is a feature of Factory Reset Protection (FRP), This is activated if you have a Google account on your phone and you have a lock on your screen. To get around it, type in the last password you used from Google. If you don't remember, reset your password through Google's recovery page. If the phone is bought from hand and the previous owner did not untie the account, contact him or provide a check to the service center. โš ๏ธ Attention: Bypass FRP through "holes" in the firmware (for example, through TalkBack) can lead to the locking of the device on the IMEI!
โ“ Does this method work for POCO or black shark?
Yes, but with reservations: POCO (like the POCO X5 Pro) uses the same MIUI firmware, so the instruction is identical. Black Shark (gaming smartphones) has its own JoyUI shell, but the Wipe Data (Keep Media) option in Recovery is also present. The exception is the Android One model (like the Mi A3), where the reset always erases all data.
โ“ Can applications and their data be saved when reset?
No. Even with a soft reset, cache and application data (e.g., save in games) are deleted. program settings (e.g., Instagram filters or browser bookmarks) To save data: Use built-in backup features (e.g., WhatsApp: Settings โ†’ Chat โ†’ Backup). Sync with the cloud (e.g., Google Photos for media files). For local save games, use Titanium Backup (root required).
โ“ How to check if my Redmi supports data retention reset?
Verification: Go to Settings โ†’ Additional โ†’ Reset. If there is a Reset option (save media files) โ€“ the method is supported. Download to Recovery (as in Method 2) and check for the option Wipe All Data (Keep Media Files). See the phone model in the list of supported: Does not support Redmi Note 10/11/12Redmi 9/10/11/12/13POCO X3/X4/X5 Redmi 4/5 (old models) Mi A1/A2/A3 (Android One) Black Shark 3/4 (parts)