Forgot the pattern key on your smartphone Xiaomi and canโ€™t unlock the screen? The situation is familiar to many - it is enough to enter the wrong pattern once, and the phone is blocked for 30 seconds, and then it completely requires you to enter your account Mi Account. But what to do if you donโ€™t remember either the key or password for your account? Donโ€™t panic: there are legal ways to remove the lock without contacting a service center.

In this article we will analyze 5 proven methods for unlocking Xiaomi (including models Redmi, POCO i Black Shark), from the simplest to the radical - taking into account versions MIUI 12โ€“14 i Android 11โ€“14. Important: some methods will lead to losing data, so first try the options without resetting the settings. If synchronization with Google or Mi Cloudis enabled on your phone, the chances of restoring contacts and photos after unlocking are higher.

๐Ÿ“Š What Xiaomi smartphone do you have?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Black Shark
Other

Before you begin, check:

  • ๐Ÿ”‹ Battery charge level (not lower than 30%, otherwise the phone may turn off in the process).
  • ๐Ÿ“ถ Availability of stable Internet (for methods with Mi Account or Find Device).
  • ๐Ÿ’ป Access to a computer (required for methods with ADB or Fastboot).
โš ๏ธ Attention: On phones Xiaomi s chip MediaTek (for example, Redmi 9A, POCO C31), unlocking via Fastboot may not be available without authorization. In this case, only methods with Mi Account or reset remain.

1. Unlocking via Mi Account (official method)

If an account is linked on your phone Mi Account and the function Find Deviceis enabled, this is the fastest and safest method. Suitable for most models Xiaomiincluding Redmi Note 10 Pro, POCO F4 i. others.

How it works:

  1. After 5 unsuccessful attempts to enter the pattern key, a button will appear Forgot your password?.
  2. Click on it and select Login via Mi Account.
  3. Enter your login (email or phone number) and account password Mi.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

If there are no buttons: Forgot your password? No:

  • ๐ŸŒ Go to the site i.mi.com from another device.
  • ๐Ÿ” Log in and select a blocked phone in the section Find Device.
  • ๐Ÿ”“ Click Unlock (unblock) and confirm the action.
โš ๏ธ Attention: If you have previously changed the firmware or disabled Find Device in the settings, this method will not work. Also Xiaomi you may request proof of identity (passport photo) if the device is suspected of being stolen.

โ˜‘๏ธ Preparing for unlocking via Mi Account

Completed: 0 / 4

2. Resetting the pattern key via ADB (without data loss)

The method is suitable if the phone is turned on USB debugging and there is access to the computer. Works on Xiaomi s Android 5.0โ€“11 (may not work on new versions due to security restrictions).

What you will need:

  • ๐Ÿ–ฅ๏ธ A computer with installed drivers ADB and Fastboot.
  • ๐Ÿ“ฑ USB cable (original to avoid connection problems).
  • ๐Ÿ”ง Utility ADB (can be downloaded from the official website Android Developers).

Step-by-step guide:

  1. Connect your phone to the computer and open the command line (Win + R โ†’ enter cmd).
  2. Enter the command to check the connection:
    adb devices

    If the device is displayed, proceed further.

  3. Delete the file from graphic key:
    adb shell rm /data/system/gesture.key

    or for new versions:

    adb shell rm /data/system/locksettings.db
  4. Reboot the phone:
    adb reboot

After the reboot, the graphic key will be reset, but all data on the phone will be saved. If the command does not work, try an alternative option:

adb shell

su

rm /data/system/gesture.key

exit

exit

โš ๏ธ Attention: On phones. s MIUI 12+ i Android 12+ this method is often blocked by the system. If the key remains after a reboot, try other methods.
๐Ÿ’ก

If the command adb devices does not find the device, try reinstalling the drivers or using another one USB port (preferably USB 2.0).

3. Unlocking via Fastboot (for advanced users)

The method is suitable if USB debugging is disabled, but there is access to the mode Fastboot. On Xiaomi phones with a Snapdragon processor (for example, POCO F3, Mi 11) this method works more stable than on MediaTek.

What need to do:

  1. Turn off the phone.
  2. Hold the buttons Power + Volume Downto enter Fastboot.
  3. Connect the phone to the computer and open the command line line.
  4. Enter the command to check the connection:
    fastboot devices
  5. Reset the lock settings (data will be deleted!):
    fastboot erase frp

    or for new models:

    fastboot erase userdata
  6. Reboot the phone:
    fastboot reboot

