How to remove a pattern lock from a Xiaomi phone: the full guide 2026

A forgotten pattern lock on Xiaomi can turn into a real headache, especially if the phone stores important data. PIN-If you have a code or a password, the lock pattern often seems more reliable -- until you forget the combination. Fortunately, the manufacturer has a number of ways to unlock it, and not all of them require a complete reset.

In this article, we will discuss 5 working methods for removing the pattern lock on Xiaomi, Redmi and POCO smartphones, from simple (using a Mi Account) to technically complex (via Fastboot mode). Importantly, the effectiveness of each method depends on the device model, the MIUI version and the availability of backups. For example, on new devices with MIUI 14+, unlocking through a call may not work, but alternatives have appeared through Find Device.

Before you start, check:

  • πŸ”‹ Battery level (minimum 30%, otherwise you risk getting a brick when resetting).
  • πŸ“‘ Availability of stable Internet (required for authorization in the Mi Account).
  • πŸ’Ύ Availability of a backup of data (if you plan to completely reset).

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 12/13
POCO X5/F5
Mi 11/12
Another model
I don't know.

1 Unblocking through Mi Account (the safest way)

If your Xiaomi has a Mi Account attached, the chances of unlocking the pattern lock without losing data are as high as possible, which works on most devices with MIUI 10 and later, but requires an internet connection.

Step-by-step:

  1. On the lock screen, enter the wrong pattern 5 times in a row and the message will appear: "Forgot the pattern lock?".
  2. Click on this caption and select "Unblock via Mi Account".
  3. Enter your username (email or phone number) and password from your Mi Account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

⚠️ Note: If you have previously disabled sync with Mi Cloud or have not confirmed your device in your account, this will not work, POCO F4 GT) Additional confirmation may be required through Find Device.

πŸ’‘

If you do not remember the password from Mi Account, restore it through the official website account.xiaomi.com. Use the attached email or phone number.

2. Reset the pattern lock via Find Device (Mi Cloud)

Find Device (located in the Mi Cloud) not only tracks your phone, but also resets your screen lock remotely, which is suitable if:

  • πŸ“± The device is connected to the Internet (via mobile network or Wi-Fi).
  • πŸ”„ Synchronization with Mi Cloud enabled.
  • πŸ”‘ You remember the data from the Mi Account.

How to do this:

  1. Go to i.mi.com and log in.
  2. Select your device in the list (if there are several).
  3. Click "Find the device" β†’ "Unlock the screen".
  4. Confirm the action via SMS or email.

After that, the pattern lock will be reset, but all data on the phone will be saved, but some firmware (for example, MIUI 13 Global) may require re-authentication in applications.

What if the Device can’t see the phone?
If the device is not displayed in Mi Cloud, check: - Is the Internet on the phone on (even if the screen is blocked, mobile data can work). - Is the synchronization in the settings turned off (path: Settings β†’ Mi Account β†’ Mi Cloud β†’ Synchronization). - Is the network settings reset (this disables remote management).

3. Unlock through Recovery Mode (with data loss)

If previous methods didn’t work, you’ll have to use hardware reset via Recovery mode, which removes all data from your phone, including photos, contacts and apps, so it’s only a last resort.

Instructions for Xiaomi/Redmi/POCO:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Hold the combination: πŸ”§ Loudness up + Food (for most models). πŸ”§ Loudness down + Meals (for food) POCO X3, Redmi Note 10).

Mi

Recovery

"Wipe Data"

"Wipe All Data"

"Confirm"

⚠️ Note: On new models (Xiaomi 13, Redmi Note 12 Pro)+) After reset, you may need to enter data from the previous Mi Account that was linked to the phone. This is a measure of protection against theft, so if you do not remember the username / password, it will be impossible to unlock the device without contacting the service center.

Make sure the battery is over 50 times charged%|Download a backup of data (if you have access to a PC)|Check the button combination for your model|Prepare. SIM-post-reset activation card-->

4.Use of ADB (for advanced users)

