How to unlock Xiaomi phone if you forget your graphical password: the full guide

Forgetting a graphical password on a Xiaomi smartphone is a frustrating but fixable situation. Unlike iPhones, where unlocking without an Apple ID often requires a complete reset, Android devices (including Redmi, POCO and Mi) offer several alternative ways to restore access. The main thing is not to panic and not to try to guess the combination endlessly: after 5 failed attempts, the system can lock the phone for 30 seconds or longer, and in some cases, completely erase all data.

In this article, we will discuss 5 proven unlocking methods, from the safest (with data saved) to radical (full reset). Importantly, the effectiveness of the method depends on the phone model, the version of MIUI and whether previously activated features like Find Device or debugging USB. For example, on the Xiaomi 13 Pro with the latest firmware, some methods may not work due to enhanced protection, while on the Redmi Note 8 2021 even a reset via Recovery will suit.

Before you start, check:

  • πŸ”‹ Battery level (minimum 30%, otherwise you risk getting a brick").
  • πŸ“± Model phone (written on a box or under a battery if removable).
  • πŸ”‘ Is your Mi Account linked to your device (if so, the chances of unlocking without loss are higher).
πŸ“Š What kind of Xiaomi phone is you?
Redmi Note 10/11/12
POCO F3/X3
Mi 11/12/13
Redmi 9/9A/9C
Another model
I don't know.

1 Unlocking with Mi Account (the safest way)

If you have a Mi Account attached to your phone (even if you don’t remember the password), this method will unlock the device without losing data.Works on most models, except for some new ones (for example, the Xiaomi 14 with MIUI 15, which requires additional verification).

Instructions:

  1. On the lock screen, tap Forgot the password? (or Forgot pattern? on English firmware).
  2. Select Sign in via Mi Account and enter email/phone + password.
  3. If you have forgotten your password, use the recovery function at account.xiaomi.com.
  4. After successful authorization, the system will offer to reset the pattern lock.

Important: If the phone is not connected to the Internet (Wi-Fi or mobile network), this method will not work, and some firmware may require confirmation via SMS or backup email.

πŸ’‘

If you have two-factor authentication (2FA) in Mi Account, prepare backup codes or access to an authenticator application (Google Authenticator, Authy) in advance.

⚠️ Attention: On devices with MIUI 14+ After unlocking through Mi Account, you may need to re-enter your account password when you first turn on!

2. Use the Find Device function (remote unlock)

Find Device, which is the equivalent of Find iPhone, allows you to not only track your phone, but also unlock it remotely.

  • πŸ“Ά Phone's connected to the Internet (Wi-Fi/mobile).
  • πŸ”„ Find Device has been activated in settings (Settings) β†’ Mi Account β†’ Find Device).
  • πŸ”‘ You remember the data from your Mi Account.

How to unlock:

  1. Go to i.mi.com from a computer or other phone.
  2. Sign in with your Mi Account.
  3. Select the locked device in the list.
  4. Click Unlock Device (or Unlock Device).
  5. Confirm the action via SMS or email.

After that, the graphical password will be reset and the phone unlocked the next time you connect to the network.The data will be saved, but you may need to re-enter the password from Mi Account.

What if the Device can’t see the phone?
If the device does not appear in the list on i.mi.com, check: - Is the Internet on the phone (even if the screen is blocked, Wi-Fi can work). - Was not the Find Device manually disabled in the settings. - Was the phone settings reset to factory (this will untie it from the account).

3. Unlock via Fastboot (for advanced users)

If the previous methods did not work, and debugging USB (ADB) This is a method that was turned on before locking, and you can try unlocking your phone through Fastboot, USB-On devices with a locked bootloader (most new Xiaomi), this method will not work without unlocking the bootloader.

Step-by-step:

  1. Turn off the phone. Press the Power button + Volume down to enter the Fastboot Mode.
  2. Connect your phone to your PC via USB.
  3. Download and install Android SDK Platform Tools (or fastboot and adb only).
  4. Open the command line in the folder with fastboot and do:
fastboot devices

(Your phone should be displayed).

fastboot oem unlock

or (for some models):

fastboot flashing unlock

If the command is successful, the phone will reboot with reset settings (data will be deleted!). New devices (Xiaomi 12/13/14) may require pre-unlocking the bootloader through the official Xiaomi website (the process takes up to 72 hours).

