How to remove the lock from the Xiaomi phone, if you forgot the graphic password: the complete guide

Forgetting a graphical password on a Xiaomi smartphone is a frustrating situation, but it can be fixed. Even if you have never set up backup unlock methods, there are several official and informal methods to return access to the device. The main thing is not to panic and not try to guess the combination dozens of times in a row: after 5 unsuccessful attempts, the system can lock the phone for 30 seconds, a minute or even require you to enter data from your Mi Account account.

In this article, we will discuss all the current ways to unlock Xiaomi (including the Redmi models, POCO, Black Shark, from the simplest to the most technically complex. Important: some methods result in a complete data reset, so if a phone has critical files, try the options first without losing information. MIUI and type of lock (only a pattern lock or additionally linked) PIN-code).

1 Unlocking with Mi Account (the safest way)

If your Xiaomi is tied to your Mi Account and you remember the username and password, it’s the fastest and most secure way to get back access, and works on most devices with MIUI 10 and later, but may not be available if:

  • πŸ”Ή The phone is not connected to the Internet (Wi-Fi or mobile network).
  • πŸ”Ή You previously disabled sync with Mi Account in your settings.
  • πŸ”Ή The device was purchased from hand and not tied to your account.

To unlock the phone:

  1. On the lock screen, enter the wrong pattern lock 5 times in a row.
  2. The message will appear β€œForgot the password?” – click on it.
  3. Select "Unblock with Mi Account".
  4. Enter your email/phone and password from your Xiaomi account.
  5. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

If the system requests a confirmation code but the SMS does not arrive, check:

  • πŸ“Ά Network availability (try to connect to Wi-Fi).
  • πŸ“§ Spam folder in the mail.
  • πŸ”„ The ability to request the code again in 30 seconds.
πŸ“Š Your Xiaomi is tied to your Mi Account?
Yeah, and I remember the data.
Yeah, but I don't remember the password.
No, I never tied it.
I don't know, I need to check.

⚠️ Note: If you bought the phone with your hands, the previous owner may not have deleted his Mi Account.In this case, unlocking through the account is impossible - you will need to reset to factory settings (see section 3).

2.Use of the "Find Device" function

Xiaomi’s Find Device service not only tracks the location of a smartphone, but also remotely unlocks it.

  • πŸ“ The "Find Device" function was activated in the settings (Settings) β†’ Mi Account β†’ Find the device).
  • 🌐 Phone's connected to the Internet.
  • πŸ”‹ Battery level above 15%.

Instructions:

  1. Go to i.mi.com from a computer or other phone.
  2. Sign in with the same Mi Account as on the locked device.
  3. In the list of devices, select your Xiaomi.
  4. Click "Unlock Device" (the option may be called "Unlock").
  5. Confirm the action via SMS or email.

Once you unlock successfully, the phone will restart and you can set a new graphical password. If the "Unlock" option is inactive, then:

  • πŸ”Œ The device is not connected to the network.
  • πŸ”„ The "Find the Device" function is disabled in the settings.
  • πŸ“΅ Phone's off or discharged.

πŸ’‘

If unlocking through Find Device didn’t work, try sending the β€œMake it ring” command first – this will turn the phone on and connect it to the network if it was in sleep mode.

3. Recovery Mode reset (data loss)

If previous methods didn't work, you'll have to resort to a hard reset through Recovery Mode, which removes all data from your phone, including photos, contacts and installed apps, and only use it as a last resort!

Instructions for most Xiaomi models (Redmi Note 10, POCO X3, Mi 11, etc.):

  1. Turn off the phone with a long press of the power button.
  2. Press the button combination: πŸ”˜ Power button + Loudness up (for most models). πŸ”˜ Power button + Loudness up + Loudness down (for older devices, such as Redmi) 4X).

Mi

Recovery

Use volume buttons for navigation and power button to select the item.

"Wipe Data"

"Wipe All Data"

"Factory Reset"

"Confirm"

"Reboot"

"Reboot to System"

