Xiaomi Application Protection: How to Remove Passwords If You Forgot the Code

The forgotten password from apps on Xiaomi smartphones is one of the most common problems of MIUI users. The brand's security system offers several layers of protection, but what if you suddenly can't remember the combination to unlock Galery, Messages or Mi Video? Unlike screen locking, where you can use a fingerprint or pattern lock, application passwords require a separate approach.

In this article, we will discuss all the current ways to remove protection โ€“ from standard methods through Mi Account to advanced techniques using ADB and recovery. It is important to understand that some methods can lead to loss of application data (for example, chats in Messages or media files in Galery), so we will specify the risks in advance. If you are using Xiaomi Redmi Note 12, POCO X5 or the flagship Xiaomi 13 series, the instructions will suit all devices on MIUI 12-14.

Before you start, check:

  • ๐Ÿ”‘ Try entering possible password options (dates of birth, simple combinations like 1234 or 0000).
  • ๐Ÿ“ฑ Make sure your device is on mobile internet or Wi-Fi โ€“ some methods require a network connection.
  • ๐Ÿ”‹ At least 30% battery charge โ€“ interruption of the process can lead to failures.

1 Unlocking through Mi Account (official method)

The safest way to do this is to use a linked Mi Account, which works if:

  • ๐Ÿ“ง The device is tied to a Xiaomi account (check Settings). โ†’ Mi Account).
  • ๐ŸŒ Internet access (mobile or Wi-Fi).
  • ๐Ÿ” Remember the username and password from Mi Account.

Instructions:

  1. On the app lock screen, click Forgot Password? (or Forgot Password?).
  2. Select the recovery option through Mi Account.
  3. Enter the login (email or phone number) and password from the account.
  4. Confirm the action via SMS or email (if two-factor authentication is enabled).
  5. Create a new password for the application.

โš ๏ธ Note: If you have previously disabled sync with Mi Account or reset your device without detachment, this method will not work.

๐Ÿ“Š What Unlocking Method Have You Tried Before?
Through the Mi Account.
Resetting settings
ADB-team
I've been to the service.
Never blocked.

2. Reset password through MIUI settings (without data loss)

Some versions of MIUI 13-14 have a hidden option to reset application passwords through system settings, which does not require ADB or factory reset, but does not work on all devices.

Step-by-step:

  1. Open Settings โ†’ Passwords and Security โ†’ Application Protection.
  2. Enter the current lock screen password (PIN, pattern lock, or fingerprint).
  3. Find the Application Password Management (or App Lock Password) section.
  4. Click Reset password and confirm the action.

If this item is missing, your version of MIUI does not support the function, and the alternative is to use ADB (Section 4).

๐Ÿ’ก

Before resetting your password, check to see if you have any important data attached to your secure apps, such as Messages that may store unsaved chats and Notes that may store unencrypted notes.

3. Delete password through Safe Mode (Security Mode)

Safe Mode is a diagnostic mode that disables all third-party applications, including the protection module Xiaomi.The method is suitable if the password is not set to system utilities (for example, Galery or Contacts), and on third-party programs like WhatsApp or Telegram.

How to activate Safe Mode:

  1. Turn off the device.
  2. Press the Power button before the Xiaomi logo appears.
  3. Once the logo appears, release the power button and immediately press Volume Down.
  4. Hold on until the bottom left corner says Safe mode.

In this mode:

  • ๐Ÿ”“ Password from applications will be temporarily removed.
  • ๐Ÿ“ฑ Open the secure application and change/delete the password in its settings.
  • โš ๏ธ Not all Xiaomi system apps are unlocked in Safe Mode.

To exit the mode, simply restart the device.

4.Use of ADB to reset password (advanced method)

If previous methods didnโ€™t work, you can use Android Debug Bridge (ADB), a tool for debugging Android devices, which requires USB debugging and access to your computer.

โš ๏ธ Attention: Misuse of the right ADB This may cause a system failure. Follow the instructions carefully.

Steps:

  1. Turn on USB Debugging: Go to Settings โ†’ About Phone โ†’ MIUI Version. Click on MIUI 7 times until the message You are a developer!. Return to Settings โ†’ Additional โ†’ Developer and activate Debugging over USB.

