Forgot the pattern lock combination on Xiaomi and can't unlock your phone? this problem is familiar to many Redmi users, POCO Or Mi. Graphic password is a convenient alternative PIN-And if you forget it, you get blocked from accessing the device, and fortunately, there are several formal and informal ways to reset the pattern lock without losing data or with minimal consequences.
In this article, we will analyze all current methods of unlocking: from recovery through the Mi Account to using the Recovery mode and the use of the system. ADB-It's important to remember that the efficiency of the method depends on the model of the phone, the version. MIUI And backups, for example, on new devices with MIUI 14+ Some life hacks have stopped working, but alternative solutions have appeared.
If you're looking for a way to get around the lock without resetting, you can immediately go to the Xiaomi account section. If your phone isn't connected to the Internet or you don't remember the Mi Account data, you'll have to consider hard reset or Fastboot. Don't worry, we'll explain each step in detail, including the possible risks and nuances for specific models.
Why is Xiaomiโs phone locked with a pattern lock?
A pattern lock is not just a lock screen decoration, it's a full-fledged security mechanism, and in MIUI, it's tied to system encryption, so getting the input wrong can have serious consequences.
- ๐ข Repeated mistyping: After 5-10 failed attempts, the system can lock the device for 30 seconds, then increase the waiting time to 5 minutes.
- ๐ฑ Resetting without turning off protection: If you reset your phone via Recovery but didnโt disable the pattern lock in advance, it may need to be rebooted again after you reboot.
- ๐ Update MIUI Error-prone: Sometimes, after updating the firmware, the system asks for an old graphical password, even if you have changed it.
- ๐ถ Children or Accidental Pressing: A frequent cause is a child or pet accidentally activating the lock.
On devices with MIUI 12 and later, Factory Reset Protection (FRP) has been added, which means that even after a Recovery reset, the phone may require you to enter data from the Mi Account that was previously linked, and if you don't remember the username/password, unlocking becomes more difficult.
โ ๏ธ Note: Some models (e.g. Redmi Note 10 Pro) POCO X3 Pro) after 30 failed attempts to enter the pattern lock, the phone can automatically erase all data (Auto-Wipe function.
Method 1: Unlocking through Mi Account (without data loss)
The safest method is to use a Xiaomi account, which works if:
- ๐ถ The phone is connected to the Internet (Wi-Fi or mobile data).
- ๐ Remember the username and password from Mi Account.
- ๐ฑ The device is enabled synchronization with the account.
Instructions:
- On the lock screen, enter the wrong pattern lock 5 times in a row.
- The message will appear โForgot the password?โ โ click on it.
- Select "Unblock with Mi Account".
- Enter your email/phone and password from your Xiaomi account.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
โ ๏ธ Note: If you have previously disabled sync with Mi Account in settings (Settings) โ Accounts. โ Mi Account โ Synchronization, this way won't work, and also on some firmware (e.g. Global). ROM for POCO F3) Additional confirmation may be required through SMS.
Check your internet connection|Make sure you remember the information from your Mi Account.|Have access to email/telephone 2FA|Charge your phone at least to the minimum. 30%-->
If your phone is not connected to the network, try:
- ๐ Connect to Wi-Fi via the Quick Settings Panel (if available on the Lock screen).
- ๐ถ Insert SIM-card with active tariff (mobile data can be turned on automatically).
What if you donโt get an SMS with a code?
Method 2: Reset the pattern lock via Recovery (with loss of data)
If you can't unlock your Mi Account, you'll have a hard reset, which will delete all the data on your phone, including photos, contacts and apps, and only use it as a last resort!
Step-by-step:
- Turn off the phone (press the power button for 10 seconds).
- Press the button combination to enter Recovery Mode: ๐ฑ For most models: Power button + Loudness up. ๐ฎ For Black Shark: The Power Button + Loudness up + Loudness down.
Recovery
Wipe Data โ Wipe All Data
Factory Reset
Confirm the action and wait for the reset to be completed.
Reboot
โ ๏ธ Attention: On devices with MIUI 13+ After the reset, you may need to enter data from the Mi Account that was previously linked (FRP-If you don't remember your username/password, the phone will turn into a brick. FRP.
๐ Important: On some models (e.g. Redmi) 9A or POCO M3) After resetting through Recovery, the pattern lock can be saved, in which case you will have to repeat the procedure or use the method. ADB.
| Method | Data loss | Mi Account | Required | Works without internet | Difficulty |
|----------------------|---------------|----------------------|------------------------|------------|
| Through the Mi Account. | No. | Yes. | No. | โญ |
| Recovery Mode | Yes. | Maybe (FRP) | Yes. | โญโญ |
| ADB | No. | No. | Yes. | โญโญโญ |
| Fastboot | Yes. | No. | Yes. | โญโญโญโญ |
| Service centre | Maybe. | No. | Yes. | โญโญโญโญโญ |
-->
Method 3: Delete the pattern lock via ADB (for advanced)
If you have debugging enabled USB (USB Debugging) and the phone is recognized by the computer, you can delete the pattern lock through ADB (Android Debug Bridge: This method saves data, but requires preparation.
What you need:
- ๐ฅ๏ธ Computer with Windows/Linux/macOS.
- ๐ USB-cable (preferably original).
- ๐ ๏ธ Installed drivers Xiaomi and ADB Tools.
Instructions:
- Connect the phone to the computer.
- Open the command prompt (cmd on Windows or Terminal on macOS/Linux).
- Enter the command to check the connection: adb devices If the phone appears in the list, 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: MIUI 14 and later, this method may not work because of the changed key storage structure:
adb shell su -c "rm /data/system/locksettings.db"(It requires root rights, which are not available on all devices.)
If ADB does not see the device:
- ๐ Reinstall Xiaomi drivers.
- ๐ Try another one. USB-cable.
- ๐ฑ Turn on Debugging. USB Developer settings (if the phone is not already locked).
๐ก
If you donโt have access to your computer but have another Android smartphone, you can try using the app. ADB AppControl from Google Play, which allows you to send ADB-commands directly from the phone OTG-cable.
Method 4: Bypassing FRP-blocking after reset
If after resetting via Recovery, the phone requires data from a Mi Account you don't remember, it's called FRP-There are a number of ways to get around it, but they require technical skills.
๐ง Method 1: Through the test menu (for the MIUI 12 and below)
- On the Mi Account Enter screen, click "Emergency Call".
- Dial ##4636## and the test menu will open.
- Go to Usage Statistics and select Settings.
- In the settings, turn off Factory Reset Protection (if there is one).
- Go back and restart the phone.
๐ง Method 2: Fastboot (requires an unlocked bootloader)
- ๐ฅ๏ธ Install the Mi Flash Tool.
- ๐ฅ Download the firmware for your model from the Xiaomi website.
- ๐ง Transfer the phone to Fastboot mode (clip the power supply) + Loudness down).
- ๐ฑ๏ธ In Mi Flash Tool, select the downloaded firmware and press Flash.
โ ๏ธ Attention: Bypass FRP On new devices (Redmi Note 12, Xiaomi 13), these methods are often blocked at the firmware level.
Method 5: Contact Xiaomi Service Center
If all of these methods didn't work, the official way to do this is to go to Xiaomi Service Center, which is the most reliable, but also the longest way.
- ๐ Documents: Take your passport and check/guarantee card (if the phone is guaranteed).
- ๐ฐ Cost: Unlocking a pattern lock without data reset can cost from 1000 to 3000 rubles (depending on the model).
- โณ Timeline: On average, 1-3 days (unless you need to order parts).
- ๐ Warranty: If the phone is warranty, unlocking is usually free.
๐ Where to look for service centers:
- ๐ Official website: mi.com/global/service.
- ๐ฑ Mi Community appendix (Service Centres section").
- ๐ Partner shops (for example, Svyaznoy, M. Video).
โ ๏ธ Warning: Avoid "gray" workshops that promise to unlock your phone in 5 minutes.Unqualified intervention can cause a memory module to break or lock IMEI, After that, the device will become unusable.
๐ก
An official service center is the only legal way to unlock if you do not remember the data from Mi Account and do not want to risk the data.
How to avoid pattern lock problems in the future
To avoid getting blocked again, follow these tips:
- ๐ Use the backup. PIN-code: B MIUI When creating a pattern lock, the system asks to set a backup PIN. Write it in a safe place (for example, in Google Keep or notebook).
- ๐ฑ Link Mi Account: Even if you donโt use Xiaomi, create an account and link it to your phone.
- ๐ Make backups regularly: Use Settings โ System system โ Backup or third-party services (Google Drive, Mi Cloud).
- ๐จโ๐ฉโ๐งโ๐ฆ Set up Child Mode: If children use the phone, turn on Parental Controls in the settings.
๐ก Useful life hack: In MIUI 14, you have Smart Unlock, which allows you to automatically disable the pattern lock in trusted places (such as at home or work). โ Lock screen โ Smart unlocking.
If you often forget passwords, consider alternative unlocking methods:
- ๐ Fingerprint or facial recognition (available on most Xiaomi models).
- ๐ Password of letters and numbers (more reliable than pattern lock).