How to reset your password to Xiaomi if you forget your pattern lock PIN-code

Introduction: Why Xiaomi is blocked and what to do

Forgotten password on Xiaomi is a situation that one in five users encounter, and according to statistics from service centers, 18% of requests are related to unlocking devices after unsuccessful attempts to enter. PIN-The reasons are trivial: the infrequent use of locking, changing the password to a β€œtemporary” one (which is immediately forgotten), or buying a used phone with an already installed code.

Xiaomi smartphones (including Redmi, POCO and Black Shark models) are blocked after 5 incorrect input attempts, suggesting that you wait 30 seconds before the next. After 10-15 failures, the device may require data input from Mi Account or completely lock yourself. In this article, we will analyze all official and informal password reset methods, including those that work without binding to the Mi Account.

Important: the methods are different for bootloader and locked devices. If you have not previously activated OEM Unlock in the developer settings, some of the methods will not be available. Also, remember that password reset always leads to loss of user data (photos, messages, applications) if there was no backup.

Method 1: Unlocking with Mi Account (official method)

The safest and most recommended way for Xiaomi is to use a tied Mi Account.It works on all devices, including Redmi Note 10/11/12, Xiaomi 13/14, POCO F4/F5, if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile data).
  • πŸ”— Mi Account was tied to device prior to lockdown.
  • πŸ”’ You remember the login (email/phone number) and account password.

Instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Password?).
  2. Select Sign in via 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 system’s prompts to create a new password or pattern lock.

⚠️ Note: If you do not remember the data from Mi Account, try to restore access through the official website. Using third-party services to "hack" the account is fraught with permanent blocking. IMEI (The device will become a brick»).

πŸ“Š How often do you change your password on your smartphone?
Once a month
Six months
Only when I forget.
Never change.

Method 2: Recovery Mode (without Mi Account)

If the Mi Account is not tied or you don’t remember the data, it’s hard to reset through Recovery Mode, which will delete all the data on the device but unlock it, and is suitable for most Xiaomi models, except those that are protected by the Mi Cloud Lock (for example, after a hand-held purchase).

Step-by-step:

  1. Turn off the phone with a long press of the power button.
  2. Press the button combination: πŸ”„ For most models: Volume up + Nutrition. πŸ”„ For POCO X3/X4 And some Redmi: Volume up + Loudness down + Nutrition.

Mi

Recovery

Wipe Data

Factory Reset

Yes

Reboot

Turn off the phone from charging

Make sure the battery is at least 30% charged

Prepare. SIM-post-reset activation card

Remember data from Google account (required when setting up)

-->

⚠️ Note: On some devices (e.g. Xiaomi) 12T or Redmi K50) After resetting via Recovery, you may need to enter data from the previous Mi Account, even if it was not explicitly linked, this is due to the Find Device function, in which case only contacting the service center with proof of purchase will help.

Method 3: Use Fastboot and ADB (for advanced users)

If Recovery Mode is not available or resetting through it did not work, you can try unlocking the device through Fastboot, the firmware mode available on all Xiaomi smartphones.This method requires a computer with ADB and Fastboot drivers installed, as well as an unlocked bootloader (OEM Unlock).

What you need:

  • πŸ’» Computer with Windows/Linux/macOS.
  • πŸ”Œ Cable USB (preferably original).
  • πŸ› οΈ Utilities. ADB Fastboot (you can download from the official Android website).
  • πŸ”“ Unlocked bootloader (if not - see spoiler below).
How to unlock the bootloader on Xiaomi?
To unlock the bootloader, you need: 1. Enable OEM Unlock in Settings β†’ About Phone β†’ MIUI Version (click 7 times, then return to Additional β†’ For Developers). 2. Link the device to Mi Account in Settings β†’ Xiaomi Account β†’ Mi Unlock Status. 3. Download Mi Unlock Tool and follow the instructions (you may need to wait 7-15 days).

Instructions for resetting via Fastboot:

  1. Turn off the phone and put it into Fastboot mode, clamping Volume down + Power.
  2. Connect the device to the computer.
  3. Open the command prompt (or terminal) in the ADB folder and type: fastboot devices Make sure the device is identified (its serial number should appear).
  4. Run the command to reset: fastboot erase userdata fastboot erase frp fastboot reboot

⚠️ Note: Fastboot erase userdata and fastboot erase frp will delete all data, including internal memory, and reset Factory Reset Protection settings (FRP). If after the reboot the phone requires the entry of the old password, then the bootloader was blocked - you will need official unlock through the Mi Unlock Tool.

Method 4: Bypassing locking through EDL Mode (for power users)

EDL Mode (Emergency Download Mode) is a flashing mode that allows you to reflash a device even with a locked bootloader. It is used by service centers and requires special equipment (EDL cable or Deep Flash Cable) or the ability to solder a resistor into a board.

