Forgot the password on Xiaomi: how to unlock the phone without losing data

The problem of the blocked smartphone Xiaomi: what to do first

Forgotten password on Xiaomi is a situation that one in five users encounter at least once in their lives, especially after a long break in use of the device, changing the device. SIM-mapping MIUI. The main thing in this situation is not to panic and not try to guess the combination at random: after 5 unsuccessful attempts, the system will lock the device for 30 seconds, and after 20 - it can completely erase all data.

The first thing to do is to evaluate which protection data is installed on your Redmi, POCO or Black Shark:

  • πŸ”‘ Only a pattern lock is the easiest case, often unlocked through a Mi Account.
  • πŸ” Password. + Fingerprint – requires confirmation via biometrics or backup PIN
  • πŸ“± Password. + Mi Account – without an associated account, unlocking becomes more difficult
  • πŸ›‘οΈ Encryption of data – when reset via Recovery, all files will be lost

If you remember logins from linked services (Mi Account, Google, Samsung Knox when transferring data), the chances of recovering access without losing data are much higher, otherwise you will have to consider options with a complete reset.

πŸ“Š What type of lock you have installed?
pattern lock
Password (PIN)
Fingerprint.
Face (Face ID)
I remember.

Method 1: Unblocking through Mi Account (official method)

The most reliable and recommended way Xiaomi is to use the tied Mi Account. It works on all devices with MIUI 8 and newer, including the latest versions of HyperOS. The main condition is that the phone must be connected to the Internet (Wi-Fi or mobile network).

Instructions:

  1. On the lock screen, click 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 email (the code will come to the linked number / mail).
  4. Create a new unlock password.

⚠️ Note: If the device was purchased by hand and the previous owner did not untie his account, this method will not work, in which case you will need to contact the service center with proof of purchase.

Make sure your phone is connected to the internet

Know the email/phone from Mi Account

Have access to mail/SMS to confirm

Remember the reserve password (if set)

-->

Xiaomi modelSupport for unlocking through Mi AccountIs the Internet required?
Redmi Note 10/11/12Yes.Yes (Wi-Fi/mobile data)
POCO F3/F4/F5Yes.Yes.
Xiaomi 12/13/14Yes.Yes (required)
Black Shark 4/5Yes (only on global firmware)Yes.
Devices up to 2018 (Redmi 4X, Mi A1)No (only reset)β€”

Method 2: Using Recovery Mode (Reset to Factory Settings)

If your Mi Account is not tied or you don’t remember the login details, the only official way is to hard-reset via Recovery, which will remove all data from the device, including photos, messages and installed apps. File-Based Encryption devices may need to enter an old password after reset to decrypt internal memory.

Step-by-step:

  1. Turn off the phone Power + Volume up before the Mi logo appears.
  2. In the Recovery menu, select Wipe Data (use volume buttons for navigation, power for confirmation).
  3. Confirm the reset by choosing Wipe All Data.
  4. After completion, select Reboot.

⚠️ Note: On some models (POCO X3, Redmi Note 9 Pro) may be reset to request a password from the previous Mi Account (FRP). In this case, you will need to enter data from the last associated account.

What to do if you ask for an old password after reset?
If the device requests a password from the previous Mi Account after the reset, this means that FRP protection is enabled. Solutions: 1. Enter data from the last associated account (if you remember). 2. Contact the Xiaomi service center with proof of purchase (check, box). 3. Use informal methods of bypassing FRP (risk of locking the device).

Method 3: Unlocking through ADB (for advanced users)

If the device is enabled debugging over USB and it was previously connected to the computer, you can try resetting the password through Android Debug Bridge (ADB).

  • πŸ–₯️ The PC has installed Xiaomi drivers and ADB tools
  • πŸ”Œ The phone is recognized by the computer in debugging mode
  • πŸ“± The device is allowed to debug by USB (Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times press to unlock the developer mode)

Password reset commands:

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

⚠️ Attention: On new versions MIUI 13+ And HyperOS, this method may not work because of the increased protection, and after the instructions are executed, there may be errors in the system that require a complete reset.

adb backup -apk -obb -shared -all -f backup.ab

-->

Method 4: Bypass locking through Fastboot (for tech-savvy)

