How to unlock Xiaomi if you forgot your password: all the working ways

A forgotten password on a Xiaomi smartphone is a situation that one in five users encounter, according to service center statistics from 2023. Unlike the iPhone, where unlocking requires you to contact Apple Support, Android devices (including the Redmi, POCO and Mi lines) offer several ways to solve the problem.

In this article, we’ll look at 7 proven ways to unlock Xiaomi, from official (via an attached account) to technical (using ADB or Fastboot), and focus on the nuances of encrypted storage models (starting with MIUI 12) and devices with a MediaTek chip, where standard methods may not work.

Important: Before you start any manipulation, check whether your phone is connected to mobile Internet or Wi-Fi. Many methods require a network shutdown to prevent automatic blocking through the Mi Cloud.

1 Unlocking through Mi Account (official method)

The most reliable and recommended method Xiaomi is to restore access through an attached Mi Account, which works if:

  • πŸ“± The phone is connected to the Internet (mobile network or Wi-Fi).
  • πŸ”‘ You remember the login (email/phone number) and password from Mi Account.
  • πŸ”„ The device was not reset via Recovery (in this case, the account is blocked for 72 hours).

Instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Password? on English firmware).
  2. Choose Restore through Mi Account.
  3. Enter your email/phone and account password. If two-factor authentication is enabled, confirm your login via SMS or email.
  4. Follow the instructions on the screen to create a new lock password.

⚠️ Note: If you have tried to enter your Mi Account password more than 5 times in a row, the system will block attempts for 24 hours.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 12/13
POCO X5/X6
Mi 11/12/13
Other

2 Unlocking via Fastboot (for advanced users)

This method is suitable for devices with a bootloader unlocked. If you have not previously unlocked it through the Mi Unlock Tool, this method will not work.

What you need:

  • πŸ–₯️ Windows computer 10/11.
  • πŸ”Œ Cable USB (preferably original......>
  • πŸ› οΈ Used by Mi Flash Tool, ADB & Fastboot.

Step-by-step:

  1. Turn off your phone. Press the Power Button + Volume down until the Fastboot logo appears.
  2. Connect your phone to your PC. Open the command line (Win + R β†’ enter cmd).
  3. Check the connection command: fastboot devices If the device is determined (the serial number appears), continue.
  4. Enter the command to unlock: fastboot oem unlock Attention: on some models (POCO F5, Redmi K60) this command can erase all data!
  5. Reboot the phone: fastboot reboot

πŸ”Ή If the team didn’t work out: try an alternative for older models (Redmi) 4X, Mi A1):

fastboot flashing unlock

Install Xiaomi drivers on PC|Download Mi Flash Tool from the official website|Disable antivirus (can block commands)|Charge your phone at least 50 times%|Prepare a backup copy of the data (if possible)-->

3. Recovery Mode reset (data loss)

The most radical, but universal, method is hard reset to factory settings, which works on all Xiaomi models, but removes:

  • πŸ“Έ Photos and videos (unless synced with Google Photos).
  • πŸ“± Installed applications and their data.
  • πŸ“ Contacts (unless linked to a Google or Mi Account).
  • πŸ” Wi-Fi passwords and other settings.

How to perform the reset:

  1. Turn off the phone.
  2. Press the Power button + Volume up until the Recovery menu appears.
  3. Use volume buttons to navigate, select Wipe Data (or Clear Data).
  4. Confirm the action by choosing Yes.
  5. After reset, select Reboot.

⚠️ Attention: On models with MIUI 14+ And the Find My Device feature that's enabled, after the reset, you'll need to enter the data from the Mi Account that was tied to the phone, and without it, the device will remain locked (FRP-lockdown).

Xiaomi modelReset via RecoveryDo you need a Mi Account after a reset?Are the data stored?
Redmi Note 12 Pro+βœ… Yes.βœ… Yes, if he was tied up)❌ No.
POCO X5 Proβœ… Yes.βœ… Yes.❌ No.
Mi 11 Liteβœ… Yes.⚠️ Only if you have Find My Device enabled❌ No.
Redmi 9Aβœ… Yes.❌ No (on old firmware)❌ No.

4.Use of ADB (for USB debugging devices)

