How to unlock the pattern lock on Xiaomi Redmi: from simple ways to radical

The forgotten pattern lock on Xiaomi Redmi is a situation that almost one in three users encounter, especially after a long break in use of the device or after an update. MIUI, When the system requires you to enter a password to verify your identity, unlike PIN-A pattern lock is harder to remember intuitively: a combination of 4–9 dots connected in a certain order leaves no clues in muscle memory.

Fortunately, the manufacturer has provided several ways to restore access, from standard MIUI features to engineering methods for power users. However, not all of them are equally safe: some lead to complete loss of data (photos, messages, applications), others require confirmation through a Xiaomi or Google account. In this article, we will discuss all current methods of unlocking, their pros and cons, and give recommendations on how to avoid similar situations in the future.

1 Unblocking through Xiaomi account (Mi Account)

The most reliable and official way is to use a tied Mi Account, which works on all Redmi models (from Redmi 4X to Redmi Note 13 Pro+), if you have previously logged in with your account and have not disabled the Find Device feature.

Algorithm of action:

  • πŸ”„ Enter the wrong pattern lock 5 times in a row. The screen will show a message Forgot the pattern lock?.
  • πŸ“§ Click on the Unblock button via Mi Account and enter the username/password from your Xiaomi account.
  • πŸ”“ If the data is correct, the system will prompt you to create a new pattern lock or switch to a different type of lock (PIN, password).

⚠️ Note: If you do not remember the data from Mi Account, try to restore it through the official website account.xiaomi.com. Use the linked email or phone number. Do not use third-party services to "hack" the account - this can lead to the locking of the device on the Internet. IMEI.

πŸ“Š How often do you forget passwords from your devices?
Frequently (once a month)
Sometimes (once every six months)
Nearby (once a year)
Never forget.

2 Unblocking through Google Account (only for the purpose of MIUI before version 12)

On Xiaomi Redmi smartphones with MIUI version below 12 (such as the Redmi 5/6/7 series), you can use the unlock function through Google Account.

  • πŸ“± Device connected to the Internet (Wi-Fi or mobile data).
  • πŸ”‘ You have previously logged in to a Google Account on this phone.
  • πŸ”„ Find the device in Google settings is active.

Instructions:

  1. After 5 failed attempts to enter the key, tap the key.
  2. Choose Unblock through Google and enter data from your account.
  3. Follow the instructions on the screen to create a new key.

⚠️ Attention: Starting with MIUI 12 and newer (including Redmi Note) 10/11/12), Xiaomi has removed Google’s unblocking support in favor of its own Mi Account.

β˜‘οΈ Preparing for Unblocking via Google

Done: 0 / 4

3. Reset the pattern lock via Fastboot (without data loss)

If the standard methods did not work, and you do not want to reset your phone to the factory settings, you can try to delete the file with the key through Fastboot mode.

  • πŸ”§ Debugging mode is on. USB (Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times tap to activate the developer mode).
  • πŸ’» Access to a computer with drivers installed ADB/Fastboot.
  • πŸ“‚ Unencrypted section /data (Most Redmis are not encrypted by default).

Step-by-step:

  1. Connect your phone to your PC through USB-cable.
  2. Open the command line (Win + R β†’ enter cmd) and execute the commands: 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
  3. After the reboot, the pattern lock will be reset, but all data will be saved.

⚠️ Note: On new models (Redmi Note) 12 Pro+, Redmi K60) section /data It's encrypted by default, and it won't work. It also requires root rights that void the warranty.

What if the Fastboot doesn’t recognize the device?
Make sure that Xiaomi USB Drivers are installed and File Transfer (MTP) mode is enabled in the USB settings. If the problem persists, try another cable or USB 2.0 port (not 3.0).

4 Hard Reset – Last Chance

If no other method has worked, it only leaves a factory reset that will delete all data from the device, including photos, contacts and installed apps, which works on all Redmi models, but requires confirmation through Mi Account after reset (if the account was linked).

How to make a Hard Reset:

  1. Turn off the phone.
  2. Press the Volume Up + Power buttons at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data (manage by volume and power buttons).
  4. Confirm the action and wait for the process to be completed.

