Graphic password on Xiaomi: how to put, change and reset the lock pattern

Introduction: why you need a graphical password on a Xiaomi smartphone

A pattern lock is one of the most convenient ways to protect a Xiaomi, Redmi or POCO smartphone from unauthorized access. Unlike a PIN- code or fingerprint, the lock pattern combines ease of use with visual memory. You just swipe your finger across the screen, connecting the dots in a predefined sequence, and the phone unlocks in a fraction of a second.

But there's a downside to this: if the pattern is too simple (like a straight line or an "L"), it's easy to peek at or guess. And if you forget the combination, it's harder to unlock than when you use the PIN- code. In this article, we'll go into detail on how to put a graphical password on Xiaomi, customize it to your needs, and what to do in emergency situations, from reset to restore access.

It’s important to understand that the procedure may vary slightly depending on the version of MIUI (e.g. MIUI 12, MIUI 14, or HyperOS) and the smartphone model, but the overall algorithm has been the same for many years, and we’ll look at the generic steps that will suit most of the brand’s devices.

Preparation: What to Know Before Setup a Graphic Password

Before you start installing a pattern lock, make sure your Xiaomi smartphone meets a few basic requirements:

  • πŸ“± Version MIUI is at least 9. On older firmware, the interface of settings may differ, and some features (e.g., pattern backup) may not.
  • πŸ”‹ Battery charge of at least 20%, which will prevent the device from suddenly shutting down during setup.
  • πŸ“Ά A stable Internet connection (preferably over Wi-Fi) is required to synchronize the Mi Account, which will be useful when you restore access.
  • ✍️ A stored PIN- code or password. The pattern lock is always installed over another unlock method (e.g., a digital code). This is a security requirement MIUI.

If you're setting up a lock for the first time, the system will suggest you choose the primary method of protection. The graphic password cannot be set as the only way to unlock it, you'll need a backup PIN or password, so that you can log in even if you forget the pattern.

⚠️ Warning: If you haven't previously linked your Mi Account to your phone, do so before you set your graphical password. Without a linked account, it's extremely difficult to reset the pattern when you lose it, you'll need to completely reset your lost data settings.

πŸ“Š What unlock method do you use on Xiaomi?
Graphic password
PIN-code
Fingerprint.
Facial recognition
Password.
I don't use a lock.

Step-by-step: how to put a graphical password on Xiaomi

Now, to the main thing, you need to install the pattern lock.

  1. Open Settings (the gear icon on the desktop or in the application menu).
  2. Scroll down and select the Lock Screen section (in some versions of MIUI – Lock and Protect).
  3. Slip on the line Screen Lock Type (or Password & Security β†’ Lock Type in HyperOS).
  4. Enter the current one. PIN-code or password (if already installed).
  5. Select the Pattern option (or the Graphic Password in older versions).
  6. A 9-dot grid will appear on the screen. Swipe your finger across the screen, connecting at least 4 dots (more) and repeat the pattern twice for confirmation.
  7. Click Ready or Confirm.

The system may suggest adding a backup PIN- code (if it is not already available) or linking Mi Account to restore access.

β˜‘οΈ What to check after setting a graphical password

Done: 0 / 4

If you want to make the pattern more reliable, avoid obvious combinations:

  • 🚫 Simple letters (C, M, Z).
  • 🚫 Straight lines or diagonals.
  • 🚫 Popular symbols (heart, arrow, star).

⚠️ Warning: On some Xiaomi models (e.g. Redmi Note 10 Pro or POCO X3 Pro) after 5 failed attempts to enter the pattern, the system temporarily blocks unlocking for 30 seconds. If you forget the password, do not try to guess it by brute force - this will only make the situation worse.

How to Change or Delete a Graphic Password on Xiaomi