πŸ”Ή When you need it. EDL:

  • πŸ”§ The phone does not respond to other unlock methods.
  • πŸ”’ bootloader locked and Mi Account not tied.
  • πŸ“± The device β€œbrickled” after a failed firmware.

The firmware process through EDL:

  1. Download the firmware for your model from the Xiaomi Firmware Updater website (choose the Fastboot version).
  2. Install the Qualcomm 9008 driver (instructions are available on the 4PDA or XDA Developers forums).
  3. Put your phone in EDL mode: With Deep Flash Cable (closing GND and EDL contacts on the board), or with adb reboot edl if ADB is enabled.

Mi Flash Tool

Clean All

⚠️ Attention: Firmware through EDL Without experience, it can lead to a complete loss. IMEI or damage to the module NFC/Wi-Fi. If you're not sure about your skills, contact a service center.The cost of unlocking through EDL is 1 500–3 000 rouble 2026 year).

πŸ’‘

Before you run your firmware through EDL, check the phone model with the command fastboot getvar product. Wrong firmware can turn the device into a brick.

Method 5: Contact Xiaomi Service Center

If all of these methods do not work, the last option is to contact an authorized Xiaomi service center.

  • πŸ” Phone protected by Mi Cloud Lock (requires proof of purchase).
  • πŸ“± The device does not turn on or respond to buttons.
  • πŸ”§ You are afraid to damage your smartphone by self-manipulation.

What you need to unlock in the service:

Document/conditionalityWhat do you need?Note
Check or guarantee cardConfirmation of purchaseIf the phone used - the contract of sale
Passport of the ownerIdentificationIn some centers, they require
IMEI devicesLegality checkYou can find it on the box or via *#06#
Data from Mi AccountIf the account is linkedIf not, a possible refusal

The cost of unlocking the service varies from 500 to 5 000 rubles, depending on the complexity. For example, the FRP reset will cost 1,000-1 500 rubles, and unlocking the Mi Cloud Lock - up to 3000-4 000 rubles.

πŸ’‘

Xiaomi’s official service centers do not work with devices that have signs of theft (for example, if the IMEI is blacklisted).

Frequent Mistakes and How to Avoid Them

When trying to reset a password on Xiaomi, users often make critical mistakes that can make things worse.

Interruption of the discharge process

If you have started resetting via Recovery or Fastboot, do not disconnect your phone from the power or cable.

  • πŸ”„ Β«The looped Mi logo when enabled.
  • πŸ“΅ Loss of access to Recovery and Fastboot.
  • πŸ’€ Fully β€œbricked” (required firmware through) EDL).

2. Use of informal firmware

Downloading firmware from dubious sources (not xiaomifirmwareupdater.com or the official website) is fraught with:

  • 🦠 Viruses or spyware.
  • πŸ”§ Incompatible with your model (even if the names are similar).
  • 🚫 Permanently blocking Mi Account.

3. Ignoring backup

Before any manipulation of the password, make sure to back up the data.

  • πŸ”„ Use Mi Cloud (if your phone is not locked).
  • πŸ’» Connect the device to the PC and copy the files manually.
  • πŸ”§ Turn on Debugging. USB And backup through ADB: adb backup -apk -obb -shared -all -f backup.ab

πŸ’‘

If your phone is locked but you remember the password from your Google account, you can recover some of the data after the reset (contacts, photos from Google Photos, notes).

FAQ: Answers to Frequent Questions

Can I reset my password to Xiaomi without losing data?
No, all official password reset methods (Recovery, Fastboot, Mi Account) delete user data. The only way to save files is to unlock the phone through Mi Account on the lock screen if the account was linked in advance.
What if the phone needs an old password after resetting?
This means that Factory Reset Protection (FRP) is activated on the device. To get around it: Enter the data from the Google account that was linked to the phone before the reset. If you don't remember, try to restore access through Google Account Recovery. If the account is not tied, you will need firmware through Fastboot or EDL.
How do I know if my Xiaomi bootloader is unlocked?
Put your phone in Fastboot mode (click Volume Down + Power) and connect to your computer. Enter the command: fastboot oem device-info If the answer has a line Device unlocked: true, the bootloader is unlocked. If false is locked.
Can you unlock Xiaomi through services like iCloud Remove?
No, all of these services (especially those that promise to delete Mi Accounts for money) are frauds, they either don't work or they can block the IMEI of your device, and the only legal way is to contact Xiaomi's service center with proof of purchase.
How much does it cost to unlock Xiaomi in unofficial services?
Cost varies depending on the model and type of lock: Reset FRP: 800-1 500 rubles Unlocking Mi Account: 1,500-3,000 rubles. EDL: 2,000-4,000 rubles. ⚠️ Risks: Unofficial services can use unlicensed software or damage the device.