After resetting, the phone will reboot to the "out of the box" state.

  • πŸ“± Complete the initial setup.
  • πŸ”‘ Sign in to Mi Account if it was tied.
  • πŸ“² Restore data from backup (if it was created through Settings) β†’ Additionally. β†’ Backup).

⚠️ Note: On models with boot loader lock (Redmi Note) 9/10/11 After Hard Reset, you may need to log in through Mi Account, even if you don’t remember the data, in which case you will have to contact Xiaomi service center with confirmation of purchase.

πŸ’‘

Remove before resetting SIM-card and memory card (if any) that will speed up the process and save the data on external media.

5. Alternative methods (for experienced users)

If you are not afraid of experiments and have experience with firmware, you can try the following methods:

MethodSuitable for modelsRequired.Risks.
Firmware via EDL (9008)Redmi 4X–Redmi Note 8EDL cable, Mi Flash software, firmwareData loss, IMEI blocking
Installation of custom TWRPRedmi Note 5–Redmi K30Unlocked bootloader, PCLoss of warranty, risk of "brick"
Using ADB with blocking bypassRedmi 7–Redmi Note 10Debugging by USB, root rightsIt doesn't work for MIUI 13+

πŸ”§ For firmware through EDL need:

  1. Download the official firmware for your model from en.miui.com.
  2. Install Qualcomm 9008 drivers and Mi Flash Tool.
  3. Connect the phone in EDL mode (this may require a short circuit test points on the board).

⚠️ Warning: Incorrect firmware can turn your phone into a brick (inoperable device).If you are not sure about your actions, contact the service center.

πŸ’‘

Firmware via EDL is the only way to unlock Redmi with a locked bootloader and a forgotten Mi Account, but requires special hardware and skills.

6.How to avoid pattern lock problems in the future

To avoid bumping into a locked phone again, follow these tips:

  • πŸ” Use the backup. PIN-code or password together with pattern lock (setting in Settings) β†’ Screen locking).
  • πŸ“§ Link your Mi Account and Google Account to your device, even if you don’t plan to use them.
  • πŸ“± Regularly back up through Settings β†’ Additionally. β†’ Backup and reset.
  • πŸ”„ Enable Find the Device in the Mi Account Settings.

πŸ“Œ Useful Lifehack: Take a picture of your pattern lock to another phone or save the schema to an encrypted file (e.g., Google Keep with password-only access) This will help restore access if you forget the combination.

Also, pay attention to the security settings in MIUI:

  • Turn off Auto Lock after rebooting if you often forget the key.
  • Set the screen lock time to 30 seconds or 1 minute to avoid entering the key too often.
  • Use Smart Lock to unlock in secure places (such as at home or work).

FAQ: Frequent questions about unlocking the pattern lock on Xiaomi Redmi

❓ Can I unlock Redmi without losing data if I debug USB switched off?
No. Without USB debugging enabled and root rights enabled, the only way to unlock is through Mi Account/Google (if supported) or factory reset. Alternative methods (like firmware via EDL) require special hardware and skills.
❓ What to do if Redmi requires an old pattern lock after resetting?
This means that the device has enabled the MIUI data protection function. In this case: Try to enter the last key used (sometimes it works). If you do not remember, you will have to do a full reset via Fastboot with deletion of all data. New models (Redmi Note 11 and later) may require authorization through Mi Account even after the reset.
❓ Why After Unlocking Through Mi Account, Your Phone Asks for Confirmation SMS?
This is an additional security measure. If you do not receive an SMS on the linked number: Check if the number is blocked by the operator. Try to request the code to a backup email. If nothing helps, contact Xiaomi with confirmation of ownership of the device (check, box, IMEI).
❓ Can I unlock Redmi through the service center without a check?
Yes, but only if: You remember the data from the Mi Account tied to the phone, you have a box from the device with the serial number, the IMEI of the phone is not blacklisted (not stolen, not blocked by the operator), without proof of ownership, the service center is not allowed to unlock the device.
❓ How to know if a partition is encrypted /data on my Redmi?
You can check this through ADB: Connect your phone to a PC with USB debugging enabled. Enter the command: adb shell getprop ro.crypto.state If the answer is encrypted, partition is encrypted, if unencrypted is not. Starting with MIUI 12.5 and Android 11, encryption is enabled by default on all new models.