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
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:
- π On the lock screen, click Forgot your password? (or Forgot your pattern lock?).
- π§ Select the recovery option via Mi Account and enter the linked email or phone number.
- π Confirm the entrance with the help SMS-account code.
- π± 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 model | Supports recovery through Mi Account? | Is the Internet necessary? |
|---|---|---|
| Xiaomi 13/14 Series | Yes. | Yes (Wi-Fi/LTE) |
| Redmi Note 12/13 | Yes. | Yes. |
| POCO X5/F5 | Yes. | Yes. |
| Redmi 10A/9A (older models) | Yes, but you may need to update MIUI. | Yes. |
| Devices without a tied Mi Account | No. | β |
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:
- π Turn off the phone with a long press of the power button.
- π 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?
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:
- π₯οΈ Connect your phone to your PC through USB-cable.
- π 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
- π 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.