How to completely clean the Xiaomi smartphone to factory settings: 4 working ways

Why you need to reset Xiaomi to factory settings and when to apply it

Resetting Xiaomi to factory settings is a radical, but sometimes the only way to get the device back on track, which removes all user data, apps and settings, bringing the smartphone back out of the box.

First, if the device started to slow down, spontaneously reboot or "lay down" even after standard optimization methods; second, before selling or transferring the phone to another user, to prevent personal data leakage; third, if the system crashes critically, when the smartphone does not turn on, it hovers on the Mi logo or emits a No Command error in Recovery mode.

However, resetting does not always solve hardware problems – if the phone overheats due to a damaged battery or does not catch the network due to a faulty module, then cleaning the software part is powerless. A1/A2 With pure Android One, the process may be different from the standard one. MIUI-interface.

Resetting Preparation: What to Do Before Cleaning Your Phone

There are several critical steps to follow before starting a reset, and ignoring preparation can lead to the loss of important data or even locking the device (for example, forgetting to untie your Mi Account).

  • πŸ“± Create a backup: Use the built-in Backup app (Settings) β†’ The phone. β†’ Backups, or third-party services like Google Drive, Mi Cloud, it's especially important to keep your contacts, SMS, photos and notes.
  • πŸ”’ Remove the account binding: untie Mi Account (Settings) β†’ Accounts. β†’ Mi Account β†’ Delete your account, as well as Google and social media, which will prevent blocking after resetting.
  • πŸ”‹ Charge the battery: the charge level should be at least 50%. interruption of the process due to discharge can lead to "bricking" of the device.
  • πŸ“‘ Check the network connection: if the reset is done via Fastboot or Mi Flash, you will need a PC with Xiaomi drivers and the original. USB-cable.

Pay special attention to unlocking the bootloader if you plan to use Fastboot or firmware reset methods. On new models (Xiaomi 12/13/14 series, Redmi Note 11/12), the bootloader is blocked by default, and its unlocking requires official permission from Xiaomi (via en.miui.com/unlock).

πŸ“Š Why you are resetting Xiaomi to factory settings?
The device is braking or glitching
Preparing for sale/transfer
Forgot a pattern lock/password
I want to install custom firmware.
Another option

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

This is the standard method that is suitable for most Xiaomi, Redmi and POCO models based on MIUI. The main advantage is simplicity and minimal risk of errors. The method works even if the phone is locked with a pattern lock, but it turns on and responds to touch.

  1. Open Settings (the gear icon on the main screen).
  2. Go to About Phone (in some versions of MIUI – Additional β†’ Recovery and Reset).
  3. Select Resetting (or Delete all data).
  4. Click Erase all data and confirm the action by entering a password / pattern lock.
  5. Wait for the process to be completed (usually 5-15 minutes) and the phone will reboot automatically.

If, after a reset, the device requires you to enter the Mi Account that was previously tied, and you did not untie it, do not panic. In most cases, it is enough to enter the correct username / password. However, on some models (for example, Xiaomi Mi 10T or Redmi K40) anti-theft protection may work, and you will need to unlock through the Mi Unlock Tool.

β˜‘οΈ Checklist before resetting through settings

Done: 0 / 5

Method 2: Reset via Recovery Mode (if the phone is not turned on)

If the smartphone is getting stuck on the Mi logo, rebooting cyclically or not responding to touch, Recovery mode will help.This method works on all Xiaomi devices, but requires care - wrong actions can lead to data loss or even firmware damage.

To enter Recovery:

  1. Turn off the phone (press the power button for 10-15 seconds).
  2. Press the combination of Loudness up + Power and hold for 5-10 seconds until the Mi logo appears.
  3. Release the buttons and you will see the Recovery menu (usually in English or Chinese).

In the Recovery menu, use volume buttons for navigation and power button for selection.

  1. Select Wipe Data (or Clear Data).
  2. Confirm the action by selecting Wipe All Data.
  3. After cleaning, go back to the main menu and select Reboot (or Reboot to System).
What to do if you recover in Chinese?
If the Recovery menu is displayed in Chinese, focus on the location of the items: 1. The first item on top is Reboot. 2. The second item is Wipe Data. 3. The third item is Factory Reset. To confirm, choose the extreme right-hand item (usually "Yes" or "Confirm").

On models with a locked bootloader (for example, Xiaomi 13 Pro or Redmi Note 12 Pro+), a reset via Recovery may not delete the data completely, in which case you will need to unlock the bootloader or firmware via Fastboot.

Method 3: Fastboot Reset (for power users)

The method through Fastboot is suitable for cases where:

  • πŸ”„ The phone doesn’t even load in Recovery.
  • πŸ” Password is forgotten and unlocking via Mi Account is impossible.
  • πŸ“¦ You need to reflash the device from scratch (for example, after a failed update).

For this method, you will need a computer with installed Xiaomi drivers (you can download on the official website) and the Mi Flash Tool utility. Also make sure that the bootloader is unlocked on the phone (otherwise the reset will not pass).

