How to reset Xiaomi to factory settings if you forgot the password MI-Account: 4 working methods

Forgot the password from MI-You can’t unlock your Xiaomi, Redmi or POCO? The situation is familiar to many: the phone requires you to enter account details after a reset, update, or even accidental reboot. Without the right password, the device turns into a β€œbrick” – the camera does not work, there is no access to contacts, and most importantly, it is impossible to install new applications or update the firmware.

In this article, we will analyze all the current ways to reset Xiaomi to factory settings, including bypassing the lock. MI-Important: Not all methods are suitable for new HyperOS models or the latest versions MIUI 14/15 β€” We will specify the limitations and nuances for each instruction, and you will learn how to save data before reset (if the phone is still partially working) and what to do if after the procedure the device again requires a password.

We warn you right away: some methods require technical skills (working with ADB, firmware through Fastboot), if you are not sure, you should contact the Xiaomi service center, but for most users, the standard tools we described below will also suffice.

1. Reset via Recovery Mode (no password) MI-account)

The easiest way to get Xiaomi back to factory settings is to use Recovery Mode, which works on 90% of models until 2022, but may not work on new devices with HyperOS or those tied to an account via Mi Cloud Lock.

To enter Recovery:

  • πŸ”‹ Turn off the phone (press the power button for 10 seconds if it freezes).
  • πŸ”„ Keep the Volume up. + Food before the appearance of the Mi logo.
  • πŸ“± Select the language (usually English or Chinese) on the screen).
  • πŸ”§ Go to Wipe Data β†’ Wipe All Data (use volume buttons for navigation, power for selection).

Once the reset is confirmed, the phone will restart. MI-The device has been activated with the Find Device function, which requires one of the alternative methods described below.

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 4

Bypassing the lock MI-account ADB (power-user)

If resetting via Recovery didn’t help and the phone still requires a password, you can try to delete the file with account data via Android Debug Bridge (ADB). This method only works when the debugging is enabled. USB (USB Debugging) before lockdown.

Instructions:

  1. Connect your phone to your PC via USB (use the original cable).
  2. Open the command line (CMD) in the folder with ADB (you can download from the official site).
  3. Enter the commands in turn: adb shell su rm /data/system/gesture.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot

If the password has not disappeared after rebooting, try to delete the file. /data/system/mi_account.xml (only for older versions MIUI!). Warning: Mistakes can lead to complete data loss or β€œbricking” of the device.

What if the ADB can’t see the device?
Make sure you have Xiaomi drivers installed (you can download from the official website). Also check if the debugging mode is enabled in the developer settings (if the phone is still partially working, activate it via Settings β†’ About Phone β†’ MIUI version (click 7 times)).

3.Reset via Fastboot (if Recovery is blocked)

On some Xiaomi models (e.g. Redmi Note 10 Pro, POCO X3 Pro), standard Recovery can be blocked by the manufacturer, in which case the firmware through Fastboot, a mode that allows you to reinstall the system without a password, will help.

Step-by-step:

  1. Download the official firmware for your model from the Xiaomi website (choose the Fastboot version).
  2. Unpack the archive in a folder with Fastboot tools (for example, Mi Flash Tool).
  3. Transfer the phone to Fastboot mode: adb reboot bootloader Or manually: Keep Volume down + Power when turned on.
  4. Connect the device to your PC and launch the Mi Flash Tool. Select the firmware folder and press Flash.

It takes 5-10 minutes, and when you reboot, it's like new, but it's deleted, and if you do that, you get a password request. MI-account, which means that the device has activated the binding to the account via Mi Cloud – you will need official unlocking (see section 5).

πŸ“Š What Resetting Method Have You Tried?
Recovery Mode
ADB
Fastboot
I haven't tried it yet.

4. Use of service codes (for older models)

On Xiaomi devices until 2019 (e.g. Redmi 4X, Mi A1), service codes for resetting are sometimes triggered.

  • πŸ“ž ##7780## - soft reset (saves media files).
  • πŸ“ž *2767*3855# β€” Full reset (removes everything, including firmware!).
  • πŸ“ž ##3646633## - Engineering menu (for experienced users).

If the codes don't work, the manufacturer has disabled them in newer versions of MIUI. Don't try to enter random combinations - this can damage the firmware.

πŸ’‘

Before entering service codes, check the phone model in Settings β†’ About Phone. Some codes only work on certain chipsets (e.g. Qualcomm or Mediatek).

5. Official unlock via Mi Unlock (if nothing worked)

If all previous methods fail, the last option is to officially unlock the Mi Unlock Tool.

  • πŸ”— Tie-to-device MI-Account (even if you forget your password, you can restore it via email).

Instructions:

  1. Go to the Mi Unlock website and download the utility.
  2. Sign in to the same thing. MI-account that is linked to the phone.

If you have a handheld phone and you don’t know the previous owner’s details, you can’t unlock it via Mi Unlock, which means you can only contact the service center with proof of purchase (e.g., a photo of an IMEI box).

πŸ’‘

Official unlocking is the only legal way to bypass the Mi Cloud Lock on new Xiaomi models (2021 and later).

6. Frequent mistakes and how to avoid them

When you reset Xiaomi, users often face typical problems, and we put them together in a table with solutions:

Mistake.Reason.Decision
Phone is not included in RecoveryFaulty buttons or a discharged batteryCharge the device to 50%, try another button combination (e.g. Volume up + down + Power)
After reset, again asks for the MI passwordThe Find Device function is activatedUse the Fastboot or Mi Unlock Tool
ADB does not see the deviceNo drivers or debugging not includedInstall Xiaomi drivers, check the cable
Anti-Rollback error in the firmwareTrying to install an old version of MIUIDownload the firmware of the same or newer version

If your problem is not described in the table, check the phone's IMEI (type *#06#) and specify the model.Perhaps there are specific instructions for your device on the 4PDA or Xiaomi.EU forums.

πŸ’‘

Before resetting, check if the phone is tied to the operator (for example, MTS or Beeline).

FAQ: Answers to Frequent Questions

Can you reset Xiaomi without losing data?
No, a full factory reset always deletes all data (photos, contacts, messages) if the phone is still working, copy important files to your PC or to the cloud before the procedure. ADB pull can be used to partially save data, but it requires skill.
Why does the phone ask for an old password after resetting? MI-account?
This means that the device has activated the Find Device function, which links the phone to the device. MI-Solutions: Restore your account through Xiaomi. Use the Mi Unlock Tool. Contact the service center with a check for your purchase.
Does Recovery Work on Xiaomi with HyperOS?
On new HyperOS devices (e.g. Xiaomi 14, Redmi Note 13), standard Recovery is often blocked. In this case: Use Fastboot (see section 3). Try custom Recovery (TWRP), but this requires unlocking the bootloader.
What if the phone doesn’t turn on after reset?
Possible causes and solutions: πŸ”‹ Battery is dead – charge your phone for 30 to 60 minutes. πŸ”§ Firmware damaged – Fastboot your device (see Section 3). πŸ’₯ Hardware failure – if the phone does not respond to charging, contact the service.
Can we get around? MI-account without official unlocking?
Technically yes, but it violates Xiaomi's terms of use. unofficial methods (e.g. via via EDL-mode) requires special equipment and may result in: IMEI (The phone will lose communication, loss of warranties, system instability, we don't recommend using these methods.