The forgotten pattern lock on Xiaomi's smartphone is a situation that even experienced users face. PIN-If you use a code or a password, it seems easy to remember, but that's what's often a cruel joke: your brain automates your finger movement, and you consciously make mistakes when you try to enter it. If you're in front of a locked screen, Redmi, Poco or Mi, don't panic. There are at least 5 working ways to get back access to your device.
Itβs important to understand that unlocking methods vary in complexity and consequences, some of which save data (e.g., through a linked Mi Account), others lead to a full Hard Reset, and in this article weβll look at all the current ways, from the safest to the most radical, and explain why some βpeopleβsβ tips (like repeatedly entering the wrong key) donβt work on modern MIUI firmware. If your phone is synchronized with the cloud, the chances of successful unlock without losing data are much higher.
Before you start, check:
- π Do you have access to a Mi Account that was linked to your phone?
- π± Is the device enabled debugging by USB (if so, the method with ADB work out).
- π Is the phone at least 30% charged (so as not to interrupt the reset process).
1 Unlocking with Mi Account (the safest way)
If your Xiaomi is tied to a Mi Account, itβs the most reliable and quickest way to get back access without losing data, and works on all models, including the Redmi Note 12, Poco X5, and Mi 11, provided that:
- π§ The phone is connected to the Internet (via Wi-Fi or mobile network).
- π Remember the username and password from Mi Account.
- π± The device is not disabled function Find the device in the account settings.
Instructions:
- On the lock screen, enter the wrong pattern lock 5 times in a row. You will see a message Forgot your password? or Unblock through Mi Account.
- Click on this label and enter details from your Mi Account (email or phone number + password).
- Confirm your login via SMS or email (if two-factor authentication is enabled).
- Follow the instructions on the screen to reset the pattern lock.
β οΈ Note: If you previously disabled Find Device in Mi Account settings, this method will not work. MIUI for the Chinese market (China) ROM) They can block the unlock through the account.
2.Use of Fastboot Mode (for advanced users)
The method through Fastboot is suitable if debugging is USB (USB Debugging) was enabled before blocking, or if you are ready to reset.This method requires a computer with Xiaomi drivers installed and the Mi Flash Tool or fastboot tool from Android. SDK.
What you need:
- π» Computer with Windows/Linux/macOS.
- π USB-cable (preferably original).
- π¦ Mi Flash Tool (download from the official website).
- π± Firmware for your model (e.g. Redmi Note 10 Fastboot) ROM).
Step-by-step:
- Turn off the phone. Press Volume down + Power for 10 seconds to enter Fastboot mode (the screen will appear a hare in a hat-eared).
- Connect your phone to your computer. Make sure the drivers are installed (Android Bootloader Interface should be displayed in Device Manager).
- Download and unpack the firmware for your model. flash_all.bat (for Windows or flash_all.sh (for Linux/macOS).
- Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
- Select Clean All (Full Reset) or Clean All and Lock (Reset) mode. + Lock the bootloader. Press Flash.
- Wait for the process to be completed (5-10 minutes) and the phone will reboot with factory settings.
Download the Mi Flash Tool|Install Xiaomi drivers|Download the firmware for your model|Charge your phone at least 50 times%|Prepare. USB-cable-->
β οΈ Note: Fastboot removes all data on your phone, including photos, messages and apps, if the device has been encrypted (Security settings) β Encryption, after resetting the phone may require the entry of the old password - in this case, only flashing through the phone will help. EDL (emergency).
3. Unlock via ADB (if USB debugging is enabled)
If your Xiaomi has been activated before the lock USB (USB Debugging in the developer settings, you can delete the file with the pattern lock through ADB It works on most models, including Poco. F4, Redmi K50 Mi 11 Lite.
Instructions:
- Connect your phone to your computer via USB. The lock screen will see a request for debugging permission β confirm it (if the phone requests unlock, this method will not work).
- Open the command prompt (Windows) or terminal (Linux/macOS) and type:
adb shell
su
rm /data/system/gesture.key
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
reboot- The phone will reboot. Once turned on, the pattern lock will be reset, but the data will remain intact.
πΉ Note: On some firmware MIUI 14 The path to the key files may be different. If the command doesn't work, try it:
rm /data/system/lockpattern.keyβ οΈ Note: If the phone is encrypted, deleting the key files can damage user data (photos, messages and apps will become unavailable.
π‘
Before use ADB Check if the device in the system is determined by the adb device command. If the list is empty, install drivers or try another one. USB-cable.
4.Reset via Recovery Mode (Hard Reset)
Hard Reset is a universal unlocking method that works on all Xiaomi devices, but results in complete data loss.It is worth using if other methods are not available (for example, there is no tied Mi Account or debugging over USB is disabled).
How to reset:
- Turn off the phone. Press the button combination: For most models: Volume up + Power. For Poco X3, Redmi Note 9: Volume up + Volume down + Power.
Mi
Recovery Mode
Wipe Data
Yes
Reboot
| Xiaomi model | Combination for Recovery | Features |
|---|---|---|
| Redmi Note 11/12 | Volume up + Nutrition | The menu is in English and supports sensory input. |
| Poco F3/F4 | Volume up + Nutrition | Recovery may require you to enter a Mi Account password. |
| Mi 10/11 (China) | Volume up + Volume down + Nutrition | The menu is in Chinese, use volume buttons to navigate. |
| Redmi 9A/9C | Volume up + Nutrition | There may be delays in selecting menu items. |
β οΈ Note: Some models (e.g. Xiaomi) 12T or Redmi K60) Recovery reset may require you to enter data from Mi Account even after reset (FRP), which locks the phone after reset if it was linked to the account.
π‘
Hard Reset deletes all data, including photos, contacts and apps, and if the phone has been encrypted, you may need a password from your old account after reset.
5 Unlocking through Xiaomi Service Center
If the independent attempts have not been successful, the official service center of Xiaomi can help unlock the device.
- π You donβt remember the data from your Mi Account.
- π± Phone locked after failed firmware.
- π§ The device has broken screen or buttons (not possible to enter the key).
What will be required:
- π Documents confirming the purchase (check, warranty card).
- π Passport of the owner (to confirm ownership).
- π³ Payment for the service (on average 1000-3000 rubles, depending on the model and the reason for the lock).
πΉ How to Find a Service Center:
- Go to the Xiaomi Service website.
- Choose a country and a city.
- Check the reviews about the center (some informal services may offer "unlock" with a loss of warranty).
β οΈ Note: Unofficial workshops often use the method EDL (Emergency mode) which may result in the blocking of a Mi Account or loss of a Mi Account IMEI. Xiaomiβs official centers guarantee the safety of data (if possible) and do not violate the warranty.
What if the service center refuses to unlock the phone?
Alternative methods (with limitations)
There are dozens of βfolkβ ways to unlock online, but most of them are either outdated or only work on older versions of MIUI.
Method 1: Calling a locked phone
- π Call the locked phone from another device.
- π Take the call, then quickly go to Settings. β Security β Lock the screen and disable the pattern lock.
πΉ Does it work? MIUI 12/13/14 This method is blocked - during the call access to settings is limited.
Method 2: Emergency call mode
- π¨ On the lock screen, press the emergency call.
- π’ Enter any number (e.g. 112) and quickly press the Back button 5-10 times.
- π± Sometimes this opens up access to the system interface for 1-2 seconds (you need to have time to go to the settings).
πΉ Does it work? New firmware doesn't work. MIUI 10 and older could work on some models.
Method 3: Delete files via TWRP
If the phone has a custom TWRP recap, you can manually delete the key files:
- Sign in to TWRP (button combination depends on the model).
- Go to Advanced β File Manager.
- Delete files: /data/system/gesture.key /data/system/locksettings.db
Reboot the phone.
πΉ Does it work? Yes, but only if it works? TWRP It's already installed. It's not applicable on stock firmware.