Forgotten pattern lock on Xiaomi is one of the most common problems faced by owners of smartphones Redmi, POCO and the Mi line. Unlike the Mi line. PIN-With a code or password, the pattern seems easy to use, but itβs easy to forget, especially if you rarely unlock your phone or change your pattern. Fortunately, the manufacturer has provided several formal and informal ways to reset the lock β from restore via Mi Account to use Fastboot mode or tools like this. ADB.
In this article, we'll look at all the current 2026 methods, including those that work on the latest versions of MIUI 14/15 and HyperOS. Importantly, not all ways will save your data β some require a complete reset. So before you start, evaluate which is more critical for you: access to your phone or file security. If the device is synced with the Mi Cloud, the chances of recovering contacts and photos after unlocking are much higher.
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:
- π Device connected to the Internet (Wi-Fi or mobile network).
- π± You remember the username and password from the Mi Account that was linked to the phone.
- π On the smartphone is not disabled function βFind the deviceβ (Settings) β Mi Account β Find the device).
After 5 failed attempts to enter the pattern lock, the button Forgot the password will appear on the screen. Click on it and follow the instructions:
- Select the recovery option through Mi Account.
- Enter the email or phone number associated with the account.
- Confirm your login via SMS or email (depending on your security settings).
- Create a new pattern lock or PIN-code.
β οΈ Note: If two-factor authentication is enabled on the device (2FA), You will need to enter a code from the Mi Security app or SMS. Without access, access will not be restored.
2. reset the pattern lock via ADB (without loss of data)
The method is suitable for users who have USB debugging enabled on their smartphone (Settings β About Phone β MIUI Version β 7 times press to activate Developer Mode β Additional β Developers β USB debugging). If this feature is disabled, the method will not work.
You'll need:
- π₯οΈ Computer with installed Xiaomi drivers and tool ADB (You can download from the official Android website).
- π USB-cable (preferably original).
- β‘ The battery level of the phone is not lower than 30%.
Step-by-step:
- Connect the phone to your PC and open the command line (Win + R β enter cmd).
- Check the connection of the device command: adb devices The list should display your device.
- Enter 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.
Install Xiaomi drivers on PC|
Download and unpack Platform Tools (ADB) |
Enable debugging over USB on your phone |
Connect your phone to your PC with the original cable|-->
β οΈ Note: On some models (Xiaomi) 12T, Redmi Note 11 Pro+) After these commands, you may need to enter PIN-code SIM-If you don't have one, use another method.
3. Delete the key via Fastboot (for advanced users)
If USB debugging is disabled, but you have access to Fastboot mode, you can try to reset the lock through it. This method does not guarantee data security and requires an unlocked bootloader. On new devices (Xiaomi 13, POCO F5), the bootloader is blocked by default, and it takes up to 7 days to unlock through the official Mi Unlock service.
What needs to be done:
- Turn off your phone and press the Power button + Volume down to log into the Fastboot.
- Connect the device to the PC and check its detection by the command: fastboot devices
- Download the firmware for your model from the MIUI Download website and unpack it.
- In the command line, run: fastboot flash recovery path to file recovery.img fastboot reboot recovery
- From the Recovery menu, select Wipe Data β Format Data.
On HyperOS devices (such as Xiaomi 14), this method may not work due to the changed /data partition structure, which would require a complete flashing through the Mi Flash Tool.
What if the Fastboot canβt see the device?
4. Hard reset via Recovery Mode (data loss)
If other methods fail, the last resort is to completely reset your settings through Restore mode, which erases all data, including photos, messages and apps, but is guaranteed to unlock the device.
Instructions:
- Turn off the phone.
- Press the Power button + Volume up for 10-15 seconds until the Mi logo appears.
- From the Recovery menu, select the language (usually English or Chinese).
- Go to Wipe Data β Wipe All Data.
- Confirm the action and wait for the process to be completed.
β οΈ Note: On some models (Redmi 9, POCO X3) After the reset, you may need to enter data from the Mi Account that was tied to the deviceΒ».
| Xiaomi model | Do you need a Mi Account after a reset? | The ability to unlock through ADB |
|---|---|---|
| Xiaomi 13/13 Pro | Yes. | Only with an unlocked bootloader |
| Redmi Note 12 | Yes. | Yes (if debugging is on) |
| POCO F4 GT | No. | Yes. |
| Mi 11 Lite | Yes. | Yes. |
5. Contact the Xiaomi Service Center
If independent attempts are unsuccessful, you can contact the official service center.
- π± Devices with locked bootloader and debugging disabled.
- π Phones that do not pop up the recovery option through Mi Account.
- π¦ Handheld devices without data from previous owner.
The cost of the service varies from 1000 to 3000 rubles depending on the model and region. In some cases, confirmation of purchase (check or box) may be required. Official Xiaomi services in Russia and CIS countries can be found on the Mi Service website.
β οΈ Warning: Don't trust handicraft shops that promise to unlock your phone in 5 minutes. Often, these "specialists" use illegal firmware that can be used to unlock your phone:
- π¨ Disrupt the operation of sensors (gyroscope, NFC).
- π΅ Disable support 5G VoLTE.
- π Lead to a reboot cycle (bootloop).
π‘
Before visiting the service, take a screenshot of the IMEI phone (on the box or via the command *#06#) This will help prove that the device is not stolen if you need to unlock through Mi Account.
6. Alternative methods (for experienced users)
If the standard methods don't work, you can try informal solutions, they require technical skills and can void the warranty.
Method 1: Firmware through EDL-regime
EDL (Emergency Download Mode) allows you to flash a device even with a locked bootloader.
- π₯οΈ PC with Mi Flash Tool and Qualcomm Driver installed HS-USB QDLoader 9008.
- π Firmware in.tgz format for your model.
- π Special cable or tester for entry EDL (circuitry).
Method 2: Use of exploits
Some models (Redmi Note 8 Pro, Mi 9T) have vulnerabilities that allow them to bypass the ADB lock without losing data, such as exploit CVE-2020-0041 running on MediaTek chips.
- π‘οΈ It may be closed in new versions. MIUI.
- π¨ Risk of damaging system files.
π‘
Unofficial unlocking methods can lead to a loss of warranty and the risk of turning your phone into a brick, and only use them if you have exhausted all official options.