Forgot a pattern lock on Xiaomi: how to unlock your phone without losing data

Forgot the pattern lock on the smartphone Xiaomi, Redmi or POCO? The situation is unpleasant, but it is solvable β€” even if you do not have a backup or Mi Account. In this article, we will discuss all the working methods of unlocking, from the most secure (without loss of data) to radical (complete reset). MIUI, phone model and the presence of an associated account.

If you've never set up Find Device or don't remember the Mi Account password, don't panic -- there are workarounds. But remember, some methods require PC access, USB debugging, or even disassembling your phone (for older models), and we'll detail each option so you can choose the best one.

Before you start, check:

  • πŸ”‹ Battery level (at least 30%, otherwise the phone may turn off during the process).
  • πŸ“± Xiaomi model (written on a box or under a battery).
  • πŸ”Œ Presence USB-cable and computer (required for most methods).
  • πŸ“§ Access to the email linked to Mi Account (if the account has been set up).

If the phone is dead in a locked state, charge it first - otherwise unlocking it can cause all data to be lost.

1 Unlocking through Mi Account (official method)

Xiaomi’s most reliable and recommended method is to use a tied Mi Account, which works on all models, including the Redmi Note 10/11/12, POCO X3/X4, Mi 11/12 and newer ones, and the main condition is that the phone must be connected to the Internet (via Wi-Fi or mobile network).

Instructions:

  1. On the lock screen, enter the wrong pattern lock 5 times in a row.
  2. You will see a message: β€œForgot your password?” – click on it.
  3. Select "Login to Mi Account" and enter the login / password.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

⚠️ Note: If you don't remember the Mi Account, don't try to guess the password - after 10 failed attempts, the account will be blocked for 24 hours.

πŸ“Š Your Xiaomi is tied to your Mi Account?
Yeah, I remember the login/password.
Yeah, but I don't remember the data.
No, I never did.
I don't know, I haven't.

If your phone is not connected to the Internet, but you have access to another device with the same Mi Account, you can try unlocking it through the web version of Find Device.

  • 🌐 Sign in to the site under your account.
  • πŸ“ Select a locked phone in the list of devices.
  • πŸ”“ Click "Unblock" and confirm the action.

This only works if the phone has "Find Device" enabled (checks in Settings β†’ Mi Account β†’ Find Device). If the option is disabled, move to the next method.

2 Unlocking through ADB (without data loss)

The method is suitable for users who have debugging enabled on the phone USB (USB Debugging.It's rare, but if you've ever connected Xiaomi to a PC for firmware or debugging, the odds are high.The way you can remove the pattern lock without resetting, saving all the data.

What will be required:

  • πŸ–₯️ Computer with Windows/Linux/macOS.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“¦ Installed drivers Xiaomi and ADB Tools.

Step-by-step:

  1. Connect your phone to your PC via USB.
  2. Open the Command Prompt (Windows) or Terminal (macOS/Linux).
  3. Enter the command to check the connection: adb devices If the phone appears in the list, go further.
  4. Delete the file with the pattern lock: adb shell rm /data/system/gesture.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
  5. Reboot your phone: adb reboot

After the reboot, the pattern lock will be reset, but all the data (photos, messages, apps) will remain in place. If the adb device command does not show your phone, then debugging over USB is disabled - this method will not work.

β˜‘οΈ Preparation for unblocking through ADB

Done: 0 / 4

3. Reset via Recovery Mode (full cleaning)

If previous methods failed, it is hard to reset through Recovery Mode, which removes all data from your phone, including photos, contacts and apps. Use it only as a last resort!

Instructions for most Xiaomi models (including Redmi 9/10/Note 11, POCO F3/X3):

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the button combination: Power button + Volume up (for most models). Power button + Volume up + Volume down (for POCO M3/M4).

Mi

Recovery

Use volume buttons for navigation and power button for selection.

Wipe Data β†’ Wipe All Data

Factory Reset

Confirm the action and wait for the reset to be completed.

⚠️ Note: On some models (Redmi Note 8 Pro, Mi) 9T) After a reset, you may need to enter data from Mi Account if the phone was tied.This is Factory Reset Protection (FRP). If you do not remember the username / password, the phone will become a β€œbrick” – it can be unlocked only through the mode. EDL.

Xiaomi modelCombination for RecoveryDo you need a Mi Account after a reset?
Redmi Note 10/11/12Food + Volume upYeah, if he was tied up.
POCO X3/X4Food + Volume upYes.
Mi 11/12Food + Volume upYes.
Redmi 9/9AFood + Volume upNo (on some firmware)

If after reset the phone requires Mi Account, and you do not remember the data, try to restore access through the official website or contact the service center.

4. Unlock through EDL mode (for advanced)

EDL (Emergency Download Mode) is an emergency firmware mode that allows you to reflash your phone even without an unlocked bootloader.The method is suitable for Xiaomi with Mi Account blocked after a reset or if other methods have not worked.

What you need:

  • πŸ–₯️ Windows computer.
  • πŸ”Œ Cable USB Type-C (for new models).
  • πŸ“¦ Mi Flash Tool Programming.
  • πŸ“„ Firmware for your model (download from the official website).
  • πŸ”§ Screwdriver (for some models you need to short contacts).

