How to return the Xiaomi smartphone to factory settings: 3 proven ways

Xiaomiโ€™s factory reset is a radical but sometimes necessary step to solve software problems, prepare a device for sale, or eliminate the consequences of failed firmware experiments. Unlike a normal reboot, a full reset removes all user data, apps, and settings, returning the smartphone to the โ€œout of the boxโ€ state. However, many users face difficulties: where to find the right item on the menu, what to do if the phone does not turn on, or how to avoid blocking the Mi Account after a reset.

In this article, we will discuss three official ways to reset โ€” through system settings, Recovery mode and Fastboot โ€” and also talk about the nuances that the manufacturer does not advertise, for example, why you may need to enter a password from an old Mi Account after a reset, even if you deleted it, or how to properly prepare the device so that you do not lose important data.

When you need to reset to factory settings

Reset Xiaomi to factory state is advisable in several cases:

  • ๐Ÿ”„ Slowing down: the phone slows down, applications shut down spontaneously, and cleaning the cache doesn't help, often due to memory fragmentation or system process conflict.
  • ๐Ÿ“ฑ Preparing for sale or transfer: to prevent the new owner from gaining access to your data (photos, messages, passwords).
  • ๐Ÿ”ง Software failures: after a failed update, custom firmware or root-rights installation, the device stopped turning on or is not working correctly.
  • ๐Ÿ›ก๏ธ Removing viruses: if the antivirus detects malware that is not removed by standard methods.
  • ๐Ÿ”’ Forgotten pattern lock or PIN: If you donโ€™t remember the unlock password, resetting is the only way to reclaim access (but youโ€™ll need to confirm your Mi Account).

However, resetting wonโ€™t help if the problem is hardware โ€” for example, a broken screen, a faulty battery or a damaged motherboard โ€” in such cases, repairs are required at a service center, and it is useless to reset the device if it is blocked by a carrier (for example, when buying โ€œunder contractโ€ abroad), this restriction is removed only by an official unlocker.

โš ๏ธ Note: On Xiaomi models with MediaTek processors (e.g. Redmi) 9A, Poco C31) After resetting via Recovery, an error may occur "This" MIUI version cannot be installed on this device. This is due to the bootloader lock. The solution is to use only reset via settings or Fastboot.

๐Ÿ“Š How often do you reset your smartphone to factory settings?
Once a year for prevention
Just before the sale.
Never dropped it.
After each major update

Preparation for resetting: what to do in advance

Before you reset Xiaomi, follow the steps to avoid data loss and activation issues:

  1. Backup. Use built-in Settings โ†’ About Phone โ†’ Backup or third-party apps like Swift Backup (requires root). Note: Backup via Mi Cloud doesnโ€™t store all data (e.g., SMS and calls may not sync).
  2. Make sure you know the username and password from your Mi Account. After the reset, the device will require authorization, even if you logged out before the procedure.
  3. Delete your Google account (if you plan to sell your phone). โ†’ Accounts. โ†’ Google and delete all associated profiles, otherwise the new owner may face a new problem. FRP-locking (protection against discharge).

For owners of devices with unlocked bootloader (bootloader) or custom firmware (LineageOS, Pixel Experience):

  • ๐Ÿ”“ Save the file. persist.img (if IMEI or serial numbers).
  • ๐Ÿ“ Copy the folder. EFS (contains data on the communication module).
  • ๐Ÿ› ๏ธ Make sure you have a working version. TWRP Or OrangeFox Recovery if you plan to restore the firmware after resetting.

โ˜‘๏ธ Checklist before resetting Xiaomi

Done: 0 / 5

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

This is a method that works if the phone turns on and you can log in, and it's the simplest and least risky method, because it's controlled by the operating system.

Instructions:

  1. Go to About Phone (in older versions of MIUI - Additional).
  2. Enter. PIN-code or pattern lock if the system requests.

It takes 5-15 minutes, and the phone will reboot, and you'll see the screen of the initial setup, just like you did after you bought it.

  • ๐ŸŒ Choose a language and region.
  • ๐Ÿ“ถ Connect to Wi-Fi (required to activate Mi Account).
  • ๐Ÿ”‘ Sign in to Xiaomi account (if it was tied before reset).

โš ๏ธ Note: On Xiaomi models with MIUI 12+ After resetting through the settings, you may experience a โ€œThis device is lockedโ€ error if you previously enabled Find Device, the solution is to enter the Mi Account password or wait until you unlock it after 72 hours (if the account is not tied).

๐Ÿ’ก

If the phone asks for an old password after reset, but you donโ€™t remember it, try to restore access through account.xiaomi.com. Use the linked email or phone number.

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

If Xiaomi doesnโ€™t load beyond the logo, stays on the MIUI screen or doesnโ€™t respond to touch, use Recovery mode, which is also suitable if youโ€™ve forgotten your pattern lock.

Steps to Enter Recovery:

  1. Turn off the phone (press the power button for 10-15 seconds).
  2. Press the button combination: For most models: Volume up + Power. For Redmi Note 8/9, Poco X3: Volume up + Volume down + Power.

Mi

Recovery

In the Recovery menu (in English or Chinese):

  1. Use volume buttons for navigation and power button for selection.
  2. Select Wipe Data (or Clear Data)
  3. Confirm the action by selecting Wipe All Data (or similar).
  4. Once you have finished, select Reboot โ†’ Reboot to System.

