How to remove the pattern lock from Xiaomi, if you forgot the password: all working ways

Forgetting the pattern lock on a Xiaomi smartphone is a frustrating but fixable situation. Unlike the iPhone, where unlocking without an Apple ID is almost impossible, Android devices (including Redmi, POCO and Mi) offer several official and informal methods of resetting the lock. The main thing is not to panic and not to try to pick up combinations at random: after 5 failed attempts, the system can lock the phone for 30 seconds or even require you to enter a Mi Account.

In this article, we will discuss 5 proven ways to remove a pattern lock from Xiaomi, from the simplest (via an associated account) to radical (full reset via Fastboot). USB-If you debug, you can get around the lock without losing data. If you don't, you'll have to sacrifice files, but you'll keep the phone running (POCO X3 Pro) the unlocking algorithms are different, as reflected in the instructions below.

1 Unlocking through Mi Account (official method)

The most secure and recommended method for Xiaomi is to use a tied Mi Account, which works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ”‘ You remember the username and password from Mi Account (or you can restore them).
  • πŸ”„ The device is not disabled synchronization with the account.

After 5 failed attempts to enter the pattern lock, the system will offer the option "Forgot the password?" Click on it and follow the steps:

  1. Select β€œUnblock with Mi Account”.
  2. Enter the email or phone number associated with the account.
  3. Confirm your login via SMS or email (if two-factor authentication is enabled).
  4. Create a new pattern lock or PIN-code.

⚠️ Note: If the phone is not connected to the network, this method will not work, MIUI 14 for the European region, confirmation may be required through SMS even with the right password.

πŸ“Š How often do you forget passwords from your devices?
Often, once a month.
Sometimes, every six months.
Nearby, but I can restore it.
Never forget.

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

If you have access to a computer or other phone, you can use Xiaomi's Find Device service, which works even if the phone is not currently connected to the Internet, and the reset command will go the first time the network appears.

Instructions:

  1. Go to i.mi.com and log in to your Mi Account.
  2. In the Devices section, select a locked phone.
  3. Click β€œFind device” β†’ β€œBlock” (yes, this sounds contradictory, but the system will prompt you to reset your password).
  4. Enter a new one. PIN-It's a code or a pattern lock, and it'll be used the next time you connect your phone to the Internet.

πŸ”Ή Limitations:

  • 🌍 The phone must be linked to the Mi Account before being blocked.
  • πŸ“΅ If the device is disabled mobile data and Wi-Fi, the command will run only after connecting.
  • πŸ”’ On some models (e.g. Redmi) K50) This method is blocked by the manufacturer due to increased protection.

πŸ’‘

If the phone is discharged, plug it into charging for 10-15 minutes before trying to unlock, and the system may not respond to commands at a charge level below 5%.

3. Unlock via ADB (if USB debugging is enabled)

Method for advanced users who have pre-enabled debugging USB (USB Debugging allows you to delete a file with a pattern lock without resetting data, but requires a computer and installed drivers. ADB.

Step-by-step:

  1. Connect your phone to your PC through USB-cable (preferably original).
  2. Open the command line (Win + R β†’ enter cmd).
  3. Enter the commands in order: 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
  4. After rebooting, the pattern lock will be reset.

⚠️ Attention: MIUI 12 and later, this method may not work due to the changed password storage structure, and root rights are also required, which are disabled by default on most Xiaomi.

Install drivers ADB (download [developer.android.com](https://developer.android.com/studio/releases/platform-tools))|Enable debugging on USB developer-setting|Connect your phone to your PC with the original cable|Check the detection of the device by the team `adb devices`-->

4. Hard Reset (full reset via Recovery)

If previous methods didn’t work, the radical method is Recovery Mode, which will delete all data from your phone, including photos, messages and apps, but will return access to the device.

How to make Hard Reset on Xiaomi:

  1. Turn off the phone.
  2. Press the button combination: πŸ”˜ For most models: Volume up + Nutrition. πŸ”˜ For POCO F3 And some Redmi Notes: Volume down + Nutrition.

Recovery

Confirm the reset and wait for the reset.

⚠️ Note: Newer models (Xiaomi 13, Redmi Note 12) may require data entry from the Mi Account that was tied to the phone after a reset (FRP). If you don’t remember your account, your phone will become a brickΒ»!

Xiaomi modelCombination for RecoveryDo you need a Mi Account after a reset?
Redmi Note 10/11Volume up + NutritionYes.
POCO X3/X4Loudness down + NutritionYes.
Mi 11/12Volume up + NutritionYes (if the account was linked)
Redmi 9A/9CVolume up + NutritionNo (on old firmware)
What if after Hard Reset, the phone asks for an old Mi Account?
If you do not remember the data from the associated account, the only way out is to contact the Xiaomi service center with proof of purchase (check, box). FRP On new models, it is almost impossible without specialized equipment (for example, UFi Box or Octoplus).

5. Unlock via Fastboot (for advanced)

The method is suitable if Recovery Mode is unavailable or the phone is "hang" on the MI logo. Requires a computer and installed Fastboot drivers.

Instructions:

  1. Turn off your phone and put it in Fastboot mode: πŸ”˜ Hold the Loud down. + 10 seconds power. πŸ”˜ Connect your phone to your PC.
fastboot devices

If the list is empty, install Qualcomm or MediaTek drivers (depending on the processor).

fastboot erase userdata


fastboot erase frp




fastboot reboot

πŸ”Ή Important: On some models (Xiaomi) 12T, Redmi K60) This command may not work due to a blocked bootloader, in which case you will need an official unlock through the Mi Unlock Tool (you need a Mi Account and wait 7-14 days).

πŸ’‘

The method via Fastboot deletes all data, but bypasses the Mi Account lock only on older models (until 2020 release). FRP remain active!

What do you do if nothing helps?

If all of these methods do not work, there are two options:

  1. Contact Xiaomi Service Center, you will need a check or a box from your phone to confirm ownership, the cost of unlocking is from 1,000 to 3,000 rubles (depending on the model).
  2. Use paid unlock services. There are online services (for example, DC-Unlocker or GSM Flasher) that can generate an unlock code for $5-10, the risk of fraud or malware installation.
How do I know which processor is in my Xiaomi (Qualcomm or MediaTek)?
There are two ways: View in Settings: Settings β†’ About Phone β†’ Processor Model. Use the CPU-Z app (available on Google Play). Qualcomm will do fastboot commands; MediaTek may need SP Flash Tool.
Can I unlock Xiaomi through my Google Account?
No. Unlike pure Android, MIUI firmware does not support unlocking through Google Account. The only official way is Mi Account.
How much does it cost to unlock in the service center?
Cost depends on the model and region: πŸ“± Redmi Note 9/10: 1 000–1 500 ruble. πŸ“± Xiaomi 11/12: 2 000–3 000 ruble. πŸ“± POCO F3/F4: 1 500–2 500 In some services may offer "chip tuning" (flashing through the EDL), But it's risky for a beginner.