Xiaomi Mi 5s: How to reset to factory settings without losing data

Xiaomi Mi 5s is the iconic smartphone of 2016, which is still used by many users thanks to the powerful hardware (Snapdragon 821 processor, 3/4 GB of RAM) and a quality screen. However, over time, even this device begins to slow down, glitch or require a complete reinstallation of the system. Hard reset is a versatile solution to eliminate software failures, prepare the device for sale or eliminate the consequences of a failed upgrade.

In this article, you will find three proven ways to reset Mi. 5s: We will discuss each method in detail, warn about possible risks (for example, loss of data when resetting via Fastboot on a locked bootloader), and give recommendations for backup. MIUI and the loader's unlock status.

When you need to reset Xiaomi Mi 5s to factory settings

Resetting is not always the first step, sometimes the problem can be solved with less radical methods (cleaning the cache, removing unnecessary applications).

  • ๐Ÿข Smartphone slows down, applications open or fly out for a long time.
  • ๐Ÿ”„ After updating MIUI Critical errors (e.g., infinite boot or bootloopยป).
  • ๐Ÿ“ฑ The device is infected with viruses that cannot be removed by standard means.
  • ๐Ÿ’ฐ Preparing the phone for sale or transfer to another user.
  • ๐Ÿ”“ Forgot the pattern lock or unlock password (in this case, reset is the only way out).

It is important to understand that a reset deletes all user data, including:

  • ๐Ÿ“ธ Photos and videos in the gallery (if not saved on the SD-map).
  • ๐Ÿ“ฑ Contacts, SMS, Call log (unless synced with Google or Mi Account).
  • ๐ŸŽฎ Save in games and settings of applications.
  • ๐Ÿ“ Uploaded files in Download folders, DCIM, Documents.

โš ๏ธ Attention: On Xiaomi Mi 5s With a blocked bootloader, a reset via Fastboot can result in a "brick" (completely inoperable) of the device! Before using this method, check the bootloader status in the developer settings (Settings) โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to tap according to the version).

Preparation for resetting: data backup

Before resetting, be sure to save important information. Here are three reliable ways to back up for the Mi 5s:

  1. Cloud storage Mi Cloud: ๐Ÿ“ฑ Go to Settings. โ†’ Mi Account โ†’ Mi Cloud. ๐Ÿ”„ Turn on sync for contacts, notes, SMS, gallery. โ˜๏ธ Make sure you have enough space on your account (free 5GB).
  2. Google Account: ๐Ÿ“ฑ Open the Settings. โ†’ Accounts. โ†’ Google. ๐Ÿ”„ Enable sync for contacts, calendar, Chrome, Gmail. ๐Ÿ“ Use Google Photos (automatic download) for photos).

If you use SD-Remove the card before resetting โ€” some methods (like Fastboot) can format it, and check if important accounts (like WhatsApp or banking apps) are linked to the device โ€” after reset, you will need to reauthorize.

๐Ÿ“Š How you usually make a backup before resetting?
Using Mi Cloud.
Copying files on a PC
Synchronizing with Google
I'm not doing a backup.
Another way.

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

This method is suitable if the smartphone is turned on and reacts to touch, it requires no additional tools and is as safe as possible for data (except for deleting it).

Instructions:

  1. Open Settings (the gear icon on the main screen).
  2. Go to the section Additional settings โ†’ Recovery and reset.
  3. Select Reset (on some versions of MIUI โ€“ Reset all settings).
  4. The system will prompt you to enter a password or pattern lock (if installed).
  5. Confirm the action by clicking Reset phone settings.
  6. Wait for the process to be completed (5-10 minutes) and the device will restart automatically.

After resetting, the Mi 5s will boot into a โ€œout of the boxโ€ state, and youโ€™ll need to go through the initial setup: select a language, connect to Wi-Fi, and log in to Mi Account or Google.

โš ๏ธ Note: If the device has the โ€œFind Deviceโ€ feature enabled, after reset, you may need to enter data from the associated Mi Account. Without this, you will not be able to unlock the phone! โ†’ Mi Account โ†’ Find Device.

Checked availability of backup copy|Find Device protection disabled|Battery charge > 50%|Extracted. SD-card (if any)|Password from Mi Account is stored-->

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

If the Xiaomi Mi 5s doesnโ€™t load (hang on the logo, reboots cyclically or doesnโ€™t react to the screen), use Recovery Mode. This is a built-in recovery menu available on all Android devices.

For entrance to Recovery:

  1. Turn off the phone (press the power button for 10-15 seconds).
  2. Press the Power button + Volume up at the same time.
  3. Hold them until the Mi logo appears, then let them go.
  4. In a few seconds, the Recovery menu will open (in English or Chinese).

Further action:

  • ๐Ÿ“ฑ Use volume buttons to navigate the menu.
  • ๐Ÿ”˜ Confirm the choice of the power button.
  • ๐Ÿ”„ Select Wipe Data (or Clear Data on Chinese firmware).
  • ๐Ÿ”„ Confirm the reset by selecting Wipe All Data.
  • ๐Ÿ”„ After completion, select Reboot to restart.

If the menu is in Chinese, focus on the location of the items:

  • The third item on the top is Wipe Data.
  • The last item is Reboot.

Recovery menu itemTranslationAction.
RebootReboot.Exiting Recovery with a Reboot
Wipe DataClearing the dataReset to factory settings
Wipe CacheClearing the cacheDelete temporary files (does not reset settings)
Install UpdateInstallation of the updateFirmware through ZIP-file