After reboot the phone will unlocked, but all data (photos, messages, applications) will be deleted. This method is similar to a factory reset, but it works even if the menu Recovery is locked.

Xiaomi model Supports Fastboot? Notes
Redmi Note 10/11 โœ… Yes Requires bootloader unlocking
POCO X3/X4 โœ… Yes Works stably on Snapdragon versions
Mi 11/12 โš ๏ธ Partially Mi authorization may be required Account
Redmi 9A/9C โŒ No MediaTek blocks commands without authorization
๐Ÿ’ก

Resetting via Fastboot deletes all data, but is guaranteed to unlock the phone, even if the password for Mi Account is forgotten.

4. Reset to factory settings via Recovery

If other methods did not help, there remains a radical method - hard reset. All data will be erased, but the phone will be unlocked. Suitable for all models Xiaomiincluding Redmi i POCO.

How to reset:

  1. Turn off the phone.
  2. Hold the buttons Power + Volume upto enter Recovery Mode.
  3. Use the volume buttons to navigate and select Wipe Data (or Factory Reset).
  4. Confirm the action (Yes).
  5. After resetting, select Reboot to reboot.

If the menu Recovery in Chinese:

  • ๐Ÿ” The third item from the top is Wipe Data.
  • ๐Ÿ” Confirmation - the first item in the menu that opens.
โš ๏ธ Attention: On some models (for example, Xiaomi 12T), the menu Recovery can be locked with a password. In this case, it will help. only Fastboot or service center.
What to do if after resetting the phone asks for the old password?

This means that the function is enabled Factory Reset Protection (FRP)To bypass it, you need to enter the data from the last synchronized one. Google account or Mi Account. If you do not remember them, you will need an official unlock through the service center.

5. Contacting the Xiaomi service center

If independent attempts are unsuccessful, you can only contact authorized service center. This is the only legal way to unlock your phone without losing data if:

  • ๐Ÿ” You do not remember the password for Mi Account.
  • ๐Ÿ“ฑ The phone is blocked after reset due to FRP.
  • ๐Ÿ› ๏ธ Model with chip MediaTek (for example, Redmi 9), where software methods do not work.

What is needed to unlock:

  • ๐Ÿ“„ Passport or other document confirming ownership of the phone.
  • ๐Ÿ’ณ Receipt or warranty card (if the phone is under warranty).
  • ๐Ÿ“ง Access to email associated with Mi Account (if any).

The cost of the service varies from 500 to 2000 rubles depending on the model and region. In some cases, the service center may offer free unlockingif the phone is under warranty and you confirm the purchase.

โš ๏ธ Attention: Do not contact unofficial workshops that promise unlocking "for 5 minutes." This may lead to loss of warranty or installation of unlicensed software.

How to avoid blocking in the future

To avoid encountering the problem of a forgotten pattern key again, follow these simple rules:

  • ๐Ÿ”‘ Use PIN code instead of a pattern key - itโ€™s easier to remember.
  • ๐Ÿ“ฑ Link your phone to Mi Account and turn on Find Device.
  • ๐Ÿ”„ Synchronize data regularly s Mi Cloud or Google Drive.
  • ๐Ÿ“ Write down the password in a safe place (for example, in a password manager).

You can also configure Smart Lock in the security settings so that the phone is automatically unlocked in trusted places (for example, at home or at work).

๐Ÿ’ก

In the settings Xiaomi you can enable the display of a hint for the pattern key. To do this, go to Settings โ†’ Screen lock โ†’ Password hint and enter a reminder text.

FAQ: Frequently asked questions about unlocking Xiaomi

โ“ Is it possible to unlock Xiaomi without losing data?

Yes, but only if it is turned on on your phone USB debugging and you can use ADB. In other cases, the data will be erased.

โ“ Why does the phone ask for the old password after resetting?

This is how the function works FRP (Factory Reset Protection). To bypass it, you need to enter data from the last synchronized account Google or Mi Account.

โ“ Does unlocking via Mi Account work on all models?

No. Some phones (for example Xiaomi 13 or POCO F5may require additional authorization, including sending a photo of the document.

โ“ Is it possible to unlock Xiaomi using Google Find My Device?

No, Google Find My Device does not support unlocking the pattern key on Xiaomi. Use only Mi Account or Find Device from Xiaomi.

โ“ How much does it cost to unlock at a service center?

The cost depends on the model and region. On average - from 500 to 2000 rubles. On warranty phones, unlocking can be free.