How to disable the pattern lock on Xiaomi: all ways to unlock

Introduction: Why a pattern lock can be a problem

The pattern lock on Xiaomi smartphones is a convenient way to protect data that allows you to quickly unlock the device by swiping your finger across the screen. However, even such a simple mechanism can turn into a serious headache if you forget the combination or the phone is locked after unsuccessful input attempts. According to statistics, about 15% of users have experienced a locked screen problem on Android devices at least once, and Xiaomi is no exception.

Complicating matters, the manufacturer is actively implementing additional security measures. For example, models with a Qualcomm Snapdragon processor (such as the Redmi Note 10 Pro or POCO X3 Pro) after 5 wrong attempts, the system may require a password from the Mi Account. And on devices with a MediaTek chip (such as the Redmi 9A), a full lock is sometimes triggered without the possibility of bypassing through standard methods. In this article, we will discuss all the current ways to unlock the pattern lock on Xiaomi in 2026, including official and alternative methods.

It is important to understand that the choice of method depends on several factors:

  • πŸ“± Phone model and version MIUI (On new firmware, some methods may not work)
  • πŸ”’ Having a linked Mi Account and access to a mail/phone for recovery
  • πŸ”§ Technical training (some methods require work with the ADB or Fastboot)
  • πŸ’Ύ Backup of data (most methods lead to loss of information)

If you're looking for a way to bypass a pattern lock without losing data, we're warning you that there are no such methods for modern versions of MIUI. All offers on the Internet about "magic programs" or "unlock codes" are fraud. The only legal way to save data is to remember your password or use official tools from Xiaomi.

πŸ“Š How often do you change your phone’s pattern lock?
Every week.
Once a month
Six months
Never change.
Forgot the current one.

Method 1: Unlocking with Mi Account (official method)

The easiest and safest way to unlock is to use a tied Mi Account, which works on all Xiaomi devices released after 2018 if:

  • πŸ“§ You have access to an email or phone linked to your account
  • 🌐 The phone is connected to the Internet (via Wi-Fi or mobile network)
  • πŸ”„ Find Device has been activated in the settings

Step-by-step:

  1. On the lock screen, tap the button Forgot the password? (or Forgot pattern? on English firmware).
  2. Select the recovery option through Mi Account.
  3. Enter your username (email or phone) and password from your account. If you do not remember your password, use the recovery function on account.xiaomi.com.
  4. Confirm the entry via SMS or email code.
  5. Follow the instructions on the screen to reset the pattern lock.

After successful authorization, the system will prompt you to create a new pattern lock or PIN-Please note: if you have previously enabled device encryption in your security settings, additional verification may be required.

Make sure your phone is connected to the internet

Know the username and password from Mi Account

Have access to email/phone to confirm

Check the battery power (minimum 30%)

-->

⚠️ Note: Some models (e.g. Xiaomi) 12T or Redmi K50) After unlocking through Mi Account, reset protection can work (FRP). In this case, you will need to re-enter account data when you first set up the phone.

Method 2: Recovery Mode (Data Loss)

If you don't have access to Mi Account or your phone isn't connected to the Internet, the only official way to unlock is to hard-reset through Recovery Mode, which removes all data from your device, including photos, contacts and installed apps. Use it only as a last resort!

Instructions for most Xiaomi models (including Redmi Note 11, POCO F4, Xiaomi 13 Lite):

  1. Turn off the phone with a long press on the power button.
  2. Press the Power button + Volume up simultaneously and hold for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select Wipe Data (use volume buttons for navigation and power button for confirmation).
  4. Confirm the reset by selecting Wipe All Data or similar.
  5. After the process is complete, select Reboot to reboot.

On new devices with MIUI 14 and above, the Recovery menu may be in Chinese, in which case, look for items with characters (clear data) and (confirm).

Xiaomi modelCombination for entering RecoveryFeatures
Redmi Note 10/11/12Food + Volume upMenu in English/Chinese
POCO X3/X4/X5Food + Volume upYou may need to connect to a PC
Xiaomi 12/13 SeriesFood + Volume upFRP protection after reset
Redmi 9/9A/9CFood + Volume upThe menu is in Chinese only.

⚠️ Note: On devices with MediaTek processor (e.g. Redmi) 10A or POCO C40) After resetting via Recovery, you may need to log in via Mi Account even if you don’t have a linked account previously.

πŸ’‘

If the phone needs to enter the old pattern lock after reset, try connecting to Wi-Fi and repeat the unlock procedure through Mi Account. Sometimes the system forgets about the reset and continues to ask for a password.

Method 3: Use ADB (for advanced users)

The Android Debug Bridge (ADB) method is suitable for those who have previously enabled USB debugging in the developer settings. If this feature was activated before locking, you can delete the pattern lock file via the command line. Importantly, this method does not work on MIUI 13/14 with data encryption enabled.

Step-by-step:

  1. Connect your phone to your computer through USB-cable.
  2. Open the command prompt (Windows) or terminal (macOS/Linux) and type: adb devices Make sure your device appears in the list.
  3. Enter the commands to delete key files: 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 reboottings.
  4. After rebooting, the pattern lock will be reset.

If the su command doesn't work, you don't have root rights on your device, in which case you can try an alternative method through ADB without root rights:

adb shell am start -n com.android.settings/.ChooseLockGeneric


adb shell input text 1234




adb shell input keyevent 66

This sequence is trying to establish a new PIN-Code 1234 (you can replace it with any other code).