Step-by-step:

  1. Turn off the phone.
  2. Press Volume Down + Power to enter Fastboot mode (a hare in a hat-eared hat will appear).
  3. Connect your phone to your PC via USB.
  4. Open the command prompt (Win + R โ†’ enter cmd) and check the connection: fastboot devices If the device is determined (the serial number will appear), continue. If not, install the drivers.
  5. Run the reset command: fastboot erase userdata fastboot erase cache fastboot reboot

For full flashing (if you need a clean MIUI):

  1. Unpack the downloaded firmware (file with the extension.tgz) in the folder with fastboot.
  2. Launch the file. flash_all.bat (for Windows or flash_all.sh (for macOS/Linux).
  3. Wait for the end (10-20 minutes) and the phone will reboot automatically.

๐Ÿ’ก

Reset via Fastboot deletes all data without recovery, including files in internal memory.If you need to save photos or documents, first remove the memory card (if you have one).

What to do after resetting: initial setup and possible problems

After a successful reset, Xiaomi will launch in initial setup mode. Follow the instructions on the screen, but pay attention to the key points:

  1. Mi Account Activation: If your phone was linked to your account, you will need to enter your username and password. Without this, you will not be able to set up any further. If you do not remember the data, use the recovery function at account.xiaomi.com.
  2. Google Services Setting up: Sign in to your Google account to restore contacts, calendar, and apps from Google Play. If you donโ€™t plan to use Google services, skip this step (but some apps may not work).

Data recovery

  • Connect to Wi-Fi and select Restore from backup if it was created through Mi Cloud.
  • For a local copy (created through Settings โ†’ Backup), connect your phone to your PC and copy the files manually.

Possible problems and solutions:

Problem.Reason.Decision
Phone asks for old password after resetMi Account was tied but not deletedEnter your account details or restore access via email
Error "This device is locked"Find Device feature enabledWait 72 hours or log in to your Mi Account
The sensor does not work after resettingIncompatible firmware or damaged display moduleSweep the original firmware through Fastboot
No net after resetIMEI or modem settings are resetRestore the EFS folder or reflash the modem

If the phone is running slower than before the procedure, check:

  • ๐Ÿ”‹ Battery condition (wear and tear) >50% leads to brakes).
  • ๐Ÿ“ฑ Firmware version (update to the latest via Settings) โ†’ Update of the PO).
  • ๐Ÿงน Number of pre-installed applications (on some Redmi models, you can turn them off via Settings) โ†’ Annexes).

Frequent Mistakes and How to Avoid Them

Even experienced users sometimes make mistakes when resetting Xiaomi, and here are the most common ones and ways to prevent them:

  • ๐Ÿ”Œ Interrupting the reset process: If you take out the battery or turn off the power during the reset, the device can turn into a โ€œbrick.โ€ Always wait for the procedure to be completed (the screen will show the message Success or the phone will restart itself).
  • ๐Ÿ”’ Mi Account Password: Without your account details, you wonโ€™t be able to activate your phone after resetting.If you donโ€™t remember your password, restore it before resetting through Xiaomiโ€™s website.
  • ๐Ÿ“ฑ Unofficial firmware reset: If you used custom software (like LineageOS), a reset via standard Recovery can result in bootloop (infinite reboot). TWRP or Fastboot.

Pay particular attention to the MediaTek (Helio G) models, where a Recovery reset often results in an "SLA Authentification" error.

  1. Download the official firmware for your model from the Xiaomi website.
  2. Unpack it and find the file. auth_file.img.
  3. Fluid through the SP Flash Tool (instructions are available on the 4PDA forum).

๐Ÿ’ก

If the phone does not see after the reset SIM-Check if the "only" mode is activated. 4G" in the network settings. Go to Settings. โ†’ SIM-maps and mobile networks โ†’ Preferred type of network and select 4G/3G/2G (motor-car).

FAQ: Answers to Frequent Questions

โ“ Should I take it out? SIM-card and memory card before resetting?
SIM-You don't have to take the card out, because the reset doesn't affect the data, and it's better to remove the microSD if it's storing important files -- some versions. MIUI It is formatted together with internal memory.
โ“ Can you reset Xiaomi without a password from the Mi Account?
Officially, no. If the phone is linked to a Mi Account, you'll need to enter your login and password after the reset. EDL-The mode requires special equipment and is suitable only for unlocked downloaders. Xiaomi service centers can unbind the documents on the phone.
โ“ How long does it take to dump?
Time depends on the method: through settings: 5-15 minutes; through Recovery: 10-20 minutes; through Fastboot: 15-30 minutes (including firmware); if the process took more than 30 minutes, it may have failed. Try repeating the procedure.
โ“ Will photos be removed from the memory card?
No, the reset only affects the phone's internal memory, and the files on the microSD will remain intact unless you format it manually, but for security, we recommend removing the card before resetting.
โ“ Why the phone has become slower since resetting?
Possible causes: Obsolete version of MIUI (update firmware); worn-out battery (check status through AccuBattery); Background optimization (include it in Settings โ†’ Special features โ†’ Optimization); viruses in recovered data (scan your phone with antivirus).