Forgetting the password from secure apps on Xiaomi smartphones is a problem that even experienced users face. MIUI It offers several levels of protection: from simple PIN-So what if you lose access to individual programs, up to a full Second Space or a Mi Account, and the data inside is critical? In this article, we will analyze legitimate and technical ways to remove protection β from standard reset functions to advanced methods using the use of resetting. ADB and Fastboot.
It is important to understand that some methods require prior preparation (for example, enabled debugging over USB or tied Mi Account).If you did not configure them in advance, some solutions will not be available. We will also look at the risks of data loss during hard reset and explain how to minimize them with backups. This article is relevant for devices on MIUI 14/15 (including Redmi Note 12, POCO X5, Mi 13 and other models).
1. Standard ways of resetting a password (without loss of data)
If you forgot. PIN-code or pattern lock for a particular application (such as Gallery, Notes or Browser), try the built-in tools first MIUI. They work without a PC connection and do not require developer rights.
The easiest option is to use Mi Account recovery, which is suitable if:
- πΉ The device is linked to your Mi Account (you have previously logged in).
- πΉ The smartphone has the Internet (mobile or Wi-Fi) enabled).
- πΉ You remember the username/password from Mi Account or you can restore them via email.
Instructions:
- On the app lock screen, tap Forgot your password? (or similarly written).
- Choose Restore through Mi Account.
- Enter your account details and confirm the action via SMS or email.
- Create a new password for the application.
β οΈ Note: If Second Space is activated on the device, Mi Account recovery will only work for the main space).
Another option is to reset your password through security settings:
- Go to Settings β Passwords and Security β Application Protection.
- Slip on the app icon with a lock and select Remove password.
- Confirm the action through fingerprint, facial recognition, or PIN-lock screen code (if configured).
2. Reset protection via fingerprint or Face ID
If a device has biometric authentication set up (a fingerprint or facial recognition), it can be used to bypass application passwords, which works even without an internet connection and does not require developer rights.
Algorithm of action:
- Open the secure application.
- On the password entry screen, find the option to Use a fingerprint or Unblock a face (usually at the bottom of the screen).
- Put your finger up to the scanner or look at the front camera.
- After successful authentication, go to the application protection settings (as in Section 1) and delete the old password.
If the biometrics don't work:
- πΉ Make sure that the fingerprint/face is saved in the system (Settings) β Passwords and security β Fingerprint).
- πΉ Restart the device β sometimes sensors get lost after prolonged use.
- πΉ Check if the power saving mode is on (it can turn off the scanner).
β οΈ Note: On some models (Redmi) 9A, POCO M3) Biometrics works only to unlock the screen, not for individual applications.
π‘
If the fingerprint doesn't recognize, try adding it again, sometimes it helps to register the same finger at a different angle or with high pressure.
3. Use ADB to remove protection (for advanced users)
If standard methods have failed and USB debugging has been enabled before, you can remove application protection via ADB (Android Debug Bridge), which requires a PC and basic command line knowledge.
Preparation:
- πΉ Install. ADB Fastboot Tools on the computer.
- πΉ Connect Xiaomi to your PC through the original USB-cable.
- πΉ Turn on Developer Mode (7 times tap on Version) MIUI In Settings β The phone).
- πΉ Activate Debugging on USB In Settings β Additionally. β For developers.
Instructions for removal of protection:
adb shell
pm list packages | grep "miui.applock" # check availability of lock service
pm clear com.miui.applock # reset application protection settingsAfter the commands are executed:
- Reboot your smartphone (adb reboot).
- Application protection will be deactivated, but the data inside the applications will be saved.
| Xiaomi model | ADB support | Notes |
|---|---|---|
| Redmi Note 11/12 | Yes. | It requires unlocking the bootloader for some commands. |
| POCO X4/X5 | Yes. | MIUI 14 may require on-device confirmation. |
| Mi 11/12/13 | Yes. | On flagships, ADB works stably, but an applock reset can return factory protection settings. |
| Redmi 9/10 | Partially. | On older firmware (< MIUI 12), the pm clear command may not work. |
β οΈ Attention: Use ADB On devices with a locked bootloader (bootloader) can lead to a hard brick (complete failure.
Install Xiaomi drivers on PC|Enable debugging on USB phone-on|Download the latest version of platform-tools|Connect the original USB-cable|Check device detection by adb devices-->
4. Second Space (Second Workspace) reset
Second Space in MIUI is an isolated environment with separate applications, data and security settings, and if you forget your password, standard Mi Account recovery won't help.
Method 1: Remove via settings (if the main space password is known)
- Go to Settings β Special features β Second Space.
- Select Remove Second Space.
- Confirm the action of the password of the main space.
All data from the second space will be deleted without the possibility of recovery.
Method 2: Recovery reset (if the main space password is unknown)
- Turn off the device.
- Press the Power button + Volume up to enter Recovery Mode.
- Select Wipe Data β Wipe All Data (full reset).
- Second Space will be deactivated after the reboot, but all data (including the main space) will be erased.
What happens if Second Space is not removed?
5 Hard Reset β Last Chance
If no methods work, you'll have a complete reset, which will delete all the data on your device, including application passwords, Mi Account (if not tied to your device), and Second Space, and use this as a last resort.
Instructions for Recovery Mode:
- Turn off your smartphone.
- Press the Power button + Volume up until the Mi logo appears.
- Choose your language (if required).
- Go to Wipe Data β Wipe All Data.
- Confirm the action and wait for the process to be completed.
For devices with a blocked Mi Account (if you do not remember your account details), you will need to unlock via Fastboot:
fastboot oem clean_all # full cleanup (including Mi Account)
fastboot rebootβ οΈ Note: On devices with a blocked bootloader (bootloader) command fastboot oem clean_all In this case, you will need an official unlock through the Xiaomi website (the process takes up to a maximum of two years). 30 days).
π‘
Hard reset deletes all data, including photos, messages and installed applications. SD-Card (if any) β not affected by resetting.
Alternative methods (for specific cases)
If none of the above methods are suitable, consider these options:
A. Bypassing Safe Mode (Safe Mode)
Some applications (such as Gallery or Files) can open in Safe Mode without a password.
- Press the power button before the off menu appears.
- Hold your finger to Turn off until a request to switch to Safe Mode appears.
- Confirm and wait for the reboot.
- Try to open a secure application.
Restriction: Safe Mode has disabled all third-party programs, so the method doesnβt always work.
B. Recovery through MIUI backup
If you have previously backed up through Settings β Additional β Backup, you can try to restore the security settings:
- Reset the device to factory settings (see Section 5).
- When you first set up, select Restore from backup.
- Specify the path to the backup file (usually stored in the MIUI/Backup/AllBackup internal memory or SD-map).
Contact the Xiaomi Service Center
If the device stores critical data and self-reset is not possible, contact the official service center.
- πΉ Check or warranty card (to confirm possession).
- πΉ Passport (for identification).
- πΉ Information about the attached Mi Account (if you remember).
Service centers can remove protection without loss of data, but the service is paid (from 1,500 to 5 000 rubles depending on the model).
7. How to avoid future data loss
To avoid encountering the problem of blocked apps again, follow these guidelines:
- πΉ Attach Mi Account and enable data synchronization (Settings) β Accounts. β Mi Account β Synchronization).
- πΉ Create backups through Settings β Additionally. β Backup (select cloud storage or SD-map).
- πΉ Use a password manager (such as Google Password Manager or Bitwarden) to store PIN-code.
- πΉ Activate biometrics (print) + person) as a backup method of unlocking.
- πΉ Write down the recovery codes for Second Space and Mi Account on paper.
For Second Space, set up automatic synchronization with the main space:
- Go to Settings β Special features β Second Space.
- Select the Synchronization Settings.
- Activate options for contacts, messages and multimedia.
π‘
If you often forget passwords, turn on password reminder in Settings β passwords and security β app protection settings. The system will send reminder notifications once a week.