The forgotten pattern lock on Xiaomi is a situation that one in ten users encounter. According to service center statistics, 12% of unlock requests are due to a locked screen due to a mistyped pattern. The problem is compounded by the fact that Redmi, POCO and Mi smartphones require data input from a Mi Account after 5 failed attempts - but this does not always save you.
In this article, we will discuss all the current ways to remove a pattern lock without losing data (where possible) and with a complete reset (if there are no other options). MIUI 12/13/14 And also, remember, some operations require a lot of pre-production, like the one that's turned on. USB-Debugging or tied Mi Account.
If you are reading this article on a locked phone through another gadget, immediately go to the section βUnlock via Mi Account.β If you have access to a computer and cable, learn the methods with Fastboot or ADB. For owners of older models (up to the Redmi Note 5), even a Recovery reset can work.
Method 1: Unlocking with Mi Account (official method)
This is the safest and most recommended way Xiaomi can use, but it only works if you meet three conditions:
- π± 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/phone number) and account password.
If after 5 failed attempts to enter the pattern on the screen appeared a field for entering data Mi Account - follow the instructions:
- Enter the email or phone attached to your account.
- Please provide your password. If you forgot, use the "Forgot your password?" feature on account.xiaomi.com.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
- Create a new pattern lock or disable the lock altogether.
π‘
If you have a βtoo many attemptsβ error after entering your Mi Account, wait 24 hours or try unlocking your phone through the web version of your PC account.
β οΈ Note: If the phone was bought with hands and the previous owner did not untie his Mi Account, this method will not work, in which case you will need to contact the service center with proof of purchase (check, contract).
Method 2: Delete the key through ADB (without data loss)
The method is suitable if the phone is enabled debugging by USB (USB Debugging) and access to a computer. It's one of the few methods that allows you to delete a pattern lock without resetting to factory settings.
You'll need:
- π₯οΈ Computer with Windows/macOS/Linux.
- π Original. USB-cable (better from the set).
- π οΈ Utility. ADB (You can download from the official website).
Step-by-step:
- Install ADB and connect the phone to your PC.
- Open the command prompt (cmd in Windows or Terminal in macOS/Linux) in the folder with ADB.
- Enter the command to check the connection: adb devices If the phone is determined, move on. If not, install drivers for Xiaomi.
- Follow the commands in turn: 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
- After rebooting, the pattern lock will be reset.
Make sure that USB-debugging is on|Download ADB and unpack into a separate folder|Connect your phone to the original cable|Check if the device is determined by the adb device command-->
β οΈ Note: If after completing commands, the phone is stuck on the logo MI β Wait 10-15 minutes or perform a forced reset. + Volume Up: 90% of the time, the system is self-repaired.
Method 3: Fastboot Reset (for advanced users)
If ADB doesnβt help or USB debugging is disabled, you can try resetting via Fastboot mode.This method deletes all data from the phone, but is guaranteed to unlock the device.
Suitable for models:
- π± Redmi Note 8/9/10/11 newer.
- π± POCO F3/F4/X3/X4.
- π± Mi 10/11/12 series.
Instructions:
- Turn off the phone.
- Press Power + Volume Down before the Fastboot logo appears.
- Connect your phone to your PC and open the command line in the folder with ADB.
- Enter the command to check the connection: fastboot devices
- Run full reset: fastboot erase userdata fastboot erase cache fastboot reboot
| Xiaomi model | Unlocking command | Notes |
|---|---|---|
| Redmi Note 8/9 | fastboot erase userdata | Requires confirmation via Mi Account after reset. |
| POCO X3 | fastboot erase frp | It might not work on the new firmware. |
| Mi 11 | fastboot flashing unlock | You need to pre-unlock the loader. |
β οΈ Note: On devices with a blocked bootloader, the fastboot erase userdata command may not work, in which case you will need to officially unlock through the Xiaomi website (the process takes up to 72 hours).
Unlocking with Mi Account|Reset via Recovery|Used. ADB/Fastboot|I went to the service center.|Never blocked your phone.-->
Method 4: Recovery Mode Reset (for older models)
On Xiaomi smartphones before 2018 (e.g. Redmi 4X, Mi A1), you can reset the pattern lock via the standard Recovery menu.
How to reset:
- Turn off the phone.
- Press Power + Volume Up before the Recovery menu appears.
- Use volume buttons for navigation and power to select.
- Choose Wipe Data β Wipe All Data.
- Confirm the action and wait for the reboot.
β οΈ Note: Some models (Redmi Note 5 and later) may require a reset via Recovery to enter data from Mi Account. If you don't remember the password, the phone will turn into a brickΒ».
What if the phone requires an old account after a reset?
Method 5: Unlocking through EDL (Emergency Method)
EDL (Emergency Download Mode) is a firmware emergency mode used by service centers, which allows you to reflash your phone even with a locked bootloader, but requires:
- π₯οΈ Special cable. EDL board-bar.
- π οΈ Mi Flash Tool and Official Firmware.
- π Xiaomi Permits (for New Models).
β οΈ Attention: Misuse of the right EDL This method is recommended only for experienced users or service engineers.
Short instructions (for experienced users):
- Download the Mi Flash Tool and firmware for your model.
- Put your phone into EDL mode (usually by closing contacts on the board or via ADB).
- Connect your phone to your PC and run the official firmware.
π‘
The EDL method is the last chance to bring the phone back to life if other methods have not worked, but it requires technical skills and can void the warranty.
Method 6: Contact Xiaomi Service Center
If none of these methods work, you have to go to the official service center, which is the most reliable, but also the longest way.
- Find the nearest Xiaomi service center on the official website.
- Take it with you: π Check or warranty card (if the phone is guaranteed). π Passport (to confirm possession). π± Phone itself (preferably with a charge of at least 30%).
Be prepared for the fact that unlocking can take from 1 to 5 working days.
β οΈ In unofficial services can offer to βbypassβ the lock in 1-2 hours, but it is fraught with risk:
- π« Loss of guarantee.
- π Possible βblockingβ of the phone.
- πΈ Additional repair costs.