How to remove the pattern lock from Xiaomi Redmi if you forget the combination: all working methods of 2026

Forgot the pattern lock on Xiaomi Redmi and can't unlock your phone? The situation is familiar to many: you put a simple pattern for convenience, and a month later your fingers draw it on the machine until you make a mistake three times in a row. Or worse, the phone was used by a child who "accidentally" changed the password. In this article, 5 working ways to unlock the lock, from the safest (without data loss) to radical (full reset). We tested each method on Redmi Note 10/11/12, Redmi 9/10, POCO X3/X4 with the latest versions of MIUI 14/15.

Important: Not all methods are suitable for Redmi with a locked bootloader. If you have never unlocked it through the Mi Unlock Tool, some instructions will be useless - we will warn you about this in advance. Also note that after a hard reset (via Recovery or Fastboot), all data on the phone will be deleted without recovery, if there was no backup in the Mi Cloud.

Before you start, check:

  • πŸ”‹ The battery level is at least 30%, and when discharged during the procedure, the phone can turn into a brick".
  • πŸ“Ά Wi-Fi or mobile Internet access. Some methods require a connection to the network.
  • πŸ–₯️ Availability of a computer (for methods with ADB or Fastboot).
  • πŸ”‘ Data from a Mi Account tied to your phone, and without it, unlocking will be more difficult.
πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
Redmi 9/10/9A
POCO X3/X4/X5
Redmi 8/8A
Another model

1 Unlocking through Mi Account (official method)

The easiest and safest method is to use a Xiaomi account, which works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ”‘ Remember the username and password from Mi Account.
  • πŸ”„ The phone is enabled sync with the cloud (usually active by default).

Instructions:

  1. On the lock screen, enter the wrong pattern lock 5 times in a row. the message "Forgot the password?" will appear - click on it.
  2. Select the option "Unblock through Mi Account".
  3. Enter the email or phone number associated with the account, then the password.
  4. Confirm the unlock through SMS-code (if two-factor authentication is enabled).
  5. Install a new pattern lock or PIN-code.

⚠️ Warning: If the phone is not connected to the Internet, this method will not work. MIUI 14+ You may need to confirm your Google Account (if you have added it).

πŸ’‘

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

2. reset the pattern lock via ADB (without loss of data)

The method is suitable for phones where debugging is included USB (USB Debugging) and access to ADB. This is a rare case, but if you’ve previously set up a phone for a developer or connected it to a computer, there’s a chance.

What you need:

  • πŸ’» Computer with Windows/Linux/macOS.
  • πŸ”Œ USB-cable (original, do not damage the port!).
  • πŸ“¦ Installed drivers ADB Fastboot (you can download it in Android) SDK).

Step-by-step:

  1. Connect your phone to your computer via USB.
  2. Open the command prompt (cmd on Windows or Terminal on macOS/Linux) in the adb folder.
  3. Enter the command to check the connection: adb devices If the phone appears in the list – go further.
  4. Delete the file with the pattern lock: adb shell rm /data/system/gesture.key
  5. Reboot your phone: adb reboot

After the reboot, the pattern lock will be reset, but all the data will remain in place. If the command does not work, try an alternative option:

adb shell


su




rm /data/system/locksettings.db




rm /data/system/locksettings.db-wal




rm /data/system/locksettings.db-shm




reboot

Install drivers ADB|Enable debugging on USB phone-on|Download platform-tools|Connect the original USB-cable|Check the connection of the adb device team-->

⚠️ Attention: Redmi with MIUI 13+ And with a locked bootloader, this method may not work because of security constraints. USB It was not turned on in advance, it will not be possible to connect to the phone.

3. Hard reset via Recovery Mode (will delete all data)

If previous methods failed, the radical method is to reset to factory settings via Recovery Mode, all data (photos, contacts, messages) will be erased, but the phone will unlock.

Instructions for Xiaomi Redmi:

  1. Turn off the phone with a long press of the power button.
  2. Press the button combination: πŸ”˜ Power button + Loudness up (for most models). πŸ”˜ Some of them. POCO β€” Power button + Loudness down.

Mi

Recovery

Use volume buttons for navigation and power button to select the item.

"Wipe Data" β†’ "Wipe All Data"

"Factory Reset"

Confirm the action and wait for the reset to be completed.

"Reboot"

After the reset, the phone will turn on as new. You will need to go through the initial setup, including the Mi Account binding.

What happens if the Recovery Mode does not open?
If the button combination doesn’t work, try: 1. Connect the phone to charge for 10 minutes, then try again. 2. Use another combination (e.g. Power + Volume up + Volume down at the same time). 3. Some Redmi models with MIUI 12+ may need to first pinch Volume up + Power, and after vibration release Power, continuing to keep Volume up.

Model RedmiCombination for RecoveryFeatures
Redmi Note 10/11/12Food + Volume upMIUI 14+ may require confirmation via Mi Account after reset.
Redmi 9/9A/9CFood + Volume upMenu in Chinese – Use volume buttons to navigate.
POCO X3/X4Food + Volume upOn some firmware, the reset takes up to 5 minutes.
Redmi 8/8AFood + Volume upAfter reset, re-activation may be required.

