How to remove the password from the Xiaomi phone: all ways to unlock

Why Xiaomi is getting blocked and what to do first

Forgotten password on Xiaomi is a situation that one in five users face. The reasons are trivial: infrequent use of a pattern lock, change of the pattern lock. PIN-It's a complicated code or a used device that already has security installed. MIUI Blocks access to all functions after 5 failed attempts of input, and after 30 attempts may require resetting to factory settings.

Before you start taking drastic measures, check the obvious solutions:

  • πŸ”‘ Try to enter the last password you use – users often confuse current and previous codes.
  • πŸ“§ If you have Mi Account linked, try to restore access through forgotten.mi.com (more in the section about the account).
  • πŸ“± On some models (Redmi Note) 10/11, POCO X3) after 30 The button β€œForgot your password?” appears in the waiting minutes – do not ignore it.

It’s important to understand that unlocking methods depend on the version of MIUI. For example, MIUI 14 removed the ability to reset via Fastboot without authorization in the account, and MIUI 12 still worked vulnerability with bypass through ADB. We will look at current ways for 2026, including official and β€œgray” methods.

πŸ“Š What type of lock is installed on your Xiaomi?
pattern lock
PIN-code
Password.
Fingerprint/face
I remember.

Method 1: Unlocking with Mi Account (official method)

The safest and most recommended way for Xiaomi is to use a tied Mi Account.It works on all models, starting with the Redmi 4X and later, but requires:

  • πŸ“Œ Access to an email or phone number linked to an account.
  • 🌐 Stable Internet connection (Wi-Fi or mobile data).
  • πŸ”„ Opportunities to enter a password from your account (if two-factor authentication is enabled).

Instructions:

  1. On the lock screen, tap "Forgot your password?" (if there is no button, enter any code 5 times in a row).
  2. Select "Unblock with Mi Account".
  3. Enter the login (email/phone) and password from the account.
  4. Confirm the unlock via SMS or email (if requested).

⚠️ Note: If the device was purchased from hand, the previous owner may not have deleted his account, in which case unlocking through Mi Account is impossible - you will need to contact the service center with proof of purchase.

Make sure your phone is connected to the internet

Find the username and password from Mi Account

Check email/phone access for confirmation

Charge your phone at least 30 times%-->

Method 2: Recovery Mode (Data Loss)

If the Mi Account is not tied or you don't remember the login details, you'll have a hard reset via Recovery, which will delete all the data on your phone, including photos, contacts and apps, and is suitable for Redmi, POCO, Mi models on any version of MIUI.

Step-by-step:

  1. Turn off the phone with a long press of the power button.
  2. Click the combination: For most models: Volume up + Power. For POCO F1/F2/F3: Volume down + Power.

Mi

Recovery Mode

Use volume buttons for navigation and power button for selection.

Wipe Data β†’ Wipe All Data

Factory Reset

Confirm the action and wait for the process to be completed (5-10 minutes).

Reboot β†’ Reboot to System

Xiaomi modelCombination for RecoveryFeatures
Redmi Note 8/9/10/11Volume up + NutritionMIUI 13+ may require a password to be entered even in Recovery
POCO X3/X4Loudness down + NutritionIn some versions of Recovery in English
Mi 11/12/13Volume up + NutritionAfter the reset, you will need authorization in the Mi Account

⚠️ Note: Devices with a blocked bootloader may be asked to log in to Mi Account after a reset, even if the account was not previously linked, and this is protection against theft, and you can't get around it without proof of ownership.

πŸ’‘

Before resetting via Recovery, remove SIM-card and memory card – this will speed up the process and reduce the risk of data damage on them.

Method 3: Password bypassing ADB (for advanced users)

The Android Debug Bridge (ADB) method is suitable for devices with USB debugging enabled. If you have previously activated this option in Settings β†’ About Phone β†’ MIUI version (7 times tap to unlock the developer mode), the chances of success are high.

What you need:

  • πŸ–₯️ Computer with Windows/Linux/macOS.
  • πŸ”Œ USB-cable (original, without damage).
  • πŸ› οΈ Installed Xiaomi drivers and package ADB Tools.

Instructions:

1. Connect the phone to the PC via USB.


2. Open the command line (Windows) or the terminal (macOS/Linux).




3. Enter the commands in order:




adb shell




su




rm /data/system/gesture.key (for pattern lock)




or




rm /data/system/password.key (for PIN/password)




4.Reboot phone: adb reboot

