The forgotten digital password on Xiaomi smartphone is a situation that one in five users encounter. According to statistics from service centers, 18% of screen lock requests are related to loss of the screen. PIN-Fortunately, the manufacturer has provided several formal and informal unlocking methods that do not require professional access. In this article, we will discuss all the current methods, from simple login through a Mi Account to complex manipulation of the Fastboot and the use of a computer. ADB.
It is important to understand that the choice of method depends on the phone model, the version of MIUI, and whether the synchronization functions with the Xiaomi account or debugging over USB were previously activated. For example, on devices with a Qualcomm Snapdragon processor (for example, Redmi Note 10 Pro or POCO X3 Pro), the method is available through EDL-mode, whereas on models with MediaTek (for example, Redmi 9A), this method will not work. We will describe each option in detail so you can choose the best one for your situation.
1 Unblocking through Mi Account (official method)
The easiest and safest method is to use a linked Mi Account, which works if:
- ๐น The phone is connected to the Internet (Wi-Fi or mobile data)
- ๐น Remember the username and password from Xiaomi account
- ๐น Find Device has been activated in the settings
Instructions:
- On the locked screen, click Forgot Password? (or Forgot Password? on English firmware).
- Select the option to Unblock through Mi Account.
- Enter the email or phone number associated with the account, then the password.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
After successful authentication, the phone will unlock, but you will need to install a new one. PIN-Note that if you haven't synced your device to your account before, this won't work.
๐ก
If you canโt sign in to Mi Account because of the โToo Many Trialsโ error, wait 24 hours or try to restore access via [Xiaomi official website] (https://account.xiaomi.com).
2.Reset to factory settings via Recovery Mode
If your Mi Account is not tied or you donโt remember the login details, the only official way is to hard-reset the device via Recovery Mode, which will remove all data from your phone, including photos, contacts and installed apps, but will return access to the device.
Step-by-step:
- Turn off the phone with a long press of the power button.
- Hold the keyboard: ๐น For most models: Volume up + Nutrition ๐น For POCO F1, Mi 8: Volume down + Nutrition
Mi
Recovery
Wipe Data
Clear Data
Wipe All Data
Reboot
Turn off the phone from charging.
Make sure the battery is at least 30% charged.
Prepare a backup of the data (if you have access to another device)
Remember the data from your Google account (required after reset)
-->
After the reboot, the phone will be like new โ you will need to go through the initial setup, including Google account binding (required for MIUI 12 and later).
What if your phone needs an old Mi Account after a reset?
3. Unlock via Fastboot (for advanced users)
Fastboot is a good way to do this if you have access to your computer and you're ready to go with the command line, it allows you to reset your password without losing data, but it requires an unlocked bootloader. If the bootloader is locked, it won't work.
What you need:
- ๐น USB-TypeC Cable (Original)
- ๐น Computer with drivers installed ADB/Fastboot (You can download it on [Xiaomi website](https://new.c.mi.com/global/miuidownload/index))
- ๐น Firmware archive for your model (e.g. fastboot-ROM for Redmi Note 11)
Instructions:
- Turn off the phone and put it in Fastboot mode: Volume down + Power Hold until the hare appears in the hat-eared (Fastboot logo).
- Connect your phone to your computer and open the Command Prompt (CMD) in the ADB folder.
- Check the connection command: fastboot devices must display the serial number of the device.
- Run the command to unlock: fastboot oem clean_frp If you have a problem, try fastboot erase frp.
- Reboot the phone: fastboot reboot
๐ก
Team fastboot oem clean_frp It only works on devices with the bootloader unlocked.If Bootloader is locked, unlock it first through [the official Xiaomi tool](https://en.miui.com/unlock/).
If the password is still active after the reboot, try repeating the procedure or using the ADB method (described below).
4.Use ADB to delete password (without data loss)
The Android Debug Bridge (ADB) method allows you to delete a password file without resetting your phone to factory settings. This is the only way to save data if USB debugging was enabled before locking. If you've never activated USB Debugging in the developer settings, this method won't work.
Step-by-step:
- Connect your phone to your computer via USB.
- Open the command prompt and check the connection: Adb devices If the device doesnโt show up, install drivers and try again.
- Enter the commands alternately: adb shell su rm /data/system/gesture.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboottings.
Once you reset, the password will be reset, but you may have Touch ID or Face Unlock errors that you'll have to reset. If the commands don't work, try the alternative:
adb shell am start -n com.android.settings/.ChooseLockGenericYes, often |Yes, but only to unlock |No, but I know it |No, and I don't plan |I don't know what it-->
Password bypass through EDL mode (for qualified users)
Emergency Download Mode Mode (EDL) โ This is a service mode for firmware Xiaomi phones based on Qualcomm processors. It allows you to reflash the device even with a locked bootloader, but requires special equipment (EDL-cable or testpoint) and knowledge.
โ ๏ธ Attention: Incorrect actions in the mode EDL This method can turn a phone into a brick, which is recommended only for experienced users or specialists in service centers.
Instructions:
- Download the EDL-ROM firmware for your model (e.g., at [forum.xda-developers.com](https://forum.xda-developers.com)).
- Install the Qualcomm HS-USB QDLoader 9008 driver.
- Put the phone in mode. EDL: ๐น Through Testpoint (closing contacts on the board). ๐น Adb reboot edl (if you have access to the command) ADB).
Mi Flash Tool
Clean All
Once firmware is in place, the phone will be completely reset, including the Mi Account and all the data, and this method is relevant for Snapdragon models such as the POCO X3 NFC, Mi 10T or Redmi K20 Pro.
6. Alternative methods and warnings
If none of the above methods have worked, consider the following options:
- ๐น Contact the service center: Official centers Xiaomi can unlock the phone on the purchase documents (check or warranty card.
- ๐น Use of third-party services: There are online services (like DC-Unlocker) that generate unlock codes for a fee. Risk of fraud is high - check reviews.
- ๐น Flip-through TWRP: If the phone has a custom recavery installed (TWRP), You can manually delete password files, suitable for advanced users.
โ ๏ธ Avoid โmagicโ programs like Mi Account Unlock Tool or Xiaomi Tool V2, They promise to unlock it in 5 minutes:
- ๐ธ Contain viruses or spyware.
- ๐ธ Payment for โfull versionโ after allegedly successful unlock.
- ๐ธ They can lock the phone permanently (for example, due to incorrect firmware).
If you decide to use third-party tools, be sure to:
- Check the hashes of files on VirusTotal.
- Create a backup of the data (if you have access).
- Use only proven sources (e.g. XDA Developers or 4PDA).
| Unlocking method | PC required | Data retained | Difficulty | Suitable for models |
|---|---|---|---|---|
| Mi Account | โ No. | โ Yes. | โญEasy | All models. |
| Recovery Mode | โ No. | โ No (full reset) | โญEasy | All models. |
| Fastboot | โ Yes. | โ ๏ธ Partially. | โญโญMedium | Snapdragon with Unlocked Bootloader |
| ADB | โ Yes. | โ Yes. | โญโญMedium | All models with debugging enabled |
| EDL | โ Yes. | โ No. | โญโญโญHard | Qualcomm Snapdragon |