How to reset your password on Xiaomi Android smartphone: all the ways of 2026

Forgot your Xiaomi password and can't unlock your phone? This is a familiar situation for many people, just once enter the wrong pattern lock or PIN-The code, and the device locks for 30 seconds, a minute, or forever. Fortunately, the manufacturer has provided several formal and informal ways to reset the password without losing data (or with minimal loss, POCO Mi – from simple recovery via Mi Account to complex manipulations ADB and Fastboot.

It’s important to understand that not all methods are suitable for new models with FRP (Factory Reset Protection) protection. For example, resetting via Recovery Mode on Xiaomi 13 Pro or Redmi Note 12 will require entering the username and password from Mi Account after rebooting. So we will separately look at the workarounds for devices with MIUI 14+ and older versions of the firmware. If you do not remember the data from the Xiaomi account, immediately go to the section about EDL Mode is the only way to bypass the lock on modern devices.

Before you start, check:

  • πŸ”‹ Battery level (should be at least 30% - when discharged during resetting, the phone can turn into a "brick").
  • πŸ“‘ Backup (if the data is not synced with Mi Cloud, you may lose it).
  • πŸ”§ Access to a computer (for methods with ADB Fastboot will require a PC with Windows/Linux).

1 Unlocking through Mi Account (official method)

The easiest and safest method is to use a Xiaomi account, which works if:

  • πŸ“± The phone is connected to the Internet (via Wi-Fi or mobile network).
  • πŸ”‘ Remember the username and password from Mi Account.
  • πŸ“² The device is synchronized with Mi Cloud.

Instructions:

  1. On the lock screen, enter the wrong password 5 times in a row, and the message will appear: "Forgot the password?".
  2. Click on the Forgot Password button? β†’ Select Restore via Mi Account.
  3. Enter the email or phone number associated with the account and the password.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

⚠️ Note: If you have previously disabled sync with Mi Cloud or changed firmware to custom (for example, LineageOS), this method may not work.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO F3/F4/F5
Mi 11/12/13
Redmi 9/9A/9C
Other

2. Reset password via Recovery Mode (without loss of data)

The method is suitable for devices on MIUI 12 The new versions require you to enter Mi Account data after reset, and the essence of the method is to delete the gesture.key file or password.key, which stores information about the pattern lock./PIN-code.

Step-by-step:

  1. Turn off the phone by pressing the power button.
  2. Press the Volume Up + Power combination (on some models Volume Down + Power) and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery Mode menu, select the language (usually English) and go to Advanced β†’ File Manager.
  4. Open the folder. /data/system/ and find files: gesture.key (for pattern lock), password.key (for pattern lock) PIN-code), locksettings.db (for password).

Delete

Reboot β†’ System

Once rebooted, the password will be reset, but all data will remain in place (unless other files have been deleted).On MIUI 13/14, this method only works when FRP is disabled.

Store charge >30% | Download ADB drivers (in case of errors) | Check phone model (button combinations differ) | Prepare backup (if you have access to Mi Cloud)

-->

3. Use of ADB (for unlocking without resetting)

If your phone has USB debugging enabled (even if it is locked now), you can reset your password via ADB (Android Debug Bridge), which works on any MIUI version, but requires pre-preparedness.

What you need:

  • πŸ–₯️ Computer with Windows/Linux/macOS.
  • πŸ”Œ USB-cable (original, without damage).
  • πŸ“¦ Installed drivers Xiaomi and ADB.

Instructions:

  1. Connect the locked phone to the PC.
  2. Open the command line (Win + R β†’ enter cmd).
  3. Enter the commands in turn: adb devices (should display your device). adb shell su rm /data/system/gesture.key (for a pattern lock) or rm /data/system/password.key (for PIN-code).
  4. Reboot the phone: reboot

⚠️ Attention: If debugging is on USB It wasn't on in advance, it won't work (POCO X3 Pro, Redmi K40) Root rights are required that void the warranty.

πŸ’‘

If the su command doesn’t work, try first entering adb shell rm /data/system/locksettings.db – this will remove all lock settings.

4.Reset to factory settings via Fastboot

If previous methods failed, it's hard to reset through Fastboot, which removes all data from your phone, including photos, contacts and apps, and only use it as a last resort!

How to reset:

  1. Turn off the phone.
  2. Press Volume Down + Power for 10 seconds until the hare in the eardress hat (Fastboot logo) appears.
  3. Connect your phone to your PC and open the command line.
  4. Enter the commands: fastboot devices (connection check), fastboot erase userdata (delete user data), fastboot erase frp (reset FRP if required), fastboot reboot (reboot).