Step-by-step:

  1. Turn off the phone and put it in Fastboot mode: press Volume down + Power for 5-10 seconds. The screen will appear a hare in a hat-outer (Fastboot logo).
  2. Connect your phone to your PC through the original USB-cable.
  3. Download the firmware for your model from the Xiaomi Firmware Updater website (choose the Fastboot version).
  4. Unclarify the firmware into a folder without Cyrillic characters (for example, C:\Xiaomi_Flash).
  5. Open the Mi Flash Tool, press Select and point the path to the firmware folder.
  6. Press Refresh, the program must detect the device. If that doesn't happen, check the drivers.
  7. Select Clean All mode and press Flash.
Xiaomi modelCombination for FastbootDo I need to unlock the bootloader?
Xiaomi 13/13 ProLoudness down + NutritionYes.
Redmi Note 12 Pro+Loudness down + NutritionYes.
POCO X5 ProLoudness down + NutritionYes.
Xiaomi Mi 11 LiteLoudness down + NutritionNo (on some firmware)

Attention! ⚠️ If there is an error during the firmware through Fastboot anti_rollback, This means you are trying to install an older version. MIUI, In this case, you will need to flash only the new version or use special patches (for example, Anti-Rollback Patch from custom firmware developers).

Method 4: Reset via Mi Account (if the password is forgotten)

If you forget your pattern lock or password, but remember the Mi Account, you can reset the lock through the official Xiaomi service, which works only if you meet three conditions:

  1. The phone is connected to the Internet (via Wi-Fi or mobile network).
  2. The Mi Account was linked to the device before being blocked.
  3. The phone has enabled the Find Device function (Settings β†’ Mi Account β†’ Find the Device).

Instructions for unlocking:

  1. Go to account.xiaomi.com and log in.
  2. Select the Devices tab and find your locked phone.
  3. Click Unlock Screen (or Unlock Screen).
  4. Confirm the action via SMS or email.
  5. Wait for the notification to the phone (usually within 5-30 minutes) and then the device unlocks and you can reset through the settings.

If this method does not work, try an alternative method:

  • πŸ“ž Call the locked phone from another device.
  • πŸ“© Take the call and in the call menu click Add a new call β†’ Settings β†’ Recovery and discharge.
  • πŸ”„ Reset via the settings menu (as in Method 1).

Attention! ⚠️ On Android 12 and newer models (e.g. Xiaomi) 12T, Redmi Note 11 Pro) this workaround may not work due to the increased protection, in which case only the firmware through the Fastboot or contacting the service center is left.

Frequent Resetting Mistakes and How to Avoid Them

Even when following instructions, users often encounter problems, and here are the most common mistakes and ways to solve them:

Mistake.Reason.Decision
Can't verify the device in Mi FlashUnlocked loaderUnlocking with Mi Unlock Tool
Phone asks for old password after resetNot untied by Mi AccountEnter account details or reset via Fastboot
No Command in RecoveryDamaged Recovery menuInstall custom Recovery (TWRP) or flash through Fastboot
Cyclical reset after dischargeDamaged firmware.Switch the full Fastboot package through Mi Flash

Another common problem is the loss of IMEI after a Fastboot reset, which occurs if the firmware was unofficial or the modem partition is damaged. You can restore IMEI using the engineering menu (#4636##) or specialized utilities like the SN Write Tool (requires root rights).

πŸ’‘

If the phone is not catching the network after reset, check the IMEI settings (Settings β†’ Phone β†’ General Information β†’ Status). If zeros or Unknown are displayed instead of the number, you will need to restore through the service center.

FAQ: Answers to Frequent Questions About Xiaomi Reset

Can you reset Xiaomi without losing data?
No, a full factory reset always deletes user data. However, you can try a partial cleanup through Settings β†’ Applications where you can reset cache and data of individual programs. Some models also support the network reset function (Settings β†’ System β†’ Additional β†’ Network Reset) which does not affect personal files.
How long does it take to reset through Recovery?
Time depends on the model and the amount of memory. Xiaomi 64-128 GB on average takes 5-15 minutes; flagships with 256-512 GB (for example, Xiaomi 13 Ultra) can take up to 20-30 minutes. If the reset lasts more than an hour, this is cause for concern (perhaps the device has got stuck).
What if the phone needs an old password after resetting?
This means that the Mi Account was not untied. Solutions: Enter the correct username/password from Mi Account. If you forgot the data, restore access via account.xiaomi.com. If the account is not yours (for example, a phone bought by hand) - contact the previous owner or service center with proof of purchase. On some models (for example, Redmi 9A), you can bypass the lock via Fastboot, but this requires unlocking the bootloader.
Can you reset Xiaomi through a computer without a Fastboot?
Yes, if the phone turns on and connects to a PC. To do this: Connect your phone to your computer via USB (in file transfer mode). Download and install Mi PC Suite from Xiaomi's official website. In the program, select System Reset β†’ Factory Reset. This method is similar to resetting through settings, but is controlled from a PC.
Why is the camera or fingerprint sensor not working after the reset?
This is a typical problem after firmware is Fastboot if unofficial or corrupted firmware files have been used. Solutions: Swipe the official firmware through the Mi Flash Tool (Clean All mode). Update the device to the latest version of MIUI via Settings β†’ System Update. Reset again, but through the Recovery menu. If the problem persists, the hardware module may have malfunctioned (service diagnostics are required).