How to reset your password to Xiaomi if you forget your pattern lock PIN-code: all methods 2026

Forgotten password on Xiaomi smartphone is a situation faced by almost one in five users, according to statistics of service centers, 18% of requests for blocking devices are associated with loss of access due to loss of access due to the loss of access. PIN-- A code, a pattern lock or a fingerprint, POCO Mi can be done on your own without going to the workshop and often without losing data.

In this article, we will look at all the current ways to reset your password to Xiaomi in 2026, from the official unlocker via Mi Account to forced reset via Fastboot or Recovery. We will pay special attention to the nuances for different models (for example, Redmi Note 12 vs POCO X5 Pro) and explain when data will be deleted irrevocably and when it can be saved. You will also learn how to avoid re-blocking and what to do if the smartphone requires an old password after reset.

1 Unlocking through Mi Account (official method)

The most secure and recommended method for Xiaomi is to use a tied Mi Account, which works on all devices with MIUI 12 and later, if you previously:

  • πŸ”Ή Log into a phone account.
  • πŸ”Ή Connecting the Internet (Wi-Fi or mobile data)
  • πŸ”Ή Do not turn off the function Find the device in the settings

Instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Password? on English firmware).
  2. Enter the email or phone number associated with the Mi Account.
  3. Confirm your identity through SMS-code-letter.
  4. Create a new password or pattern lock.

πŸ’‘

If the button "Forgot your password?" is not, try to enter any password 5 times in a row - the system will offer a recovery option.

Important nuances:

  • πŸ“Œ On devices with MIUI 13+ You may need to confirm your Google Account if it has been linked.
  • πŸ“Œ If the smartphone is not connected to the Internet, connect it to Wi-Fi through the Quick Settings Panel (swipe down on the lock screen).
  • πŸ“Œ In some models (POCO F4, Redmi K50) After resetting the password, you will need to reset.

⚠️ Note: If you bought your phone with your hands and the previous owner didn't untie his Mi Account, this method won't work.

2. Reset password via Recovery Mode (without Mi Account)

If the Mi Account is not tied or you don’t remember the login details, you can try resetting your password through Recovery, a method that works on most Xiaomi models but deletes all data on your phone, including photos, contacts and apps.

Step-by-step:

  1. Turn off the smartphone with a long press of the power button.
  2. Hold the combination: πŸ”˜ Loudness up + Power for most models (Redmi Note 11, POCO X3) πŸ”˜ Loudness down + Power for older devices (Mi 8, Redmi 5)

Mi

Recovery

Wipe Data

Wipe All Data

Confirm

Reboot

Turn off phone |Plug the correct button combination |Plut the Recovery menu |Select Wipe Data |Confirm reset |Reboot the device-->

What happens if Recovery does not open?

  • πŸ”§ Check the button combination – on some models (POCO F3) You need to hold the 10 buttons.+ seconds.
  • πŸ”§ If the phone vibrates but doesn’t turn on, plug it into charging for 10 minutes and try again.
  • πŸ”§ On devices with MIUI 14 may require a PC connection to unlock Recovery.
Xiaomi modelCombination for RecoveryFeatures
Redmi Note 12/13, POCO X5Volume up + NutritionChinese menu – use volume buttons to navigate
Mi 11, Mi 10TVolume up + NutritionRequires confirmation via Mi Account after reset
Redmi 9, POCO M3Loudness down + NutritionYou may need to connect to Wi-Fi to activate
Mi A3 (Android One)Volume up + NutritionReset leads to a requirement to enter Google Account data

3. Unlock via Fastboot (for advanced users)

The method via Fastboot is suitable if:

  • πŸ”Ή Recovery is blocked or not opened
  • πŸ”Ή Mi Account is disabled or Find the device
  • πŸ”Ή You are ready for complete deletion of data

This will require a computer with installed Xiaomi drivers and the Mi Flash Tool utility.Warning: wrong actions can turn the phone into a β€œbrick”!

Instructions:

  1. Download and install the Mi Flash Tool.
  2. Turn off the phone and put it in Fastboot mode: Press Volume Down + Power before the hare appears in the eardress cap
  3. Connect your phone to your PC through USB-cable.
  4. In the Mi Flash Tool, select the Clean All option.
  5. Press Flash and wait for the process to complete (5-10 minutes).
