How to return factory settings to Xiaomi: 5 working ways (2026)

Resetting Xiaomi devices to factory settings is a procedure that can be required in a variety of situations, from preparing a gadget for sale to fixing critical failures. However, an incorrect reset can lead to data loss, blocking the Mi Account account or even โ€œbrickingโ€ the device. In this article, we will analyze all the current ways of resetting for Xiaomi smartphones, tablets and TV boxes, including hidden features and nuances for devices with a locked bootloader.

We will focus on the difference between soft and hard resets: the first saves media files, and the second deletes everything, including internal memory. Also, we will uncover the myths about resetting via # # #4636## (this code does not work on Xiaomi!) and explain why some instructions from the old manuals can harm your device.

1. When do you need a factory reset?

Before you press the Reset button, make sure it's really necessary.The main reasons for going back to factory settings are:

  • ๐Ÿ“ฑ Preparation for sale or transfer โ€“ deletion of personal data, accounts and history.
  • ๐Ÿ”„ System failures: constant reboots, lags, application errors (com.android.phone, miui.home).
  • ๐Ÿ”’ Forgotten pattern lock/PIN (unless unlocked via Mi Account is triggered).
  • ๐Ÿ“ฆ Clean before upgrading MIUI (recommended when switching to a new version of Android).
  • ๐Ÿ› ๏ธ Removal of viruses or malware if the antivirus fails.

However, resetting will not help if:

  • โŒ The problem is hardware (broken screen, faulty battery, burnt Wi-Fi module).
  • โŒ The device is locked by the operator (detachment from the provider is required).
  • โŒ Broken charging connector or power button (repair, not reset).

โš ๏ธ Warning: On devices with MIUI 14+ and HyperOS, you may need to re-assign your Mi Account after reset, even if the gadget has not been blocked before.

If your goal is just to free up space, try cleaning the cache in Settings โ†’ Storage โ†’ Clean or remove unnecessary apps. Resetting is a last resort, not a panacea for all problems.

๐Ÿ“Š Why You Need a Xiaomi Reset?
Preparation for sale
Remediation of failures
Forgot my password.
Firmware update
Other

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

This method is suitable if the device is turned on, you remember the unlock password, and you want to save photos / videos to internal memory. The instructions are relevant for all Xiaomi smartphones (including Redmi, POCO, Black Shark) and tablets on MIUI/HyperOS.

Step-by-step:

  1. Open Settings (the gear icon on the main screen).
  2. Go to About Phone โ†’ Reset (HyperOS: Settings โ†’ Additional โ†’ Reset and Recovery).
  3. Select Reset settings (not to be confused with Reset Network settings!).
  4. The system will offer two options: ๐Ÿ”„ Reset โ€“ only deletes apps, accounts and settings (photos / videos remain). ๐Ÿงน Erase all data โ€“ complete cleanup, including internal memory.

password/pattern lock

Wait for the reboot (it will take 5-15 minutes).

โš ๏ธ Warning: Devices with MIUI 13+ may receive a confirmation request via Mi Account after a reset, even if the gadget has not been linked to the account before.

If the Reset option is inactive (grey), it means:

  • ๐Ÿ”’ Reset protection is enabled on the device (you need to disable in Settings โ†’ Accounts โ†’ Mi Account โ†’ Device Protection).
  • ๐Ÿ“ต The device is not connected to the Internet (required to verify the account).
  • ๐Ÿ”ง Find Device is active (turn it off in Settings โ†’ Google โ†’ Security).

โ˜‘๏ธ Preparation for reset via menu

Done: 0 / 5