⚠️ Warning: Phones with a locked bootloader may be reset via Recovery with a request to enter Mi Account data that was previously tied. Without them, the phone will not activate (Mi Cloud Lock).

4. Unlock via Fastboot (for advanced users)

If Recovery Mode is not available or helps, you can try resetting the pattern lock via Fastboot.This method requires an unlocked bootloader and is suitable for users who have previously worked with firmware.

What you need:

  • πŸ’» Computer with installed ADB and Fastboot.
  • πŸ”Œ Original. USB-cable.
  • πŸ“„ Firmware file for your model (download from the official Xiaomi website).

Instructions:

  1. Turn off the phone.
  2. Press the Power button + Volume down to log into Fastboot Mode.
  3. Connect the phone to the computer.
  4. Open the command line in the folder with fastboot and type: fastboot devices (should display your phone).
  5. Fastboot erase userdata fastboot erase locksettings
  6. Reboot the phone: fastboot reboot

If the pattern lock is left after the reboot, try the full flashing through Fastboot:

fastboot flash all [name file firmware].zip

πŸ’‘

Resetting via Fastboot deletes all user data, but saves the firmware. If the bootloader is locked, this method won't work without first unlocking through the Mi Unlock Tool.

5. Use of service codes (not always working)

On some Xiaomi Redmi models, you can try resetting the pattern lock through service codes. This method does not guarantee success, but it is worth trying if other methods are not available.

Instructions:

  1. On the lock screen, dial the emergency number (usually 112 or 911).
  2. In the dial box, enter one of the codes: ##7780### - soft reset (saves media files). *2767*3855# - full reset (deletes everything!). ##3646633## - login to the engineering menu (on some firmwares).

Confirm the action if a request appears.

⚠️ Note: Service codes may not work on the latest versions MIUI (13+) Because of security restrictions, also after you enter the code *2767*3855# The phone will start resetting without additional confirmation!

If none of the codes worked, try a different approach: connect your phone to your computer and use the Mi Flash Tool for full firmware reflashing, an extreme method that requires firmware skills.

6. Contact the Xiaomi Service Center

If all the self-unblocking attempts failed, you just have to contact the official Xiaomi service center, which is the most reliable, but also the longest way.

What will be required:

  • πŸ“„ Document confirming the purchase (check, warranty card).
  • πŸ†” Passport or other identification document.
  • πŸ”‘ Data from Mi Account if the phone was tied.

The cost of unlocking the service varies from 500 to 2000 rubles, depending on the model and complexity of the work, in some cases, you may need to flash or replace the motherboard (if the lock is associated with hardware malfunctions).

βœ… Advantages of using the service:

  • πŸ”§ Guaranteed results without risk of damaging the phone.
  • πŸ›‘οΈ Preservation of the guarantee (if it is still valid).
  • πŸ“± Data recovery (in some cases).

❌ Deficiencies:

  • ⏳ Long wait (from 1 to 5 days).
  • πŸ’° Additional costs.

πŸ’‘

Xiaomi's official service centers can be found on mi.com/global/service. avoid informal workshops - they may use illegal unlocking methods that will damage the phone.

Frequent Questions (FAQ)

❓ Can I unlock Redmi without losing data?
Yes, but only if: πŸ”“ You've got debugging on. USB and have access to ADB. πŸ“§ The phone is tied to Mi Account and you remember the login details. πŸ“Ά The phone is connected to the Internet (to unlock through the account), in all other cases, the data will be deleted.
❓ Why does Recovery ask for an old Mi Account after resetting?
This is a feature of Mi Cloud Lock, which is anti-theft protection. If the phone was linked to a Xiaomi account, after the reset, you will need to enter the account data for activation. Without it, the phone will become a brick. Solutions: Remember the data from the account (check emails from Xiaomi); Contact Xiaomi with proof of purchase; Use official unlock services (paid).
❓ Does the method work with ADB on MIUI 14?
On MIUI 14+, the method of removing gesture.key via ADB doesn't always work. Xiaomi has tightened security, and new firmware may require: Unlocked bootloader. root rights (which automatically removes warranty). Use alternative commands (such as removing locksettings.db). Before trying, check if USB debugging is enabled in the developer settings.
❓ How to avoid blocking in the future?
So that you don't have to face the problem again: πŸ” Use it. PIN-code instead of a pattern lock (it is easier to remember). πŸ“± Link the phone to Mi Account and enable synchronization. πŸ”„ Regularly back up through Settings β†’ System and device β†’ Backup. πŸ“ Write down your pattern lock or password to a secure location (for example, a password manager). πŸ”§ Enable Smart Lock (setting unlock by location or connected devices).
❓ Can data be recovered after resetting?
If you have synced with Mi Cloud enabled, some of the data (contacts, notes, photos) can be restored after you log in. For this: After reset, log in to the same Mi Account. Go to Settings β†’ Xiaomi Account β†’ Mi Cloud. Select data for recovery (contacts, photos, messages). If sync was not configured, data cannot be restored - it is deleted irrevocably.