How to unlock a Xiaomi phone if you forget your pattern lock: the full guide 2026

Forgetting the pattern lock on a Xiaomi smartphone is a frustrating situation, but it is not a hopeless one. Unlike other brands, Redmi, POCO or Mi phones offer several ways to restore access, including official tools from the manufacturer. The main thing is not to panic or try to find a combination at random: after 5 unsuccessful attempts, the system will lock the device for 30 seconds, and after 20 - can completely erase all data.

In this article, we will discuss all the current ways of unlocking, from the simplest (via Mi Account) to radical (reset via Fastboot), focusing on the methods that allow you to save personal files – photos, contacts and messages, and learn how to avoid blocking in the future and what settings Xiaomi will help quickly restore access if the situation repeats.

1 Unlocking through Mi Account (official method)

Xiaomi’s most reliable and recommended way is to use a tied Mi Account, which works on all models, starting with the Redmi 4X (2017) and later, provided that:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ”‘ The device is linked to the Mi Account (you have previously logged in to it).
  • πŸ“§ You remember the login (email or phone number) and password from the account.

If all conditions are met, follow the instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Pattern? on English firmware).
  2. Select Sign in via Mi Account.
  3. Enter your email/phone and password from your account.
  4. Confirm your login via SMS or email (if two-factor authentication is enabled).
  5. Create a new pattern lock or PIN-code.

Make sure the phone is connected to the network|Remember the username/password from Mi Account|Check the balance SIM-cards (for SMS-code)|Have access to email to confirm-->

πŸ’‘

If it doesn't come SMS code, check the balance SIM-card or try to get the code through the call ("Call me" option in the entrance window).

Limitations of the method:

  • ❌ It does not work if your Mi Account is not linked to your phone.
  • ❌ Some of the firmware (e.g. Global) ROM for POCO F1) option may not be available.
  • ❌ If the device is not connected to the Internet, the entrance will be impossible.

⚠️ Note: Once unlocked through Mi Account, the system may require proof of identity through Find Device.If you haven't set it up before, skip the step - it's not critical.

2. Reset the pattern lock via Find Device (remotely)

If your phone is connected to the Internet but you can’t enter a password on your lock screen, use Xiaomi’s Find Device, a method that allows you to remotely unlock your device or erase all data (a choice of), suitable for Redmi Note 8/9/10, POCO X3/X4, Mi 11/12 and later.

Instructions:

  1. Go to i.mi.com from a computer or other phone.
  2. Sign in with the same Mi Account as on the locked device.
  3. In the menu, select Find Device β†’ find your phone on the map.
  4. Click Unlock or Erase Device.
  5. Confirm the action via SMS or email.
Option.Action.Effects of consequencesImplementation time
UnlockRemoves the screen lock.Data is retained1-5 minutes
Erase DeviceFull Reset (reset to factory)All files and settings are deleted5-15 minutes
LockLocks the phone (if stolen)Data is saved but access is closedInstantly.

Important: Unlock is only available if the phone is on and connected to the network, and if the device is off, the service will show its last known location, but it will not be able to unlock it.

Never tried | Only to find a phone | To unlock | For remote control-->

3. Unlocking through Recovery Mode (reset to factory)

If the Mi Account is not tied or the phone is not connected to the Internet, there is a hard reset via Recovery, which will remove all data from the device, including photos, apps and settings, suitable for all Xiaomi models, but requires physical access to the phone.

Step-by-step:

  1. Turn off the phone (press Power + Volume up for 10 seconds).
  2. Press the combination to enter Recovery: For most models: Power + Volume up. For POCO F1/F2/F3: Power + Volume down. For Redmi Note 7/8/9: Power + Volume up + Volume down (hold 10 seconds).

Recovery

Wipe Data

Wipe All Data

Confirm

After restarting, set your phone as new.

⚠️ Note: On some firmware (China) ROM) Recovery may require you to enter a Mi Account password even to reset.If you don't remember it, use the Fastboot method (section 4).

What happens if Recovery does not open?

  • πŸ”‹ Check the battery charge (should be at least 30%).
  • πŸ”Œ Connect your phone to charge for 10 minutes before trying.
  • πŸ”„ Try a different button combination (see the instructions for your model).
How to recover data after resetting?
If you have backed up through Mi Cloud or Google Account, you can recover data after you set up your phone. 1. When you first turn on, select Restore from backup. 2. Enter data from Mi Account or Google. 3. Select the last copy (date of creation). Photos and videos that did not fall into the cloud will not be recoverable without specialized programs (for example, Dr.Fone or EaseUS MobiSaver), but their effectiveness is not guaranteed.

4. Unlock via Fastboot (for advanced users)

The Fastboot method is suitable if:

  • πŸ”“ Recovery asks for password from Mi Account.
  • πŸ“± The device does not respond to other methods.
  • πŸ’» You have a computer with drivers installed. ADB/Fastboot.

Unlocking will require:

  • πŸ–₯️ Computer under control Windows/Linux/macOS.
  • πŸ”Œ USB-cable (original or quality).
  • πŸ“¦ Archive with firmware for your model (download from the official website).