After the reboot, the phone will be like new – you will need to reconfigure MIUI and restore data from the backup (if any).

MethodMi Account requiredLoss of dataDifficultySuitable for MIUI 14+
Recovery through Mi Accountβœ… Yes.❌ No.β­βœ… Yes.
Delete gesture.key in Recovery❌ No.❌ No.⭐⭐❌ No (requires) FRP)
ADB (if debugging is enabled)❌ No.❌ No.β­β­β­βœ… Yes.
Fastboot (hard reset)❌ No (but you will need to do it when you are set up)βœ… Yes.β­β­βœ… Yes.
EDL Mode (for new models)❌ No.βœ… Yes.β­β­β­β­βœ… Yes.

5. Unlock via EDL Mode (for new Xiaomi)

The only working way to get around FRP on Xiaomi 12/13, Redmi Note 11/12 and POCO F4/F5 is to use EDL (Emergency Download Mode) mode, which requires a special cable or short circuit of contacts on the board, so it is better to trust professionals, but if you have the skills you can try it yourself.

What you need:

  • πŸ”§ EDL-cable (or paper clip for closing contacts).
  • πŸ–₯️ Mi Flash Tool and firmware for your model.
  • πŸ” Disabled Mi Account (if the phone was linked to the account, you will need authorization after firmware).

Instructions:

  1. Turn off the phone.
  2. Connect. EDL-cable (or close the contact test point on the board).
  3. Connect the phone to a PC, and it will be defined as a Qualcomm HS-USB QDLoader 9008.
  4. Start the Mi Flash Tool, select the firmware and press Flash.
  5. Wait until the end (10-15 minutes).

⚠️ Note: Incorrect Firmware Through EDL If you are not sure about your actions, contact the service center. On new models (Xiaomi 14, Redmi Note 13), this method may require authorization through Mi Account even after firmware is installed.

What is FRP and why does it prevent resetting?
FRP (Factory Reset Protection) is Google’s protection, which is activated after resetting your Android 5.1+ settings. If a Google or Mi Account was linked to your phone, after resetting, the system will require you to enter a username and password from it. On Xiaomi, this protection works especially harshly: even after firmware through Fastboot, you may need authorization. It is legally impossible to bypass FRP – this is a measure against theft of devices.

6. Alternative methods (if nothing helps)

If the standard methods don’t work, try:

  • πŸ“ž Contact Xiaomi Service Center – they can unlock the phone by serial number (you need a check or box).
  • πŸ”„ Restore access to Mi Account with Xiaomi support (if you forgot your password).
  • πŸ› οΈ Use third-party utilities like Mi Account Unlock Tool (risky - can lock the phone forever).

Forums often recommend using programs like Dr.Fone or iMyFone LockWiper, but they are:

  • ❌ They do not work on new models with MIUI 14.
  • ❌ May contain viruses.
  • ❌ Costs money (from 30)$ 100$).

It is better to spend time on official methods or consult specialists.

πŸ’‘

On Xiaomi with MIUI 14+, the only working ways are to restore via Mi Account or firmware in EDL Mode. Other methods either won’t work or will result in a complete lockdown of the device.

FAQ: Frequent questions about resetting your password on Xiaomi

Can I reset my password without losing data on the Xiaomi 13 Pro?
On the Xiaomi 13 Pro with MIUI 14, the only way to recover without losing data is through Mi Account. If the account is not tied or the password is forgotten, you will have to reset via Fastboot or EDL, which will delete all files.
What if after resetting via Recovery, the phone asks for an old password?
This means that the gesture.key file has not been deleted completely or the phone has enabled encryption. Try repeating the procedure or use ADB to delete locksettings.db.
How to bypass FRP on Redmi Note 10 after reset?
On Redmi Note 10, you can’t legally bypass FRP – you will need to enter data from the Mi Account that was tied to the phone. If the account is lost, contact Xiaomi with proof of ownership (check, box).
Does the method work with gesture.key removal on POCO F3?
On POCO F3 with MIUI 12.5+, this method only works if FRP is disabled. If the phone still asks for a password after deleting the file, try flashing it through Fastboot.
Can I unlock Xiaomi through Google Find My Device?
No, Google Find My Device doesn’t support unlocking Xiaomi, which only works on pure Android (like Pixel or Samsung).