If the phone is debugging on USB (USB Debugging, you can delete the pattern lock through the command ADB. This method saves data, but requires pre-configuration.

What you need:

  • πŸ–₯️ Computer with installed ADB-Drivers (you can download from the official Android website).
  • πŸ”Œ USB-cable (original to avoid connection problems).
  • πŸ“± Included debugging by USB (If not activated in advance, the method will not work).

Step-by-step:

  1. Connect your phone to your PC via USB.
  2. Open the command line (Win + R β†’ enter cmd).
  3. Enter the commands in order adb shell su rm /data/system/gesture.key reboot

Once you reboot, the pattern lock will be reset, and if the su command doesn't work, then the phone doesn't have root rights, and this method won't work.

πŸ’‘

ADB-The method only works if the debugging USB It was turned on before you lock the screen. If you've never activated it, go to other ways.

5. Contact the Xiaomi Service Center

If none of these methods worked, the last option is an official service center.

  • πŸ”’ Phones with Mi Account lock (requires confirmation of original owner).
  • πŸ“± Devices that do not have Recovery or no access to ADB.
  • πŸ› οΈ Devices with damaged firmware after unsuccessful manipulations.

The cost of unlocking the service varies from 500 to 2000 rubles depending on the model and the complexity of the work, in some cases, you may need to provide a check or box to confirm ownership.

How to find the official Xiaomi service:

  1. Go to the Xiaomi support website.
  2. Choose a country and a city.
  3. Check the reviews about the service center (some informal workshops may offer a Mi Account bypass, but this violates the warranty).

Comparison of Unlocking Methods

MethodData retentionInternet is requiredDifficultySuitable for
Through the Mi Account.βœ… Yes.βœ… Yes.⭐All models with MIUI 10+
Find Device (Mi Cloud)βœ… Yes.βœ… Yes.⭐⭐Synchronization devices
Recovery (dumping)❌ No.❌ No.⭐⭐All models.
ADBβœ… Yes.❌ No.⭐⭐⭐Only with the debugging on.
Service centre⚠️ Depends on the problem.❌ No.⭐⭐⭐⭐Complicated cases (Mi Account Lock)

Frequent Mistakes and How to Avoid Them

When trying to unlock a pattern lock, users often face typical problems, and here are the most common ones and ways to solve them:

1. "Incorrect Mi Account Password After Reset"

If you reset your phone via Recovery, but once turned on, it requires you to enter data from an old Mi Account you don’t remember:

    2. "Phone not visible in Mi Cloud."

    Causes and solutions:

    • ☁️ Sync is disabled – if the phone is new, you may not have confirmed the device in the Mi Cloud.

    3. β€œADB not detects device”

    If the phone is not detected when connecting to the PC:

    • πŸ”Œ Check the cable (use the original cable).
    • πŸ–₯️ Install Mi drivers PC Suite from the official website.
    • πŸ”„ Restart your phone and PC.
    • πŸ› οΈ Turn it on. USB Debugging (if you have access to settings).

    Can you unlock Xiaomi without losing data if you have forgotten the pattern lock and no Mi Account tied?
    Unfortunately, without a tied Mi Account or enabled USB debugging (ADB), you can't save data when you unlock it. The only options are: Contact the service center (if the phone is warranty); Use Fastboot methods (requires technical skills and can lead to a "brick"). On new models (Xiaomi 13/14, Redmi Note 12), without an account, unlocking is almost impossible.
    Why does the phone ask for the old Mi Account password after resetting via Recovery?
    This is a protection against theft that has appeared in MIUI 12 and later: If the phone was linked to a Mi Account, after the reset, the system requires you to log in to the same account. Solutions: Restore access to the Mi Account via email or phone. If the account is not yours, provide proof of purchase (check, box) at the service center). ⚠️ Warning: Buying hands-on phones without decoupling from your previous account can lead to a complete lock on your device!
    Does unlocking via call work on Xiaomi?
    On older versions of MIUI (up to 10th) there was a bug that lets you bypass the pattern lock through an emergency call. Now this method does not work on most devices because of security patches. If you see instructions using: Calling ##7378423# is an outdated code for Sony, it will not work on Xiaomi. Going to settings through an emergency call is blocked on MIUI 11+. Don't waste time on these methods - they are not relevant for modern Xiaomi smartphones.
    Can I unlock the POCO X3 Pro without losing data?
    Nana POCO X3 Pro (as in other models) POCO/Redmi) Data storage is possible if: Mi Account is linked and confirmed (unlocked via Find Device). USB (ADB-If none of the conditions are met, you will have to reset through Recovery, which will result in complete deletion of the data.
    What if the phone doesn’t turn on after unlocking?
    If after manipulation (especially through Fastboot or Recovery) the phone does not load or hangs on the Mi logo, possible reasons are not available: πŸ”‹ Battery discharge – connect the charger and wait 10-15 minute. πŸ› οΈ Damaged firmware – requires flashing through the Mi Flash Tool. πŸ”§ Incorrect reset – try repeating the procedure or contact the service. ⚠️ Note: If the phone has turned into a hard brick, do not try to sew it yourself without experience - this can permanently disable the device!