Method 2: Hard Reset via Recovery Mode (if the phone doesn't turn on)

If Xiaomi doesnโ€™t respond to the power button, hovers on the MI logo or is locked with a pattern lock, resetting through Recovery will help.This method deletes all data, including photos and files in internal memory!

How to Sign In to Recovery on Xiaomi:

  1. Turn off the device (press the power button for 10-15 seconds).
  2. Press the combination: ๐Ÿ“ฑ For most models: Power button + Volume up. ๐ŸŽฎ For Xiaomi TV Stick/Box: plug into the TV, pinch OK + Menu on the remote when turned on.

Mi Bunny

Release the buttons and you will be taken to the Recovery menu (in English or Chinese).

Further action:

  • ๐Ÿ”ง Use volume buttons for navigation and power for confirmation.
  • ๐Ÿ“› Select Wipe Data โ†’ Wipe All Data (older versions โ€“ Wipe & Reset).
  • ๐Ÿ”„ Confirm or Yes.
  • ๐Ÿ”™ After reset, select Reboot โ†’ Reboot to System.
Xiaomi modelCombination for RecoveryFeatures
Redmi Note 10/11/12, POCO X3/X4/X5Food + Volume upMenu in English, support for sensory control.
Xiaomi 11/12/13, Mix 4/FoldFood + Volume upRequires confirmation via Mi Account after reset.
Xiaomi Pad 5/6Power + Volume up (hold 20+ seconds)On tablets, the Recovery menu can open longer.
Mi TV Stick 4K, Mi Box SOK + Menu on the remote when switched onReset takes up to 10 minutes, do not turn off the power!

โš ๏ธ Warning: If after resetting via Recovery, the device requires you to enter the Mi Account password, and you do not remember it, you will not be able to unlock yourself.

What happens if Recovery does not open?
If the button combination doesnโ€™t work, try: 1. Connect the device to charge for 30 minutes (a discharged battery blocks entry to Recovery). 2. Use the ADB- command (requires debugging on USB): adb reboot recovery 3. For older models (Redmi 4X, Mi A1) try Power + Volume down.

4. Method 3: Fastboot Reset (for advanced users)

This method is used if:

  • ๐Ÿ”ง Recovery is damaged or not opened.
  • ๐Ÿ“ฑ The device is locked after a failed firmware.
  • ๐Ÿ”’ You need to unlock the bootloader before reset (relevant for Xiaomi with the bootloader locked).

What you need:

  • ๐Ÿ’ป Computer with drivers installed ADB/Fastboot (Download from the official Android website).
  • ๐Ÿ”Œ Cable USB Type-C (original, undamaged).
  • ๐Ÿ“„ Fastboot file for your model (you can download from Xiaomi Firmware Updater).

Step-by-step:

  1. Turn off the device.
  2. Press Power + Volume down until the Fastboot logo appears.
  3. Connect your phone to your PC and open the Command Prompt (Windows) or Terminal (macOS/Linux).
  4. Check the connection command: fastboot devices must display the serial number of the device.
  5. Run reset: fastboot erase userdata fastboot erase cache fastboot reboot

For a complete reset with flashing, use:

fastboot flash system system.img


fastboot flash boot boot.img




fastboot erase userdata




fastboot reboot

โš ๏ธ Warning: On devices with a locked bootloader, fastboot flash commands will not work without first unlocking through the official Xiaomi tool. Trying to flash a locked device will lead to a brick (complete inoperability)!

1. Google USB Driver is installed.

2: Do you use the original cable (not all USB- cables support data transmission).

3. Try another one. USB-port (preferably) USB 2.0, because USB 3.0 is sometimes in conflict with Fastboot).-->

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

If you forget the pattern lock or PIN- code, but remember the data from the Mi Account, you can reset the lock without losing data (on some models).

  • ๐Ÿ“ถ Connecting a device to the Internet (Wi-Fi or mobile network).
  • ๐Ÿ”— Linking Mi Account to your device before locking.
  • ๐Ÿ“ฑ No hardware damage (e.g., a broken screen)

Instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Password).
  2. Select Sign in via Mi Account.
  3. Enter the username and password from your Xiaomi account.
  4. Confirm the unlock via SMS or email (the code will come to the linked number / mail).
  5. Set a new password or pattern lock.

If you forgot your password, you will not see:

  • ๐Ÿ”Œ Connect the device to charge and check the internet connection.
  • ๐Ÿ”„ Reboot your phone (press the power button for 15-20 seconds).
  • ๐Ÿ“ง Make sure you use the correct account (multiple Mi Accounts may be linked to one device).

โš ๏ธ Warning: After 5 failed attempts to enter a password, Xiaomi can block the ability to unlock through Mi Account for 24-72 hours.

๐Ÿ’ก

Resetting via Mi Account is the only way to save data with a forgotten password, but only works if the account was tied before locking and the device is connected to the Internet.

Method 5: Resetting through service codes (myths and reality)

There are often โ€œsecret codesโ€ on the internet to reset Xiaomi, such as:

  • #4636## - Test menu (not working on MIUI)
  • ##7780## - Resetting (only available on Samsung)
  • #27673855## โ€“ Complete reset (remove all firmware, dangerous!)

The truth about service codes on Xiaomi:

  • โœ… Only codes for checking information are working: ##4636## โ€” the test menu (on MIUI opens Settings โ†’ About phone). ##06## โ€” shows IMEI. ##0000### โ€” version of the software.
  • โŒ No code does reset on Xiaomi devices! There are only official methods for this (settings menu, Recovery, Fastboot).

If you come across a manual with a โ€œmagic codeโ€ to reset Xiaomi, itโ€™s fraud or outdated information.

  • ๐Ÿ“ต Communication loss (reset modem settings).
  • ๐Ÿ”ง Firmware damage (reflashing via Fastboot is required).
  • ๐Ÿšซ Block Mi Account (if the code causes suspicious activity)
