Forgot your password from the Xiaomi app or want to disable it so you donβt enter the code every time? In this article, youβll find all the current ways to unseal the protection, from standard MIUI settings to advanced methods using ADB and Root rights. Weβll analyze the options for different firmware versions (including MIUI 14 and MIUI 15), and also explain how to avoid data loss.
It is important to understand that some applications (for example, banking or messengers) set their own password, which is stored in their internal database, in this case, you can only unblock the lock through the settings of the application itself. If the password is set at the system level (App Lock feature in Xiaomi), then it can be deleted in several ways - from simple disconnection to reset via recovery mode.
Before you start, check:
- πΉ Version MIUI (Path: Settings β The phone. β Version. MIUI). This depends on the availability of certain methods.
- πΉ Root rights (if you plan to use advanced methods).
- πΉ Backup of data β some actions may result in its loss.
1. Standard disable App Lock via MIUI settings
The easiest way is if you remember the password from the App Lock feature, which works on all Xiaomi, Redmi and POCO devices with MIUI 12 and later.
Instructions:
- Open Settings β Applications β Application Lock (App Lock).
- Enter your current password or pattern lock.
- Find the application in the list from which you want to remove protection, and move the slider to the off position.
- Confirm the action by pressing OK.
If there is no slider in the App Lock menu to turn off, try:
- πΈ Click on the app icon in the list and select Delete Password.
- πΈ In the upper right corner, tap on three points and select Lock Settings, where you can completely disable the function.
π‘
If you forgot your password from App Lock, but remember the Mi Account account tied to your phone, try resetting the lock through Forgot the password? in the code entry window. This method only works with an active Internet connection.
2.Reset App Lock password via Mi Account
If you forget your password, but your phone is tied to your Xiaomi account, you can use the Restore feature, which is suitable for devices with MIUI 13 and later, where you can sync with the cloud.
Step-by-step:
- Go to Settings β Applications β Blocking applications.
- In the password entry window, click Forgot the password? (or Restore).
- Choose the recovery method: via SMS (if the number is tied) or Mi Account.
- Enter the username and password from the Xiaomi account, then confirm the action.
- Follow the on-screen instructions to reset the App Lock password.
Importantly, if your phone has an internet connection or your Mi Account is not tied, it won't work, so move on to the following methods.
What if no SMS is sent to recover?
3. Delete password through Safe Mode (without data loss)
Safe Mode allows you to temporarily disable all third-party applications and some system functions, including App Lock. This method is suitable if the password is set at the system level, and not inside the application itself.
How to start Safe Mode:
- Turn off the phone.
- Press the Power button before the Xiaomi logo appears.
- Once the logo appears, release the Power button and immediately press Volume Down.
- Hold the volume down until the phone boots into Safe Mode (there will be a sign at the bottom of the screen).
Next:
- πΈ Open the application from which you want to remove the password β there will be no protection.
- πΈ Go to Settings. β Annexes β Block applications and disable protection (if you need a password, enter any - in Safe Mode, the check may not work).
- πΈ Restart your phone in normal mode.
Make sure the battery is more than 30% charged.
Close all background applications
Turn off Bluetooth and NFC (they may interfere with mode entry)
Remember the button combination for your model-->
4.Use ADB to remove lock (without Root)
If previous methods didnβt work, you can use Android Debug Bridge (ADB), a tool for debugging Android devices, which does not require Root rights, but requires connecting the phone to a computer.
What you need:
- π₯οΈ A computer with installed Xiaomi drivers and ADB.
- π USB-cable (preferably original).
- π± Included debugging by USB (Settings β The phone. β Version. MIUI β 7 times press to unlock the developer mode, then Settings β Additionally. β For developers β Debugging by USB).
Instructions:
- Connect the phone to the computer and confirm debugging on the smartphone screen.
- Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell pm uninstall -k --user 0 com.miui.applockThis command removes the App Lock for the current user without deleting system files.
- Restart the phone. The app lock will be disabled.
π‘
The adb shell pm uninstall command does not delete the application completely, but only disables it for the current user.This is secure and does not result in data loss.
If App Lock is activated again after the reboot, repeat the command or try an alternative method:
adb shell settings put global hidden_api_policy 1This command unlocks hidden APIs, which sometimes helps bypass the limitations of MIUI.
5. Reset settings via Recovery Mode (extreme case)
If none of these methods work, you'll have to hard-reset your phone with Recovery Mode, which will delete all your phone data, including your passwords, but also erase your photos, contacts, and installed apps, and use it as a last resort!
How to reset your settings:
- Turn off the phone.
- Press the Power and Volume buttons at the same time before the Mi Recovery logo appears.
- With the help of volume buttons, select Wipe Data (or Clear Data) and confirm Power button.
- Select Wipe All Data and confirm the action.
- After resetting, restart the phone (Reboot).
Attention: This method removes:
| Type of data | Removed? | Can we restore it? |
|---|---|---|
| Contacts | Yes. | Yes (if synced with Google/Mi Account) |
| Photo/video | Yes. | Not (unless there was a backup) |
| Annexes | Yes. | Yes (can be reinstalled from Mi Cloud) |
| Wi-Fi passwords | Yes. | No. |
| System settings | Yes. | Partially (restore basics) |
π‘
Before reset, remove the memory card (if any) β the data on it will not be affected. Also check if sync with Mi Cloud is enabled (Settings β Xiaomi Account β Mi Cloud β Synchronization).
6. Alternative methods for advanced users
If you have Root rights or experience with system files, you can try the following ways:
6.1 Delete App Lock files via Root Explorer
Using a Root-enabled file manager (such as Root Explorer or Solid Explorer):
- Go to /data/system/.
- Find the files: app_lock_pattern.key app_lock_pwd.key app_lock.xml
.bak
Reboot the phone.
6.2. Change settings through SQL-base
For power users, you can edit the MIUI database, which stores the App Lock settings.
- π§ Root access.
- π± SQLite Editor app.
- π Knowledge of Xiaomi database structure.
The path to base: /data/data/com.miui.applock/databases/app_lock.db. In the table lock_app You can delete records of blocked applications.
π‘
Editing system files without a backup can cause the phone to run unstable. Always backup before making changes!
Frequent Mistakes and How to Avoid Them
When trying to remove a password, users often face typical problems, and here are the most common ways to solve them:
- π« The team's not working. ADB: Make sure that the debugging is USB Try the adb device command β if the phone doesn't show up, reinstall the drivers.
- π« Safe Mode does not start: on some models POCO The combination of buttons is different. Try to clamping the power. + Volume up.
- π« After reset, the password remained: this means that the lock is installed inside the application (for example, in WhatsApp or SberBank Online), in which case the password can only be removed in the settings of the application itself.
- π« Mi Account does not restore password: check if you have changed your previously linked email or phone number. If your account is blocked, contact Xiaomi support.
Note: If you use Xiaomi with custom firmware (like LineageOS or Pixel Experience), standard App Lock methods may not work, in which case, look for a firmware-specific solution on forums like XDA Developers.