Forgot a graphical password on Xiaomi: how to unlock your phone without losing data?

What to do if you forget your Xiaomi graphical password?

Forgetting the pattern lock on Xiaomi is a frustrating situation, but it is not a hopeless one. The brand’s smartphones offer several ways to restore access, from simple (via Mi Account) to radical (full reset via Fastboot).

In this article, we will discuss all current methods of unlocking, including official and alternative, taking into account Xiaomi models on MIUI 12/13/14 and HyperOS. Particular attention will be paid to the ways that allow you to save personal files - photos, contacts and messages. If the phone is locked after buying from hand or you do not remember the attached account, radical measures will come in handy.

Before you start, check:

  • πŸ”„ Do you have access to the Mi Account (login and password) that was linked to the phone?
  • πŸ“± Is the phone connected to the Internet (Wi-Fi or mobile network)?
  • πŸ”‹ Battery charge above 20% (to avoid switching off during the procedure).
πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Redmi 9/10/13C
Another model

Method 1: Unlocking with Mi Account (official method)

Xiaomi’s most reliable and recommended way is to use a tied Mi Account, which works on most models, including the Redmi Note 12, POCO X5 and Mi 13, if:

  • πŸ“± The phone is connected to the Internet (even if the screen is blocked).
  • πŸ”‘ You remember the login and password from the account that was linked to the device.
  • πŸ”„ Find the device has been activated in the settings.

Instructions:

  1. On the lock screen, tap the button Forgot the password? (or Forgot pattern? on English firmware).
  2. Select the option to Sign in via Mi Account.
  3. Enter the login (email or phone number) and password from the account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).
  5. Create a new graphical password or PIN-code.

Check your internet connection | Make sure you remember the data from Mi Account | Charge your phone to at least 20% | Have a second phone on hand to confirm SMS

-->

⚠️ Note: If you bought your phone with your hands and the previous owner didn't untie your account, this method won't work).

πŸ’‘

If the button Forgot the password does not appear, try to enter the wrong pattern lock 5 times in a row - the system will offer alternative unlock options.

Method 2: Unlock via SMS (for older models)

Some Xiaomi models before the 2019 release (e.g. Redmi 5/6, Mi A1/A2) had an unlock function via SMS.

  • πŸ“± The phone supported two-sim mode.
  • πŸ“ž The device has been activated option Unlock through SMS safety-setting.
  • πŸ”‘ You know the phone number tied to the device.

How it worked:

  1. On a locked phone, tap the Emergency Call button.
  2. Dial ##7378423## (code may vary depending on the model).
  3. In the menu that opens, select Unlock via SMS.
  4. Send an SMS from another phone to the number of the locked device with the reset text.
  5. Confirm the unlock on the screen.

Starting with MIUI 11 and later, this method is disabled for security reasons. If you have a modern model (Redmi Note 11, POCO F4, etc.), skip this method.

Method 3: Unlocking through ADB (without data loss)

The Android Debug Bridge (ADB) method is suitable for users who have had their phone debugging mode enabled via USB prior to locking, which is rare, but if you've previously connected the device to a PC for development or modifications, there's a chance.

What you need:

  • πŸ–₯️ A computer with installed Xiaomi drivers and ADB.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“± Phone with a charge of at least 30%.

Step-by-step:

  1. Connect your phone to your PC via USB.
  2. Open the command line (Win + R β†’ enter cmd).
  3. Enter the command to check the connection: adb devices If the device is displayed, go further.
  4. Delete the file with the graphical password: adb shell rm /data/system/gesture.key
  5. Reboot your phone: adb reboot

After the reboot, the graphical password will be reset, but all data (photos, messages, applications) will remain in place.

What if the ADB can’t see the device?
If the adb device command returns an empty list: 1. Check if Xiaomi drivers are installed (download from the official website). 2. Try another one. USB-cable or port. 3. Reinstall ADB Android SDK Platform-Tools. 4 If the phone requests debugging permission but the screen is locked, this method will not work.

Method 4: Complete reset via Recovery (Data Loss)

If previous methods didn't work, the radical option is factory reset via Recovery, which erases all data on the phone, including photos, contacts and apps, but is guaranteed to unlock the device.