⚠️ Attention: On some firmware MIUI After the command fastboot oem unlock the phone can go to mode EDL (In this case, you will need a special cable and firmware through the Mi Flash Tool - a risky procedure and is recommended only for experienced users.

4.Reset via Recovery Mode (Data Loss)

If other methods fail, it will be hard to reset through Recovery Mode, which will erase all data (photos, contacts, messages) but will return access to the phone, which is suitable for all Xiaomi models, including Redmi and POCO.

Instructions:

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 4
  1. Turn off the phone.
  2. Press the Power button + Volume up, hold for 10-15 seconds until the Mi logo and Recovery menu appear.
  3. Use volume buttons for navigation and power button for selection.
  4. Select Wipe Data β†’ Wipe All Data (or Factory Reset)
  5. Confirm the action (Confirm).
  6. After reset, select Reboot β†’ Reboot to System.

The phone will reboot in factory condition. The first turn on will require an initial setup, including the Mi Account binding (if the phone was previously tied, you may need to enter a password from the account to activate).

Model phoneCombination of buttons for RecoveryFeatures
Redmi Note 10/11/12Food + Volume upThe menu is in Chinese/English. Choose Wipe Data for reset.
POCO F3/X3Food + Volume upRecovery may require you to enter a password from Mi Account after resetting.
Mi 11/12/13Food + Volume upOn MIUI 14+, a reset can lock the phone before entering data from the Mi Account.
Redmi 9/9A/9CFood + Volume upSimple menu, reset takes 2-3 minutes.

5. Unlock via ADB (if debugging was enabled)

If you activated USB Debugging before blocking (Settings β†’ About Phone β†’ MIUI β†’ 7 taps by build number β†’ For developers β†’ Debugging by USB), you can delete the password file via ADB. This method saves data, but requires a computer and pre-preparation.

Steps:

  1. Connect your phone to your PC via USB.
  2. Open the command line in the adb folder and do:
adb shell


rm /data/system/gesture.key

(For new versions of Android):

adb shell


rm /data/system/locksettings.db




rm /data/system/locksettings.db-wal




rm /data/system/locksettings.db-shm

  1. Reboot the phone:
adb reboot

After the reboot, the graphical password will be reset. PIN-code (if it has been installed), use a backup PIN or the password from the Mi Account.

⚠️ Attention: On Android 11+ and MIUI 13+ This method may not work because of changes in the password storage system, so try to run the adb shell su command first).

What do you do if nothing helps?

If all of these methods fail, radical measures remain:

  • πŸ”§ Firmware through EDL (It requires a special cable and knowledge of working with the Mi Flash Tool!
  • πŸ› οΈ Contact the service center. Xiaomi official centers can unlock the phone on the documents (passport) + check), but it is a paid service (from 1000 to 3000 rubles).
  • πŸ“¦ Buying a new phone (unless the data is critical and the cost of repair exceeds the price of the device).

Before visiting the service, check:

  • A check or a warranty card (accelerates the process).
  • Phone condition (if the screen is broken, unlocking can cost more).
  • The model and firmware version (this will help the master to choose the right method).

πŸ’‘

If the phone was bought from hand and tied to someone else's Mi Account, official service centers will refuse to unlock without documents from the previous owner, in which case only firmware through EDL (with the risk of "bricking") remains.

FAQ: Frequent questions about unlocking Xiaomi

Can you unlock Xiaomi without losing data if USB debugging has been disabled?
No, if USB Debugging wasn't activated in advance, the only way to avoid losing data is to unlock it through Mi Account or Find Device. Otherwise, you'll need a reset that will delete all files.
Why does the phone ask for a password from Mi Account after resetting via Recovery?
This is Factory Reset Protection (FRP) that is activated if the phone was linked to a Mi Account. To unlock, you need to enter data from this account. If you do not remember it, restore the password on account.xiaomi.com.
Can I unlock Xiaomi through Google Account like I do on other Androids?
Most Xiaomi phones have the Google Account unlock option disabled, instead using Mi Account, with the exception of older models (until 2018) on pure Android, where recovery via google.com/android/find can work.
How much does it cost to unlock in the Xiaomi service center?
The cost depends on the model and complexity: Redmi Note 10/11, POCO X3: 1000-1500 rubles. Mi 11/12/13: 1500-2500 rubles (due to enhanced protection). Devices with damaged screen: +500-1000 rubles. In informal services, the price may be lower, but the risk of damaging the phone is higher.
Can I unlock Xiaomi if I forgot both the graphical password and the data from the Mi Account?
Technically yes, but with complete data loss Options: Reset via Recovery Mode (if not enabled) FRP-Firmware via Fastboot or EDL (It requires skills. It's almost impossible to access the service (the master can reset protection through special software.