How to delete a password from a Xiaomi phone: all working ways (2026)

Forgot the password from Xiaomi and can not unlock the phone? This situation is familiar to many β€” according to statistics, one in five users at least once faced with locking a device due to loss. PIN-It's a code, a pattern lock, or a password. Thankfully, Redmi smartphones, POCO Other Xiaomi models provide several official and unofficial ways to unblock, some of which allow you to save all data on the device.

In this article, we will discuss 5 proven methods to remove the password from the Xiaomi phone – from the simplest reset via Mi Account to advanced solutions using Fastboot and ADB. Special attention will be paid to the nuances of working with different versions of MIUI (12 to 14) and Android (10-14), and also caution against common errors that can turn the phone into a β€œbrick.” If you are looking for a way to unlock Xiaomi without losing photos, contacts and applications – here you will find the latest solutions for 2026.

1 Unlocking through Mi Account (official method)

The most secure and recommended method for Xiaomi is to use a tied Mi Account, which works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ”‘ You remember the username and password from Mi Account that was tied to the device.
  • πŸ”„ Find Device has been activated in the settings.

To unblock:

  1. On the lock screen, click Forgot Password? (or Forgot Password?).
  2. Select the recovery option through Mi Account.
  3. Enter your email/phone and password from your account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is required).

Important: If the device has Mi Data Protection enabled, additional confirmation via SMS or backup email may be required after unlocking.

πŸ’‘

If you don't remember the Mi Account password, restore it via the official account.xiaomi.com website before you try to unlock it. Use the same email/phone that was attached to the phone.

2. Reset password via Recovery Mode (with loss of data)

If the Mi Account is not tied or you don’t remember the login details, the only official way is to hard-reset through Recovery Mode, which will remove all data from the phone, including photos, apps and settings, but is guaranteed to unlock the device.

Instructions for Xiaomi/Redmi/POCO:

  1. Turn off the phone with a long press of the power button.
  2. Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select the language (usually English or Chinese).
  4. Go to Wipe Data β†’ Wipe All Data (or Clear Data).
  5. Confirm the reset by selecting Confirm.
  6. Once the phone is rebooted, it will be unlocked, but with a clean system.

Turn off the phone completely.

Charge the device at least 30%

Prepare a backup (if you have access to the PC)

Make sure you have the data from Mi Account to re-activate.

-->

Warning: Some Xiaomi models (such as the Redmi Note 10 Pro or POCO X3 Pro) may require data entry from the Mi Account that was previously tied after being reset via Recovery.

Reset via Recovery

Recovery through Mi Account

Used ADB/Fastboot

I went to the service center.

Never blocked your phone.

-->

3. Unlock via Fastboot (for advanced users)

If the standard methods didn't work, you can try to delete the password through Fastboot mode, USB-Xiaomi cable and installed drivers. It is suitable for devices with unlocked bootloader (Unlocked Bootloader).

Step-by-step:

  1. Install Android Platform Tools (includes fastboot and adb).
  2. Turn off the phone and press Volume Down + Power to log into Fastboot Mode.
  3. Connect your phone to your PC and check the connection with the command: fastboot devices If the device is determined, continue.
  4. Run the command to delete the password (works on some MIUI firmware): fastboot erase userdata fastboot erase locksettings
  5. Reboot the phone: fastboot reboot

Important: This may not work on new Xiaomi models (such as the Xiaomi 13 or Redmi K60) due to enhanced protection, and after executing commands, the phone may require you to enter Mi Account data at the first setup.

What if the fastboot can’t see the device?
If the fastboot device team doesn’t show your phone, check: 1. Are Xiaomi drivers installed (download from the official website). 2. Are you using the original one? USB-cable (not all cables support data transmission). 3. Is debugging mode enabled USB (USB Debugging) in the developer settings (if the phone has ever been unlocked). 4. Try another one USB-port (preferably) USB 2.0 on the back of the PC).

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

