How to Recover Your Password on Xiaomi Phone: A Step-by-Step Guide

Forgot the password from Xiaomi smartphone and can not unlock the screen? This situation is familiar to many โ€” especially if the device was lying idle for a long time or the password was entered automatically by fingerprint. Fortunately, the manufacturer has provided several official ways to restore access without resorting to complex repairs or flashing.

In this article, we will discuss all the current methods of unlocking, from a simple reset via Mi Account to using Fastboot mode for power users. Importantly, the choice of method depends on whether the phone is linked to a Xiaomi account, whether debugging is enabled by USB and whether there is a backup data, we will also explain how to avoid loss of information and what to do if the smartphone requires a password after reset.

Note: the instructions are suitable for all modern models, from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra. However, on devices with custom firmware (for example, Xiaomi.EU), some steps may differ.

1. password recovery via Mi Account (if the phone is linked to the account)

The most reliable and secure way to do this is to use a linked Mi Account, which works even if you don't remember the pattern lock or the key. PIN-code, but the phone is connected to the Internet (via Wi-Fi or mobile network).

Algorithm of action:

  • ๐Ÿ”น On the lock screen, click Forgot password? (or Forgot password on English firmware).
  • ๐Ÿ”น Enter the email or phone number to which your Mi Account is linked.
  • ๐Ÿ”น Confirm your identity through SMS-code or letter to the mail (depending on security settings).
  • ๐Ÿ”น Create a new password and confirm the changes.

If the buttons Forgot your password? no, try entering any password 5 times in a row - after that the system will offer a recovery option. Some models (for example, POCO F5) may require a Wi-Fi connection to verify your account.

๐Ÿ’ก

If you donโ€™t remember the Mi Account, try to restore access via account.xiaomi.com. Use a backup email or a linked phone number.

โš ๏ธ Note: If the phone was bought with hands and the previous owner did not untie his Mi Account, it is impossible to unlock it without his data.

2 Unlocking through Find Device (Remote Control)

If you have Find Device enabled on your phone, you can unlock it remotely via a web browser, and this method works even if the device is not currently connected to the Internet, and the command will go the first time you connect.

Step-by-step:

  1. Go to i.mi.com and log in to your Mi Account.
  2. In the Devices section, select a locked phone.
  3. Click Unlock Device (or Unlock Device).
  4. Confirm the action via SMS or email.
  5. Wait for the synchronization (can take up to 5 minutes).

Once successfully unlocked, the phone will restart and you can set a new password. Please note that this method does not work if:

  • ๐Ÿšซ Find Device feature is disabled on the phone.
  • ๐Ÿšซ Device discharged or switched off.
  • ๐Ÿšซ Mi Account is not tied to your phone.
๐Ÿ“Š Have you ever lost access to your phone because of a forgotten password?
Yeah, I had to rebuild.
No, I always remember.
I'm just using my fingerprint.
Another option

3. Reset settings via Recovery Mode (data loss)

If previous methods have failed, you will have to reset hard through recovery mode, which will remove all data from your phone, including photos, messages and installed apps, and only use this method as a last resort!

Instructions for most Xiaomi/Redmi/POCO models:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select Wipe Data (use volume buttons for navigation, power button for confirmation).
  4. Confirm the reset by selecting Wipe All Data.
  5. After completion, select Reboot.

On some models (for example, Redmi 9A) instead of Wipe Data can be a Factory Reset. If the phone requests a password even in Recovery, then Mi Account protection is enabled - in this case, a reset is possible only through Fastboot (see the next section).

Turn off the phone completely.

Charge the battery at least 30%

Prepare a backup of important data (if available)

Make sure you know the information from the Mi Account (required after the reset)-->

โš ๏ธ Note: On phones with Qualcomm chips (e.g, POCO X5 Pro) after resetting via Recovery, you may need to re-authorize to Mi Account!

4. Unlock via Fastboot (for advanced users)

If the smartphone is not unlocked through Mi Account and Recovery requires a password, the method remains through Fastboot mode. It is suitable for devices with an unlocked bootloader and requires a computer with drivers installed. ADB/Fastboot.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with Windows/Linux/macOS.
  • ๐Ÿ”Œ Cable USB (preferably original).
  • ๐Ÿ“ฅ Utilities. ADB Fastboot (you can download from the official website).
  • ๐Ÿ”“ Unlocked bootloader (if not, you will need to wait 7-15 days to unlock through the Mi Unlock Tool).

Step-by-step action:

1. Turn off the phone and press <Loudness down + Power> to log into the Fastboot.


2 Connect the phone to the computer.




3. Open the command prompt (Windows) or terminal (Linux/macOS) in the folder with ADB.




4. Enter a command to check the connection:




fastboot devices




(Serial number of the device must be displayed)




5. To reset the password, do:




fastboot erase userdata




fastboot erase frp




6.Reset the phone:




fastboot reboot

On phones with a MediaTek processor (like Redmi 10C), instead of fastboot, you may need to use the SP Flash Tool with firmware for your model. Be careful: the wrong commands in Fastboot can turn the device into a brick.

