How to remove the pattern lock from the applications on Xiaomi Redmi: all working methods

Forgot the graphical key from the app on Xiaomi Redmi and can’t access the data? This problem is familiar to many users, especially after a long break in using the phone or changing the password. Unlike unlocking the screen, where the Mi Account often helps, removing the pattern lock from individual applications (for example, Gallery, Notes or Files) requires other approaches.

In this article, we’ll look at 5 proven ways, from simple (via MIUI settings) to radical (reset to factory settings). Importantly, some methods can lead to data loss, so try the safe options first. If you’re using a Redmi Note 10/11/12 or newer models on MIUI 14, look at the ADB and Safe Mode sections, which are often lossless.

Before you start, make sure you have a backup of important data. For example, photos from a locked Gallery can be copied through Explorer (path: /storage/emulated/0/DCIM/) or by connecting the phone to a PC. If the application syncs to the cloud (like Notes or Contacts), it will be easier to recover the data.

πŸ“Š What is the Xiaomi Redmi model you have?
Redmi Note 10/11/12
Redmi 9/9A/9C
Redmi 8/8A
Redmi 7/7A
Another model

1. Withdraw the pattern lock through the Mi Account (without loss of data)

The safest way is to use a Xiaomi account, which works if:

  • πŸ”Ή You have previously logged in to your Mi Account on this phone.
  • πŸ”Ή You have access to an email or phone number linked to your account.
  • πŸ”Ή The application supports authorization via Mi Cloud (e.g. Notes, Calendar).

Instructions:

  1. Open the blocked application and enter the wrong pattern lock 5 times in a row, and the message will appear: "Forgot the password?".
  2. Click on this link and select Restore via Mi Account.
  3. Enter your username and password from your Xiaomi account. If two-factor authentication is enabled, confirm the login via SMS or email.
  4. Follow the system's tips for resetting the pattern lock.

⚠️ Note: This method does not work for third-party applications (such as WhatsApp, Viber or bank clients) and is only for standard services. MIUI, synchronized with Mi Cloud.

πŸ’‘

If you don’t remember the password from Mi Account, restore it to the official account.xiaomi.com. Use the linked email or phone number.

2. Remove the key through Safe Mode (Safe Mode)

Safe Mode allows you to temporarily disable all third-party applications and some system restrictions, this method is suitable if the pattern lock was installed not by the system, but by the application itself (for example, AppLock or Smart Lock).

How to Sign In to Safe Mode on Xiaomi Redmi:

  1. Turn off the phone.
  2. Press the Power button and hold it until the Redmi logo appears.
  3. Once the logo disappears, immediately press and hold the Volume Down (-) button until the phone boots.
  4. In the lower left corner of the screen will appear the inscription "Safe mode".

Next:

  • πŸ”§ Open the blocked application – the pattern lock may not be requested.
  • πŸ”§ If the key is still active, go to Settings. β†’ Annexes β†’ Manage applications, find the desired application and click "Clear Data" (this will delete all settings, including the key!).
  • πŸ”§ Restart your phone in normal mode.

⚠️ Note: In Safe Mode, some features (such as mobile internet or Wi-Fi) may not work smoothly. Do not remove system applications, this will cause crashes!

3. Reset the pattern lock via ADB (for advanced users)

If previous methods didn’t work, you can use Android Debug Bridge (ADB), a tool for debugging Android devices, which requires connecting the phone to your computer and enabling USB Debugging.

πŸ”Ή Conditions:

  • πŸ–₯️ The PC has installed Xiaomi drivers and ADB Tools.
  • πŸ“± The phone's on debugging. USB (Settings β†’ The phone. β†’ Version. MIUI β€” Press 7 times, then return to Settings β†’ Additionally. β†’ For developers).
  • πŸ”Œ Cable USB Supports data transfer (not just charging!).

Instructions:

1. Connect the phone to the PC and confirm the trusted device on the smartphone screen.


2. Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with ADB.




3. Enter a command to check the connection:




adb devices




(Your phone number should be displayed).




4. execute the command to remove the pattern lock:




adb shell rm /data/system/gesture.key




5.Reset the phone:




adb reboot

After the reboot, the pattern lock will be reset, but some applications (such as Gallery) may require re-authorization through Mi Account.

β˜‘οΈ Preparation for ADB-discharge

Done: 0 / 5