Why do reset codes not work on Xiaomi?
Manufacturers (including Xiaomi) have removed support for service codes for resetting due to: 1. the risk of accidental launch (for example, in the pocket). 2. security vulnerabilities (malicious attackers could reset someone else's phone). 3. Conflicts with the Find My Device function (remote lock).

7. What to do after the discharge?

Once you get back to factory settings, it's going to be like new.

  1. ๐Ÿ“ฑ Select a language, region and connect to Wi-Fi.
  2. ๐Ÿ”‘ Enter the data from Mi Account (if required).
  3. ๐Ÿ“ฒ Restore data from backup (if you backup through Settings โ†’ Additional โ†’ Backup).
  4. ๐Ÿ”’ Set up protection: pattern lock/PIN Faceprint (if supported) Two-factor authentication for Mi Account.

Post-reset problems and their solutions:

Problem.Reason.Decision
The device asks for an old password after resettingMi Account is linked to the deviceEnter your account details or unlock through Xiaomiโ€™s website
No communication (no network)Resetting modem settingsGo to Settings. โ†’ SIM-maps and mobile networks โ†’ Access points (APN) and select the automatic setting
Touch ID/Face Unlock is not working.Biometrics data deletedRegister your fingerprint/face again in Settings โ†’ Passwords and security
No applications installedGoogle account not set upAdd a Google account to Settings โ†’ Accounts

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

  • ๐Ÿ”Œ Connect to charging for 30-60 minutes (the battery may have run out during the procedure).
  • ๐Ÿ”„ Try logging into Recovery and repeat the reset.
  • ๐Ÿ’ป If nothing helps, run the device through Fastboot (instructions in Method 3).

๐Ÿ’ก

After reset, turn off automatic app updates in Google Play โ†’ Settings โ†’ Auto Update to avoid downloading unnecessary updates over the mobile network.

8. Frequent mistakes and how to avoid them

Even experienced users make mistakes when resetting Xiaomi.

  • ๐Ÿ”‹ Battery discharge โ€“ if the charge is below 30%, the device may shut down during reset, causing firmware damage. โš ๏ธ Attention: On battery devices <5%, a Recovery reset can occlude the device! Charge up to 50%.
  • ๐Ÿ”Œ Interrupting the process โ€” if you take out the battery or turn off the power during the reset, there is a high risk of damaging the userdata partition, in which case only flashing through the Fastboot will help.
  • ๐Ÿ“ต Internet Absence โ€“ Without a network connection, Xiaomi will not be able to verify the Mi Account, which will result in a lockdown after a reset.
  • ๐Ÿ”‘ Forgotten password from Mi Account โ€“ if you do not remember your account details, it will be impossible to unlock the device after a reset without contacting the service.

How to minimize the risks:

  • ๐Ÿ“‹ Make a backup (even if you plan to "soft" reset).
  • ๐Ÿ”‹ Charge the device to 100%.
  • ๐ŸŒ Connect to stable Wi-Fi (non-mobile internet).
  • ๐Ÿ“ Write down the data from Mi Account and Google Account.

If you are selling a device, you must:

  1. Delete all accounts (Mi Account, Google, social networks).
  2. Turn off Find the device in Google settings.
  3. Log out of Mi Cloud (Settings โ†’ Accounts โ†’ Mi Account โ†’ Sign out).
  4. Reset your settings via Wipe All Data in Recovery.

๐Ÿ’ก

The most common mistake is to reset Mi Account without detachment. If the new owner can not log into your account, the device will become a brick!

FAQ: Answers to Frequent Questions

Can I return the factory settings without losing photos?
Yes, if you use soft reset via the settings menu (Reset settings, not Erase all data). However, this method does not delete applications and their data. For complete cleanup with saving media files: Copy photos to your PC or cloud. Complete reset. Restore photos back. On HyperOS devices, soft reset may not save files - check before confirming!
Why does Xiaomi ask for an old password after a reset?
This is Factory Reset Protection (FRP), which is activated if a device has a Mi Account or Google Account attached. To unlock: Enter the last account you linked. If you don't remember the password, restore it through a Xiaomi or Google site. If the device is purchased from hand and the previous owner hasn't untied the account, contact the service center with proof of purchase.
How to Reset Xiaomi if the Screen is Not Working?
If the screen is broken or does not respond to touch, but the device turns on: Connect Xiaomi to the PC via USB. Install Mi PC Suite. In the program, select Backup โ†’ Factory Reset. If the screen does not turn on at all: Try to log in to Recovery blindly (Power + Volume up) and connect the charger โ€” if the device vibrates, it's turned on. In 10 seconds, release the buttons (you'll get to Recovery). Press Volume down 3 times (wipe Data selection), then Power to confirm. For Xiaomi with a AMOLED- screen, you can try to light up the display with a flashlight - sometimes the image is visible in bright light.
Will factory settings reset operator lock (SIM-lock)?
No, the reset does not remove the operator lock (for example, if the phone is tied to MTS, Beeline or MegaFon). To unlock you need: Contact the operator with a purchase agreement. Use paid unlock services (risky, may violate the law). For some models (Redmi 9A, POCO M3) there are