What if the ADB can’t see the device?
1. Make sure that drivers are installed for your Xiaomi model (you can download it on the website). MIUI Downloads). 2. Try another one. USB-cable (preferably original). 3. Enable Charging Only mode and reconnect. 4. Some models need to pin the Volume down + Power when connecting to a PC to activate Fastboot mode, and then go to Recovery via the fastboot reboot recovery command.

Method 4: Unlocking via Fastboot (for tech-savvy)

The Fastboot method is suitable for devices that have a bootloader unlocked. This is a requirement for all modern Xiaomi smartphones, since the manufacturer blocks the bootloader by default. If you previously unlocked it through the official Mi Unlock Tool, you can try to flash a modified recovery (custom recovery) and delete the pattern lock.

Step-by-step:

  1. Download and install the Mi Flash Tool and Google’s Platform Tools.
  2. Turn off the phone and put it into Fastboot mode, clamping Power + Volume down.
  3. Connect the device to the PC and check its detection by the command: fastboot devices
  4. Download custom recovery (such as TWRP) for your model from twrp.me.
  5. Select the recovery team: fastboot flash recovery twrp.img fastboot boot twrp.img
  6. From the TWRP menu, go to Advanced β†’ File Manager and delete files: /data/system/gesture.key /data/system/locksettings.db
  7. Reset the device.

This method requires certain skills and can lead to a device breaking down if you do not do it correctly, and newer models (such as the Xiaomi 14 or Redmi Note 13 Pro+) can also work with anti-Rollback protection, which will lock the device when you try to flash the old firmware version.

πŸ’‘

Unlocking through Fastboot is only possible with a previously unlocked bootloader.If the bootloader is locked, this method will not work without official permission from Xiaomi.

Method 5: Contact Xiaomi Service Center

If all of these methods did not help or you are afraid to damage the device by self-manipulation, the most reliable option is to contact the official Xiaomi service center.

  • πŸ“± New flagship models (Xiaomi 14 Ultra, Redmi) K60 Pro) where the lock is connected to the hardware security module
  • πŸ” Devices with enabled data encryption (in this case, a self-reset will result in the loss of all files without the possibility of recovery)
  • πŸ“¦ Phones purchased abroad (can be tied to regional restrictions)

What you need to unlock in the service:

  • πŸ“„ Documents confirming the purchase (checks, warranty card)
  • πŸ”‘ Mi Account Account information (if an account was created)
  • πŸ’³ Payment for the service (cost varies from 500 to 2000 rubles depending on the model and complexity)

The average unlock time at the service center is 1 to 3 days. In some cases, engineers can save user data, but this depends on the model and firmware version. For example, on devices with a Qualcomm Snapdragon 8 Gen 2 chip (as in the Xiaomi 13 Pro), the chances of saving data are higher than on budget models with MediaTek Helio G.

⚠️ Warning: Avoid contacting unofficial service centers that promise to unlock your phone. 5 Often such "masters" use exploits that can leave backdoors in the system or damage the firmware. Official Xiaomi service centers in Russia can be found on the website. mi.com/ru/service/center.

Frequent Mistakes and How to Avoid Them

When trying to unlock a pattern lock on their own, users often encounter common errors that can make things worse, and here are the most common ones and ways to prevent them:

Mistake.Reason.Decision
"Command not allowed"Blocked bootloader or no root rightsUse official methods (Mi Account or reset)
"Device Not Found" at ADBDrivers not installed or cable is faultyInstall Mi PC Suite and try another cable
Phone asks for old key after resetIncomplete data resetting or active FRP-defenceComplete reset via Fastboot with fastboot erase userdata
Recovery menu in ChineseLocalization of firmware for ChinaLook for points by hieroglyphics or use an interpreter
"Mi Account locked"Repeated failed attempts to enterUnblock your account through Xiaomi’s website

Another common problem is losing access to Mi Account after resetting, if you don’t remember the attached email or phone, you can restore access through Xiaomi Support, but the process can take up to 7 days.

  • πŸ“„ Scans of documents confirming the purchase of the device
  • πŸ“± IMEI phone (can be recognized through a sticker under the battery or box)
  • πŸ” Last used passwords or information about payment methods associated with the account

If you plan to sell or transfer your Xiaomi to another person, be sure to untie Mi Account and perform a factory reset.This will save the new owner from unlocking problems. You can do this in the Settings menu β†’ Xiaomi Accounts β†’ Sign out.

Can I unlock Xiaomi without losing data?
No, on current versions of MIUI (12 and above), there are no legal ways to bypass a pattern lock without resetting data. All offers on the Internet about "saving information" are either fraud or methods that worked on old firmware (before 2019), the only official way to save data is to remember the password or use the associated Mi Account.
What to do if you forget your Mi Account password?
You can re-access Mi Account via account.xiaomi.com by selecting the option β€œForgot your password?”. You will need access to an email or phone associated with your account. If you do not remember any data, contact Xiaomi with the documents on your phone. Recovery time is from a few hours to 7 days.
Why does the phone ask for an old pattern lock after reset?
This is due to incomplete deletion of key files or activation of FRP (Factory Reset Protection) Solutions: Reset via Fastboot with fastboot erase userdata. Connect to Wi-Fi and try unlocking through Mi Account. If nothing helps, contact the service center.
Does the method work with a call to a locked phone?
No, the old trick of calling a locked phone and switching to settings through the call screen doesn't work on MIUI since version 9. This exploit was shut down in 2017. Modern firmware versions block access to any features of the phone without unlocking the screen.
Can I unlock Xiaomi through a computer without ADB?
Yes, but only if the phone has enabled Find Device in the Mi Account settings, in which case you can: Log in to i.mi.com. Sign in to your account. Select a locked phone and press Unlock Device. This method only works when the phone has an active Internet connection.