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?".
- Enter the email or phone number associated with the Mi Account.
- Confirm the login via SMS or email (if two-factor authentication is enabled).
- 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.
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:
- Go to i.mi.com and log in to your Mi Account.
- Select the locked device in the list (if there are several).
- Click on โUnlock Deviceโ (Unlock Device).
- 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:
- Connect the phone to the computer.
- Open the command prompt (CMD) in the ADB folder.
- Enter the command to check the connection: adb devices If the device is displayed, go further.
- 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
- 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
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:
- Turn off the phone (press the power button for 10-15 seconds).
- 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 model | Combination for Recovery | Is a Mi Account Required After a Reset? |
|---|---|---|
| Redmi Note 10/11/12 | Volume up + Nutrition | Yeah, if he was tied up. |
| POCO X3/X4/X5 | Volume up + Nutrition | Yes. |
| Mi 11/12/13 | Volume up + Nutrition | Yes (on global firmware) |
| Black Shark 4/5 | Loudness down + Nutrition | No (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:
- Turn off the phone and put it in Fastboot mode (clip Volume Down + Power).
- Connect the device to your computer and open the command line in the folder with ADB.
- Check the connection: fastboot devices
- Run the command to delete the key: fastboot erase userdata or (for new versions): fastboot format userdata
- 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?
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.