Step-by-step:

  1. Turn off the phone.
  2. Connect it to your PC by holding the volume button up + down (for Redmi Note 9/10) or short the contacts on the board (for POCO F1/F2).
  3. The phone must be identified in Device Manager as Qualcomm HS-USB QDLoader 9008.
  4. Install the QDLoader driver (can be found on the 4PDA or XDA forums).
  5. Start the Mi Flash Tool, select the firmware and press Flash.

⚠️ Warning: A faulty firmware or interrupted process can permanently shut down your phone. If you're not sure about your abilities, contact the service center. EDL The phone may require unlocking the bootloader (OEM Unlock, which takes up to 72 hours.

What if the Mi Flash Tool can't see the phone?
1. Check that the phone is in mode EDL (should be displayed as a Qualcomm device. 2. Install the QDLoader driver manually through Device Manager. 3. Try another one. USB-port (preferably) USB Disable the antivirus – it can block the Mi Flash Tool.

5. if the phone is discharged in a locked state

One of the most frustrating things is when Xiaomi is out of charge and then it needs a pattern lock, and you can't wait to charge it fully, because it doesn't turn on beyond the lock screen.

Method 1: Charging in the off state

  • πŸ”Œ Connect your phone to charge.
  • πŸ”„ Hold the power button. 15-20 seconds until the screen goes out.
  • πŸ”‹ Wait until the phone charges at least 30% (charging indicator should appear).
  • πŸ”“ Now you can try to unlock through ADB or recovery.

Method 2: Use Power Bank with Force Charge

Some external batteries (e.g. Xiaomi Power Bank 3) have a forced charging mode.

  1. Connect Power Bank to your phone.
  2. Twice press the button on Power Bank – this will activate the charging mode even on the devices that are turned off.
  3. Wait 10-15 minutes and try to turn on the phone.

⚠️ Note: Do not use "left" high-current chargers (more 2A) - this can damage the power controller on the board. It is best to charge with the original Xiaomi adapter on the board 5V/2A.

6. Alternative methods (for older models)

If you have an older Xiaomi model (e.g. Redmi 4X, Mi A1, Mi 5), you can try bypassing the pattern lock through a service menu or hardware reset. These methods do not work on all devices, but sometimes they help.

Method 1: Calling the phone

On some MIUI 8-9 firmware, you could bypass the lock via an incoming call:

  1. Call the locked phone from another device.
  2. Take the call, then quickly go to Settings β†’ Lock screen.
  3. Turn off the pattern lock or change it to a PIN.

❌ On the new versions MIUI 12/13/14 This method does not work – the developers have closed the vulnerability.

Method 2: Hardware reset via testpoints

For the Redmi Note 3/4 and Mi Max models, there was a way to reset through shortened pins on the board:

  • πŸ› οΈ Disassemble the phone (requires a mediator and a screwdriver).
  • πŸ”§ Find contacts on the motherboard TEST POINT (usually near the battery).
  • πŸ”Œ Short them up with tweezers and plug them in. USB-plug-in.
  • πŸ–₯️ The phone will go into mode. EDL, Then you can use it in Mi Flash.

⚠️ Warning: Disassembly of the phone deprives warranty and can lead to damage to plumes or boards.

πŸ’‘

Before disassembling, take a picture of the location of all the plumes and screws, which will help to assemble the phone back without unnecessary details.

7.How to avoid blocking in the future

To avoid the problem of a forgotten pattern lock, follow these tips:

  • πŸ” Attach Mi Account and enable Find Device (Settings) β†’ Mi Account β†’ Find Device).
  • πŸ“ Write down a pattern lock or PIN to a secure location (such as Google Keep or a notebook).
  • πŸ”„ Regularly back up through Settings β†’ System system β†’ Backup.
  • πŸ“± Use a fingerprint or facial recognition as an additional way to unlock.
  • πŸ”§ Turn it on. USB Debugging (Settings) β†’ The phone. β†’ Version. MIUI β†’ 7 times press β†’ Return to the Extra β†’ For developers).

If you often forget passwords, install the Xiaomi Cloud app and enable automatic data sync, which will allow you to restore access to contacts, photos and notes even after a reset.

πŸ’‘

The most reliable way to avoid locking is to link Mi Account and enable Find Device, which will allow you to unlock your phone remotely 90% of the time.

FAQ: Frequent questions about unlocking Xiaomi

❓ Can you unlock Xiaomi without losing data if you debug it? USB switched off?
Unfortunately, no. Without USB Debugging, the only official way is to use Mi Account, and if you don't have an account attached, you'll have to reset it through Recovery, which will delete all the data.
❓ The phone after the reset asks for Mi Account, but I don't remember the password?
You need to restore access to your account through the official website, and if that doesn't work, you just need to run the firmware through EDL or contact the service center with proof of purchase.
❓ Does unlocking by call work on new Xiaomi models?
No, this method only worked on older versions of MIUI 8-9. Starting with MIUI 10 and later, the vulnerability is closed.
❓ Can you unlock Xiaomi through service centers without a check?
Most service centers require proof of purchase (check, box with IMEI), without it, unlocking is possible only for an additional fee (and is not guaranteed).
❓ What to do if you have to go through the EDL phone out?
Possible causes: a broken firmware, a broken process, or a damaged bootloader. Try re-stitching with another version of MIUI. If it doesn't work, see a specialist.