How to disable the pattern lock on Xiaomi Redmi: all working ways

Forgot the pattern lock on Xiaomi Redmi and can't unlock the phone? This problem is familiar to many users - just once enter the wrong pattern five times in a row, and the smartphone will lock for 30 seconds, and then even require you to enter your Mi Account. But what if you do not remember neither the password from the pattern lock nor the data from the Xiaomi account?

In this article, we will discuss 5 proven ways to remove the pattern lock on the Redmi Note 12/11/10/9, Redmi A2/A1, Redmi 13C/12C and other models - from a simple reset via Mi Account to complex methods using ADB and Fastboot. Each method is illustrated in detail and adapted to the latest versions of MIUI 14/15 (2026).

If you are in a hurry, use the fast navigation system:

1 Unlocking with Mi Account (the safest way)

If your Xiaomi Redmi is tied to your Mi Account and you have access to an email or phone number, this method will help unlock the pattern lock without losing data.+, Redmi 10A, POCO X5 others.

How it works: After 5 failed attempts to enter the pattern lock, the system will suggest unlocking the phone through Mi Account. If this option does not appear automatically, follow the instructions:

  1. On the lock screen, enter the wrong pattern 5 times.
  2. You'll see a message that says, "Forgot your pattern lock? Unlock it through your Mi Account," and click on it.
  3. Enter your username (email or phone) and password from your Xiaomi account.
  4. Confirm your login via SMS or email (if two-factor authentication is enabled).
  5. Create a new pattern lock or disable the lock altogether.

What to do if you don’t remember your Mi Account password?

  • πŸ”„ Restor access via account.xiaomi.com (click on Forgot Password?").
  • πŸ“§ Check the mail or SMS β€” It may have a recovery code.
  • πŸ›‘οΈ If your account is not yours (for example, a handheld phone), contact the previous owner or use other ways to unlock your account.

⚠️ Note: If the phone has Find Device enabled, location verification may be required after you unlock it via Mi Account. In this case, use your computer or other phone to log in.

πŸ“Š What Unlocking Method Have You Tried Before?
Mi Account
Reset via Recovery
ADB/Fastboot
I've been to the service.
Never blocked.

2. Reset the pattern lock via Recovery Mode (with loss of data)

If you don't remember Mi Account data or your phone isn't tied to your account, you'll have to use Recovery Mode, which will delete all the data (photos, contacts, messages) but unlock the device, which is suitable for Redmi on MIUI and HyperOS.

Instructions:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the power button + volume up until the Mi logo appears.
  3. In the Recovery menu, select the language (if there is one).
  4. Go to Wipe Data β†’ Wipe All Data (use volume buttons for navigation, power button for selection).
  5. Confirm the reset, wait for completion (5-10 minutes).
  6. Choose Reboot. β†’ Reboot to System.

Important: Some models (Redmi Note 11/12) may require re-authorization to Mi Account after reset, which is protection against theft. If you don't remember your account details, the phone will turn into a brick.

Turn off the phone from charging

Make sure the battery is at least 30% charged

Download Xiaomi drivers on PC (if you need Fastboot)

Remember the IMEI of your phone (on the box or under the battery)

-->

Xiaomi modelCombination of buttons for RecoveryIs a Mi Account Required After a Reset?
Redmi Note 12/11/10Food + Volume upYes (if tied up)
Redmi 13C/12CFood + Volume upNo (on HyperOS)
POCO X5/F5Food + Volume upYes.
Redmi A2/A1Food + Volume upNo.

⚠️ Note: On HyperOS phones (e.g. Redmi) 13C) After resetting via Recovery, the error "This device is locked" may appear.

3. Delete the pattern lock via ADB (without data loss)

