Forgot the password from the Xiaomi app or want to remove unnecessary locks? MIUI has several ways to remove protection, from standard settings to bypassing through ADB or recovery. In this article, we will analyze all the current methods for Redmi, POCO and Mi models on the MIUI 12-14 firmware versions (including HyperOS).
Importantly, if you're not the owner of the device, trying to remove the password can lead to a lock on your Mi Account or loss of data. We're only looking at legal ways for your own devices. For corporate phones (with MDM), these methods will not work, you will need to contact the administrator.
Try the easiest way first β through the MIUI settings. If it doesnβt work, go to alternative options using ADB, TWRP or factory reset (with the risk of data loss).
1. Standard method: through MIUI settings
If you remember the password from the Mi Account or the pattern lock, you can unblock the applications in 2 minutes:
- Open Settings β Applications β Blocking applications.
- Enter your current password (or fingerprint if configured).
- Select the application from the list and turn off the "Block" switch.
If the app lock option is not on the menu, it means that the function is disabled or another version of MIUI is used.
- π For MIUI 12/13: Settings β Special facilities β Application lockdown.
- π For HyperOS: Settings β Confidentiality β Application lockdown.
- π For POCO Launcher: Swipe left on the home screen β Settings β Application lockdown.
If the system requires a password but you have forgotten it, move to the next section. Don't try to code - after 5 failed attempts Xiaomi can lock the device for 30 minutes.
π‘
If you have Mi Account sync enabled, try to reset your password through account.xiaomi.com. This will require a linked email or phone number.
2. reset the lock through the Mi Account (if linked)
If the phone is linked to a Xiaomi account, you can reset your lock settings remotely:
- Go to account.xiaomi.com and log in.
- Select the Devices section β Find the device.
- Click on your Xiaomi model and select βUnlock the screenβ.
- Confirm the action via SMS or email.
This method only works if:
- π± Device connected to the Internet (Wi-Fi or mobile network).
- π The "Find the device" function was activated in the settings.
- π Mi Account was not deleted from the phone.
If the phone is offline, try connecting it to the network via modem modem (if allowed in the settings).The alternative is to wait for a Wi-Fi connection (such as at home or in the office).
Bypassing the lock through ADB (without loss of data)
The method for advanced users requires debugging over USB (if it was enabled earlier) and a computer with Xiaomi drivers installed.
If USB debugging is not enabled, this method will not work β go to the TWRP or reset section.
Install Android SDK Platform-Tools|Download drivers for your Xiaomi model|Put the debugging on. USB (if the phone is unlocked)|Connect your phone to your PC via the original cable-->
Instructions:
- Connect your phone to your PC and open the command prompt (Windows) or terminal (Mac/Linux) in the adb folder.
- Enter the command to check the connection: adb devices If the device is displayed, go further.
- Run the command to delete the application lock password: adb shell pm clear com.miui.guardprovider
- Reboot your phone: adb reboot
After the reboot, the application lock should reset. If not, try an alternative command:
adb shell settings put secure lock_pattern_autolock 0What if the ADB canβt see the device?
4. Unlock via TWRP (Castom Recovery Required)
If you have TWRP installed on your phone, you can manually delete the lock files, a method that is suitable for users who have already unlocked the bootloader and installed custom Recovery.
Warning: Mistakes in TWRP can result in data loss or device "brick" and backup before changing system files.
Instructions:
- Boot to TWRP (Put Power + Volume Up when the phone is off).
- Go to Advanced β File Manager.
- Delete the following files: /data/system/locksettings.db /data/system/locksettings.db-wal /data/system/locksettings.db-shm /data/system/gesture.key (if any)
Reboot the phone.
After the reboot, the application lock and pattern lock (if any) will reset.
| Method | Requires unlocking bootloader | Loss of data | Difficulty |
|---|---|---|---|
| Through MIUI settings | β No. | β No. | β Very simple. |
| Reset via Mi Account | β No. | β No. | ββ Just |
| ADB | β No (but I need debugging) | β No. | βββ Middle-Average |
| TWRP | β Yes. | β οΈ Possible. | ββββ Hardly. |
| Reset to factory | β No. | β Yes. | ββ Just |
5. Extreme method: reset to factory settings
If nothing works, it leaves a hard reset, which will delete all the data from the phone, including application passwords, accounts and files. Backup if you can!
How to reset:
- Turn off the phone.
- Press Power + Volume Up for 10-15 seconds until the Mi Recovery logo appears.
- Select the language (volume buttons) and confirm Wipe Data.
- Confirm the reset (usually you need to select Yes and press the power button).
After the reset, the phone will reboot to the out-of-the-box state. Attention: if the Mi Account was tied, you'll need to enter your Mi Account Lock account information after the reset.
π‘
Factory reset is the only way to remove the password if USB debugging is disabled and there is no TWRP. But it deletes ALL data, including photos, messages and installed apps.
6. Alternative methods (for individual cases)
If standard methods donβt work, try these options:
- π§ For corporate phones: if the lock is installed through MDM (For example, Mi Enterprise, please contact IT-Self-traffic may violate security policy.
- π± For old models (MIUI 10β11: Try resetting Smart Lock settings via the command: adb shell pm clear com.android.settings
- π If only Google Play is blocked: delete your Google account in Settings β Accounts and add again.
- π οΈ For root users: Use AppOps or Xposed to disable system-level password verification.
On some firmware (e.g. Xiaomi.eu), app locking works differently. If you use custom firmware, check the settings in the Privacy β section.