How to remove the pattern lock on Xiaomi through settings: all working methods

Forgot the screen unlock combination on Xiaomi or Redmi?pattern lock is a handy alternative PIN-It's easy to forget, especially if you rarely unlock your phone. MIUI There are several ways to disable this protection without resetting to factory settings. In this article, we will discuss all the current methods of removing a pattern lock through system settings, including hidden Xiaomi features that not all users know about.

It's important to understand that the procedure differs depending on the version of MIUI (12, 13, 14 or HyperOS) and the device model. For example, on Poco F5 with Android 13, the path to security settings may differ from the Redmi Note 10 Pro with MIUI 12.5. We'll look at universal solutions, as well as nuances for specific firmware versions. If you've tried to enter the key more than 5 times and saw the message "Try again in 30 seconds," don't panic - it's standard match protection and can be circumvented by legal means.

Why the pattern lock may not be turned off through settings

Before we get to the instructions, let’s see why the standard Settings path β†’ Lock screen β†’ Lock type may not work. Here are the main reasons:

  • πŸ”’ Mi Account is connected to the device – Xiaomi requires you to enter a password from the account to change the security settings.
  • πŸ“± Custom firmware installed – informal builds (e.g. Pixel Experience) can block access to system settings.
  • πŸ”„ Update MIUI The scoring is after the scoring (for example, the scoring). MIUI 13 on HyperOS may be limited.
  • πŸ‘€ User profile is limited if the phone is used in Child-friendly mode or corporate profile.

If you encounter one of these issues, the standard way to disable the key will not work. In such cases, alternative methods will be required, which we will describe below. For example, for devices with a tied Mi Account, there is a workaround through Settings β†’ Accounts β†’ Mi Account β†’ Delete the account, but it is not available on all models.

πŸ“Š What Xiaomi model do you use?
Redmi Note 12/13
Poco X5/F5
Mi 11/12/13
Redmi 10/9
Another model

Method 1: Disable the pattern lock through the basic MIUI settings

This is the simplest method that works on most Xiaomi, Redmi and Poco devices with official firmware. Suitable for MIUI 12-14 and HyperOS.

  1. Unlock your phone in any way you can (fingerprint, face recognition, or other devices). PIN-code, if they're configured).
  2. Go to Settings β†’ Lock screen (on some models, the path may look like Settings β†’ Passwords and Security β†’ Lock screen).
  3. Select the screen lock type or lock screen protection.
  4. Enter the current pattern lock (if requested) or confirm the action through your Mi Account.
  5. In the list of available options, select No or Swipe (fingerwire).
  6. Confirm the changes by clicking Ready or Save.

If you require a password from your Mi Account at this point, but you don’t remember it, use the recovery instructions at the end of the article. Some devices (e.g. Redmi Note 11) may have a security alert that says you’re not safe, ignore it if you’re sure you’re up to it.

β˜‘οΈ Preparation for key disabling

Done: 0 / 4

Method 2: Use of Recovery Mode

If you can't unlock your phone in the standard way, but remember the data from your Mi Account, try resetting the pattern lock via Recovery Mode. This method doesn't cause data loss, but requires proof of identity.

  1. Turn off the smartphone with a long press on the power button.
  2. Press the Power Button and Volume Up (Loudness Down on some models) simultaneously until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data (don’t be afraid – it’s not a complete reset!).
  4. Next, go to Wipe Lock Settings or Delete Lock Data (the name may vary).
  5. Confirm the action and wait for the reboot.
  6. Once enabled, enter your Mi Account details to confirm ownership.

This method works on MIUI 13/14 and HyperOS, but may not be available on older firmware versions (before MIUI 12). If there is no Wipe Lock Settings option on the menu, then your model does not support this feature, in which case move on to the next method.

What happens if the Recovery Mode does not open?
If the button combination doesn’t work, try: 1. Connect your phone to charge and try again. 2. Use Power + Volume up + Volume down (for some Poco models). 3. Hold the buttons for at least 10-15 seconds. If the menu never appeared, it may be that the device has custom firmware with modified Recovery installed.

Method 3: Reset the pattern lock via ADB (for advanced users)

If previous methods failed and USB debugging was enabled before locking, you can delete the pattern lock via ADB (Android Debug Bridge), which requires a computer and minimal technical skills.