The Fastboot method is suitable for devices that have Anti-Rollback protection disabled and the bootloader unlocked. It allows you to reflash the device with all data deleted, including the lock password. Attention: this method can lead to loss of warranty and does not work on models with a locked bootloader (for example, Xiaomi 13T Pro on global firmware).

Tools required:

  • πŸ’» Computer with Mi Flash Tool and drivers installed
  • πŸ“₯ Official firmware for your model (download from Xiaomi website)
  • πŸ”Œ Cable USB (preferably original)

Process:

  1. Transfer the phone to Fastboot: Power + Volume down.
  2. Connect to your PC and check for device recognition by the fastboot device command.
  3. In the Mi Flash Tool, select the downloaded firmware and press Flash.
  4. Wait until it is completed (10-15 minutes) and restart the device.

πŸ’‘

Fastboot flashing removes all data, including the lock password, but requires an unlocked bootloader. On newer models (Xiaomi 14, POCO F5), the bootloader is locked by default and it takes up to 720 hours to unlock.

Method 5: Contact Xiaomi Service Center

If all of the above methods did not help or you are afraid of damaging the device, the safest solution is to contact the official service center Xiaomi.

  • πŸ“± Data encryption devices (FBE)
  • πŸ”’ Phones purchased from hands without detachment of the previous account
  • πŸ› οΈ Models with hardware problems (not switched on, not charged)

What will be required to unlock:

  • πŸ“„ Check or warranty card (proof of purchase)
  • πŸ“¦ Original box (box from the device)
  • πŸ†” Passport of the owner

The cost of the service varies from 500 to 2000 rubles depending on the model and complexity, in some cases (for example, if the hardware damage connector) may require paid repairs.

πŸ“Š Are you ready to go to the service center for unblocking?
Yeah, unless other ways help.
No, I'll try to unlock it myself.
I already did, but they refused.
I don’t know where to find a service center.

Frequent Mistakes and How to Avoid Them

When trying to unlock Xiaomi on their own, users often make critical errors that can lead to complete data loss or β€œbricking” of the device.

Mistake.Effects of consequencesHow to avoid
Use of informal firmwareBlocking of Mi Account, loss of IMEIDownload firmware only from the official website
Interruption of the discharge processDamage to system files, "brick"Do not disconnect the cable until complete.
Trying to guess password more than 20 timesAutomatic reset to factory settingsUse no more than 5 consecutive attempts
Ignoring backupsLoss of photos, contacts, messagesRegularly sync data with Mi Cloud or Google

⚠️ Note: In the forums, you often find tips for using programs such as Mi Account Unlock Tool or FRP Bypass APK. These tools not only violate Xiaomi’s terms of use, but may also contain malware. Xiaomi’s official support does not help in cases of blocking after using such methods.

FAQ: Answers to Frequent Questions

Can I unlock Xiaomi without losing data?
Yes, but only if: πŸ”‘ You have a Mi Account attached and confirmed πŸ“± Debugging is on. USB And the phone is recognized by the PC. πŸ” A pattern lock is used (sometimes it is possible to reset through the ADB) In all other cases, the data will be lost.
What to do if you forget your password and your Mi Account is not tied?
There are only two options left: Recovery reset; proof of purchase is contacted by a service center; newer models (Xiaomi 13/14, POCO F5) make unlocking virtually impossible without an attached account.
How to unlock Xiaomi if the screen is broken and you can not see the password entry?
Decisions: πŸ–₯️ Connect your phone to your PC via Mi PC Suite and try to unlock with Mi Account. πŸ”§ Use it. OTG-Cable and mouse for screen navigation (if the sensor is partially operating). πŸ› οΈ Replace the screen in the service center (if the data is critical).
Will Google Find My Device Unlock Work?
Google's Find My Device feature allows only: πŸ“ Determine the location of the device πŸ”Š Activate the beep. πŸ”’ Lock the device (but not unlock it!) πŸ—‘οΈ Erase data (analogue of reset via Recovery) It is not suitable for unlocking.
Can I unlock Xiaomi through the Engineering Menu (##)?
No, the engineering menu (#4636## or #3644633##) does not contain features for resetting the lock password: πŸ“‘ Network testing πŸ”‹ Battery checks πŸ“± Any manipulation of the engineering menu will not affect the screen lock.