How to unlock the pattern lock on Xiaomi smartphones: all ways 2026

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:

  1. Select the recovery option through Mi Account.
  2. Enter the email or phone number associated with the account.
  3. Confirm your login via SMS or email (depending on your security settings).
  4. 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.

πŸ“Š What Unlocking Method Have You Tried Before?
Mi Account
Reset via Recovery
ADB/Fastboot
I've been to the service.
Never blocked.

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:

  1. Connect the phone to your PC and open the command line (Win + R β†’ enter cmd).
  2. Check the connection of the device command: adb devices The list should display your device.
  3. 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
  4. 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:

  1. Turn off your phone and press the Power button + Volume down to log into the Fastboot.
  2. Connect the device to the PC and check its detection by the command: fastboot devices
  3. Download the firmware for your model from the MIUI Download website and unpack it.
  4. In the command line, run: fastboot flash recovery path to file recovery.img fastboot reboot recovery
  5. 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?
If the fastboot device command doesn't show your phone: 1. Check the cable connection (try another port) USB). 2. Install drivers manually through Device Manager (select "Android Bootloader Interface"). 3. Disable the antivirus - it can block access to Fastboot. 4. Try another PC (on some laptops). USB-Ports do not support Fastboot).

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:

  1. Turn off the phone.
  2. Press the Power button + Volume up for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select the language (usually English or Chinese).
  4. Go to Wipe Data β†’ Wipe All Data.
  5. 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 modelDo you need a Mi Account after a reset?The ability to unlock through ADB
Xiaomi 13/13 ProYes.Only with an unlocked bootloader
Redmi Note 12Yes.Yes (if debugging is on)
POCO F4 GTNo.Yes.
Mi 11 LiteYes.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.

FAQ: Frequent questions about unlocking Xiaomi

Can I remove the pattern lock without losing data?
Yes, if the phone is debugging on USB and has access to ADB, Mi Account recovery will also help if the device is connected to the Internet, otherwise the data will be erased.
What to do if you forget your Mi Account information?
Restore access through the recovery page. If your phone number is linked, get an SMS with the code. For email, check the Spam folder. If your account is not restored, contact Xiaomi with proof of purchase.
Why does he ask for an old pattern lock after reset?
This is because of FRP (Factory Reset Protection), which requires devices with MIUI 12+ to enter data from the Mi Account that was previously linked after reset, without which the phone will not activate.
Can I unlock Xiaomi through my Google Account?
Unlike older versions of Android, MIUI does not support unlocking through Google Account. The only official way is Mi Account.
How much does it cost to unlock the service for Xiaomi 12 Pro?
In official service centers, the cost of unlocking for flagship models (Xiaomi 12 Pro, 13 Ultra) is 2 000-3 500 rubles. In informal workshops, the price may be lower, but the risk of damage to the device is higher.