The phone will reboot and suggest that you configure it as new, and if you reset the system again requires you to enter a graphical password, then:

  • πŸ”’ The device has been enabled function FRP (Factory Reset Protection – you will need to enter data from Mi Account.
  • πŸ”§ The reset was incorrect (repeat the procedure).

⚠️ Note: On some models (Xiaomi Mi) A1/A2, POCO F1 With pure Android, the Recovery menu may be different. data/factory reset or β€œErase all data".

Turn it off. SIM-card and memory card (if any)

Charge your phone at least 30%

Prepare data from Mi Account (in case of FRP)

Make sure you know the button combination for your model-->

4. Unlock via Fastboot (for advanced users)

The method via Fastboot is suitable if:

  • πŸ”§ You have access to a computer with Xiaomi drivers installed.
  • πŸ”Œ You can work with the command line (CMD terminal).
  • πŸ“₯ The bootloader is unlocked on the phone (if not, the method will not work).

Step-by-step:

  1. Download and install Android SDK Platform Tools (or fastboot only for your OS).
  2. Turn off the phone and put it in Fastboot mode: Press the power button + volume down for 10-15 seconds.
  3. Connect your phone to your computer through USB-cable.
  4. Open the command line (CMD) in the folder with fastboot and execute commands in order: fastboot devices (should display the serial number of your device), fastboot oem unlock (if the bootloader is blocked, an error will appear - the method does not fit), fastboot erase frp (removes FRP binding if it interferes) fastboot reboot

If the lock is still locked after the restart, try resetting the data via Fastboot:

fastboot erase userdata


fastboot erase cache




fastboot reboot

This method does not work on devices with a locked bootloader (Bootloader Locked).To unlock the bootloader officially, you need to apply through the Xiaomi website and wait 7-30 days (depending on the model).

What is Bootloader and why is it blocked?
Bootloader is a low-level program that starts when you turn on your phone and determines which system to boot. Xiaomi locks the bootloader on most devices to protect against unauthorized access and install custom firmware. Unlocking is officially allowed, but requires confirmation through Mi Account and waiting (sometimes up to a month).

5. Alternative methods (for specific cases)

If the standard methods didn’t work, try these options:

MethodWhen it comesRisks.
ADB (Android Debug Bridge)If previously USB debugging was enabled (Settings β†’ For developers)It requires a PC and command knowledge. It doesn't work if the debugging is offline.
Bypass FRP through SIM-mapIf the phone asks for Mi Account data after reset (FRP)It doesn't work on all models. It requires an Internet SIM insert.
Special programs (Mi Flash, SP Flash Tool)To flash the phone from scratchHigh risk of bricking. It requires downloading the official firmware.
Contacting the service centerIf nothing helps or the phone is guaranteedSome centers require a check of purchase.

Let’s take a closer look at the ADB method (it works if USB debugging was enabled before blocking):

  1. Connect your phone to your PC via USB.
  2. Open the CMD and type in: adb shell rm /data/system/gesture.key reboot
  3. After the reboot, the graphical password will be reset.

To bypass FRP (if you ask for Mi Account after reset):

  1. Put it in. SIM-map.
  2. At the stage of entering the account, click "Add Network" (or "Emergency Call").
  3. Try to download via browser APK-circumvention FRP (for example, FRP Bypass.apk).
  4. Install and follow the instructions of the application.

⚠️ Attention: Use of informal circumvention tools FRP On new models (Redmi Note 12, Xiaomi 13), such methods are often blocked by updates.

6.How to avoid blocking in the future

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

  • πŸ” Use it. PIN-code instead of a pattern lock, it is more difficult to forget.
  • πŸ“ Write your password in a secure location (such as Google Password Manager or KeePass).
  • πŸ”„ Regularly sync your data with your Mi Account or Google.
  • πŸ“± Set up a Smart Lock (Settings) β†’ Lockdown and protection β†’ Smart Lock for automatic unlocking in secure locations (e.g. at home).
  • πŸ”§ Put the debugging on. USB (Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times press to unlock the developer mode, then turn on debugging).

It's also useful to know:

  • πŸ”‹ On Xiaomi phones with MIUI 12 and later, you can set up an emergency contact that can unlock the device through SMS (Option is in Settings β†’ Memory and backup copies β†’ Emergency data).
  • πŸ“‘ If you often forget passwords, use biometric unlocking (fingerprint or facial recognition) as your primary method.

πŸ’‘

The most reliable way to protect against blocking is a combination of PIN-code + biometrics + A pattern lock is convenient, but easier to forget than a digital password.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: πŸ”“ The phone is tied to Mi Account and you remember the login details. πŸ“Ά Device connected to the Internet (to unlock via Find Device). πŸ”§ The debugging was included. USB (method ADB). In all other cases, a reset will be required that will delete the data.
What if after resetting the phone asks for an old graphical password?
This means that the reset was incorrect. Try: Re-reset via Recovery (choose "Wipe All Data" instead of "Wipe Cache"), use Fastboot for full cleanup (fastboot erase userdata), reflash the phone with official firmware through the Mi Flash Tool.
How to unlock Xiaomi if you forget your graphical password and your Mi Account data?
In this case, only options with a complete reset remain: πŸ”„ Recovery Mode (Data Loss). πŸ–₯️ Fastboot (if the bootloader is unlocked). πŸ› οΈ If you have important data on your phone, try to remove the memory card (if it was installed) - files on it can be saved.
Do you have any Xiaomi unlock software (such as Mi Account Unlock Tool)?
Most of these programs are frauds, and Xiaomi does not officially provide tools to bypass locks without account data: πŸ’» Infecting a computer with viruses. πŸ”§ Permanently lock your phone (for example, due to incorrect firmware). 🚫 The only legal way to break the warranty is to unlock through Mi Account or reset.
Can I unlock Xiaomi via Google Account (like on older Android)?
No. Starting with MIUI 9 and Android 7.0, Xiaomi removed the ability to unlock through a Google account. Now it only works through Mi Account or reset.