How to unlock the screen on Xiaomi if you forget your password or pattern lock

Why Xiaomiโ€™s screen is blocked and what to do about it

A locked screen on a Xiaomi smartphone is a situation that one in five users encounter, and the reasons range from trivial forgetfulness (password or pattern lock) to failures after a MIUI update. But whatever the reason, the main thing is not to panic. 90% of the time, the device can be unlocked without data loss if you follow proven algorithms.

Modern models of Redmi, POCO Xiaomi (starting with the Mi 8 and newer) use multi-level protection: from standard PIN-But even the most advanced biometrics can't save you if you forget your backup password. Fortunately, the manufacturer has provided several formal and informal ways to restore access โ€“ from simple data entry Mi Account to complex manipulations through Fastboot.

It's important to understand that the newer the MIUI model and version, the harder it is to get around the lock. For example, on Xiaomi 13 Pro with MIUI 15, unlocking through ADB may not work without first activating the debugging over USB. But on Redmi Note 10 with MIUI 12, this method often helps. So before you start, check the model and the firmware version, this will save time.

Method 1: Unlocking with Mi Account (official method)

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

  • ๐Ÿ”น Log into a phone account.
  • ๐Ÿ”น Connected the device to the Internet (Wi-Fi or mobile network)
  • ๐Ÿ”น Do not turn off the function "Find the device" in the settings

Instructions:

  1. On the lock screen, tap Forgot password? (or Forgot password? on English firmware).
  2. Choose Restore through Mi Account.
  3. Enter the email or phone number associated with the account and the password.
  4. Confirm your login via SMS or email (if two-factor authentication is enabled).
  5. Follow the systemโ€™s prompts to create a new password or pattern lock.

โš ๏ธ Note: If you do not remember the data from Mi Account, restore them on the official website account.xiaomi.com. Using third-party services to "hack" the account is fraught with blocking IMEI device.

Make sure your phone is connected to the internet.

Check if the โ€œFind Deviceโ€ function is enabled in your account settings

Prepare an email/phone and password from Mi Account

Have access to mail or SMS to confirm

-->

Method 2: Recovery Mode (Data Loss)

If Mi Account is not tied or you don't remember the data, the radical method is hard reset through recovery mode, which erases all the data on the device, including photos, contacts and apps. Use it only as a last resort!

Step-by-step instructions for most Xiaomi/Redmi/POCO models:

  1. Turn off the phone with a long press of the power button.
  2. Hold the combination: ๐Ÿ”น Loudness up + Food for most models ๐Ÿ”น Loudness up + Loudness down + Power for some older devices (e.g. Redmi) 4X)

Mi

Recovery Mode

Wipe Data

Clear Data

Wipe All Data

Reboot

โš ๏ธ Note: Some models (e.g. Xiaomi Mi) A1/A2 With pure Android, the Recovery menu may be different.

What happens if the Recovery Mode does not open?
If the button combination doesnโ€™t work, try: 1. Connect your phone to charge for 10-15 minutes โ€“ sometimes a dead battery blocks the entrance to Recovery. 2. Use another combination (e.g. Volume down + Power for POCO F1). 3. Try connecting the device to your PC and use the adb reboot recovery command (requires pre-activation of debugging over USB).

Method 3: Unlocking via Fastboot (for advanced users)

The method via Fastboot is suitable if:

  • ๐Ÿ”น The device is debugging on USB (USB Debugging)
  • ๐Ÿ”น You can access a computer with installed Xiaomi drivers and the Mi Flash Tool
  • ๐Ÿ”น You are ready for possible data loss (depending on the selected teams)

Algorithm of action:

  1. Install the Mi Flash Tool and Xiaomi drivers on PC.
  2. Turn off the phone and put it in Fastboot mode: Clip Volume Down + Power before the hare appears in the hat-eared (logo Fastboot)
  3. Connect the device to the PC through USB-cable.
  4. Open the command line (Windows) or terminal (macOS/Linux) in the folder with the platform-tools (from Android SDK) and execute the command to check the connection: fastboot devices If the device is determined (its serial number appears), continue.
  5. To reset your password without losing data (does not work on all models), type: fastboot erase frp Then restart your phone: fastboot reboot

โš ๏ธ Warning: Fastboot erase userdata or fastboot erase persist commands will result in a complete data reset! Use them only if you are ready to lose all information on the device.

๐Ÿ’ก

Before working with Fastboot, back up your data via Mi PC Suite if your phone is at least somehow responsive to your computer connection.

Method 4: Use ADB (if debugging was enabled)

If the phone has previously been activated debugging over USB (USB Debugging in the developer settings), you can try unlocking the screen through ADB. This method saves data, but requires preliminary preparation.

Instructions:

  1. Connect your phone to your PC via USB (use the original cable!).
  2. Open the command line in the folder with the platform-tools (from Android SDK).
  3. Check the device connection: Adb devices If the phone appears in the list, follow the following commands.
  4. Delete password files (works on the MIUI beforehand 12): adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
  5. Reboot the device: adb reboot

โš ๏ธ Attention: MIUI 13+ and new models (Xiaomi) 12/13 series, Redmi Note 11/12) This method may not work because of the increased protection, so try an alternative command:

adb shell am start -n com.android.settings/.ChooseLockGeneric

It runs the wizard setting a new password.

Method 5: Unlocking through Xiaomi Service Center

If you don't succeed, contact the official Xiaomi service center, which is the only legal way to unlock your device without risking damage or loss of warranty.

  • ๐Ÿ”น Guaranteed result (if the phone is not blacklisted) IMEI)
  • ๐Ÿ”น Maintenance of official guarantee
  • ๐Ÿ”น Data recovery (in some cases)

What will be required for the application:

  • ๐Ÿ“„ Passport holder (or power of attorney if your phone is not yours)
  • ๐Ÿ“ฑ The device itself with a battery charge of at least 30%
  • ๐Ÿ’ณ Checks or warranty card (if any)
  • ๐Ÿ“ง Data from Mi Account (if linked)

The cost of unlocking in 2026 varies from 1500 to 4000 rubles depending on the model and the complexity of the work. For example, for Xiaomi 13 Ultra, the price can reach 5000 rubles due to the complexity of hardware protection.

Official reset via Mi Account

Hard Reset in Recovery Mode

Fastboot or ADB

I went to the service center.

I haven't tried it yet, I'm looking for a solution.

-->

Method 6: Bypassing the lock via EDL Mode (emergency method)

EDL Mode (Emergency Download Mode) is an emergency firmware mode that allows you to reflash a device even with a locked bootloader.

  • ๐Ÿ”น Knowledge of firmware and tools like Mi Flash Tool or QFil
  • ๐Ÿ”น Having the right firmware for your model
  • ๐Ÿ”น Special cable (or ability to solder the device into the EDL testpoint)

โš ๏ธ Attention: Incorrect actions in EDL Mode can turn a phone into a brick, a non-functional device that is not switched on or detected by a computer:

  • ๐Ÿ”ธ You have experience in Xiaomi devices
  • ๐Ÿ”ธ You have found the exact firmware for your model and region
  • ๐Ÿ”ธ Ready for possible loss IMEI or serial number

Short instructions (for experienced users):

  1. Download firmware in.tgz or.fastboot format for your model from the official Xiaomi website.
  2. Unpack the archive and install the Mi Flash Tool.
  3. Transfer the phone to EDL Mode: ๐Ÿ”น Through a button combination (e.g. Volume up) + Loudness down + Power on a phone turned off) ๐Ÿ”น Through testpoints (requires disassembly of the device)

Qualcomm HS-USB QDLoader 9008

Mi Flash Tool

Flash

๐Ÿ’ก

EDL Mode is the last chance to bring the phone back to life if other methods have failed, but without experience, it is better to consult specialists to avoid aggravating the situation.

Frequent Mistakes and How to Avoid Them

When trying to unlock, users often make critical errors that can lead to complete data loss or โ€œbrickingโ€ of the device, the most common of which are:

Mistake.Effects of consequencesHow to avoid
Use of informal firmwareIMEI blocking, loss of warranty, unstable operationDownload the firmware only from the official website
Interrupting the firmware processThe phone is not turned on ("brick")Don't turn it off. USB-cable and do not turn off the PC until it is completed
Reset via Recovery without backupLoss of all data (photos, contacts, messages)Before resetting, try saving data via Mi PC Suite
Attempt to unlock through third-party servicesData theft, viruses, blocking of Mi AccountUse only official methods or service centers
Wrong firmware choice (for example, global instead of Chinese)Errors in the operation of the communication module, camera, sensorsCheck the firmware conformance to the model and region (EEA, Global, China)

โš ๏ธ Warning: If after a failed unlock, the phone stopped turning on or got stuck on the Mi logo, do not try to repeat the actions.

FAQ: Answers to Frequent Questions

Can I unlock Xiaomi without losing data?
Yes, but only if: ๐Ÿ”น You are bound and remember your Mi Account (option 1) ๐Ÿ”น The phone was debugging on. USB and you can use it ADB (Method 4) Other cases (reset via Recovery, Fastboot, EDL) data will be lost.
What to do if you forget your Mi Account email?
Restore access via the official Mi Account page: Click Forgot password?. Enter the linked phone number or backup email. Follow the recovery instructions (SMS or code letter). If you don't remember either email or phone, contact Xiaomi with proof of ownership of the device (checks, box, IMEI).
Why does the phone ask for an old password after resetting via Recovery?
This is because of Factory Reset Protection (FRP) -- reset protection. To get around it: Connect your phone to the Internet during the setup phase. Enter the data from the Mi Account that was tied before the reset. If you don't remember the data, restore it (see question above) or contact the service center.
Can I unlock Xiaomi with a fingerprint if I forgot my password?
No. Biometrics (fingerprint, face) are just an alternative way of unlocking, they work on top of the master password or the pattern lock, and if you forget the master code, biometrics won't help.
How much does it cost to unblock in unofficial services?
Prices in โ€œgrayโ€ services range from 500 to 3000 rubles, but the risks are huge: ๐Ÿ”ธ Installation of pirate firmware with viruses ๐Ÿ”ธ Lockdown IMEI (The phone will be a brick") ๐Ÿ”ธ Device theft We recommend using only official Xiaomi service centers.