⚠️ Attention: MIUI 14 This method is blocked by the security system. If the password is still after the reboot, try repeating the command with superuser rights (su), but this requires an unlocked bootloader.

What if the ADB can’t see the device?
1. Check if the debugging is included USB developer-setting. 2. Install Xiaomi drivers from the official website (https://new.c.mi.com/global/miuidownload/index). 3. Try another one. USB-cable. 4. In Windows Device Manager, update the driver for Android ADB Interface manually, specifying the folder with ADB Tools.

Method 4: Use of service codes (hidden menus)

Some Xiaomi models support service codes for lock reset, but this method does not work on all firmware and can vary depending on the region. For example, on Redmi for India and China, code # #7378423# sometimes works, but on global versions it is blocked.

Alternative codes (try at your own risk):

  • πŸ”’ ##3646633## - Engineering menu (does not reset password, but allows you to check the status of the device).
  • πŸ”’ ##4636## - Test menu (sometimes contains reset options).
  • πŸ”’ ##7780## - soft reset (not always deletes the password).

On models with a Qualcomm processor (for example, Redmi Note 10 Pro, POCO F3) sometimes works bypassing through the EDL (Emergency Download Mode), but this requires an authorized Xiaomi account and special software.

Method 5: Contact Xiaomi Service Center

If all previous methods fail, the official way is to contact a service center, which is the only legal way to unlock a device without losing data, if:

  • πŸ“„ You have a check or a box of IMEI, proof-of-purchase.
  • πŸ”’ Phone not stolen (checked by database) IMEI).
  • πŸ“± The device is not on the blacklist (lost/stolen).

How the procedure goes:

  1. Find the nearest service center on mi.com.
  2. Bring your passport and proof of purchase (check, warranty card).
  3. The employee will check the IMEI and remove the lock through service tools (usually free if the warranty is valid).

⚠️ In unofficial services may offer to β€œsweep” the phone for money, but it is fraught with:

  • 🚫 Loss of guarantee.
  • πŸ”„ Possible installation of pirated software.
  • πŸ“‰ Risk of damage to memory module (on Xiaomi with the UFS 2.2/3.1).

πŸ’‘

The official service center is the only way to unlock Xiaomi without losing data if the password from the Mi Account is forgotten.

Frequent Mistakes and How to Avoid Them

When trying to remove a password, users often make critical mistakes that can turn a phone into a brick.

  1. Interrupting the reset process through Recovery: If you take out the battery or force the phone to turn off during Wipe Data, there is a high risk of damage to the /data partition, which will require flashing.
  2. Using unofficial firmware to bypass passwords. On MIUI 14, this works 10% of the time, but often results in IMEI blocking.
  3. Trying to enter a password more than 30 times, and on newer models, this will activate anti-theft protection, and the phone will require authorization to the Mi Account even after the reset.

To minimize the risks:

  • πŸ”‹ Always charge your phone at least 50% before manipulation.
  • πŸ”Œ Use the original. USB-plug-in.
  • πŸ“‘ Check the stability of the Internet connection when unlocking with Mi Account.
Can I remove my password from Xiaomi without losing my data?
Yes, but only if: Mi Account is tied and available, USB debugging enabled and PC access (ADB method), the device unlocked through an official service center, otherwise the data will be lost.
Why does the phone ask for an old password after resetting via Recovery?
This means that the device has FRP (Factory Reset Protection) activated, and it is associated with the Mi Account attached to the phone, and to remove the request, you need to: Enter the username and password from the last account you use, and if the account is not yours, provide proof of purchase at the service center.
Does Google Find My Device Reset Work on Xiaomi?
Unlike Samsung or Google Pixel, Xiaomi smartphones do not support unlocking through Find My Device. This service can only: Show the location of the phone, block it remotely (if it is already unlocked), erase data (analogous to reset via Recovery).
How do I know if my bootloader is unlocked on my Xiaomi?
Turn off your phone and press Volume Down + Power to log in to Fastboot Mode. If the bottom of the screen says Unlocked, the bootloader is unlocked. If Locked is locked. On newer models (MIUI 13+), unlocking bootloader requires waiting 7-15 days after you have attached your account.
What to do if you bought a used Xiaomi with someone else’s Mi Account?
The only legal way is to contact the service center with: a sales contract (signed by the seller), a check or a security card (if any), a passport to verify identity, if the seller refuses to provide information from the account, return the phone or demand a partial refund, such a device is essentially blocked.