How to unlock a digital password on a Xiaomi phone: all working ways

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:

  1. On the locked screen, click Forgot Password? (or Forgot Password? on English firmware).
  2. Select the option to Unblock through Mi Account.
  3. Enter the email or phone number associated with the account, then the password.
  4. 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:

  1. Turn off the phone with a long press of the power button.
  2. 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?
Some models (e.g. Redmi Note) 8 Pro or Mi 9T) After the reset, you may have a request to enter data from your previous Mi Account, which is FRP-lock protection, to get around it: 1. Connect your phone to Wi-Fi. 2. On the password entry screen, click Add Account (or Add Account). 3. Enter the data from the new Mi Account (if not, register for the new Mi Account). [account.xiaomi.com](https://account.xiaomi.com)). 4. After successful entry, the lock will be removed.

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:

  1. Turn off the phone and put it in Fastboot mode: Volume down + Power Hold until the hare appears in the hat-eared (Fastboot logo).
  2. Connect your phone to your computer and open the Command Prompt (CMD) in the ADB folder.
  3. Check the connection command: fastboot devices must display the serial number of the device.
  4. Run the command to unlock: fastboot oem clean_frp If you have a problem, try fastboot erase frp.
  5. 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:

  1. Connect your phone to your computer via USB.
  2. Open the command prompt and check the connection: Adb devices If the device doesnโ€™t show up, install drivers and try again.
  3. 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/.ChooseLockGeneric

Yes, 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:

  1. Download the EDL-ROM firmware for your model (e.g., at [forum.xda-developers.com](https://forum.xda-developers.com)).
  2. Install the Qualcomm HS-USB QDLoader 9008 driver.
  3. 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:

  1. Check the hashes of files on VirusTotal.
  2. Create a backup of the data (if you have access).
  3. Use only proven sources (e.g. XDA Developers or 4PDA).
Unlocking methodPC requiredData retainedDifficultySuitable for models
Mi AccountโŒ No.โœ… Yes.โญEasyAll models.
Recovery ModeโŒ No.โŒ No (full reset)โญEasyAll models.
Fastbootโœ… Yes.โš ๏ธ Partially.โญโญMediumSnapdragon with Unlocked Bootloader
ADBโœ… Yes.โœ… Yes.โญโญMediumAll models with debugging enabled
EDLโœ… Yes.โŒ No.โญโญโญHardQualcomm Snapdragon

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: ๐Ÿ”น You've got debugging on. USB (ADB). ๐Ÿ”น The phone is linked to the Mi Account and has Internet access, and in all other cases, the data will be deleted.
What if your phone asks for an old Google account (FRP) after a reset?
This is Factory Reset Protection (FRP) protection. To get around it: Connect your phone to Wi-Fi. On the Google input screen, click on the text input box, then select "Add an account." Enter data from a new Google account (if you don't have one, create one). Some firmware (MIUI 13+) may require additional bypassing through ADB.
How to unlock Xiaomi if I canโ€™t remember the username from Mi Account?
Restore your account: Go to [account.xiaomi.com](https://account.xiaomi.com). Click Forgot your password?. Enter your email or phone number, then follow the instructions in the email/SMS. If your account is not restored, contact Xiaomi with your phone documents.
Does unlocking a call to a locked phone work?
No, this method is outdated and does not work on MIUI 10 and later. Previously, you could call a locked phone, take a call and access the settings through the call menu, but Xiaomi closed this vulnerability.
Can I unlock Xiaomi with service codes (##)?
No, service codes (e.g. ##4636##) don't help reset passwords; they're designed to diagnose network and hardware, not bypass locks.