Step-by-step:

  1. Connect your phone to your PC through USB-cable (original or high quality).
  2. Open the command line (Windows) or terminal (macOS/Linux) 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
  3. After rebooting, the pattern lock will be reset, but may need to be entered PIN-password or code from your Mi Account.

If the su command is not working, then the device does not have root rights, in which case try an alternative without su:

adb shell


cd /data/data/com.android.providers.settings/databases




sqlite3 settings.db




update system set value=0 where name='lock_pattern_autolock';




update system set value=0 where name='lockscreen.lockedoutpermanently';




.quit




reboot

⚠️ Attention: Misuse of the right ADB If you are not sure about your actions, you should contact Xiaomi Service Center.

Comparison of methods of disabling the pattern lock on Xiaomi

To choose the best way, compare them by key parameters:

MethodUnlocking requiredLoss of dataDifficultySuitable for MIUI/HyperOS
Through settingsYes (print/PIN)No.Low.All versions.
Recovery ModeNo (but you need a Mi Account)No.MediumMIUI 13+, HyperOS
ADBNo (I need to debug on the USB)No.Tall.All versions.
Reset to factoryNo.Yes (full)Low.All versions.

As you can see from the table, the safest method is through MIUI settings, but it requires prior unlocking. If you don't remember any unlocking method (print, PIN, Mi Account), there's only a full reset that will delete all the data. For how to back up before reset, read the next section.

πŸ’‘

If you often forget the pattern lock, set up a backup PIN-code β†’ Lock screen β†’ This will unlock your phone even if you forget the main key.

How to avoid blocking in the future: tips for setting up security

To avoid the problem of a forgotten pattern lock again, follow these guidelines:

  • πŸ” Set up a backup. PIN-code - it will help unlock your phone if you forget the pattern lock. β†’ Lock screen β†’ Reserve password.
  • πŸ“± Use Smart Lock – the feature automatically unlocks the phone in trusted places (for example, at home or at work). β†’ Passwords and security β†’ Smart Lock.
  • ☁️ Link your Mi Account, which will allow you to restore access to the device even after you reset. Make sure that the email and phone in the account are up to date.
  • πŸ“ Write the key to a secure location, such as Google Password Manager, 1Password) or on paper (keep separate from the phone).

Also, look at face/fingerprint authentication settings. On Xiaomi, they often work in parallel with the pattern lock, but can be disabled separately. To check their status, go to Settings β†’ Passwords and Security β†’ Fingerprint or Face Recognition.

⚠️ Note: If you use a corporate profile (for example, through Microsoft Intune), the administrator can block the ability to disable the pattern lock. IT-department.

Restoring access to Mi Account to unlock

If the system requires data entry from your Mi Account but you don’t remember it, use the official recovery procedure:

  1. Go to account.xiaomi.com from another device.
  2. Click Forgot Password? and enter the linked email or phone number.
  3. Confirm your identity via SMS or backup email.
  4. Create a new password and use it to unlock your phone.

If you do not have access to the email/phone associated with your account, please contact Xiaomi with proof of ownership (check of purchase, box from the device, etc.) and the processing time is 1 to 5 business days.

πŸ’‘

The pattern lock on Xiaomi is tied to the Mi Account, so turning it off often requires proof of identity.If you don't remember your account details, restore them before the phone is unlocked.

FAQ: Frequent questions about the pattern lock on Xiaomi

Can I turn off the pattern lock without losing data?
Yes, if you remember the backup. PIN-code, data from your Mi Account or you have debugging enabled USB (method ADB). If none of this is done, you will have to do a complete reset, which will result in the deletion of all data.
What if after resetting the key, the phone asks for an old password?
It's a standard safety measure. MIUI. Enter any pattern lock (even the wrong one) 5 times in a row – the system will offer alternative ways to unlock (PIN, Mi-account).
Does the ADB work on all Xiaomi models?
No, the method only works if USB debugging was enabled before locking. HyperOS devices (2026) may have additional restrictions.
How to find out the MIUI version on a locked phone?
Reboot the device and, during the on-set phase (when the Mi logo appears), quickly press Volume up, in some cases, this will display information about the firmware version.
Can I bypass the pattern lock through the Xiaomi service center?
Yes, but only if proof of purchase (check, box, warranty card) is presented, the cost of the service is from 500 to 2000 rubles depending on the model, official centers do not work with devices purchased "by hand" without documents.