The forgotten pattern lock on Xiaomi is one of the most common problems users face. PIN-When you look at a code or fingerprint, a pattern often seems "easy to remember" until you have to type it in after a reboot or a long downtime, and it gets complicated if you don't have a linked Mi Account or if you have a disconnected Internet connection.
In this article, weβll look at all the current ways to unlock, from official (via Xiaomi or Find Device) to technical (Fastboot, Recovery, and even disassembling the EDL reset device). Importantly, not all methods will save your data, so before you start, assess the risks. If the phone synced with Google Account or Mi Cloud, the chances of recovery without loss are higher.
Note: the instructions are suitable for most Xiaomi, Redmi and POCO models (including Redmi Note 10/11/12, Xiaomi 12/13/14, POCO F4/F5, etc.), but may differ for devices with custom firmware or locked bootloader. If your smartphone is released before 2018, check for Mi Account Unlock support - some older models require mandatory authorization via PC.
1 Unlocking through Mi Account (official method)
The safest method is if you remember the data from your Mi Account and the phone is connected to the Internet. Xiaomi allows you to reset your graphical password through the Find Device web interface or directly on the lock screen.
How it works:
- π On the lock screen, tap Forgot the password? (or Forgot pattern? on English firmware).
- π± Enter the username and password from the Mi Account linked to the device.
- π Confirm the unlock through SMS or email (if two-factor authentication is enabled).
- β Install a new pattern lock or PIN-code.
If the buttons forgot the password?
- Go to the Mi Account website from another device.
- Log in and select Find Device β find your smartphone in the list.
- Press Unlock and confirm the action.
β οΈ Note: If the phone is not connected to the network (Wi-Fi/This method will not work, and Xiaomi can request proof of ownership of the device through the Internet. SMS number-bound.
2. Reset graphical password via Fastboot (without data loss)
This method is suitable for devices with an unlocked bootloader. If you have previously activated OEM Unlock in the developer settings, you can delete the password file through Fastboot without completely resetting.
What you need:
- π₯οΈ Computer with installed Xiaomi drivers and tool ADB/Fastboot.
- π USB-cable (preferably original).
- π± Phone with a charge of at least 30%.
Step-by-step:
- Turn off the phone and press Volume Down + Power to log into the Fastboot.
- Connect the device to the PC and check the connection command: fastboot devices (should display the serial number of the phone).
- Enter the command to delete the file with a password: fastboot erase gesture.key or PIN-code: fastboot erase password.key
- Reboot the phone: fastboot reboot
Once the system is restarted, it will suggest installing a new pattern lock, which only works on stock MIUI firmware without data encryption (FBE), and if the device is encrypted, a full reset will be required.
Install ADB/Fastboot PC-only|Download the drivers for Xiaomi|Check the phone's charge (>30%)|Connect the original USB-cable|Disable antivirus (can block commands)-->
3. Hard Reset via Recovery (full reset)
If previous methods failed, the radical method remains to reset to factory settings via Recovery mode, and all data on the phone will be deleted, including photos, messages and installed apps.
How to log in to Recovery:
- π Turn off the phone.
- π Hold the Loud up. + Power and hold for 10-15 seconds until the Mi logo appears.
- π± Release the buttons when you see the Recovery menu (may be in Chinese or English).
Resetting instructions:
- Use volume buttons for navigation and power for selection.
- Select Wipe Data β Wipe All Data (or Factory Reset)
- Confirm the action (Confirm).
- After reset, select Reboot β Reboot to System.
| Xiaomi model | Combination of buttons for Recovery | Language |
|---|---|---|
| Redmi Note 10/11/12, POCO F3/F4 | Volume up + Nutrition | English/Chinese |
| Xiaomi 12/13/14, Mi 11 | Volume up + Nutrition (hold until vibration) | English |
| Redmi 9/9A/9C, POCO M3 | Volume up + Food (menu in Chinese) | Chinese |
| Xiaomi Mi A1/A2 (Android One) | Loudness down + Nutrition | English |
β οΈ Note: On some models (Redmi 9, POCO M2) After the reset, you may need to enter data from the Mi Account, which was previously associated with the device).
4. Unlock through EDL (for advanced users)
EDL (Emergency Download Mode) allows you to flash your phone directly through the Qualcomm 9008 port, bypassing locking, a method that requires disassembling the device or a special cable, as well as knowledge of working with tools like Mi Flash or QFil.
When you need an EDL:
- π§ The phone does not respond to other unlock methods.
- π Mi Account is Forgotten and the device is locked after being reset.
- π± Device with Qualcomm processor (most) Xiaomi/Redmi/POCO).
Step-by-step:
- Download the firmware for your model from the Xiaomi Firmware Updater website.
- Install Qualcomm HS-USB QDLoader 9008 drivers (can be found via DriverPack or manually).
- Connect your phone to your PC in mode EDL: π οΈ Method 1: Disassemble the phone and close the contacts EDL on the board (for each model the scheme is its own). π Method 2: Use a special cable EDL (It's sold on AliExpress).
Mi Flash Tool
Flash
Wait for the firmware to be completed (10-15 minutes).
What happens if you interrupt the firmware in EDL?
Important: Firmware through EDL removes all locks, but requires a precise match between the firmware version and the model. A mistake in choosing a file can make the phone inoperable.
5. Alternative methods (for specific cases)
If the standard methods didnβt work, try these options:
A. Unblocking through Google Account (for older versions of MIUI)
On Xiaomi with firmware up to MIUI 10, after 5 failed attempts to enter a password, a button appeared, Forgot the pattern lock?, offering to log in via Google Account. In new versions, this feature is removed, but on some devices it can be returned:
- Connect your phone to Wi-Fi.
- Enter the wrong password 5 times.
- Slip Forgot the pattern lock? and select the login via Google.
B. Delete gesture.key via TWRP (for rooted devices)
If custom Recovery is installed on the phone (such as TWRP), you can manually delete password files:
- Sign in to TWRP (button combination depends on the model).
- Go to Advanced β File Manager.
- Delete files: /data/system/gesture.key /data/system/password.key /data/system/locksettings.db
- Reboot the phone.
B. Contacting the service centre
If none of the methods worked, and the data on the phone is critical, contact the official Xiaomi service.
- π Check or box with serial number.
- π Passport (for proof of identity).
- π§ Access to email linked to Mi Account.
π‘
Before resetting your phone, check if sync with Mi Cloud or Google Photos is enabled. Your data (contacts, photos) may already be stored in the cloud and can be restored after unlocking.
6.How to avoid blocking in the future
To avoid the problem of forgotten passwords again, follow these tips:
- π Use it. PIN-code instead of a pattern lock, it is more difficult to forget.
- π± Attach Mi Account and enable data synchronization in Settings β Accounts. β Mi Cloud.
- π Regularly back up through Settings β Additionally. β Backup and reset.
- π Write your password to a secure location (for example, Bitwarden or KeePass password manager).
- π‘οΈ Enable Find Device in Mi Account settings β this will make it easier to unlock.
Itβs also worth turning off automatic screen locking in public places (such as through Smart Lock in security settings) if you often forget to unlock your phone.
π‘
Even if you unlock your phone, set up data backup immediately. 60% of the time, users lose photos and contacts due to lack of backups (Xiaomi data for 2023).