If your Xiaomi Redmi is enabled debugging USB (USB Debugging, you can delete the pattern lock through ADB It's a data-free method. MIUI 12-15 and requires a computer.

What you need:

  • πŸ–₯️ Computer with Windows/Linux/macOS.
  • πŸ”Œ USB-cable (original, do not damage the port!).
  • πŸ“¦ Installed drivers Xiaomi and ADB Tools.

Step-by-step:

  1. Connect the phone to the computer.
  2. Open the Command Prompt (Windows) or Terminal (macOS/Linux) in the folder with ADB.
  3. Enter the commands in order: 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
  4. After rebooting, the pattern lock will be reset.

Challenges and solutions:

  • 🚫 "Device unauthorized" β†’ On the phone, confirm the debugging permission (if the lock screen allows you to debug).
  • πŸ”’ "Permission denied" β†’ Root rights are required (see section 4).
  • πŸ”Œ The computer can't see the phone. β†’ Install drivers from here.
What to do if ADB is not working?
If teams ADB If not executed, try: 1. Reinstall Xiaomi drivers manually through Device Manager (select "Mi" ADB Interface). 2. Use another USB-cable (preferably original). 3. Enable the option "Debugging by Debugging" in the developer settings USB (Security settings)" (if you have access to settings). 4. Try another computer (sometimes drivers conflict).

4. Unlock via Fastboot (for advanced users)

If ADB didn't help or USB debugging is disabled, you can try flashing your phone through Fastboot. This method is suitable for Redmi with an unlocked bootloader.

What needs to be done:

  1. Download the official firmware for your model from the Xiaomi website (choose the Fastboot version).
  2. Unpack the archive in folder C:\MIUI.
  3. Turn off the phone and press the power button + volume down to log in to Fastboot.
  4. Connect your phone to your computer and launch the file flash_all.bat (Windows or flash_all.sh (macOS/Linux).
  5. Wait for the firmware to be completed (10-15 minutes).

Warnings:

  • πŸ”“ If the bootloader is blocked, first unlock it through the official Xiaomi tool (you will need a Mi Account and wait 7-15 days).
  • πŸ“‰ Fastboot will delete all data, including photos in internal memory.
  • πŸ› οΈ On HyperOS models (e.g. Redmi) 13C) Additional unlocking may be required through EDL.

πŸ’‘

Before you run your Fastboot firmware, check the phone model with the fastboot getvar product command. Using firmware from another model will cause a breakdown!

5. Contact the Xiaomi Service Center (guarantee case)

If all of the above methods do not work, you can contact the official Xiaomi service center.

  • πŸ” Phone tied to someone else's Mi Account (bought from hand).
  • πŸ“± The error "This device is locked" appears on the screen after the reset.
  • πŸ› οΈ You are afraid to flash your phone through Fastboot.

What to bring with you:

  • πŸ“„ Passport (to confirm possession).
  • πŸ“¦ Phone box (if any).
  • πŸ’³ Check or warranty card (if the phone is guaranteed).

The cost of unlocking in the service:

  • πŸ†“ Free – if the phone warranty and lock occurred due to the fault of the system.
  • πŸ’° 1,000 to 3,000. β‚½ β€” If the warranty is over or the phone is out of hand.

⚠️ Warning: Don't go to informal workshops that promise to unlock your phone in 5 minutes without papers, and you're at risk of getting a device with damaged firmware or stolen data!

πŸ’‘

Xiaomi’s official service is the only legal way to unlock a phone with someone else’s Mi Account without losing warranty.

6. How to avoid blocking the pattern lock in the future

To avoid the issue of the blocked Xiaomi Redmi, follow these tips:

  • πŸ”‘ Use it. PIN-code instead of a pattern lock, it is more difficult to forget.
  • πŸ“ Write data from Mi Account to a secure location (for example, a password manager).
  • πŸ”„ Enable backup in Settings β†’ Google β†’ Backup.
  • πŸ›‘οΈ Turn off Find the Device if you sell the phone (otherwise the new owner will not be able to use it).
  • πŸ“± Activate Smart Lock – Unlock by Bluetooth device or location.

How to turn on Smart Lock on Xiaomi:

  1. Go to Settings β†’ Lock and Protection β†’ Smart Lock.
  2. Select β€œReliable Devices” and add your headphones or smartwatches, for example.
  3. Activate the "Reliable Places" option and specify your home address.

If you often forget passwords, install an app to manage them, such as LastPass or Keeper.

FAQ: Frequent questions about unlocking Xiaomi Redmi

❓ Can I remove the pattern lock without losing data?
Yes, if: You remember the data from Mi Account (method 1). The phone has enabled USB debugging (method 3 with ADB). In all other cases, the data will be deleted.
❓ What to do if you ask for an old Mi Account after a reset?
This is protection against theft. Options: Remember your account details (check your email for Xiaomi emails); appeal for Xiaomi with proof of purchase; flash your phone through Fastboot (mode 4), but that will delete all data.
❓ Why Recovery Entrance on Redmi is Not Working 13C?
On new HyperOS models, the button combination may be different: Try: Click power + volume up for 15 to 20 seconds; connect your phone to charge before entering Recovery; use the Mi Flash Tool for forced firmware.
❓ Can you unlock Redmi through your computer without ADB?
Yes, with Tenorshare 4uKey or Dr.Fone, they're paid, but they automate the process of removing the pattern lock. Risk: they can contain malicious code -- download only from official sites!
❓ How to find out if my bootloader is unlocked on my Redmi?
Turn off your phone and press the power + volume down to log in to the Fastboot. If the bottom of the screen says "Unlocked" - the bootloader is unlocked. If "Locked" - you will need official unlock through the Mi Unlock Tool.