โš ๏ธ Note: Some custom firmware (e.g. LineageOS) may have different Recovery menus. If you see non-standard items (e.g. Advanced Wipe), don't choose them without understanding - this can lead to the loss of the firmware partition!

What happens if Recovery does not open?
If after pressing Power + Volume up, the phone vibrates but does not load Recovery, it is possible: 1. Volume button is faulty (try using ADB to log in to Recovery). 2. Recovery section is damaged (reflashing through Fastboot is required). 3. Custom firmware with another key combination is installed (for example, Power + Volume down).

Method 3: Fastboot Reset (for power users)

The method through Fastboot is the most radical and requires an unlocked bootloader.

  • ๐Ÿ”ง You need to reflash the device after a failed update.
  • ๐Ÿ”„ Recovery is unavailable or damaged.
  • ๐Ÿ“ฑ The phone is completely โ€œbrickโ€ (does not respond to buttons).

The work will require:

  • ๐Ÿ–ฅ๏ธ Computer with installed Xiaomi drivers and Fastboot tool (included in Android) SDK).
  • ๐Ÿ”Œ Cable USB Type-C (original or qualitative analogue).
  • ๐Ÿ“„ Firmware file for Mi 5s (Download only from the official Xiaomi website or verified sources).

Step-by-step:

  1. Turn off the phone.
  2. Press the Power button + Volume down to enter the Fastboot (the image of a hare in a hat-eared will appear).
  3. Connect the device to the PC.
  4. Open the command prompt (cmd) in the folder with Fastboot.
  5. Enter the command to check the connection: fastboot devices If the device is determined (the serial number will appear), continue.
  6. Run reset: fastboot erase userdata fastboot erase cache fastboot reboot

For complete flashing (if you want to restore the system), use the command:

fastboot flash all [name file firmware].zip

โš ๏ธ Attention: On Mi 5s With a blocked bootloader, the fastboot erase userdata command can lead to loss IMEI Before using this method, make sure that the bootloader is unlocked (checked by the fastboot oem device-info command - look for the line Device unlocked: true).

๐Ÿ’ก

If the phone doesnโ€™t turn on after reset via Fastboot, try flashing the original firmware through the Mi Flash Tool. Download it from the official Xiaomi website (section โ€œDownload โ†’ Mi 5s โ†’ Fastboot ROMโ€).

Frequent mistakes and their solutions

When you reset the Xiaomi Mi 5s, users often face typical problems, and here are the most common ways to fix them:

Mistake.Reason.Decision
Discharge interrupted by 50%Userdata section damagedRepeat the reset via Fastboot with full cleanup (fastboot erase userdata + fastboot erase cache)
After reset, requires a password from the Mi AccountFind Device Protection ActivatedEnter your account data or contact Xiaomi to unlock
The phone doesn't go out of Fastboot modeFirmware or loader damagedSwipe your device through the Mi Flash Tool with the Clean All option
The sensor does not work after resettingIncompatible firmware or damaged driverInstall the original firmware for your model (Mi 5s has a capricorn index)

If after the Mi reset 5s does not SIM-map, check it out. IMEI (enter the dialer *#06# if instead of IMEI zeros are displayed, you will need to restore it through the engineering menu or Fastboot.

๐Ÿ’ก

If the reset didnโ€™t fix the problem (for example, the phone is still braking), the cause could be a hardware malfunction: battery wear, damage to flash memory or overheating of the processor, in which case a diagnosis at the service center is required.

FAQ: Answers to Frequent Questions

Can I reset the Mi 5s without losing data?
No, hard reset always deletes user data. However, you can try alternative methods: ๐Ÿ”ง Cleaning cache with Recovery (Wipe Cache โ€“ does not delete personal files). ๐Ÿ“ฑ Remove unnecessary applications manually through Settings โ†’ Annexes. ๐Ÿ”„ Reverse Update through Settings โ†’ The phone. โ†’ Update the system (if the problem has occurred after the update) If these methods do not help, backup is mandatory.
How to reset Mi 5s if you forget your Mi Account password?
If the device is activated protection Find Device and you forgot the data from Mi Account, you can unlock the phone only officially: Go to account.xiaomi.com. Restore access to the account via email or phone. If recovery is not possible, contact Xiaomi with proof of ownership of the device (check, box). IMEI!
How long does it take to dump?
The time depends on the chosen method: ๐Ÿ“ฑ Through settings: 5-10 minutes (including reboot). ๐Ÿ”„ Through Recovery: 3-7 minutes. ๐Ÿ–ฅ๏ธ Fastboot: 2-5 minutes (excluding firmware) If the process is delayed for longer than 20 minutes, it may have failed. Restart the device manually (press the power button for 15 seconds) and try again.
Can the reset be cancelled after the process has begun?
No, once the reset is confirmed, the process is irreversible. Interruption (e.g., battery extraction or forced reboot) can lead to: ๐Ÿ”ง Damage to system files (phone will not turn on). ๐Ÿ“ฑ Poose. IMEI (on devices with a locked loader). ๐Ÿ”„ If the reset is stuck, wait 30 minutes. If there is no change, contact the service.
How do I know if the bootloader is unlocked on the Mi 5s?
Check the status of the bootloader in two ways: Through Settings: Go to Settings โ†’ The phone. โ†’ Version. MIUI. Tap 7 times according to version MIUI, To activate Developer Mode. Go back to Settings. โ†’ Additional settings โ†’ For developers, find the bootloader status item (OEM Unlocking. If it's active, the bootloader is unlocked. Through Fastboot: Connect your phone to your PC in Fastboot mode. Enter the command: fastboot oem device-info Search for Device unlocked: true.