How to unlock Xiaomi phone if you forget the pattern lock: the complete guide

Why a pattern lock blocks access and what to do

The forgotten pattern lock on Xiaomi is one of the most common problems among smartphone users of this brand. PIN-If you have a code or a password, graphical unlocking seems simple and convenient, but if you lose the combination, it becomes a serious obstacle. MIUI It does not provide standard ways to recover the key, so owners have to look for workarounds.

The main difficulty is that Xiaomi actively uses data protection: after 5 failed attempts to enter the key, the device can lock for 30 seconds, and after 20 attempts, it can offer to reset altogether. But even this does not always work, especially if Mi Account was activated earlier or Find My Device is enabled. In this article, we will analyze all the current methods of unlocking, from the most secure to radical, taking into account the features of different models from the Redmi Note 10 to Xiaomi 14 Pro.

Before you start unlocking, make sure you have a backup of important data.Most methods result in a complete reset, and without first syncing with Mi Cloud or Google Account, it will be impossible to recover photos, contacts and messages.

Method 1: Unlocking with Mi Account (official method)

The most legal and recommended way for Xiaomi is to use a Mi Account that works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ”‘ You have access to email/phone-linked.
  • πŸ”„ Find My Device has been activated in the settings.

Instructions:

  1. On the lock screen, tap Forgot the password? (or Forgot pattern? on English firmware).
  2. Select the recovery option through Mi Account.
  3. Enter the login (email or phone number) and password from the account.
  4. Confirm the entry via SMS or email code.
  5. Follow the system instructions to create a new pattern lock.

⚠️

Note: If the phone is not connected to the network, this method will not work, and Xiaomi may also request additional verification (such as a linked phone number) if the login is from a new device.

πŸ“Š What Unlocking Method Have You Tried Before?
Mi Account
Hard Reset
ADB
Service centre
I've tried nothing.

Method 2: Recovery Mode (Hard Reset)

Hard reset is a universal method that works on all Xiaomi models, but results in complete loss of internal memory. Use it only if other methods are not available or have not worked.

Step-by-step:

  1. Turn off the phone with a long press of the power button.
  2. Press the key combination to enter Recovery Mode: For most models: Volume up + Power. For older devices (e.g. Redmi 4X): Volume up + Volume down + Power.

From the Recovery menu, select the language (usually English or Chinese).

Wipe Data β†’ Wipe All Data

Confirm

Reboot β†’ Reboot to System

β˜‘οΈ Preparation for Hard Reset

Done: 0 / 4

⚠️

Note: Some models (e.g. Xiaomi) 13T Or the Redmi Note 12 Pro.+) Hard Reset may require you to enter data from Mi Account, which was previously linked to the device (FRP).

Xiaomi modelCombination for RecoveryIs a Mi Account Required After a Reset?
Redmi Note 10/11/12Volume up + NutritionYeah, if he was tied up.
Xiaomi 11T/12T/13Volume up + NutritionYes.
POCO F3/F4/F5Volume up + NutritionYeah, except for Chinese firmware.
Redmi 9A/9CVolume up + Volume down + NutritionNo (on older versions of MIUI)

Method 3: Unlocking through ADB (for advanced users)

If you have USB debugging enabled and you have access to your computer, you can try removing the file with the pattern lock via ADB (Android Debug Bridge), which doesn’t work on all versions of MIUI, but it can save data.

What you need:

  • πŸ–₯️ A computer with installed Xiaomi drivers and ADB.
  • πŸ”Œ USB-cable (preferably original).
  • βš™οΈ Included debugging by USB developer-setting.

Instructions:

  1. Connect the phone to the computer.
  2. Open the command line (cmd) and type in: adb shell su rm /data/system/gesture.key reboot
  3. After rebooting, the pattern lock should be reset.

⚠️

Note: On newer versions of MIUI 14+, this method may not work due to changes in system file structure, and root rights are required, which are not available on all devices.

πŸ’‘

If USB debugging hasn't been enabled beforehand, this method won't work. Try unlocking your phone through Mi Account or Hard Reset first.

Method 4: Using Fastboot and firmware (for tech-savvy)

If previous methods have not worked, you can try to flash the phone over Fastboot, which is suitable for devices with an unlocked bootloader or if you are ready to unlock it (which will lead to a data reset).

