Forgotten password from Xiaomi smartphone is a situation that faces one in five users, especially unpleasant when the lock prevents you from changing critical parameters of the system: disable MIUI-optimisation, customisation USB-In this article, we will discuss 5 working ways to bypass passwords in settings, from official methods with Mi Account confirmation to technical workarounds for advanced users.
It's important to understand that not all methods are universal. For example, on devices with MIUI 14+ and current security patches, some loopholes can be closed. We've outlined the limitations for each method, as well as the risks from losing data to blocking IMEI if you use the engineering menu incorrectly. If your goal is simply to reset your screen password rather than access the system settings, go straight to the hard reset section.
Method 1: Sign in via the tied Mi Account (official method)
The safest and most recommended way for Xiaomi is to use a tied Mi Account, which works on all devices, even the latest versions of MIUI, but requires:
- π§ Access to an email or phone number linked to an account
- π Stable Internet connection (Wi-Fi or mobile network)
- π Opportunities to enter a password from an account (if two-factor authentication is enabled - the code from the account) SMS)
Instructions:
- On the lock screen, tap the button Forgot password? (or Forgot password? on English firmware).
- Select the recovery option: by email or SMS.
- Enter the email address or phone number associated with the Mi Account.
- Follow the instructions in the email or SMS to reset your screen password.
- After successfully logging in to your account, the screen password will be reset and you will get access to the settings.
π‘
If the button "Forgot your password?" does not appear, try to enter any password 5 times in a row - the system will offer a recovery option.
Limitations of the method:
- β It does not work if the device is not tied to the Mi Account (or the account has been deleted).
- β In some models (for example, POCO F5 s MIUI 14 Global) may require confirmation via Google Account.
- β If the smartphone was bought from hand and the previous owner did not untie his account, it will be impossible to restore access without his help.
Method 2: Safe Mode boot (to remove third-party blockers)
If the password was set by a third-party application (such as AppLock or Smart Lock), you can try to delete it through Safe Mode, in which only system applications are downloaded, and third-party applications are temporarily disabled.
How to boot up in Safe Mode:
- Turn off the smartphone with a long press on the power button.
- Hold the Power button until the Xiaomi logo appears, then let go and immediately press Volume down.
- Keep Volume down until the bottom left corner says Safe mode.
After downloading:
- π§ Go to Settings. β Annexes β Application management.
- ποΈ Find a blocker (like AppLock) and remove it.
- π Restart the device in normal mode.
Important:
β οΈ In Safe Mode, you cannot reset the system password. MIUI β If the lock is set at the system level, this method will not help.
Method 3: Use of ADB (for power users)
If the device has previously been enabled USB-You can try to delete the password through Android Debug Bridge (ADB). The method works MIUI 12β14, but requires a PC and minimal command line knowledge.
Step-by-step:
- Connect your smartphone to your computer via USB (use the original cable!).
- Open the Command Prompt (Windows) or Terminal (macOS/Linux) in the folder with ADB.
- Enter the command to check the connection: adb devices If the device appears in the list, go further.
- Delete password files (commands run sequentially!): adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
After the reset, the screen password will be reset.
- β οΈ On unrooted devices, after adb shell type: pm clear com.android.providers.settings This will clear lock settings, but may cause other settings to reset.
- β οΈ Nana MIUI 14+ Security patches after October 2023 may not work.
What if the ADB canβt see the device?
Method 4: Unlocking via Fastboot (with data loss)
If previous methods failed, it leaves Fastboot unlocking, which will result in a complete data reset, but will return access to the settings, and is suitable for devices with a locked bootloader (most Xiaomi default).
What you need:
- π₯οΈ Computer with installed ADB and Fastboot.
- π Original. USB-cable.
- π± Discharged at least 60% of the device (to avoid bricks).
Instructions:
- Turn off your smartphone.
- Press Power + Volume down until the Fastboot logo appears.
- Connect the device to your PC and open the command line in the folder with Fastboot.
- Enter the command to unlock the bootloader (Mi Account is required): fastboot oem unlock Follow the on-screen instructions (SMS confirmation may be required).
- Once unlocked, reset: fastboot erase userdata fastboot erase cache fastboot reboot
Results:
| Action. | Effects of consequences | Reversibility |
|---|---|---|
| fastboot oem unlock | Unlocking the bootloader, resetting FRP | No (the bootloader will remain unlocked) |
| fastboot erase userdata | Deletion of all user data | No (recovery is only possible from the backup) |
| fastboot erase cache | Cleaning up the app cache | Yes (cache will recover automatically) |
β οΈ Unlocking the bootloader via fastboot oem unlock will void the warranty and may result in blocking some features (e.g. Mi Pay or Widevine). L1 for Netflix HD).
Method 5: Hard Recovery Reset (Universal Method)
Hard Reset is the last chance to get back access to settings if other methods didn't work.The method works on all Xiaomi devices, but erases all data, including photos, contacts and apps. SD-map SIM, if they are installed.
How to make a Hard Reset:
βοΈ Preparation for Hard Reset
- Turn off the device.
- Press the Power + Volume combination up until the Recovery menu appears.
- Use volume buttons for navigation and power button for selection.
- Select Wipe Data β Wipe All Data (on some Factory Reset firmware).
- Confirm the action and wait for the process to be completed.
- Choose Reboot. β Reboot to System.
What happens after the dump:
- π± The device will return to factory settings (version) MIUI remain).
- π Screen password and fingerprints will be deleted.
- π All user data (photos, videos, messages) will be erased.
- π When you first turn on, you will need to re-configure (language selection, Wi-Fi connection).
π‘
Hard Reset is the only method that is guaranteed to work on all Xiaomi models, including the Redmi Note 12, POCO X5 and Mi 11 Lite. However, it does not bypass the binding to the Mi Account if it was activated!
Method 6: Engineering menu (for advanced users)
On some Xiaomi devices (mostly older models before MIUI 12), you can reset your password through an engineering menu, a method that is risky and can lead to loss of IMEI or unstable communication module operation.
Instructions:
- Open the Phone app and enter the code ##3646633## (some firmware may require ##4636##).
- Go to Connectivity β CDS Information β Radio Information.
- In the AT+ field, type the command (to reset the screen password): AT+CLIP=0 and press Send AT Command.
- Reset the device.
Warnings:
- β οΈ Incorrect commands in the engineering menu can damage the firmware.
- β οΈ New devices (MIUI 13+) Access to the engineering menu is often blocked.
- β οΈ After resetting the password, it may be necessary to reactivate SIM-map.