How to reset Xiaomi to factory settings if you forgot your password: all working ways

Forgotten password on Xiaomi smartphone is a situation that one in five users encounter. According to statistics from service centers, 32% of requests for blocking devices are associated with loss of access due to loss of access due to a loss of access. PIN-Fortunately, the manufacturer has provided several official ways to reset to factory settings even without knowing the password. However, it is important to understand that the hard reset deletes all data from the device β€” photos, contacts, messages and installed applications.

In this article, we’ll take a look at all of Xiaomi’s current unlocking methods (including Redmi, POCO and Black Shark models), from the simplest to the most technically challenging. You’ll learn how to bypass locking through Recovery Mode, Mi Flash Tool, Mi Account, and even physical PC connection. Each method is tested on MIUI 12-14 firmware and is relevant for devices released after 2018. If your smartphone is older, use the Fastboot method, as older versions of Recovery do not support reset without password confirmation.

Before you start, check:

  • πŸ”‹ Battery level (minimum 30%, otherwise the risk of "bricking" the device)
  • πŸ“± Smartphone model (written on a box or under a battery)
  • πŸ’» Presence of a Windows PC (for Fastboot and Mi Flash Tool methods)
  • πŸ”‘ Access to the Mi Account linked to the phone (if sync is enabled)
πŸ“Š What Unlocking Method Have You Tried Before?
Recovery Mode
Mi Account
Fastboot
Service centre
Never blocked.

1.Reset via Recovery Mode is the fastest way

The method is suitable for most Xiaomi, Redmi and POCO models released after 2019. The main advantage is that it does not require a connection to a PC and works even without a tied Mi Account. However, on some devices (for example, Xiaomi 12T Pro or Redmi Note 11 Pro+), Recovery Mode can request a password - in this case, move to the next method.

Instructions:

  1. Turn off the smartphone with a long press on the power button (10-15 seconds).
  2. Press the combination of Loudness up + Power and hold for 10-20 seconds until the Mi logo appears.
  3. From the Recovery menu, select the language (usually English or Chinese).
  4. Go to Wipe Data β†’ Wipe All Data (use volume buttons for navigation, power for confirmation).
  5. Confirm the action by choosing Confirm.
  6. Once you have finished, select Reboot β†’ Reboot to System.

The process will take 3-7 If after the phone restarts, again requests a password, then the device has activated the post-reset protection function (FRP). In this case, you will need authorization through Mi Account (mode) β„–3).

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 4

⚠️ Note: On some models (e.g, POCO F3 or Redmi K40) After resetting via Recovery, the error "This device is locked" may appear, which means that the bootloader is locked, and further actions will require unlocking via Fastboot. β„–4).

2 Unblocking through Mi Account (if an account is linked)

If you have Mi Account sync enabled on your smartphone, you can reset your password remotely via Xiaomi’s website, which works even if your phone is turned off, but requires:

  • πŸ“§ Access to an email or phone number linked to an account
  • 🌐 Stable Internet connection on PC/smartphone
  • πŸ”’ No two-factor authentication (if enabled, code from the SMS)

Step-by-step:

  1. Go to account.xiaomi.com and log in.
  2. In the Devices section, find a locked smartphone.
  3. Press Find the device. β†’ Unlock.
  4. Confirm the action via email or SMS.
  5. The device will be unlocked within 5-10 minutes (internet connection required).

If the device is not displayed in the list or the Unlock button is inactive, then:

  • πŸ”Œ The phone has disabled data transfer or Wi-Fi
  • πŸ”„ The device did not sync with the account for more than 30 days
  • 🚫 The account is not the owner of the phone (for example, the device is purchased with hands)
What to do if I don’t remember my Mi Account?
If you have forgotten the username or password from Mi Account, restore access through the official form: [restore link](https://account.xiaomi.com/pass/forgetPassword). This will require access to a linked email or phone number, if two-factor authentication is enabled and SIM-Card lost – contact Xiaomi with a check to buy the device.
Xiaomi modelDoes it support unlocking through Mi Account?Do I need confirmation after resetting?
Redmi Note 10/11/12Yes.Only if the FRP is on.
POCO X3/X4/X5Yes.Yes (request password after reboot)
Xiaomi 11/12/13Yes.Yes (Mi Account data entry required)
Black Shark 4/5No.Requires unlocking bootloader

3. Reset via Fastboot (for advanced users)

If Recovery Mode asks for a password and Mi Account is not tied, the method remains via Fastboot. It requires a connection to a PC and installing special drivers, but works on 99% of Xiaomi models.

What you need:

  • πŸ–₯️ Windows PC 10/11
  • πŸ”Œ Cable USB (original, undamaged)
  • πŸ“¦ Archive with Mi Flash Tool and drivers (download from the official website)
  • πŸ”§ Programme ADB & Fastboot Tools (e.g. Minimal) ADB)

Instructions:

  1. Turn off your phone and press Volume Down + Power before the screensaver Fastboot (robot with an open stomach) appears.
  2. Connect the device to the PC.
  3. Open the command line in the ADB folder and type: fastboot devices If the device is identified (the serial number appears) - continue. If not, manually install the drivers through Device Manager.
  4. Enter the command to reset: fastboot erase userdata fastboot erase frp fastboot reboot

After the reboot, the phone will be unlocked, but all data is deleted. If there is an error "FAILED (remote: 'Flashing is not allowed in Lock State')" - then the bootloader is blocked, and it must be unlocked through the official Xiaomi website (the procedure takes up to 72 hours).

fastboot erase metadata


fastboot erase persist

It'll delete the data. FRP-firmware MIUI 13+.-->

4.Use of Mi Flash Tool (full reset with firmware)

