Forgetting the pattern lock on Xiaomi is a bad situation, but it's not a bad one. Even if you typed the wrong pattern 5 times in a row and saw the message "Try it in 30 seconds," don't panic: the manufacturer has provided several official and informal ways to unlock. The main thing is to act consistently and not aggravate the problem with chaotic actions.
In this article, weβll look at all the current techniques for Redmi, POCO, and Mi models (including new devices on MIUI 14/15 and HyperOS). From simple resets via Mi Account to complex manipulations with Fastboot and EDL, youβll find a solution even if you forget your account password or turn off sync. And for those who are afraid of losing data, weβve singled out the non-reset methods to factory settings.
Important: before starting, check the battery power - if the phone runs out during the procedure, the risk of "bricking" increases 3 times.
1 Unlocking through Mi Account (official method)
This is the safest and most recommended method by Xiaomi, but it only works if you meet three conditions:
- π The device is linked to your Mi Account (you have previously logged in).
- πΆ The phone has access to the Internet (Wi-Fi or mobile network).
- π You remember your account login and password (or you can restore them through your account). email/SMS).
If all the points are fulfilled, follow the instructions:
- On the lock screen, click Forgot the pattern lock? (appears after 5 unsuccessful attempts).
- Select Sign in to Mi Account and enter your details.
- Confirm your login via SMS or email (if two-factor authentication is enabled).
- Create a new pattern lock or PIN-code.
The advantage of the method is that it does not require resetting, all data (photos, messages, applications) will remain in place.
π‘
If you have Find Device enabled in Mi Cloud, try unlocking your phone via the web version of i.mi.com. In the Device Management section, you may have a lock reset option.
2. Reset the pattern lock via Recovery Mode (with loss of data)
If Mi Account is lost and the phone is not connected to the Internet, it will be hard reset via Restore mode, which will delete all data from internal memory (except files on the phone). SD-card, if installed), but guaranteed to unlock the device.
Instructions for Xiaomi on MIUI and HyperOS:
- Turn off the phone with a long press of the power button (10-15 seconds).
- Hold the combination: π§ For most models: Volume up + Nutrition. π§ For POCO F1/F2/F3: Loudness down + Nutrition. π§ For Mi. 11/12/13 Series: Volume up + Loudness down + Nutrition.
Mi Bunny
Recovery
Wipe Data β Wipe All Data
Reboot β Reboot to System
It takes 5-10 minutes, and when you reboot, it's like new, and you'll need to reset.
Make sure the battery is charged >50%|Take it off. SIM-card and memory card (if any)|Prepare a backup of important data (if you synchronized with Mi Cloud)|Remember the username/password from Mi Account to re-assign
-->
β οΈ Note: On some models (Redmi Note 8 Pro, Mi) 9T) After resetting via Recovery, you may need to enter a password from Mi Account to activate (protection) FRP). If you donβt remember it, the phone will turn into a brick".
3. Unlock via Fastboot (for advanced users)
The method is suitable if:
- π You've previously included debugging on USB and unlock OEM Unlock in the Developer Settings.
- π» You have a computer with Xiaomi drivers installed and Mi Flash Tool program.
- π₯ You can download the official firmware for your model.
Step-by-step:
- Download the firmware archive for your model from MIUI Downloads (select the Fastboot version).
- Unpack the archive in a folder on the C:\ disk (the path should not contain Cyrillic!).
- Turn off the phone and put it in Fastboot mode: Volume down + Power Hold until the screensaver with a rabbit in a hat-eared.
- Connect your phone to your PC through USB-cable (preferably original).
- Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
- At the bottom of the program, select Clean All (full reset) and press Flash.
- Wait for the process to end (5-15 minutes) and the phone to restart.
This is a way to get the pattern lock removed, but it requires technical skills, and if you've never flashed your phone, you'd better go to a service center.
What to do if the Mi Flash Tool gives you a "Couldn't find device" error
4. bypass the pattern lock through EDL Mode (emergency method)
EDL (Emergency Download Mode) is a firmware mode that allows you to reflash your phone even with a locked bootloader, used when other methods don't work, but requires:
- π§ Special cable. EDL (or the ability to seal contacts).
- π» Mi Flash Pro or QFilm.
- π Authorized Xiaomi account for downloading firmware (for new models).
Step-by-step:
- Download the firmware in.mbn format for your model (see 4PDA or XDA Developers forums).
- Connect your phone to your PC in EDL mode: For Qualcomm processors: Close the Test Point contacts (needs a circuit connector). For Mediatek: use a button combination (check for your model).
Mi Flash Pro
Flash
Wait until the process is completed (it can take up to 30 minutes).
β οΈ Attention: Incorrect actions in EDL-This method is recommended only for experienced users or service engineers.
5. Alternative methods without data loss
If youβre not ready to reset your phone to factory settings, try these methods:
5.1 Unlocking through ADB (if debugging was enabled)
If you activated USB Debugging in the developer settings before blocking, you can delete the file with the pattern lock via ADB:
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
rebootAfter the reboot, the pattern lock will reset, but this method only works on unencrypted devices (without data encryption in MIUI).
5.2.Use of the service "Find device" from Xiaomi
If the phone has Find the device in Mi Cloud enabled, try:
- Go to i.mi.com and log in.
- Select the locked device in the list.
- Click Delete Data (this will reset the pattern lock but save files to the SD-map).
We also recommend adding a fingerprint or facial recognition as an alternative method of unlocking, which will reduce the risk of losing access to the phone.
π‘
Even if you forget the pattern lock, donβt try to enter it at random more than 10 times β this can lead to a complete lock on the phone and a requirement to enter Mi Account data after a reboot.
7. Frequent mistakes and how to avoid them
When you unlock Xiaomi, users often make critical mistakes. We collected the most common:
| Mistake. | Effects of consequences | How to avoid |
|---|---|---|
| Resetting via Recovery without detachment Mi Account | Activation of FRP-blocking (phone requires login / password after reset) | Before resetting, untie your account in Settings β Accounts β Mi Account |
| Use of unofficial firmware in Fastboot | Loss of IMEI, network problems, brick | Download the firmware only from the official website |
| Interrupting the firmware process | Damage to system files, cyclical reboot | Don't turn it off. USB-cable and do not turn off the PC until it is completed |
| Trying to unlock through EDL without experience | Loader damage, irreversible brick | Trust this method to professionals |
If you are not sure about your actions, it is better not to experiment - contact the service center. the cost of unlocking there is usually lower than the cost of repairs after unsuccessful manipulations.