How to unlock Xiaomi Redmi if you forget your graphical password: the full guide 2026

The forgotten pattern lock on Xiaomi Redmi is a situation that thousands of users face every day. PIN-If you have a code or a fingerprint, a lock pattern is not always easy to recover from memory, especially if you haven't changed it in a long time. Fortunately, the manufacturer has provided several formal and informal ways to unlock, but each of them has its own nuances: from data loss to the risk of β€œbricking” the device.

In this article, we will review all the current unlocking methods (including those that work on the new Redmi Note 12/13, Redmi 10/11 and POCO X5), evaluate their safety and speed, and give checklists for preparation. Importantly, some methods require pre-binding Mi Account or enabled debugging over USB β€” if you did not do this in advance, some instructions will not be available.

Warning: on devices with a bootloader locked and Mi Cloud synced, the chances of unlocking without losing data are near zero. If your Redmi falls into this category, prepare to reset before factory settings.

1 Unlocking through Mi Account (official method)

The most reliable and secure method is to use a Xiaomi account (Mi Account), which works on all Redmi models, if:

  • πŸ“± Device connected to the Internet (Wi-Fi or mobile network).
  • πŸ”— Mi Account was linked to phone before lockdown.
  • πŸ”’ The phone was not disabled parameter Find the device in the security settings.

Instructions:

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

βœ… Pros: does not require data reset, works without a PC, supported by Xiaomi officially.

❌ Cons: If you don’t remember the data from Mi Account or turned off synchronization, the method will not work.

⚠️ Note: On custom firmware devices (e.g. LineageOS), the Mi Account unlock function may be disabled. β„–3 (Fastboot).

πŸ“Š You link Mi Account to Xiaomi’s new smartphone?
Yeah, always.
Only if required by the functions
No, I don't see the point.
I don't know what it is.

2. Reset the pattern lock via Recovery Mode (without loss of data)

This method is suitable for devices that enable debugging over USB (ADB) and access to a PC. It allows you to delete a file with a pattern lock without completely resetting, but requires prior preparation.

What you need:

  • πŸ–₯️ Computer with installed Xiaomi drivers and tool ADB.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“± The phone should be on debugging. USB (In Settings β†’ The phone. β†’ Version. MIUI Press 7 times, then return to the Additional Settings β†’ For developers).

Step-by-step:

  1. Connect Redmi to your PC via USB.
  2. Open the command line (Windows) or terminal (macOS/Linux) and type in: adb shell rm /data/system/gesture.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
  3. After rebooting, the pattern lock will be reset.

⚠️ Important: If the debugging is USB It wasn't turned on beforehand, it won't work. MIUI 14+ The path to the key files may be different.

Install Xiaomi drivers on PC|Download the platform ADB (Android SDK)|Enable debugging on USB phone-on|Prepare original USB-cable-->

3. Hard Reset (full reset) via Recovery Mode

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

How to perform Hard Reset:

  1. Turn off Redmi (press the power button for 10 seconds).
  2. Press the Volume Up + Power combination and hold for 10-15 seconds until the Mi logo and Recovery Mode menu appear.
  3. Use the volume buttons for navigation and the power button to select the Wipe Data (or Factory Reset) item.
  4. Confirm the action by choosing Yes.
  5. After reset, select Reboot System.

βœ… Pros: works on 100% of devices, does not require a PC or account.

❌ Cons: Total data loss, on new models (Redmi Note 12 Pro)+) You may need to enter your Mi Account password after resetting.

⚠️ Warning: Hard Reset devices with a bootloader may be asked to enter Mi Account data even if you haven't tied it up, this is anti-theft protection, and you'll need official unlocking through the service center.

What if after Hard Reset, your phone needs an old password?
If Redmi asks for a pattern lock or PIN after reset, it means that Factory Reset Protection (FRP) is activated on the device. In this case: 1. Enter data from the last Google account associated. 2. If you don't remember, try to restore access via [Google recovery page](https://accounts.google.com. 3. Models with MIUI 13+ may require Mi Account data instead of Google.

4. Unlock via Fastboot (for advanced users)

The method is suitable for devices with an unlocked bootloader. If you previously unlocked it through the official Mi Unlock Tool, you can delete the pattern lock through the command in Fastboot mode.

What you need:

  • πŸ–₯️ PC with installation ADB and Fastboot.
  • πŸ”Œ USB-cable.
  • πŸ“± Unlocked bootloader (checked by the command fastboot oem device-info - Device unlocked: true).

