Have you entered the wrong pattern lock on Xiaomi for the fifth time, and the phone requires you to wait 30 minutes? Or the screen is completely locked with the words "Too many pattern attempts"? The situation is familiar to many β according to statistics, every third owner of Redmi or POCO at least once faced with a forgotten password. But do not rush to carry the device into the service: 80% of the time, you can unlock yourself, and sometimes even without losing data.
In this article, 7 proven methods for Xiaomi models on MIUI 12-14 (including Redmi Note 10/11/12, POCO X3/X4/X5, Mi 11/12, etc.) We will discuss how to bypass the lock through Mi Account, ADB, Fastboot, and what to do if the phone is not tied to a Xiaomi account and debugging by USB is disabled. Important: some methods require preliminary preparation (for example, enabled debugging), so read carefully!
1 Unlocking through Mi Account (official method)
The easiest and safest method is to use a Xiaomi account, which works if:
- π± The phone is connected to the Internet (Wi-Fi or mobile network).
- π You remember the username/password from Mi Account (or you can restore it).
- βοΈ The "Find the device" function was activated in the settings.
After 5 failed attempts to enter the key, the button "Forgot pattern?" will appear on the screen.
- Enter the email/phone associated with the Mi Account.
- Confirm the entry via SMS or email.
- Reset the pattern lock and install a new one.
β οΈ Note: If the phone is not connected to the network, this method will not work, POCO F3 on MIUI (13) may require additional confirmation through SMS even with the right password.
2. reset the pattern lock via ADB (without loss of data)
The method works if the phone is enabled debugging by USB (USB Debugging, and there's access to the computer. It's the only way to save all the data (photos, messages, apps) when you unlock it.
You'll need:
- π₯οΈ Computer with Windows/Linux/macOS.
- π USB-cable (original, undamaged).
- π¦ Established ADB and Fastboot.
Instructions:
- Connect the phone to the PC.
- Open the command line (cmd) in the adb folder.
- Enter the commands in order adb shell su rm /data/system/gesture.key reboot
- After restarting, enter any pattern lock β the phone will unlock.
β οΈ Attention: On new versions MIUI (13+) You may need root access because the su command is blocked. If you enter su with a "Permission denied" error, move to the next method.
βοΈ Preparation for unblocking through ADB
3. Unlock via Fastboot (reset to factory settings)
If USB debugging is disabled and Mi Account is not tied, then you have a hard reset via Fastboot mode, which deletes all data but is guaranteed to unlock the phone.
Suitable for models:
- π± Redmi Note 8/9/10/11/12
- π± POCO X3/X4/X5
- π± Mi 10/11/12 etc.
Instructions:
- Turn off the phone.
- Press the Power button + Volume down before the Fastboot logo appears.
- Connect your phone to your PC and open the command line.
- Enter the command to reset: fastboot erase userdata fastboot erase frp fastboot reboot
After the reboot, the phone will be like new β you will need to re-set.
π‘
After the team `fastboot devices` Phone doesnβt show up, install Mi Phone Manager drivers or use universal Google USB Driver.
4.Use of Recovery Mode (Fastboot alternative)
If Fastboot is not available (for example, on some POCO M3/M4), try resetting via Recovery Mode.This method also erases data, but does not require a connection to a PC.
How to get in to Recovery:
- Turn off the phone.
- Press the Power button + Volume up.
- From the menu, select Wipe Data β Wipe All Data (manage volume buttons, confirm β power button).
β οΈ Note: Some firmware (e.g. Xiaomi.eu) may call the Wipe All Data item differently β look for options with Factory Reset or Erase All".
| Method | PC required | Data retained | It works without a Mi Account. |
|---|---|---|---|
| Mi Account | β No. | β Yes. | β No. |
| ADB | β Yes. | β Yes. | β Yes. |
| Fastboot | β Yes. | β No. | β Yes. |
| Recovery | β No. | β No. | β Yes. |
5 Unlocking through Xiaomi Service Centers
If the independent methods did not work, contact the official service center. Xiaomi has an unlock program for confirmed owners.
- π Check or box IMEI (proof).
- π Passport (for proof of identity).
- π³ Payment for services (from 500 to 2000) β½ model-wise).
β οΈ Warning: Unofficial services can offer "unlock without loss of data" for 3000-5000 β½, But it's often a scam. Xiaomi's official centers don't guarantee file safety when you reset hardware!
What to do if the phone is bought with hands?
6.How to prevent future blocking
To avoid the problem again:
- π Use a PIN instead of a pattern lock β itβs harder to forget.
- π± Attach Mi Account and enable Find the device in the settings (Settings) β Xiaomi Account β Find the device).
- π₯οΈ Activate Debugging on USB (Settings β The phone. β Version. MIUI (press 7 times) β Additionally. β For developers β Debugging by USB).
- π Write the key to a secure location (e.g., Google Keep with encryption).
π‘ Useful advice: On Xiaomi phones with MIUI 14 the function "Reserve" appeared PIN" β It allows you to unlock the pattern lock with a preset digital password. β Screen locking β Standby PIN.
π‘
Even if you use a graphical key, always set up a backup unlock method (PIN, fingerprint or Face ID) that will save data 90% of the time!
7. Frequent mistakes and how to avoid them
When unlocking, users often make critical errors:
- β Interrupting the process during a reset via Fastboot or Recovery β can lead to a βbrickβ (phone not turned on).
- β Using unofficial firmware (e.g. Xiaomi.eu) without knowing the consequences β some custom builds block unlocking through Mi Account.
- β Introduce commands ADB/Fastboot error-prone β for example, a typo in gesture.key will not reset the key, but will delete another system file.
π§ If the phone freezes after a failed reset:
- Turn off the battery for 10 seconds (if removable).
- Try going to Fastboot and repeat the procedure.
- If the screen is black, plug it into charging for 30 minutes, then try turning it on.