How to remove the digital password on the phone Xiaomi: all working ways

Forgotten. PIN-Is the code or pattern lock on Xiaomi and can't unlock the phone? this problem is familiar to many Redmi users, POCO Or Mi, especially after a long break in use, and fortunately, there are several official and alternative methods to remove a digital password without going to the service center. MIUI 14/15 Android 13/14, including options with and without data retention.

It's important to understand that the manufacturer deliberately complicates the process of bypassing the lock, which is a security measure against data theft. However, if the phone belongs to you and the password is lost, legal unlocking methods do exist. We'll look at both standard solutions (via Mi Account) and advanced ones (using ADB or Fastboot mode).

1. Unblock through Xiaomi account (official way)

The most reliable and recommended method by the manufacturer is to use a tied Mi Account, which works on all Xiaomi, Redmi and POCO models, if you previously:

  • πŸ”Ή Log into a phone account.
  • πŸ”Ή Connected the device to the Internet (Wi-Fi or mobile network)
  • πŸ”Ή Do not turn off the function "Find the device" in the settings

To unblock:

  1. On the lock screen, tap Forgot password? (or Forgot password? on English firmware).
  2. Select Sign in via Mi Account and enter the linked email/phone.
  3. Confirm the login via SMS or password from the account.
  4. Follow the system instructions to create a new password.

⚠️ Note: If your phone is not connected to the network, this method will not work. Also make sure you have access to the email or phone number associated with your account. If you lose access to your account, restore it through the official Xiaomi website.

πŸ’‘

If the screen does not have a button "Forgot password?", try to enter the wrong PIN 5 times in a row - the system will offer alternative ways to unlock.

2. Reset password through recovery mode (Recovery Mode)

If your Mi Account is not tied or you don’t remember the login details, the next way is hard reset via Recovery Mode, which removes all data from your phone, including photos, contacts and apps, but is guaranteed to remove the lock. Suitable for Xiaomi 11/12/13, Redmi Note 10/11/12, POCO F4/F5 and others.

Instructions:

  1. Turn off the phone with a long press of the power button.
  2. Press the Power Button + Volume combination upwards for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select Wipe Data (use volume buttons for navigation, power for confirmation).
  4. Confirm the reset by selecting Wipe All Data.
  5. After completion, restart the device (Reboot).
Model phoneCombination for entering RecoveryNotes
Xiaomi 13/13 Pro, 12TFood + Volume upSome firmware requires confirmation through Mi Account even after a reset.
Redmi Note 12, POCO X5Food + Volume upIf it doesn’t work, try connecting the charger before entering Recovery.
Xiaomi 11 Lite, Redmi 10Food + Volume upOlder models may require language selection from the Recovery menu.

⚠️ Note: New Xiaomi models (released after 2022) may require data entry from the Mi Account that was previously linked to the device after being reset via Recovery.This is an anti-theft measure called the Mi Account. FRP (Factory Reset Protection).

πŸ“Š What kind of Xiaomi phone is you?
Redmi Note (any)
POCO (F/X/M series)
Xiaomi (digital series)
Other

3.Use ADB to delete password (without data loss)

A method for advanced users that allows you to remove a password without resetting data, if the phone is enabled debugging USB (USB Debugging. Suitable for MIUI 14/15 You'll need a computer with drivers installed. ADB and Fastboot.

Step-by-step:

  1. Connect your phone to your PC through USB-cable.
  2. Open the command prompt (cmd on Windows or Terminal on macOS/Linux).
  3. Enter the command to check the connection: adb devices If the device is displayed, go further.
  4. Delete password files (not working on all firmware): adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
  5. Reboot your phone: adb reboot

⚠️ Attention: On new versions MIUI (14+) This method may not work due to the increased protection, and after the reboot, you may experience an error "There was an error when you started Android" - in which case you will need to reset via Recovery.

Install the drivers ADB PC-only|Enable debugging on USB on the phone (if you have access)|Connect the original USB-cable|Check the visibility of the device by the team `adb devices`-->

4. Unlock via Fastboot (for tech-savvy)

If USB debugging is disabled but you have access to Fastboot mode, you can try reflashing the password section, which requires command line knowledge and is suitable for models with an unlocked bootloader.

Algorithm of action:

  1. Turn off the phone and press Power + Volume down to log into Fastboot.
  2. Connect your device to your PC and check its visibility: fastboot devices
  3. Download stock firmware for your model from the Xiaomi Firmware website.
  4. Unpack the firmware and find the file persist.img (responsible for lock settings).
  5. The command section: fastboot flash persist persist.img
  6. Reboot the phone: fastboot reboot

⚠️ Note: Failure to do so in Fastboot can lead to a phone break. If you are unsure of your skills, contact the service center. Also note that on new Xiaomi models, unlocking the bootloader requires waiting 7-14 days after you link your account.

What to do if the phone is blocked?
If after the commands in Fastboot the phone stopped turning on (black screen, flashing logo), try: 1. Repeat the firmware with the correct persist.img. 2. Swipe the full firmware image through Mi Flash Tool. 3. Contact the service with an error (for example, "Fastboot mode not working"). In 90% of cases, the blink is fixable, but memory may need to be soldered (in rare cases).

Password bypass through service codes (for older models)

Xiaomi phones before 2019 (e.g. Redmi 4/5, Mi A1/A2) sometimes triggered service codes to reset locks. Today, this method works extremely rarely, but you can try:

  • πŸ“ž Dial on the dial keyboard: ##7780## - Reset settings (saves media files).
  • πŸ“ž Or: *2767*3855# β€” Full reset (removes everything, including password).

If the codes don't work, the phone will send a message, "Team is not supported." On modern devices (MIUI 12+), this method is blocked by the manufacturer.

6. Contact the Xiaomi Service Center

If all of these methods did not work, the official way remains to contact an authorized service center Xiaomi.

  • πŸ”§ Phones with a blocked Mi Account (purchase confirmation required).
  • πŸ”§ Devices after a failed firmware (Fastboot or Recovery).
  • πŸ”§ Models with hardware breakdown (for example, the screen is not working, but the phone is locked).

The cost of unlocking the service varies from 500 to 3000 rubles depending on the complexity. In some cases, you may need to provide a check or a box from your phone to confirm ownership.

πŸ’‘

Service center is the only legal way to unlock if the phone is tied to someone else’s Mi Account (for example, after buying from hand).

FAQ: Frequent questions about unlocking Xiaomi

Can I delete my password without losing my data?
Yes, but only if the phone is debugging on USB and you can use ADB. On new models (MIUI 14+), the odds are extremely low - the manufacturer closed this loophole. Otherwise, a data reset is inevitable.
What to do if you forget your Mi Account email?
Restore access through the recovery page. You will need access to a backup email or phone number. If you don't remember anything, contact Xiaomi with proof of ownership of the device (IMEI, check).
Why does Recovery require a password again?
This is FRP-blocking, which is activated if the phone was tied to the Mi Account, and to remove it, you need to enter the account information that was used on the device before the reset.
Can I unlock Xiaomi through my Google Account?
Unlike pure Android, MIUI firmware does not support unlocking through Google Account. The only official way is Mi Account.
Will unlocking through the engineering menu work?
No, the engineering menu (#4636###) does not contain password reset options, but is designed to diagnose network and hardware components.