If you're bored or you don't think it's reliable enough, you can change it or you can turn it off.

  1. Go to Settings β†’ Lock screen β†’ Screen Lock type.
  2. Enter your current graphical password (or backup PIN).
  3. To change the pattern, select the Pattern and go through the adjustment procedure again.
  4. To remove your graphical password, select another blocking method (such as a PIN or Password) and confirm the changes.

If you want to completely disable the screen lock, select the option No or Swipe (swipe).However, we do not recommend this - without protection, your data will be vulnerable to theft or accidental access.

Action.Is a backup PIN required?Synchronization with Mi Account
Change the graphical passwordYes.Not necessarily.
Delete the graphical passwordYes.Not necessarily.
Disable the lock completelyYes (if it was previously established)It doesn't.
Reset password through Mi AccountNo.I'll be sure.

On HyperOS models (such as Xiaomi 14 or Redmi K70), the path to settings may be slightly different: Settings β†’ Password and security β†’ Type of screen lock.

πŸ’‘

If you often forget passwords, write backup PIN- code in the password manager (like Google Password Manager or KeePass) or on paper stored in a safe place. Don't save it in notes on your phone!

What to do if you forget your graphical password on Xiaomi

The situation of forgetting the lock pattern is familiar to many. Fortunately, Xiaomi has several ways to restore access, from simple to radical. Let's take them in order:

Method 1: Unlocking through backup PIN- code

If you set up your graphics password with a backup PIN, after 5 failed attempts to enter the pattern, the system will prompt you to enter it. Just click on the Forgot the pattern button that appears? or Reserve PIN and enter the digital code.

Method 2: Recovery with Mi Account

If there is no backup PIN but the phone is linked to your Mi Account, follow these steps:

  1. After several failed attempts to enter the pattern, a button will appear: Forgot your password? (or Restore access).
  2. Select the option to Sign in via Mi Account.
  3. Enter the username and password from your Xiaomi account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

This only works when you have a stable Internet connection, so if your phone has a mobile Internet connection and Wi-Fi disconnected, use another method.

Method 3: Reset via Mi Cloud (remote)

If your phone is lost or stolen and you want to lock it or erase your data, do the following:

  1. Go to i.mi.com from a computer or other device.
  2. Sign in with your Mi Account.
  3. Select the device from the list of devices.
  4. Press Find the device. β†’ Erase the data.

This method will completely remove all data from your phone, including photos, contacts and apps. Use it only as a last resort!

Method 4: Hard Reset (total reset)

If no other method has worked, it will only be a hard reset to factory settings, which will remove all data from the phone, so only use this method if the device does not have important information or you have made a backup.

Instructions for most Xiaomi models:

  1. Turn off the phone.
  2. Press and hold the Power + Volume buttons up until the Mi logo appears.
  3. From 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.
  5. After the process is complete, select Reboot.

⚠️ Warning: Some models (e.g., POCO F3 or Redmi 9T) may require additional confirmation via Mi Account even after a reset. This is a feature called Mi Cloud Lock, which protects the device from theft. If you don't remember your account details, it will be impossible to unlock your phone without contacting a service center.

What if your phone needs an old Mi Account after a reset?
If you bought the phone with your hands and the previous owner did not untie his Mi Account, the device may remain locked even after the reset.In this case, contact the official service center Xiaomi with documents confirming the purchase.

Additional security settings for graphical password

To make the pattern lock even more reliable, use the additional features of MIUI:

  • πŸ”’ Hiding notifications on the lock screen. Go to Settings β†’ Notifications β†’ On the lock screen and select Do not show content.
  • πŸ•’ Autolock. Set minimum time to automatically lock the screen: Settings β†’ Lock screen β†’ Autolock (recommended 15-30 seconds).
  • πŸ“± Double tap to wake up. Enable this feature in Settings β†’ Lock screen β†’ Double tap to wake up to quickly check notifications without unlocking.
  • πŸ‘οΈ Fingerprint scanner. Add fingerprint as an additional unlocking method: Settings β†’ Password and security β†’ Fingerprint.