Step-by-step:

  1. Download the official firmware for your model from the Miui Download website.
  2. Unpack the archive with the firmware in the folder with Fastboot tools.
  3. Turn off the phone and press Volume Down + Power to log in to Fastboot Mode.
  4. Connect the device to the computer and execute the command: fastboot flash all name file firmware.zip
  5. After the firmware is complete, restart your phone: fastboot reboot

⚠️

Warning: The wrong firmware can turn your phone into a brick. Make sure you download the firmware for your model (e.g., the Redmi Note 11 Pro 5G and Redmi Note 11 Pro are different devices!).

What to do if the firmware is interrupted?
If the firmware process has been interrupted, do not disconnect the phone from your computer. Try repeating the command or use the Mi Flash Tool with the Clean All option. EDL-regime.

Method 5: Contact Xiaomi Service Center

If all the self-unblocking attempts fail, you have to go to an authorized service center, which is the most reliable, but also the longest way.

  • πŸ”§ Guaranteed data retention (in some cases).
  • πŸ“„ Official unlock without risk of damaging the device.
  • πŸ”’ Unlock Mi Account if you forget your password.

What will be required:

  • πŸ“„ Checks or warranty card (if the device is guaranteed).
  • πŸ†” Passport or document confirming possession of the phone.
  • πŸ’³ Payment for the service (cost varies from 1000 to 3000 rubles depending on the model).

⚠️

Warning: Unofficial service centers may offer unlocking via EDL or other undocumented methods, which can risk installing unlicensed software or losing IMEI. Always check reviews and status of the center on the Xiaomi site.

Frequent Mistakes and How to Avoid Them

When trying to unlock, users often make critical mistakes that can make things worse.

  1. Ignoring backup: Many people start resets without first saving data to Mi Cloud or Google Drive, resulting in lost photos, messages and contacts.
  2. Installing firmware from another model (e.g. Redmi Note 11 instead of Redmi Note 11 Pro) leads to a hard brick – the phone stops turning on at all.
  3. Interrupting. If you turn off the cable or pull out the battery during a Recovery reset or Fastboot firmware, the device may fail.
  4. Use of dubious software: There are widespread β€œpattern lock hackers” for Xiaomi on the Internet, which are actually viruses or spyware.

To minimize the risks:

  • πŸ”‹ Always charge your phone up to 50% before manipulation.
  • πŸ” Check the firmware models on official resources.
  • πŸ›‘οΈ Use only proven tools (Mi Flash Tool, ADB Google).

πŸ’‘

If the phone is locked and doesn't respond to any methods, don't try to disassemble it yourself.Modern Xiaomi smartphones have autopsy protection that can cause the display or battery to break.

Can I unlock Xiaomi without losing data?
Theoretically, yes, but only if: You have USB debugging enabled and have access to ADB. The phone is synced to Mi Cloud or Google Account (data can be recovered after unlocking). You use an official service center (in some cases they can save data). In all other cases, data will be lost.
What if after Hard Reset, the phone asks for an old Mi Account?
This is Factory Reset Protection (FRP) β€” anti-theft. Solutions: Enter the data from the Mi Account that was tied to the phone. If you forget your password, restore it through the official website. If the account is not yours (for example, the phone is bought with hands), contact the previous owner or service center with proof of purchase.
Does unlocking via call or SMS work?
No, it's a myth. In the past, some older versions of Android had an option to bypass the lock through an emergency call, but on MIUI (starting with version 8+), these vulnerabilities are closed. Don't waste your time on life hacks like this, they don't work on modern Xiaomi devices.
How much does it cost to unlock in the service center?
The cost depends on the model and complexity: Redmi (budget models): 1000-1500 rubles. Xiaomi (flagships): 1500-3000 rubles. additionally, a fee may be charged for unlocking Mi Account (if the password is forgotten): ~500 rubles. On official Xiaomi services, the price is fixed and indicated on the website.
Can I unlock my phone if it’s off and not charging?
If the phone is discharged and not turning on, you first need to restore it to work: Connect it to charging for 15-30 minutes (even if there is no reaction). Try using another cable and power supply. If the charging indicator is not burning, maybe there is a problem in the battery or port - you need a diagnosis in the service. Without the phone, software methods for unlocking are impossible.