What if the Mi Flash Tool can't see the phone?
1. Check if the drivers are installed (download them from the official Xiaomi website). 2. Try another one. USB-cable (preferably original). 3. Disable the antivirus - it can block the utility. 4. Launch the Mi Flash Tool on behalf of the administrator.

⚠️ Note: On devices with a locked bootloader (Redmi Note 10, POCO X4 Pro) before resetting via Fastboot, you will need to unlock Bootloader through the official Xiaomi website.This takes up to 72 hours and erases all data!

Reset via Mi Account|Recovery Mode|Fastboot|Treached the service center |Never blocked the phone-->

4. Password bypass through ADB (only for unlocked Bootloader)

If your Xiaomi unlocked bootloader (Bootloader) and enabled debugging USB (USB Debugging, you can delete the file with the password through ADB. This method saves data, but only works on firmware before MIUI 12.5.

Instructions:

  1. Connect the phone to the PC and open the command line (cmd).
  2. Enter the commands in turn: 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.

Limitations of the method:

  • 🚫 Nana MIUI 13+ Locksettings.db file is protected and cannot be deleted.
  • 🚫 Requires root or unlocked Bootloader rights.
  • 🚫 In some models (POCO F5) After this procedure, resetting via Recovery may be required.

πŸ’‘

If the su command doesn’t work, try getting root rights first through Magisk or SuperSU.

5 Unlocking through Xiaomi Service Center

If all of these methods have failed, you have to contact the official service center.

  • πŸ”Ή Devices with a previous owner’s Mi Account
  • πŸ”Ή Phones with damaged firmware after a failed reset
  • πŸ”Ή Models with hardware lock (for example, after a failed firmware)

What will be required:

  • πŸ“„ Checks or documents confirming the purchase (if the phone is guaranteed)
  • πŸ“„ Passport of the holder (to confirm the identity)
  • πŸ’° Payment for the service (from 1000 to 3000 rubles depending on the model)

The average unlock time in the service is 1-3 days, and in some cases (for example, in case of hardware damage), a replacement of the motherboard may be necessary.

⚠️ Note: Unofficial workshops often offer "Mi Account bypass" for 500-1000 Risks: Piracy software installation, loss of warranty or complete failure of the phone. Xiaomi's official service does not circumvent accounts - only a full reset with proof of ownership.

6.How to avoid blocking in the future

To avoid the problem of forgotten passwords again, follow these tips:

  • πŸ” Use biometric unlocking (fingerprint or facial recognition) as a backup option.
  • πŸ“§ Link Mi Account and Google Account to make it easier to restore access.
  • πŸ“ Write your password to a secure location (for example, Bitwarden or KeePass password manager).
  • πŸ”„ Regularly back up through Settings β†’ System system β†’ Backup.

Security settings that are worth checking:

  1. Open the Settings. β†’ Password and security.
  2. Activate Find the device (allows you to unlock the phone remotely).
  3. Set up a Smart Lock to automatically unlock in secure locations (such as at home).
  4. Turn off Factory Reset via Recovery if you are afraid of an accidental reset.

πŸ’‘

Even if you use a pattern lock, set a backup PIN-This will help unlock the phone if the touch screen fails.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: πŸ”Ή You have a Mi Account attached and confirmed (method 1). πŸ”Ή Bootloader unlocked on phone and debugging enabled USB (In all other cases, the data will be deleted.
The phone asks for the old password after the reset.
This is due to Factory Reset Protection (FRP) Solutions: Enter the Google Account that was linked before the reset. If you don't remember, contact the service center with proof of purchase.
Can I bypass Mi Account without confirmation?
No, starting with MIUI 11, Xiaomi tightened protections.The only legal ways: πŸ”Ή Provide check and passport in the official service. πŸ”Ή If you have a handheld phone, contact the previous owner to unblock the account, and any "bypasses" through third-party programs are fraud and can lead to blocking. IMEI.
I dropped my phone, and now he's asking for the previous owner's account.
This means that the phone was tied to another person's Mi Account.Your actions: Contact the seller and ask to untie the device via the Mi Account website. If you cannot contact, return the phone to the seller or contact the police (if it is fraud).
How to unlock Xiaomi if you forgot your password and turned off Mi Account?
In this case, only radical methods remain: πŸ”Ή Reset via Recovery (will delete all data). πŸ”Ή Reset via Fastboot (requires PC). πŸ”Ή You can't save the data to the service center.