Instructions:

  1. Install Android SDK Platform-Tools (or Mi Flash Tool for Xiaomi).
  2. Turn off your phone and put it in Fastboot mode: Press Power + Volume down for 10 seconds
  3. Connect the phone to the computer.
  4. Open the command prompt (cmd) in the adb folder and execute: fastboot devices If the device is identified (the serial number appears), continue. If not, install the driver.
  5. To reset the lock, enter: fastboot flashing unlock or for a full reset (deletes all data): fastboot erase userdata fastboot erase frp
  6. Reboot the phone: fastboot reboot

Possible errors and solutions:

  • 🚫 fastboot: command not found β†’ Install Platform-Tools or check the path to the folder.
  • 🚫 device not found β†’ Check it out. USB-cable, ports, drivers or try another computer.
  • 🚫 This device is locked β†’ You need to unlock the bootloader through the official Xiaomi website (it will take 7-30 days).

πŸ’‘

Fastboot is the most reliable method to unlock, but it requires technical skills. If you are not sure about your actions, contact the service center.

5. Alternative methods (without loss of data)

If the official methods didn’t help and you don’t want to reset the data, you can try to bypass the lock using third-party tools, which do not guarantee 100% results and may not work on new MIUI 14/15 firmware.

Method 1: Use ADB (if USB debugging is enabled)

If you previously enabled USB debugging in the developer settings, you can delete the file with the pattern lock:

  1. Connect the phone to the computer.
  2. Open cmd and type: adb shell su rm /data/system/gesture.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot

Method 2: Unlocking programs (at your own risk)

There are utilities like Dr.Fone, Screen Unlock or iMyFone LockWiper, that promise to unplug the lock without resetting.

  • ⚠️ They're paid (from 30).$ unlockable).
  • ⚠️ It may not work on the latest versions. MIUI.
  • ⚠️ Risk of installing malware (download only from official sites).

Method 3: Contacting a Service Center

If nothing helps, contact the official Xiaomi service.

  • πŸ“„ Check or warranty card (proof of possession).
  • πŸ†” Passport (for proof of identity).
  • πŸ’° Payment for services (from 500 to 2000 rubles depending on the model).

6.How to avoid blocking in the future

To avoid the problem of a forgotten pattern lock, set up Xiaomi in advance:

Step 1. Attach Mi Account

  • πŸ“Œ Go to Settings. β†’ Accounts. β†’ Mi Account.
  • πŸ“Œ Enter data or register a new account.
  • πŸ“Œ Enable Data Synchronization (Contacts, Notes, Photos).

Step 2. Set up a backup.

  • πŸ”„ B Settings β†’ The phone. β†’ Backup copy to Mi Cloud or Google Drive.
  • πŸ“… Install automatic copying (for example, once a week).

Step 3: Add alternative ways to unlock

  • πŸ” B Settings β†’ Screen lock add PIN-Fingerprint or code other than a pattern lock.
  • πŸ“ Enable Find Device in your Mi Account settings.

Step 4: Write down your passwords to a secure location

  • πŸ“ Use password managers (Bitwarden, 1Password).
  • πŸ“„ Save a backup copy of the key in an encrypted file on your computer.

πŸ’‘

Even if you never forget the pattern lock, a tied Mi Account will help you regain access to your phone when you are stolen or lost.

FAQ: Frequent questions about unlocking Xiaomi

❓ Can you unlock Xiaomi without losing data?
Yes, but only if: πŸ”Ή Mi Account Linked and Phone Connected to Internet (Method 1 or 2). πŸ”Ή Debugging is on. USB (method ADB In other cases, the data will be deleted.
❓ What to do if you forget your Mi Account password?
Restore it through the recovery page: Click Forgot password?. Enter email or phone number. Confirm via SMS or backup email. If you do not have access to the linked number/mail, contact Xiaomi with proof of account ownership (checks, IMEI phone).
❓ Why After Recovery, Your Phone Asks for an Old Password?
This is FRP (Factory Reset Protection) that is activated if a Mi Account was attached to the phone. To remove the request: Enter the data from the Mi Account that was on the phone before the reset. If you do not remember the password, restore it (see question above). If the account is not yours (phone bought by hand), contact the previous owner or service center with proof of purchase.
❓ Do unlock programs work (e.g., iMyFone)?
On Xiaomi models 2020–2026 years MIUI 12–15) Most of these programs don't work because of the enhanced protection: πŸ”Ή Dr.Fone can help with older models 5/6/Note 7). πŸ”Ή Tenorshare 4uKey sometimes works on POCO F1/F2. Risks: ⚠️ Installation of malware. ⚠️ Blocking your Mi Account for suspicious activity.
❓ How to unlock Xiaomi if it’s off and doesn’t respond to buttons?
If the phone is discharged or not turned on: πŸ”‹ Connect to charging for 30 to 60 minutes (even if there is no reaction). πŸ”Œ Try another charger or cable. πŸ”„ Squeeze the power. + Volume up for 20-30 seconds (forced reboot). πŸ’» If the phone is identified by the computer as a Qualcomm 9008, you may need firmware through the EDL Mode (power users only) If the device is not showing signs of life, contact the service - there may be a malfunction of the battery or motherboard.