The forgotten password on Xiaomiβs smartphone is a situation that one in five users face. The main problem is that a standard Recovery reset erases all data, including photos, contacts and messages. But there are ways to get around the lock without losing information β if you act carefully and use hidden MIUI features or developer tools.
In this article, we will discuss 5 proven methods that work on most Xiaomi, Redmi, POCO and Black Shark models (including devices with Qualcomm and MediaTek chips). Importantly, the effectiveness of the method depends on the version of MIUI, Mi Account status and the availability of debugging over USB. Not all methods are universal β some require preliminary preparation (for example, a Xiaomi account or a developer mode is enabled).
Warning: If the device activates the Reset Data Protection feature (available on MIUI 12+), the chances of saving files are minimal, in which case only the official unlocker from Xiaomi remains - but it erases all the contents of the memory.
1 Unlocking through Mi Account (official method)
The most reliable method is if you have previously linked your Xiaomi account to a device, works even when USB debugging is off and the bootloader is locked, and is suitable for all models, including the Redmi Note 9 Pro, POCO F3 and Mi 11 Ultra.
Algorithm of action:
- π± On the lock screen, tap Forgot your password? (or Forgot password? on English firmware).
- π Select the recovery option via Mi Account (you will need to enter the login and password).
- π§ A confirmation code will arrive on the attached email or phone number.
- π Enter the code β the system will prompt you to create a new password or PIN.
Limitations of the method:
- β It does not work if the Xiaomi account was not tied before the lock.
- β On some firmware (for example, MIUI Global for Europe) Forgot your password? may not be available.
- β If the device was bought from hand and tied to someone elseβs account, unlocking is possible only through the official Xiaomi service (you need a check or box).
β οΈ Note: After 5 failed attempts to enter a password MIUI It can block the recovery from Mi Account for 24 hours. If it happens, wait a day or try other ways.
π‘
If you don't remember the password from Mi Account, try to restore it through the recovery page. Use the backup email or phone number provided when you register.
2. Reset password via ADB (USB debugging required)
The method is for advanced users who have enabled USB debugging beforehand (Settings β About Phone β MIUI Version β 7 taps by build number β Developers β USB debugging). If this option has been activated, the chances of success are high.
What you need:
- π₯οΈ Computer with Windows/Linux/macOS.
- π USB-cable (preferably original).
- π οΈ Utilities. ADB and Fastboot.
Step-by-step:
- Connect your smartphone to your PC via USB.
- Open the command prompt (Win + R β enter cmd) and execute: adb devices If the device appears in the list, move to the next step. If not, install Xiaomi drivers or try another cable.
- Enter the command to delete the password: adb shell rm /data/system/gesture.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
- Reboot the device: adb reboot
Once you reset, the password will be reset, but your fingerprints and pattern lock can be saved. If the lock screen is still active, try entering any password you want, the system should skip.
β οΈ Attention: MIUI 13+ coded FBE (File-Based Encryption: This method can result in loss of access to internal memory.Pre-use check the encryption status in Settings β Additionally. β Confidentiality β Encryption.
Make sure the debugging is done USB was activated before the lockdown|Download the latest version ADB Tools|Connect the original USB-cable|Check the visibility of the device by the team `adb devices`|Backup of important data (if possible)-->
3. Use of Fastboot mode (for devices with unlocked bootloader)
If youβve ever unlocked a bootloader through Xiaomiβs official tool, you can try resetting your password via Fastboot, a method thatβs suitable for POCO F1, Redmi K20 Pro and other Qualcomm chip-powered devices.
Warning: The wrong commands in Fastboot can permanently damage the firmware. Use this method only if you are confident in your actions.
Instructions:
- Turn off your smartphone.
- Press the Power button + Volume down to log into the Fastboot.
- Connect your device to your PC and check its visibility: fastboot devices
- Run the command to reset the lock: fastboot erase userdata This command only erases data in the user settings section, but does not affect media files (photos, videos, music) on devices with MIUI 12 and below.
- Reboot the device: fastboot reboot
After rebooting, the password will be reset, but may disappear:
- π± Installed applications (except system applications).
- π Saved Wi-Fi passwords.
- βοΈ System settings (brightness, sound, wallpaper).
| Xiaomi model | Support for Fastboot | Risk of data loss |
|---|---|---|
| Redmi Note 10 Pro | Yeah (Qualcomm) | Low (Settings only) |
| POCO X3 NFC | Yeah (Qualcomm) | Medium (possibly encryption) |
| Mi 11 Lite | Yeah (Qualcomm) | High (FBE on MIUI 13+) |
| Redmi 9A | No (MediaTek) | Inapplicable. |
4. Hidden Emergency Call function (operates on MIUI 10-12)
A little-known bug in older versions of MIUI that allows you to bypass the lock screen through the emergency call menu.The method does not require a PC or special knowledge, but does not work on all devices.
How to do this:
- On the lock screen, tap the Emergency Call.
- Enter any number (e.g. 112) and press the call button.
- Immediately after the start of the call, click the Home button (or swipe up if you have gesture navigation).
- If you do, you will be on the main screen without entering your password.
Why does it work? In some MIUI builds, the emergency call menu is not locked with a password, allowing you to temporarily access the system, but once you reboot, the lock will return.
β οΈ Attention: MIUI 13 and later, this bug is fixed, and the method may not work if the device has a pattern lock instead of a pattern lock. PIN password.
What if the method worked, but after rebooting the password returned?
5. Bypassing locking via TWRP (for hardened devices only)
If your Xiaomi has a custom TWRP recavator installed, you can manually delete your password files, which is suitable for enthusiasts who have previously changed firmware or obtained root access.
What needs to be done:
- Turn off the device.
- Press the Power button + Volume up to log into TWRP.
- 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
- Reboot the device (Reboot β System)
Important: If the device is encrypted (FBE), TWRP may not see the /data folder.
- π§ Enter the encryption password in TWRP (if you remember).
- π Or formatting data (leads to loss of all data).
π‘
Using TWRP is the most powerful method to unlock, but requires pre-preparedness (installed recoveries, unlocked bootloader).
6.The Official Xiaomi Unlocker (Last Chance)
If none of the methods worked, you can contact Xiaomiβs support team, which provides an official tool for unlocking, but with the mandatory erasure of all data.
How it works:
- Go to the unlock page and log in to your Mi Account.
- Download the Mi Unlock Tool utility and connect your smartphone in Fastboot mode.
- Follow the instructions of the program (confirmation via SMS or email is required).
- After unlocking, the device will automatically reset to factory settings.
Conditions for official release:
- β The device should be linked to your Mi Account.
- β There should be no unpaid loans or service locks on the smartphone.
- β Waiting period after last unlock (if any) β at least 30 days.
β οΈ Note: If the device was purchased from hand and tied to someone elseβs account, official unlocking is possible only if you provide proof of purchase (check, box with a box of cards). IMEI). Otherwise, Xiaomi will refuse the service.