What if the fastboot canโ€™t see the device?
If the fastboot device command doesnโ€™t show your phone, check: 1. Are drivers installed (for Windows, download the Mi Flash Tool). 2. Are you using the original cable (not all of them). USB-cables support data transmission). 3. Is debugging mode enabled USB (If the phone is working at least a little. 4. Try another one. USB-Port (preferably 2.0, not 3.0).

5 Password bypass through ADB (if debugging is enabled)

If the phone was pre-installed on the debugging USB (USB Debugging, you can delete the file with the password through ADB This method works for most Xiaomi models with Android 9 and above.

Instructions:

  1. Connect your phone to your computer (even if it is locked).
  2. Open the command line and type in: 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
  3. After resetting, the password will be reset.

If the su command doesn't work, you don't have root rights on your phone, so try an alternative way:

adb shell


cd /data/data/com.android.providers.settings/databases




sqlite3 settings.db




update system set value=0 where name='lock_pattern_autolock';




update system set value=0 where name='lockscreen.lockedout_permanently';




.quit




reboot

This method doesnโ€™t work on phones with File-Based Encryption (FBE) encryption, which is enabled by default on new models (such as the Xiaomi 13T), in which case only a full reset will help.

6.Official Unlocking Through Xiaomi Service Center

If all self-unlocking attempts fail, contact a Xiaomi authorized service center.This is the only legal way to unlock your phone without losing data if:

  • ๐Ÿ” The device is tied to someone elseโ€™s Mi Account (for example, after buying from hand).
  • ๐Ÿ”ง Protection on. FRP (Factory Reset Protection).
  • ๐Ÿ“ฑ The phone will give you an error "This device is locked" after the reset.

What will be required to unlock:

Document/conditionalityWhat do you need?Note
Check or sales contractConfirmation of possessionMust contain the phone's IMEI
Passport of the ownerIdentityThe copy is not suitable โ€“ you need the original
IMEI phoneChecking in the Xiaomi databaseYou can find out through a box or sticker under the battery.
Warranty card (if any)Acceleration of the processNot mandatory, but desirable.

The cost of unlocking in the service center varies from 1,000 to 3,000 rubles depending on the model and the reason for the lock. Terms - from 1 to 5 business days. Please note: informal services may offer "Mi Account bypass" for less money, but this violates Xiaomi's terms of use and can lead to locking the device.

๐Ÿ’ก

Officially unlocking through the service center is the only way to save data on the phone if the password is forgotten and synchronization with Mi Account is disabled.

7. How to avoid data loss when unlocking

If you are afraid of losing important information (photos, contacts, messages), use these tips before resetting:

  • โ˜๏ธ Check if sync is enabled with Mi Cloud. Even if the phone is locked, the data could have been saved to the cloud. Go to i.mi.com from your account and check backups.
  • ๐Ÿ“ฑ If the phone recognizes a fingerprint or face, try unlocking it this way and backing it up immediately through Settings. โ†’ The phone. โ†’ Backup.
  • ๐Ÿ’ป In some models (for example, POCO F4) You can connect the phone to the computer in mode MTP (file transfers, even with the screen locked. Try copying photos and documents.
  • ๐Ÿ”ง Use data recovery software (such as Dr.Fone or Tenorshare) 4uKey), But keep in mind that they donโ€™t always work on new Xiaomi models with encryption.

If the phone has enabled Find Device, check the Mi Cloud folder โ†’ Devices โ†’ [phone name] โ†’ Backups.

  • ๐Ÿ“ž Contacts and call log.
  • ๐Ÿ’ฌ Communications (SMS and some messengers).
  • ๐Ÿ“ท Photos and videos (if automatic downloading was enabled).
  • ๐ŸŽฎ Data from certain games (if they support synchronization).

FAQ: Frequent questions about unlocking Xiaomi

โ“ Phone asks for old password after reset via Recovery?
This means that the phone has Mi Account protection on. You need to: Connect to Wi-Fi on the welcome screen. Enter the data from the attached Mi Account (email and password). If you do not remember the data, restore access via account.xiaomi.com. If the account is not yours (the phone is bought by hand), contact the service center with the purchase documents.
โ“ Can you unlock Xiaomi without losing data?
Yes, but only in three cases: If debugging is enabled USB (USB Debugging - through ADB. If the phone recognizes biometrics (print/face), you can make a backup. You can do it through the official Xiaomi service center (documents will be required.
โ“ Why does the phone say, "This device is locked"?
This is FRP (Factory Reset Protection) protection, which works if: The phone was tied to Mi Account. You reset via Recovery or Fastboot. Solution: Connect to the Internet on the settings screen. Enter the data from Mi Account that was linked to the phone. If the account is not yours, contact the service center.
โ“ How to find out if the bootloader is unlocked on Xiaomi?
Check this: Turn off the phone. Press Volume down + Power to log into the Fastboot. Connect the phone to your computer and type in the command: fastboot oem device-info If the answer has a line Device unlocked: true, the bootloader is unlocked. On the locked bootloader it will be false.
โ“ Can you unlock Xiaomi through Google Account?
No. Unlike many other Android devices, Xiaomi phones only use Mi Account to restore access. Google Account won't help here, even if it's tied to a phone. Except that very old models (before 2016 release) sometimes had Google unlocking, but on modern devices, this method is not relevant.