The forgotten pattern lock on Xiaomi is one of the most common problems faced by users of the brand. According to service centers, about 15% of calls are related to unlocking the screen after unsuccessful attempts to enter a pattern, the situation is complicated by the fact that the manufacturer is actively implementing data protection features, and simply restarting the device does not help to bypass the lock, as it was on older versions of MIUI.
In this article, we will look at all the current ways to remove a pattern lock, from official methods using a Mi Account to technical solutions through Fastboot and Recovery modes. It is important to understand that the choice of method depends on the phone model, the firmware version and whether synchronization functions were previously enabled. For example, on devices with a Qualcomm Snapdragon chip (for example, Redmi Note 10 Pro or POCO X3 Pro), additional tools like EDL Mode are available, while on budget models with MediaTek processors (for example, Redmi 9A) options are limited.
Before you proceed to unlock, check if one of these scenarios is appropriate:
- π You remember the data from the Mi Account linked to the phone
- π± The device is debugging on USB (ADB)
- π§ There is access to a computer with installed Xiaomi drivers
- π¦ You are ready for a complete data reset (if other methods donβt work)
1 Unlocking through Mi Account (official method)
The most secure and recommended method Xiaomi uses is the use of a tied account Mi Account. It works on all devices with MIUI 10 and newer, but requires a stable Internet connection. If the phone is connected to a mobile network or Wi-Fi, after 5 failed attempts to enter the pattern lock, the button Forgot the password will appear.
Algorithm of action:
- On the lock screen, tap Forgot the password? (or Forgot pattern on English firmware).
- Enter the email or phone number associated with the Mi Account.
- Confirm the entrance through SMS-account code.
- Follow the system instructions to create a new pattern lock.
β οΈ Note: If two-factor authentication is enabled on the device (2FA), You will need to confirm via a backup email or Mi Security app on some models (e.g. Xiaomi). 12T) After unlocking, you may need to re-link the account.
Make sure your phone is connected to the Internet |Remember the email/number linked to Mi Account |You have access to a backup email for 2FA| Battery charge is enough for 10-15 minutes of operation
-->
2. Reset the pattern lock via ADB (for power users)
The Android Debug Bridge (ADB) method is suitable if the phone previously had USB Debugging enabled (Settings β About Phone β MIUI Version β 7 times tap to unlock the developer mode).
Tools required:
- π₯οΈ Computer with Windows/macOS/Linux
- π USB-cable (preferably original)
- π¦ Installed drivers Xiaomi and ADB Tools
Instructions:
- Connect the phone to your computer and open the command line (Win + R β enter cmd).
- Check the connection of the device command: adb devices The list should display your device.
- Delete the file with the pattern lock: adb shell rm /data/system/gesture.key
- Reboot your phone: adb reboot
Once you restart, the lock screen will disappear. PIN-code (on some firmware), use backup PIN, which you specified when setting up the pattern lock.
What if the ADB canβt see the device?
3 Unlocking via Fastboot (without data loss)
Fastboot mode allows you to bypass the pattern lock on devices with an unlocked bootloader (bootloader), which works on most Xiaomi models, but requires preliminary preparation. On devices with a locked bootloader (by default on all new phones), this method will not work without official unlocking through the Mi Unlock Tool.
Step-by-step:
- Turn off your phone. Press down Power + Volume to enter Fastboot.
- Connect the device to your computer and check detection: fastboot devices
- Download the firmware archive for your model from the Xiaomi Firmware Updater website.
- Remove the file persist.img from the archive and flash it: fastboot flash persist persist.img
- Reboot the phone: fastboot reboot
β οΈ Note: On some models (Xiaomi Mi) 11, Redmi Note 11 Pro+) After this procedure, you may need to re-activate the device through Mi Account. If the bootloader is blocked, try to flash persist.img lead to error FAILED (remote: 'Flashing is not allowed').
| Xiaomi model | Support for Fastboot | Requires unlocking of the loader |
|---|---|---|
| Redmi Note 10/10 Pro | Yes. | Not (if the bootloader is already unlocked) |
| POCO X3/X3 Pro | Yes. | Yes (default blocked) |
| Xiaomi 12/12 Pro | Partially (only persist) | Yes. |
| Redmi 9/9A/9C | Yes. | No (on old firmware) |
4. Reset settings via Recovery Mode (complete data cleanup)
If previous methods didn't work, there's a radical way to do it: hard reset through recovery mode, which will remove all data from the device, including photos, contacts and apps, and only use it as a last resort!
How to reset Xiaomi through Recovery:
- Turn off the phone. Press Power + Volume up until the Mi logo appears.
- In the Recovery menu, select the language (volume buttons) and confirm the choice with the power button.
- Go to Wipe Data β Wipe All Data.
- Confirm the reset by selecting Confirm.
- After you complete the process, select Reboot to System.
β οΈ Attention: On devices with MIUI 13 and later, after the reset, you may need to enter data from the previously associated Mi Account (Factory Reset Protection function). If you do not remember the username / password, the phone will turn into a "brick", in which case you will need official proof of ownership through the service center.
π‘
Before resetting via Recovery, try connecting your phone to your computer in MTP mode (if it is detected).You may be able to copy important files through Windows Explorer without even unlocking the screen.
5. Alternative methods for specific models
Some Xiaomi devices have unique unlocking features, such as:
- π± Redmi Note 8/8 Pro: On these models, you can bypass the pattern lock through EDL Mode (Emergency Download Mode) with the Mi Flash Tool. You will need an authorized Xiaomi developer account and a Deep Flash cable.
- π± POCO F1: The device supports unlocking through Test Point - physical closure of contacts on the motherboard for entering the computer. EDL.
For models with a MediaTek processor (for example, Redmi 9T, POCO M3) there is a SP Flash Tool, but its use requires firmware skills and can lead to a brick (breakdown) of the device if errors occur.
π‘
On MediaTek devices, never use firmware designed for Qualcomm models, and vice versa. This is guaranteed to bring the phone down!
6.How to avoid blocking in the future
To avoid the problem of a forgotten pattern lock again, follow these tips:
- π Use it. PIN-A code or password instead of a pattern lock is easier to restore through Mi Account.
- π§ Link your Google and Mi Account to your phone, even if you donβt plan to use Xiaomi.
- π Regularly back up through Settings β System and device β Backup.
- π₯οΈ Turn on Debugging. USB and keep a backup copy of the data through ADB backup.
On devices with MIUI 14, the Emergency Access feature (Settings β Password & Security β Emergency Access) is introduced, which allows you to add a trusted phone number to unlock. If you forget the pattern lock, the system will send a one-time code to the specified number.
You should also pay attention to the Smart Lock settings in Android, which allows you to automatically unlock your phone in trusted places (such as at home or work) or when connecting to trusted devices (such as the Mi Band smartwatch). β Password and security β Smart Lock.