This is a good method for brick-and-brick devices or if previous methods have failed. The Mi Flash Tool completely reflashes the smartphone, returning it to a "clean" state. Importantly, choose the correct firmware version for your model, otherwise the phone may stop turning on.

Step-by-step:

  1. Download the official firmware for your model from MIUI Downloads (choose the Fastboot version, not Recovery).
  2. Unpack the archive into a folder without Cyrillic characters (e.g., C:\MIUI\).
  3. Install the Mi Flash Tool and drivers.
  4. Transfer the phone to Fastboot (Loudness down + Power).
  5. In the program, click Select, specify the path to the folder with the firmware, then Refresh (the device should appear).
  6. Select Clean All mode and press Flash.

It takes 5-15 minutes. Once it's done, the phone will reboot in a factory state. If the Mi Flash Tool gives you a "Couldn't load device" error, try:

  • πŸ”Œ Connect the phone to another USB-port (preferably) USB 2.0)
  • πŸ”„ Reinstall drivers manually through Device Manager
  • πŸ–₯️ Launch the program on behalf of the administrator

πŸ’‘

Use the Mi Flash Tool only as a last resort, this method erases not only user data, but also service sections (for example, IMEI). On some models (for example, Xiaomi 12S Ultra) after such firmware, you may need to restore the serial number through the engineering menu.

5. Alternative methods (for older models)

If your Xiaomi was released before 2018 (like the Redmi 4X, Mi A1, or Mi Max 2), the standard methods may not work because of the outdated version of Recovery.

Method A: Unlock codes (only for MIUI 8-9)

Dial on the lock screen:

##7378423##

If the code works, you'll be taken to a service menu where you can reset your settings. On new firmware, this method doesn't work.

Method B: ADB-Teams (requires debugging by USB)

If USB debugging was previously enabled on the phone, connect it to your PC and type:

adb shell


rm /data/system/gesture.key




rm /data/system/password.key




reboot

Once rebooted, the password will be reset, but on MIUI 12+, this method is blocked by the security system.

Method C: Contacting a Service Center

If none of the methods worked, and the phone stores critical data, contact the authorized service center Xiaomi. the cost of unlocking without loss of data β€” from 1500 to 5000 rubles (depending on the model).

⚠️ Note: Do not trust the "handicraft" workshops that offer unlocking for the first time. 500 Often such "specialists" use informal firmware, which leads to loss of IMEI, Network problems or module breakdown NFC. Official Xiaomi service centers in Russia can be found on the website: mi.com/ru/service.

6.How to avoid blocking in the future

To avoid the problem of forgotten passwords again, follow these guidelines:

  • πŸ” Use biometric unlocking (fingerprint or facial recognition) in addition to PIN-code.
  • πŸ“ Write your password to a secure location (e.g. Google Keep or Google Keep). 1Password).
  • πŸ”„ Regularly sync your data with Mi Cloud or Google Account.
  • πŸ“± Enable Smart Lock (in security settings) to unlock your phone in trusted locations (such as at home).
  • πŸ”§ Turn it off. FRP-Protection if you do not plan to sell the device (in the developer settings).

It's also useful to set up the emergency information on the lock screen.

  1. Go to Settings β†’ About the phone β†’ Emergency information.
  2. Please provide an alternative phone number or email to contact.
  3. Activate the option to Show information on the lock screen.

This will help you get your device back if you lose it, or unlock your smartphone through a trusted contact.

FAQ: Frequent questions about Xiaomi reset

Can you reset Xiaomi without losing data?
No. Any reset method to factory settings (Recovery, Fastboot, Mi Flash Tool) erases all user data. The only way to save information is if the phone was synced to Mi Cloud or Google Account before locking, in which case, after reset, you can restore contacts, photos and some settings.
Why does the phone ask for an old password after reset?
This means that the device activates FRP (Factory Reset Protection), which is activated automatically if the phone is tied to Mi Account or Google Account. To bypass the lock: Connect to Wi-Fi or mobile Internet. Enter data from the associated account (Mi or Google). If you do not remember the password, restore access through official sites (Xiaomi or Google). On some models (for example, POCO X3 Pro), FRP can be disabled via Fastboot by command fastboot erase frp.
What if the smartphone does not turn on after reset?
If after a hard reset the phone β€œhangs” on the Mi logo or does not respond to buttons, try it: πŸ”‹ Charge the device for at least 30 minutes (the battery may have run out during the process). πŸ”„ Repeat the reset via Recovery (click Volume Up). + Nutrition). πŸ–₯️ Flash your phone through the Mi Flash Tool (instructions in section 4). πŸ› οΈ If nothing works, go to the service center (hardware malfunctions are possible). On models with a Qualcomm processor (for example, the Redmi Note 10 Pro), sometimes a β€œforced” reboot helps: pinch Volume down. + 30 seconds power.
How to reset Xiaomi if your Mi Account is blocked?
If you have forgotten the Mi Account and cannot re-establish access, there are two options: Official Recovery: Contact Xiaomi with a check to purchase. The procedure can take up to 30 days, but guaranteed to unlock the account. Use Fastboot commands to remove FRP (Refuse the phone through the Mi Flash Tool with the protection turned off (section 4). ⚠️ These methods may violate the warranty and result in loss of functionality (for example, Mi Pay or Find Device will fail).
Do these methods work on POCO and Black Shark?
Yes, all of the methods described are suitable for POCO and Black Shark smartphones, as they work on the basis of MIUI or firmware from Xiaomi. Exceptions: Black Shark 3/4/5: To reset via Fastboot requires unlocking the bootloader (an application for unlocking is submitted through the Mi Unlock site). POCO F1: This model may require entering a password from Google Account (FRP). POCO X3 GT and later, it is recommended to use Mi Flash Toolloader with Fastboot firmware, as the standard Recovery often blocks reset.