Connect the device to the PC and confirm trust in the computer.

ADB Tools

cmd

ADB

adb shell pm clear com.miui.guardprovider

This command will reset the application protection settings.

Reset the device.

After rebooting, the password will be deleted from the apps. If the command does not work, try the alternative:

adb shell settings delete secure app_lock_password

Debugging is on. USB|The device is connected to the PC|ADB Tools downloaded and unpacked|Backup copy of data created-->

5. Reset to factory settings (last resort)

If none of these things work, you'll have to completely reset the device, and this method will delete all the data, including the application passwords, but it'll also be deleted.

  • ๐Ÿ“ธ Photos and videos (if not saved in the cloud).
  • ๐Ÿ’ฌ Messages and chats.
  • ๐Ÿ“ฑ Installed applications and their settings.

How to reset Xiaomi to factory settings:

  1. Go to Settings โ†’ About the phone โ†’ Reset settings.
  2. Choose to erase all data.
  3. Enter the lock screen password (if required).
  4. Confirm the action.

Alternative method (if the device is locked):

  1. Turn off your smartphone.
  2. Press Power + Volume Up to Enter Recovery Mode.
  3. Select Wipe Data โ†’ Wipe All Data (Manage Volume and Power buttons).
  4. Confirm the reset.

โš ๏ธ Note: After the reset, the device will require data from the Mi Account if the account was previously linked!

What to do if you need an old Mi Account after a reset?
If you have forgotten the data from the attached Mi Account, you can only restore access through the official website account.xiaomi.com. email/phone contact Xiaomi with proof of ownership of the device (checks, box).

6. Alternative methods and warnings

If standard methods fail, users often resort to informal solutions, and we will list them with the following risks:

MethodDescriptionRisks.
Firmware through FastbootInstall a clean MIUI firmware through the Mi Flash Tool.Data loss, possible device blink.
Use of third-party utilities (for example, Mi Account Unlock Tool)Software to bypass Mi Account protection.VirusTotal often detects tools such as malware, a high risk of data theft.
Contacting the service centerOfficial repairs with proof of purchase.Paid service, possible refusal in the absence of a check.

โš ๏ธ Note: Using unofficial firmware or utilities to unlock may lead to:

  • ๐Ÿšซ Loss of warranty.
  • ๐Ÿ”’ Locking the device via Mi Cloud.
  • ๐Ÿ’ป Security vulnerabilities (if the firmware is modified).

๐Ÿ’ก

Official methods (Mi Account, ADB, Safe Mode) are safer than informal solutions and do not deprive you of warranty.

FAQ: Frequent questions about unlocking Xiaomi apps

Can I remove the password from the applications without resetting the data?
Yes, if you have Mi Account sync enabled or the method works through ADB. In most cases, application data (e.g. chats in Messages) will be saved, but system utilities like Galery may need to be re-authorized.
Why is the password still requested after resetting through ADB?
This happens if: The adb shell pm clear com.miui.guardprovider command did not work due to restrictions. MIUI. The password is not installed through Xiaomi's standard security, but through third-party software (such as AppLock). The device runs on custom firmware. Try an alternative command: adb shell settings delete secure app_lock_password_salt.
Does the Safe Mode method work on all Xiaomi models?
No. On devices with MIUI 14 and later (e.g. Xiaomi 13 Pro, Redmi Note 12 Turbo), system applications can remain blocked even in Safe Mode.
How to avoid data loss when resetting a password?
Make a backup copy through Settings โ†’ The phone. โ†’ Backup or manually copy important files to your PC. Use chat export for messages (in Messages click on the link). โ‹ฎ โ†’ Photos and videos sync with Google Photos or Mi Cloud.
Can I restore access if I have forgotten both the screen password and Mi Account?
In this case, there are no official ways to unlock.Options: Contact the Xiaomi service center with proof of purchase.Use Fastboot firmware (brick risk, requires skills).If the device is old (for example, Redmi 4X), you can try exploits to bypass Mi Account, but this is illegal and dangerous.