Instructions:

  1. Turn off the phone and press Volume Down + Power to log into Fastboot Mode.
  2. Connect the device to the PC and type in the terminal: fastboot erase userdata fastboot erase locksettings fastboot reboot
  3. After rebooting, the pattern lock will be removed.

⚠️ Risks: Wrong commands in Fastboot can lead to a device's "brick." If you're not sure, use other ways.

πŸ’‘

Before working with Fastboot, back up the userdata section with the command fastboot pull /userdata backup.img. This will help restore data in case of an error.

5. Use of service codes (for older models)

Some older Redmi models (e.g. Redmi 4X, Redmi Note 4) have service codes to reset locks, but newer devices (2020 and later) don’t.

List of codes (check relevance for your model):

ModelCode.Action.
Redmi 3S/4/4A##7780##Resetting settings (without deleting data)
Redmi Note 3/4##3646633##Engineering menu (sometimes allows you to reset the lock)
Redmi 5/5A##4636##Testing menu (not always helpful)

❌ Restrictions: On MIUI 12+ Service codes are locked, and they don't work if you have a password on your device. SIM-map.

6. Contact the Xiaomi Service Center

If all of these methods don't work, the official way is to go to the service center, and that's for:

  • πŸ”’ Devices with locked bootloader and disabled synchronization.
  • πŸ“± Phones that have a Mi Account request after Hard Reset.
  • πŸ’Ό Enterprise devices with security policies (e.g., Redmi for Business).

What will be required:

  • πŸ“„ Check or warranty card (if the device is guaranteed).
  • πŸ†” Passport of the owner (to confirm ownership).
  • πŸ”‘ Mi Account data if the phone is linked to the account.

πŸ’° Cost: In official service centers Xiaomi unlocking costs 1,500-3000 rubles (2026), on informal services the price may be lower, but the risk of damage to the device is higher.

⚠️ Note: Some "masters" offer to unlock Redmi through the firmware custom Recovery (for example, TWRP). This violates the warranty and can result in a loss. IMEI. The official service center never uses such methods.

πŸ’‘

If the Find Device function is activated on the phone, it will take no more than 30 minutes to unlock the service center, and without it, the process can take 3-5 days due to checks.

Comparison of Unlocking Methods

To choose the best way, compare them by key parameters:

MethodData retentionPC requiredIt works without a Mi Account.Difficulty
Mi Accountβœ… Yes.❌ No.❌ No.⭐
ADB (debugging)βœ… Yes.βœ… Yes.βœ… Yes.⭐⭐
Hard Reset❌ No.❌ No.βœ… Yes.⭐
Fastboot❌ No.βœ… Yes.βœ… Yes.⭐⭐⭐
Service centreβœ…/❌*❌ No.βœ… Yes.⭐⭐

* Depends on the reason for the lock.

Frequently asked questions

Can I unlock Redmi without losing data if USB debugging has been disabled?
No. Without USB debugging enabled or a tied Mi Account, the only way to unlock is Hard Reset, which erases all data, except for the service center, but even there, you don't guarantee that files are safe.
Why does a Hard Reset phone ask for an old pattern lock?
This means that Factory Reset Protection (FRP) is activated on the device, which is tied to the Mi Account or Google account on Xiaomi, and to unlock the phone, you need to enter the last associated account information, and if you don't remember it, restore access through official Xiaomi or Google services.
Does unlocking through Mi Account work on custom firmware?
No, on unofficial firmware (e.g. LineageOS, Pixel Experience), the unlock function via Mi Account is disabled, in which case only Fastboot (if the bootloader is unlocked) or Recovery reset will help.
Can I unlock Redmi via Google’s Find My Device?
Theoretically, yes, but only if: The phone turned on Find the device in Google settings. The device is connected to the Internet. You remember the data from the Google account that was linked. Go to the site. [Google Find My Device](https://www.google.com/android/find), Select your Redmi and click Lock the device. Then set a new one. PIN-But on the MIUI This method doesn't always work.
What if the phone does not turn on after unlocking via Fastboot?
This means that there was an error when you deleted the userdata or locksettings partition. Try: Log in to Fastboot and flash the original Recovery for your model. Perform a full reset via Mi Flash Tool (you will need official firmware). Contact the service center if you are not sure of your actions. ⚠️ Don’t try to sew custom Recovery – it can lead to loss IMEI.