If the phone has been turned on debugging mode USB (USB Debugging, you can try to delete the password through ADB This method only works if you've previously connected your phone to that PC and confirmed debugging.

Instructions:

  1. Connect your phone to your PC via USB.
  2. Open the command line in the folder with platform-tools.
  3. Check the connection: Adb devices
  4. Delete the password file: 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

Once you reboot, the password should disappear. If not, try repeating commands or checking if additional protection is included in the MIUI settings.

πŸ’‘

The ADB method only works if USB debugging was enabled before the phone locks, and if you've never connected the device to that PC, it won't work.

5. Official unlock through Xiaomi Service Center

If you don't succeed on your own, go to a Xiaomi authorized service center, which is the most reliable, but also the longest way.

  • πŸ“„ Check or warranty card (proof of purchase).
  • πŸ†” Passport or other identity document.
  • πŸ“± The device itself (preferably with a charge of at least 50%).

The cost of the service varies from 500 to 2000 rubles depending on the model and region, and in some cases, the service center may refuse to unlock if the phone is listed in the database of stolen devices.

The list of official Xiaomi service centers in Russia can be found on the website mi.com/ru/service. Before visiting, check by phone whether they are engaged in unlocking passwords - not all centers provide this service.

πŸ’‘

If you bought the phone on credit or under contract from the operator (for example, MTS or Beeline), contact them first - sometimes unlocking is included in warranty service.

6. Alternative methods (at your own risk)

If none of the above methods worked, you can find β€œgray” ways to unlock online, such as:

  • πŸ”§ Use custom firmware (such as LineageOS or Pixel Experience).
  • πŸ’» Programs like the Mi Flash Tool or SP Flash Tool for reflashing your phone.
  • πŸ“± Online services offering unlock for a fee (risk of fraud!).

Warning: These methods may:

  • 🚨 Lead to loss of guarantee.
  • πŸ”₯ Remove the phone from the system ("BrickingΒ»).
  • πŸ•΅οΈ Break the law if your device is not yours.

If you do decide to flash it, use only official tools from Xiaomi and make sure that the firmware is compatible with your model. For example, the firmware for the Redmi Note 11 will not work for the POCO X4 Pro, even if they are on the same chipset.

Comparison of Unlocking Methods

MethodData retentionDifficultyPC requiredIt works on new models.
Mi Accountβœ… Yes.⭐❌ No.βœ… Yes.
Recovery Mode❌ No.⭐⭐❌ No.βœ… Yes.
Fastboot❌ No. Sometimes yes)β­β­β­βœ… Yes.⚠️ Partially.
ADBβœ… Yes.β­β­β­β­βœ… Yes.⚠️ Only with USB Debugging
Service centre⚠️ Depends on the case.⭐❌ No.βœ… Yes.

FAQ: Frequent questions about unlocking Xiaomi

Can I delete my Xiaomi password without losing data?
Yes, but only in two cases: If you remember the data from Mi Account and the phone is connected to the Internet, if USB Debugging mode was previously enabled and you can use ADB. In all other cases, the data will be deleted.
What if after resetting via Recovery, the phone asks for an old Mi Account?
This is standard Anti-Theft protection. You need to: Enter the data from the Mi Account that was tied to the phone. If you don't remember the password, restore it via account.xiaomi.com. If the account is not yours (for example, the phone is bought with hands), contact the previous owner or service center with proof of purchase.
Does the ADB work on Xiaomi 13/14?
On the new flagships Xiaomi (series 12, 13, 14) and some models Redmi/POCO 2023-2026, the method with ADB may not work due to: Enhanced data protection in MIUI 14. Lock changes in system files. No rights to write in /data/system/. Try, but the chances of success are lower than on older models.
How much does it cost to unlock in the service center?
Cost depends on the model and region: Xiaomi Redmi (budget models): 500–1000 ruble. Xiaomi/POCO (middle-class): 1000–1500 Flagships (Xiaomi) 13/14, Mix Fold): 1500–2500 In some cases, payment for diagnostics may be required (200–500 rupees, even if the unlocking fails.
Can I unlock Xiaomi through Google Account (like Samsung)?
No. Unlike Samsung or Google Pixel, Xiaomi smartphones do not support unlocking through Google Account. The only official way is Mi Account.