How to remove application protection on Xiaomi if you forgot your password: working methods 2026

A forgotten App Lock password on Xiaomi smartphones is a common problem that can block access to instant messengers, gallery or banking programs. Unlike unlocking the screen, deprotecting individual applications requires other approaches: standard methods like resetting through Mi Account often do not work here. In this article, we will discuss 5 proven ways to bypass App Lock on MIUI 12/13/14, including hidden system functions, ADB commands and recovery through custom recovery.

It's important to understand that some methods will require developer rights or unlocked bootloaders, and the wrong actions can lead to data loss. So before you start, check if you have a backup of important files. If the phone is tied to a Mi Account, the chances of successfully unsecuring the protection without loss are higher.

Why Standard Password Reset Doesn't Work

Many users are trying to reset the App Lock password through Settings β†’ Passwords & Security β†’ Application Protection, but the system requires you to enter the old password. This is due to the MIUI architecture: application protection is not tied to the Mi Account, but to a local key store that is not synced with the cloud.

Here’s what blocks standard methods:

  • πŸ” Local encryption: App Lock password is stored in a protected memory area (/data/system/locksettings.db), rootless.
  • πŸ“± Lack of sync: Even when you reset your phone through Mi Account, application protection is maintained.
  • πŸ›‘οΈ Protection against bypassing: B MIUI 14 added mechanisms that block the change of system files without authorization.

Another trap: after 5 failed password attempts, the system can block access to App Lock for 30 minutes or even require a reboot. So don't try to guess the password - this will only complicate the situation.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Redmi 9/9A/9C
Other

Method 1: Reset protection through Mi Account (if an account is linked)

If your smartphone is linked to a Mi Account, you can try to reset security settings through the cloud, which works on MIUI 12-14, but requires a stable Internet connection.

Instructions:

  1. Open Settings β†’ Xiaomi account and make sure you are authorized.
  2. Go to Settings β†’ Passwords and Security β†’ Application Protection.
  3. Click Forgot Password? (if the option is active) and select Reset via Mi Account.
  4. Confirm the action via SMS or email linked to the account.

⚠️ Note: On some firmware (for example, MIUI 13 Global) there may be no account reset option, in which case proceed to the following methods.

Make sure your phone is connected to Wi-Fi| Check that your Mi Account is confirmed by email/SMS| Battery charge at least 50% | Disable VPN (can block access to Xiaomi servers)

-->

Method 2: Remove protection through ADB (without root)

If you have USB debugging enabled, you can remove application protection using ADB commands. This method does not require root rights, but only works when active debugging.

Step-by-step:

  1. Connect the phone to the PC and confirm access to debugging (pop-up on the smartphone screen).
  2. Open the command line (Windows) or terminal (Mac/Linux) and type: adb shell pm clear com.miui.securitycenter This command will reset the Security Center settings, including App Lock.
  3. Restart the phone. Once it's turned on, the application protection will be turned off.

πŸ”Ή Alternative team (if the first team fails):

adb shell settings put global hidden_api_policy 1

Then repeat the first command. This trick bypasses MIUI's limitations on changing system settings.

⚠️ Attention: After completing commands ADB Other security settings, such as locking the screen, may be reset!

What if the ADB can’t see the device?
Make sure that Xiaomi USB Drivers are installed (download from the official website). Also check if debugging is enabled in Settings β†’ About Phone β†’ MIUI version (click 7 times to activate developer mode), then in Settings β†’ Additional β†’ For Developers β†’ Debugging by USB.

Method 3: Restore via TWRP (unlocked bootloader required)

If you have custom recovery TWRP installed, you can manually delete the files responsible for protecting applications, which requires an unlocked bootloader and is suitable for advanced users.

Instructions:

  1. Turn off your phone and boot into TWRP (clip Power + Volume up).
  2. Go to Advanced β†’ File Manager.
  3. Delete the following files: /data/system/locksettings.db /data/system/locksettings.db-wal /data/system/locksettings.db-shm

Restart the phone. Application protection will be reset.

⚠️ Note: Deleting these files will also reset all passwords and fingerprints, including screen locking.If you have a PIN set, you will need to re-enter it after the reboot (or use your Mi Account to unlock it).

MethodConditions requiredRisks.Efficiency
Reset via Mi AccountLinked account, Internet accessLow (may not work)β˜…β˜…β˜†β˜†β˜†
ADB-teamIncluded debugging on USB, PCMedium (resetting other settings)β˜…β˜…β˜…β˜…β˜†
TWRPUnlocked bootloader, custom recoveryHigh (data loss, brick)β˜…β˜…β˜…β˜…β˜…
Reset to factoryβ€”Critical (deletion of all data)β˜…β˜…β˜…β˜†β˜†

Method 4: Safe Mode Circuit (for MIUI 12 and below)

On older versions of MIUI (12 and below), you can temporarily disable application protection by booting in Safe Mode, which does not remove the password, but allows you to access blocked programs.

How it works:

  1. Press the Power button and hold the option to Turn off until a request to go to Safe Mode appears.
  2. Confirm transition. The phone will reboot with third-party services disabled, including App Lock.
  3. Open the desired application (such as WhatsApp or Gallery) and copy important data.
  4. Restart your phone as normal, and the application protection will remain active, but you will have time to save the information.

πŸ”Ή Limitation: B MIUI 13/14 Safe mode does not disable App Lock, and some system functions, such as mobile Internet, do not work in this mode.

πŸ’‘

If you need to copy files from a locked application (such as a photo from the Gallery), connect your phone to your PC in Safe Mode and use Windows Explorer to transfer data.

Method 5: Complete resetting of settings (last resort)

If none of these methods work, you'll have to reset to factory settings, and that will delete all the data from your phone, including passwords, apps, and media, and use this as a last resort.

How to reset:

  1. Go to Settings β†’ About the phone β†’ Reset settings.
  2. Choose to erase all data and confirm the action.
  3. After the reboot, the phone will be like new, without app protection.

πŸ”Ή Tip: If you often forget passwords, set up backup recovery via Settings β†’ Passwords and security β†’ Account recovery. Here you can link an email to reset.

πŸ’‘

The most reliable method is ADB, but it requires pre-setting the debugging, and if debugging is not enabled, the only options are TWRP (for advanced) or factory reset (with loss of data).

FAQ: Answers to Frequent Questions

Can I remove application protection without losing data?
Yes, if you have USB debugging enabled (ADB method) or unlocked the bootloader (TWRP method), otherwise you will have to reset the settings, which will lead to deletion of data.
Does the Safe Mode Method Work on MIUI 14?
No, in MIUI 13 and later, Safe Mode does not disable application protection, which is only relevant for older versions (12 and below).
What if the phone doesn’t turn on after reset via TWRP?
You probably have damaged your system files. Try flashing your phone over Fastboot with the official firmware from Xiaomi's website. If it doesn't work, you can go to the service center.
Can I restore access to App Lock through the Xiaomi Service Center?
In theory, yes, but in practice, service centers rarely help with unlocking application protection, as it is considered the user's responsibility, except if the phone is warranty and you can confirm the purchase.
Will App Lock work after the MIUI update?
Yes, application protection is saved when you update your firmware, but if you reset your password through ADB or TWRP, the protection may turn on again after the update (if you do not delete the system files).