Forgot the pattern lock on Xiaomi: what to do and how to unlock the phone

Forgetting the pattern lock on a Xiaomi smartphone is a frustrating situation, but it is not a hopeless one. Even if you have entered the wrong pattern several times and the phone is blocked, there are official and informal methods of access restoration. The main thing is not to panic and not to try to guess the combination at random: after 5-10 unsuccessful attempts, the device may require entering a Mi Account or even lock up for 24 hours.

In this article, we will look at all the current ways to unlock Xiaomi, Redmi and POCO, from the simplest (via Mi Account) to the most complex (using ADB or Fastboot mode).

Warning: some methods require pre-preparedness (e.g., USB debugging enabled or a tied Mi Account). If you haven't done this beforehand, the options for unlocking will narrow. But even in the worst case, there is a way out - read on.

1 Unblocking through Mi Account (official method)

Xiaomiโ€™s most reliable and recommended method is to use a tied Mi Account, which works on all models (including the Redmi Note 12, POCO X5, Mi 11 and older devices) if:

  • ๐Ÿ”น The phone is connected to the Internet (via mobile network or Wi-Fi).
  • ๐Ÿ”น You remember the username and password from Mi Account (or you can restore them).
  • ๐Ÿ”น The device was not reset via Recovery after the last authorization.

If these conditions are met, after 5 failed attempts to enter the pattern lock, the system will offer the option "Forgot the password?".

  1. Enter the email or phone number associated with the Mi Account.
  2. Confirm the login via SMS or email (if two-factor authentication is enabled).
  3. Create a new pattern lock or PIN-code.

โš ๏ธ Note: If you have previously disabled sync with Mi Account or performed a reset via Recovery, this method will not work.

๐Ÿ“Š What kind of Xiaomi phone is you?
Redmi (Series Note, K, A)
POCO (F, X, M)
Mi (11, 12, 13, etc.)
Black Shark
Other

2.Use of the โ€œFind Deviceโ€ function

If your Xiaomi has Find Device enabled, you can unlock it remotely via a web browser, which works even if your phone is not currently connected to the Internet (the command will be executed the next time you connect).

Instructions:

  1. Go to i.mi.com and log in to your Mi Account.
  2. Select the locked device in the list (if there are several).
  3. Click on โ€œUnlock Deviceโ€ (Unlock Device).
  4. Confirm the action via SMS or email.

๐Ÿ”น Pros of the method: does not require data reset, works at a distance.

๐Ÿ”ธ Cons: Find the Device feature must be activated before locking.

๐Ÿ’ก

If you have photo sync enabled in Mi Cloud, check the Deleted Files folder after unlocking it โ€“ sometimes data is automatically restored.

3. Unlock through ADB (for advanced users)

The method is suitable if the phone is enabled debugging by USB (USB Debugging) and access to a computer. It's one of the few ways to get around a pattern lock without losing data, but it requires technical skills.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with installed Xiaomi drivers and tool ADB (You can download from the official website).
  • ๐Ÿ”Œ USB-cable (preferably original).
  • โš™๏ธ Included debugging by USB developer-setting.

Step-by-step:

  1. Connect the phone to the computer.
  2. Open the command prompt (CMD) in the ADB folder.
  3. Enter the command to check the connection: adb devices If the device is displayed, go further.
  4. Delete the file with the pattern lock: adb shell rm /data/system/gesture.key or for newer versions of Android: adb shell rm /data/system/locksettings.db
  5. Reboot your phone: adb reboot

โš ๏ธ Attention: On some firmware MIUI This method may not work because of additional security checks. If the key doesn't reset after the reset, try an alternative command:

adb shell am start -n com.android.settings/.ChooseLockGeneric

โ˜‘๏ธ Preparation for unblocking through ADB

Done: 0 / 4

4.Reset via Recovery Mode (Data Loss)

If previous methods failed, the radical method remains: hard reset through recovery mode (Recovery Mode), which will unlock the phone completely, but will delete all data, including photos, messages and installed applications.

How to perform the reset:

  1. Turn off the phone (press the power button for 10-15 seconds).
  2. Press the button combination to enter Recovery: For most models: Volume up + Power. For POCO F3/F4: Volume down + Power.

Recovery

Wipe Data

Wipe All Data

Reboot

โš ๏ธ Note: Phones with a bootloader blocked after reset may require authorization to the Mi Account that was previously linked. If you don't remember the account details, the phone will turn into a brickยป.

Xiaomi modelCombination for RecoveryIs a Mi Account Required After a Reset?
Redmi Note 10/11/12Volume up + NutritionYeah, if he was tied up.
POCO X3/X4/X5Volume up + NutritionYes.
Mi 11/12/13Volume up + NutritionYes (on global firmware)
Black Shark 4/5Loudness down + NutritionNo (on some firmware)