Also, look at the Smart Blocker feature (Settings β†’ Applications β†’ Smart Blocker) that allows you to block individual applications with a password or pattern even if the main screen is unlocked, which is useful if you give a phone to children or colleagues, but want to hide access to banking applications or correspondence.

A new feature on HyperOS devices, Private Mode, allows you to create a separate secure profile with your own apps and data, to enable it:

  1. Go to Settings β†’ Privacy β†’ Private mode.
  2. Set a password or pattern to log into a private profile.
  3. Add apps that should be hidden in the main profile.

πŸ’‘

Use a combination of graphic password + fingerprint + private mode for maximum protection of confidential data.

Frequent errors and problems with the graphic password on Xiaomi

When using a pattern lock, users often face typical problems, and let's look at the most common and ways to solve them:

Problem.Possible causeDecision
The pattern is not accepted, although entered correctlyTouch screen is contaminated or damagedWipe the screen with a dry wipe. If the problem persists, check the sensitivity of the sensor in Settings β†’ Display β†’ Screen calibration.
After the MIUI update, the graphical password was resetFailure in the update processRestor access via Mi Account or backup PIN. If it doesn't work, reset.
Phone asks for password after reboot, although pattern setMIUI security feature requiring confirmation after restartEnter a backup PIN or password. You can't turn it off, it protects against bypassing the lock.
Fingerprint unlocking does not work after the pattern is installedConflict of Authentication MethodsRemove and add the fingerprint again to Settings β†’ Password and Security β†’ Fingerprint.

If after setting a graphical password, the phone started to slow down or react slowly to touch, try:

  • πŸ”„ Reset the device.
  • 🧹 Clear the cache in Settings β†’ Applications β†’ Application Management β†’ Settings (three dots) β†’ Clear the cache.
  • πŸ“‰ Disable animation: Settings β†’ About Phone β†’ Version MIUI (tap 7 times to turn on Developer Mode, then in Settings β†’ Additional β†’ For Developers, reduce the animation scale to 0.5x).

On some models (such as Xiaomi 13 Pro or Redmi Note 12) after installing HyperOS, the graphical password option may disappear, in which case update the firmware to the latest version or use alternative blocking methods (PIN or password).

Can I use a graphical password without a backup PIN- code?
No, MIUI requires you to provide a backup unlock method (PIN or password) before you install the pattern, so you can unlock your phone if you forget the pattern lock, except for HyperOS devices on some regional firmware, but you should also set up backups.
How many dots can you use in a graphical password on Xiaomi?
Minimum number of points is 4, maximum 9 (all points on the screen) The more points and the more complex the trajectory (for example, intersecting lines or zigzags), the more reliable the protection. However, do not make the pattern too complicated, otherwise you risk forgetting it yourself.
Can you see the pattern entered on the lock screen?
By default, MIUI hides the path of your finger to the points. However, you can set the settings to display the trail: Settings β†’ Lock screen β†’ Show the trace of the pattern. We do not recommend activating this option - it makes it easier to peek your password to outsiders.
What if your child locks the phone after playing with a pattern?
If your child has repeatedly entered the wrong graphical password, try: Wait for 30 seconds-1 minute (the system temporarily blocks input after several failed attempts). Enter a backup PIN- code (if installed). Restore access via Mi Account (internet required). If nothing helps, only a reset via Recovery. To avoid such situations in the future, set up Parental Control in Settings β†’ Applications β†’ Parental Control.
Is this guide suitable for Xiaomi tablets (like Pad 6)?
Yes, the process of setting a graphical password on Xiaomi tablets (such as the Xiaomi Pad 6, Pad 5 or Pad 6 Pro) is identical to smartphones. The path to settings is the same: Settings β†’ Lock screen β†’ Type of lock screen. The only difference is that tablets are more convenient to use more complex patterns because of the larger screen.