If the phone has previously been debugged USB (USB Debugging, you can try to reset your password through ADB. This method only works if:

  • πŸ”Œ The phone is connected to the PC and is recognized in ADB.
  • πŸ”“ The debugging was activated before blocking.
  • πŸ“Ά The device is not locked through the Mi Cloud.

Instructions:

  1. Connect your phone to your PC via USB.
  2. Open the command line and check the connection: Adb devices If the device is displayed, continue.
  3. Enter the commands alternately: adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot

πŸ”Ή Note: On MIUI 13/14 The path to the files may be different. If the commands don't work, try it:

rm /data/system/lock_pattern.aut

What if the ADB can’t see the device?
If the adb device command returns an empty list, check: 1. If Xiaomi drivers are installed ADB Interface (download from official website). 2. Is Transfer files enabled (MTP) plug-in USB. 3. Does the antivirus (e.g. Avast or Kaspersky) block the connection. 4. Try another one. USB-If the phone is still undetectable, go to the Fastboot method.

5. Bypass locking through Safe Mode (for older models)

On devices with MIUI 10 and below (e.g. Redmi 5, Mi 8), you can try booting into Safe Mode and delete the password through settings. This method does not work on new firmware (MIUI 12+), where Safe Mode blocks access to system settings.

How to start Safe Mode:

  1. On the lock screen, press the switch off button.
  2. Keep your finger on the option to turn off power until a request to switch to Safe Mode appears.
  3. Confirm the transition. The phone will reboot.
  4. After downloading, go to Settings β†’ Password and Security β†’ Screen Lock.
  5. Enter any password (the system may miss the Safe Mode check).
  6. Set a new password or turn off the lock.

⚠️ Attention: POCO and Redmi with MIUI 11+ This method will cause the error "Can't change your password." Don't waste time trying again.

6 Unlocking through Xiaomi Service Center

If none of these methods work, the official way to do this is to contact Xiaomi Service Center, which is the only legal way to unlock your phone without losing data, if:

  • πŸ“„ You have a check or warranty card on the device.
  • πŸ†” You can confirm ownership (for example, through IMEI, passport-bound).
  • πŸ”’ The phone is not on the blacklist (stolen/lost).

The cost of the service in 2026:

Type of unlockTime limit for implementationCost (β‚½)
Resetting password with data retention1-3 days1 500–3 000
Unlocking Mi Account (if you forget your password)3-7 days2 000–4 500
Reset to factory settings (without data storage)1 day800–1 200

πŸ”Ή Where to find a service center:

  • 🌍 Official website: mi.com/ru/service.
  • πŸ“ Maps. Google/Yandex on request "Xiaomi Service Center [your city]".
  • πŸ“ž Support phone: 8 800 700 01 03 (free in Russia).

πŸ’‘

Before visiting the service center, take a screenshot of the IMEI phone (on the box or under the battery if removable) and prepare your passport, which will speed up the confirmation process.

Alternative methods (risky)

On the Internet you can find offers to unlock Xiaomi through:

  • πŸ’» Paid software (e.g. Mi Account Unlock Tool, D&G Unlock).
  • πŸ”— Online services (such as "unblocking" by IMEI").
  • πŸ“± Firmware through SP Flash Tool (for MediaTek).

⚠️ Attention: Most of these methods are fraud:

  • πŸ’Έ Loss of money (the average cost of β€œunlocking” is 500–2,000) β‚½, But the result is not guaranteed).
  • πŸ” Blocking your Mi Account for suspicious activity.
  • πŸ“± Turning the phone into a brick (not turned on after incorrect firmware).

πŸ”Ή The only relatively safe option is to run through the SP Flash Tool for MediaTek devices (e.g. Redmi) 9C, POCO C31). But there are nuances here:

  • You need an accurate firmware for your model (download from the official website).
  • The process requires an unlocked bootloader.
  • The probability of losing the IMEI and serial number is ~30%.

πŸ’‘

No β€œmagic” software can guarantee that Xiaomi will unlock without risk, and official methods (Mi Account, Fastboot, service center) are the only legal ways.

FAQ: Frequent questions

πŸ”“ Can you unlock Xiaomi without losing data?
Yes, but only if: You remember the username/password from Mi Account (method 1). The phone is debugging on USB and it is determined in ADB (method 4). You contact the Xiaomi service center with documents on the phone. In all other cases, the data will be lost.
πŸ“± What to do if you ask for an old Mi Account after a reset?
It's FRP-Solutions: Enter the Mi Account that was linked to the phone. If you don't remember the password, restore it via account.xiaomi.com. If your account is not yours (phone purchased by hand) – contact the previous owner or service center with proof of purchase. ⚠️ Bypass FRP through the "holes" in the firmware (for example, through TalkBack) works only on the MIUI 10-12. These methods are closed on the new versions.
⏳ How long does it take to unlock through Mi Account?
It usually takes 5-15 minutes if: The phone is connected to the Internet, you enter your account information correctly, there are no multiple failed attempts on the device, and if the system requests additional verification (SMS, email, backup number), the process can take up to 24 hours.
πŸ”§ Can you unlock Xiaomi with a computer without Fastboot?
Yes, but only if the phone is debugging. USB (method ADB). If debugging is disabled, the computer will not be able to interact with the locked device. Alternatives: Use specialized boxes (such as UFi Box or Octopus Box), but they cost from 10 000 β‚½ It requires skills. EDL Mode (emergency mode), but it requires an unlocked bootloader and risks "bricking" the device.
πŸ›‘οΈ How to protect Xiaomi from accidental lockdown in the future?
Follow these recommendations: πŸ”‘ Use a fingerprint or facial recognition in addition to a password. πŸ“ Write down your Mi Account password to a secure location (e.g., Google Keep or Google Keep). 1Password). ☁️ Enable data sync with Google Account or Mi Cloud. πŸ”§ Activate debugging on USB (Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times press β†’ Additionally. β†’ For developers β†’ Debugging by USB). πŸ“± Regularly back up through Settings β†’ System system β†’ Backup.