How to perform the reset:

  1. Turn off the phone.
  2. Press the button combination to enter Recovery: For most models: Volume up + Power. For POCO: Volume up + Volume down + Power.

Wipe Data

Wipe All Data

Confirm the reset and wait until it is completed.

Reboot System

⚠️ Note: Some models (Redmi Note 10 Pro, Mi 11 Ultra) may require data entry from the previous Mi Account after a reset if the phone was linked to an account).

Xiaomi modelCombination for RecoveryDo you need a Mi Account after a reset?
Redmi Note 12/11/10Volume up + NutritionYeah, if he was tied up.
POCO X3/X4/X5Volume up + Volume down + NutritionYes.
Mi 11/12/13Volume up + NutritionYes.
Redmi 9/9A/9CVolume up + NutritionNo (on some firmware)

Method 5: Unlocking via Fastboot (for advanced)

Fastboot is a method that works for users who are willing to work with the command line, and it resets settings, but requires an unlocked bootloader, and if the bootloader is locked, it won't work without additional manipulation.

What do you need?

  • πŸ–₯️ PC with installation ADB and Fastboot.
  • πŸ”Œ Original. USB-cable.
  • πŸ“± Unlocked bootloader (if not - see spoiler below).

Instructions:

  1. Turn off the phone.
  2. Press Volume Down + Power to enter Fastboot.
  3. Connect the phone to the PC.
  4. In the command line, type: fastboot devices Make sure the device is defined.
  5. Run reset: fastboot erase userdata fastboot erase cache fastboot reboot
How to unlock the bootloader on Xiaomi?
Unlock bootloader is officially supported by Xiaomi, but requires: 1. Link the phone to Mi Account (at least 72 hours of waiting). 2. Use the Mi Unlock Tool utility (download from the official website). 3. Connect the phone in Fastboot mode and confirm unlock through the account. ⚠️ After unlocking, all data will be reset, and the warranty can be canceled.

⚠️ Note: On models with HyperOS (e.g. Xiaomi 14, Redmi) K70) Unlocking the bootloader may require additional steps, including confirmation through SMS.

πŸ’‘

If the bootloader is locked and the Mi Account is not tied, unlocking via Fastboot is impossible without data loss.

What do you do if nothing helps?

If all of these methods fail, there are two options:

  1. Contact the Xiaomi Service Center: πŸ“ Find the nearest official service. πŸ“„ Bring a check or confirmation of purchase (if the phone is guaranteed). πŸ”‘ If the phone was purchased with hands, proof of ownership (e.g., a box with a handheld phone) may be required. IMEI).
  2. Use paid unlocking services: πŸ’³ Cost of service - from 1000 to 5000 β‚½ model-wise. ⚠️ Risk of running into scammers – choose proven services with reviews. πŸ”§ Some services offer unlocking through EDL-mode (emergency firmware), but it requires special equipment.

Before you bring your phone to the service, check:

  • πŸ” In forums (e.g, 4PDA) Are there any patches or patches for your model.
  • πŸ“§ In the mail or in the cloud (Google Drive, Mi Cloud) is not saved backup data.

FAQ: Frequent questions about unlocking Xiaomi

Can you unlock Xiaomi without losing data if USB debugging has been disabled?
No, no, no debugging on. USB (USB Debugging methods like ADB The only chance is to unlock it through Mi Account if it was tied.
The phone requires an old Mi Account after a reset.
This is Mi Cloud Lock, which is anti-theft protection. If you've bought a phone with your hands, contact the previous owner and ask them to untie their account through the Mi Account website. If that's not possible, contact the service center with proof of purchase.
Does unlocking through Google Account on Xiaomi work?
Unlike some other brands (such as Samsung), Xiaomi does not support unlocking through Google Account. The only official way is Mi Account.
Can I get around Mi Cloud Lock by myself?
Technically, there are ways to get around EDL-TestPoint mode or firmware, but they require soldering equipment and risk "bricking" the phone.
How much does it cost to unlock in the Xiaomi service center?
The cost depends on the model and the reason for the lock: πŸ”“ Unlocking with Mi Account (if you forget your password) – usually free. πŸ”§ Resetting the Mi Cloud Lock (if the phone is off hand) – 1500 to 3000 β‚½. πŸ› οΈ Data recovery after reset – from 3000 β‚½ (There is no guarantee of success).