4. Delete application data through MIUI settings

If the pattern lock is installed by the application itself (such as AppLock, Smart AppLock or Vault), it can be reset via the application management menu, which does not affect user data (photos, files), but resets all application settings.

Step-by-step:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Find an application in the list that has forgotten the pattern lock (for example, Gallery or Notes).
  3. Click on it and select "Storage and Cache".
  4. Slip "Clear Data" and confirm the action.

⚠️ Note: For system applications (such as Settings or Phone), the Clear Data button may be blocked. ADB or Safe Mode.

AnnexCan I reset the key through settings?Data loss?
galleryYes.No (photos remain)
NotesYes.Yeah (story deleted)
Files.Yes.No (files will be saved)
AppLockYes.Yeah (all locks will drop)
SettingsNo.β€”

5. Reset to factory settings (last resort)

If nothing works, then you have Hard Reset, which is a factory reset, and it removes all the data from the device, including photos, contacts, and apps, and you only use it as a last resort!

How to make Hard Reset on Xiaomi Redmi:

  1. Turn off the phone.
  2. Press the Power + Volume (+) buttons at the same time and hold for 10-15 seconds until the Recovery menu appears.
  3. Use the volume buttons for navigation and the power button to select "Wipe Data" (or "Clear Data").
  4. Confirm the action by selecting Yes.
  5. After reset, select "Reboot" to reboot.

πŸ”Ή What to do after a reset:

  • πŸ“± Restore data from backup (if it was created through Settings) β†’ Additionally. β†’ Backup).
  • πŸ”‘ Re-connect your Mi Account to avoid future problems.
  • πŸ”’ Install a new pattern lock and write it down in a secure location (such as Google Keep or Sync Notes).

⚠️ Note: Some Redmi models (e.g. Redmi Note 12 Pro)+) After reset, you may need to enter a password from the previously associated Mi Account. If you do not remember it, restore access in advance!

What if the phone asks for an old Mi Account after a reset?
If you forget the data from your old Mi Account, try to restore it through the official website.If this is not possible (for example, a linked email or phone number is no longer available), contact Xiaomi with proof of ownership of the device (checks, box, IMEI). In some cases, it may be necessary to unlock through EDL-The mode (only for experienced users!).

6. Alternative methods: bypassing the lock via TWRP

For users with an unlocked bootloader and customized TWRP recaps, there is another way to edit system files manually, which requires technical skills and can lead to unstable phone performance.

πŸ”Ή What's the matter:

  • πŸ”§ Unlocked Bootloader (checked by the fastboot oem device-info team).
  • πŸ“± Established recaveri TWRP.
  • πŸ’Ύ Backup copy of section /data (Make it through TWRP change!).

Instructions:

  1. Load to TWRP (Put Power + Volume Up).
  2. Go to Advanced β†’ File Manager.
  3. Find the file /data/system/gesture.key (or locksettings.db for newer versions of MIUI) and delete it.
  4. Reboot the phone.

⚠️ Attention: Incorrect actions in TWRP If you're not sure about your skills, you should go to the service center.

πŸ’‘

Resetting a pattern lock via TWRP is the most powerful, but also the riskiest method. Use it only if other methods have failed and you have a backup of the data.

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

Can I remove the pattern lock without losing data?
Yes, in most cases. Try methods through Mi Account, Safe Mode or ADB. Resetting to factory settings results in data loss, so use it last.
Why did the pattern lock remain after being reset via ADB?
In the new versions MIUI (13–14) The pattern lock can be stored not only in gesture.key, but also in the locksettings.db database. Try to delete both files or use the command: adb shell su -c "rm /data/system/locksettings.db" If the phone is not rooted, the command may not work.
What to do if you forget your Mi Account password?
Restor access via account.xiaomi.com. If the attached email or phone number is not available, contact Xiaomi with proof of purchase (check, IMEI, box). In extreme cases, unlocking through EDL (only in service centers).
Does this work with MIUI Global and MIUI China?
Yes, Mi Account, Safe Mode and ADB methods work on both firmware, but MIUI China may have additional restrictions (e.g., binding to a Chinese phone number).
Can I unlock the pattern lock through my computer without ADB?
No, without ADB or specialized software (such as the Mi Flash Tool for firmware), it is impossible to remotely unlock the key. Be careful with third-party software - it can contain viruses or spyware.