5. Unlock via Fastboot (for unlocked bootloader)

If your Xiaomi bootloader is unlocked, you can reset the pattern lock through Fastboot mode without completely clearing the data.This method is suitable for users who have previously officially unlocked the bootloader through the Mi Unlock Tool.

Instructions:

  1. Turn off the phone and put it in Fastboot mode (clip Volume Down + Power).
  2. Connect the device to your computer and open the command line in the folder with ADB.
  3. Check the connection: fastboot devices
  4. Run the command to delete the key: fastboot erase userdata or (for new versions): fastboot format userdata
  5. Reboot the phone: fastboot reboot

๐Ÿ”น Important: This method doesn't work on phones with a locked bootloader. If you don't officially unlock the bootloader, trying to execute the command will lead to an error.

What to do if the phone asks for an old password after reset?
This means that the device has enabled Factory Reset Protection (FRP) to get around it, you will need a login and password from a Google account that was linked to the phone before the reset. If you don't remember the data, restore it through the Google login page.

6. Contact the Xiaomi Service Center

If all independent attempts to unlock failed, the last option is to contact the official service center Xiaomi.

  • ๐Ÿ”ง Phone locked after failed reset.
  • ๐Ÿ”ง You donโ€™t remember your Mi Account or Google Account.
  • ๐Ÿ”ง Factory Reset Protection is enabled on the device (FRP).

What you need to unlock in the service:

  • ๐Ÿ“„ Document confirming the purchase (check, warranty card).
  • ๐Ÿ†” Passport of the owner.
  • ๐Ÿ“ฑ Phone box (preferably, but not necessarily).

โš ๏ธ Warning: Unofficial service centers may offer a โ€œbypassโ€ of locking through firmware, but this is fraught with risks:

  • ๐Ÿšซ Loss of guarantee.
  • ๐Ÿšซ Risk of installing unstable firmware.
  • ๐Ÿšซ Problems with banking applications (due to changes) IMEI or Serial Number).

The cost of official unlocking in the Xiaomi service varies from 1,000 to 3,000 rubles (depending on the model and the complexity of the case).

๐Ÿ’ก

The official service is the only legal way to unlock if you donโ€™t remember the data from Mi Account and canโ€™t use ADB/Fastboot.

7.How to avoid blocking in the future

To avoid the problem of a forgotten pattern lock, follow the following simple recommendations:

  • ๐Ÿ” Use it. PIN-code instead of a pattern lock, it is more difficult to forget.
  • ๐Ÿ“ Write backup of the key in a safe place (for example, in an encrypted file on your computer).
  • ๐Ÿ”„ Keep your important data synced regularly with Mi Cloud or Google Drive.
  • ๐Ÿ”ง Put the debugging on. USB (Settings โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to activate the developer mode).
  • ๐Ÿ“ฑ Link your Mi Account and enable the โ€œFind Deviceโ€ functionยป.

If you often forget passwords, consider using biometric unlocking (fingerprint or facial recognition). On modern Xiaomi models (such as the Redmi Note 12 Pro+ or Xiaomi 13T), the fingerprint scanner works quickly and reliably.

๐Ÿ”น Tip: In security settings (Settings) โ†’ Password and security) can be added to the reserve PIN-code that will be requested after 5 failed attempts to enter the pattern lock, which will save you from being completely blocked.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: You have USB debugging enabled (ADB method). You remember the data from Mi Account (Find device method). The phone unlocked bootloader (Fastboot method). In all other cases, you will need a reset that will delete user data.
What if the phone asks for an old Google password after reset?
This is Factory Reset Protection (FRP) -- anti-theft protection. To unlock your phone: Enter the email and password from the Google account that was linked to the device before the reset. If you don't remember the data, restore it through the Google Recovery page. If the account is deleted, contact the service center with the documents on your phone.
Does unlocking through Mi Account work on custom firmware?
No. If the phone has unofficial firmware installed (e.g. LineageOS, Pixel Experience), the Mi Account unlock function will be disabled, in which case only a Recovery or Fastboot reset (if the bootloader is unlocked) will help.
Can I bypass the pattern lock through the engineering menu?
No, the engineering menu (#4636## or #36446337##) does not provide access to the reset of the pattern lock. All such "life hacks" on the Internet are cheating or only work on very old versions of MIUI (until 2016).
How much does it cost to unlock in the Xiaomi service center?
The cost depends on the model and the reason for the lock: Redmi (budget models): 1000-1 500 rubles. POCO / Mi (middle segment): 1,500-2 500 rubles. Flagships (Xiaomi 13 Ultra, Black Shark): up to 3 000 rubles. The cost usually includes diagnostics and firmware (if required).