How to change the pattern lock on the phone Xiaomi: 5 working ways

The pattern lock on Xiaomi smartphones is one of the most popular ways to protect data, but what if you forget it or want to update it? PIN-code or password, resetting a graphical pattern requires a special approach: MIUI This article will help you understand how to change the pattern lock to Redmi, POCO Mi in different situations – from a standard change through settings to an emergency reset via Recovery Mode.

We will look at all the current methods for 2026, including official ways from Xiaomi and workarounds for devices without a tied Mi Account. Particular attention will be paid to the nuances for new models (for example, Xiaomi 14 or Redmi Note 13 Pro+), where the procedure may be different from the older versions of MIUI 12-14. If you are afraid of losing data, do not worry: in most cases it can be saved.

1. Standard change of pattern lock through settings

The easiest way to change the pattern lock is to use the settings menu if you remember the current pattern.This method works on all Xiaomi devices with MIUI 10 and later, including the latest HyperOS updates (formerly known as MIUI 15).

Here's the step-by-step instruction:

  • πŸ“± Open the Settings app (cog icon on the home screen).
  • πŸ”’ Go to Passwords and Security (on some models – Screen Lock and Password).
  • πŸ“ Select Screen Lock and enter the current pattern lock.
  • πŸ”„ Press the pattern lock (or Pattern) and draw the new pattern twice for confirmation.
  • βœ… Confirm the changes with the button Ready or Save.

β˜‘οΈ Preparation for key change

Done: 0 / 4

If the menu does not have a pattern lock option, you may have a different type of lock (PIN or password) installed on your device, in which case you first switch to the graphical pattern via Lock Type.

⚠️ Note: On HyperOS devices (e.g. Xiaomi 14 Ultra), the path may be different: β†’ Accounts and synchronization β†’ Lock the screen. If you can't find the section, search by settings (the magnifying glass icon at the top).

2. reset the pattern lock through the Mi (Mi Account) account

If you forget the graphics pattern, but the phone is tied to the Mi Account, you can restore access through the official Xiaomi service, which works even when the screen is locked, but requires a stable Internet connection (Wi-Fi or mobile data).

Instructions:

  1. πŸ”„ On the lock screen, click Forgot your password? (or Forgot your pattern lock?).
  2. πŸ“§ Select the recovery option via Mi Account and enter the linked email or phone number.
  3. πŸ” Confirm the entrance with the help SMS-account code.
  4. πŸ“± Follow the system instructions to create a new pattern lock.

Once you log in, the device unlocks, and you can install a new pattern, which doesn't result in data loss unless you reset through Recovery.

πŸ’‘

If the "Forgot Password?" button doesn't appear, try connecting your phone to charge and try again. On some models (POCO F5, Redmi K60) the option only appears after 5 failed attempts to enter the pattern.

Xiaomi modelSupports recovery through Mi Account?Is the Internet necessary?
Xiaomi 13/14 SeriesYes.Yes (Wi-Fi/LTE)
Redmi Note 12/13Yes.Yes.
POCO X5/F5Yes.Yes.
Redmi 10A/9A (older models)Yes, but you may need to update MIUI.Yes.
Devices without a tied Mi AccountNo.β€”

3. Reset the pattern lock via Recovery Mode (hard reset)

If you don’t remember the pattern lock and have not tied Mi Account, the only way to unlock your phone is through a hard reset via Recovery Mode, which will result in complete deletion of data (photos, contacts, messages), so use it only as a last resort.

Step-by-step instructions for discharge:

  1. πŸ”Œ Turn off the phone with a long press of the power button.
  2. πŸ”„ Press the button combination to enter Recovery: For most models: Volume up + Food. POCO M6 Pro, Redmi Note 13: Volume up + Loudness down + Nutrition.

Recovery

Wipe Data

Wipe All Data

βœ… Confirm the action and wait for the process to be completed (5-10 minute).

Reboot

⚠️ Note: New devices (Xiaomi 14, Redmi Turbo 3) may require data entry from the Mi Account that was previously linked (even if you don't remember it) after a reset (FRP). Without access to your account, your phone will become a brick".

What to do if you need a Mi Account after resetting?
If the phone requests data from Mi Account after the reset and you do not remember them, contact Xiaomi support with proof of purchase (check, box). In some cases, you can unlock the device through an official service center, but this is a paid service (from 1000 to 3000 rubles depending on the model).

4.Use ADB to reset the pattern lock (for advanced users)

If the phone has USB debugging enabled and it has been connected to the computer before, you can delete the pattern lock via ADB (Android Debug Bridge), a method that does not cause data loss, but requires technical skills.

Instructions:

  1. πŸ–₯️ Connect your phone to your PC through USB-cable.
  2. πŸ“‚ Open the command line (Windows) or the terminal (Mac/Linux) and type in: adb shell 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 the reboot, the pattern lock will be reset, but traces of the old pattern may remain in the system.

If you often forget passwords, consider using Smart Lock (automatically unlocking in trusted places, such as at home or work). β†’ Passwords and security β†’ Smart Lock.

FAQ: Frequent questions about changing the pattern lock to Xiaomi

❓ Can I change my pattern lock without losing data if I forget my old one?
Yes, if your phone is tied to Mi Account, use the Forgot Password option on the lock screen, if your account is not tied, you'll have to reset it through Recovery, which will delete all the data.
❓ Why does the phone ask for a Mi Account after resetting via Recovery?
This is Factory Reset Protection (FRP) that is activated on all Xiaomi devices with MIUI 9 and later. If you do not remember your account details, contact the service center with proof of purchase.
❓ Does the way with ADB New models (Xiaomi 14, Redmi Note 13)?
On HyperOS (MIUI 15), access to system files via ADB is limited. This method can only work if USB debugging was enabled before locking and the phone previously connected to this PC.
❓ Can I unlock my phone through Xiaomi Service Center?
Yes, but you will need to show a check or a box from the phone, the cost of the service is from 1000 rubles. In some cases, it may take a wait (up to 3 days) if you want to check the owner's data.
❓ How to turn off the pattern lock completely?
Go to Settings β†’ Passwords & Security β†’ Screen Lock, enter the current pattern, and select No or Swipe (swipe). Some models will need to enter a PIN or password first to confirm.