Forgot pattern lock on Xiaomi Redmi 9: 7 proven ways to unlock

Forgetting the pattern lock on the Xiaomi Redmi 9 is a frustrating but fixable situation. Unlike the iPhone, where unlocking without an Apple ID is almost impossible, Android devices (including MIUI firmware) offer several official and informal methods of restoring access. The main thing is not to panic and not to try to find the key at random: after 5 wrong attempts, the system will lock the phone for 30 seconds, and after 20 - may require a password from Mi Account.

In this article, we will look at all the current ways to unlock the Redmi 9 (including the Redmi 9A/9C/9T models), from the simplest to the most technically complex. We will focus on the methods that allow you to save data on your phone – photos, contacts and messages. If a reset is inevitable, we will explain how to minimize losses and recover information after unlocking.

1 Unlocking through Mi Account (official method)

The most reliable and recommended way Xiaomi uses is to use a tied Mi Account, which works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ”‘ You remember the username and password from your Mi Account (or you can restore them).
  • πŸ”„ The device is synchronized with Mi Cloud.

After 5 incorrect attempts to enter the pattern lock, the button Forgot the password? or Unlock via Mi Account will appear on the screen.

  1. Enter the email or phone number associated with the Mi Account.
  2. Confirm your login via SMS or email (if two-factor authentication is enabled).
  3. Create a new pattern lock or PIN-code.

⚠️ Note: If the phone is not connected to the network, this method will not work, and Xiaomi can request proof of identity through a photo with a document (if you often try to unlock).

If the buttons Forgot your password? no, try entering the key at random 5 times in a row - the system should offer an alternative way to log in. On some MIUI 12/13 firmware, this item may be called Sign in via Mi Account.

πŸ“Š How often do you forget passwords from your devices?
Never.
Rarely (once a year)
Often (once every six months)
Constantly (monthly)

2. Reset the pattern lock via Find Device (remotely)

If your phone is connected to the Internet but you don't have a Mi Account unlock button, use Find Device (i.mi.com) to:

  • πŸ”’ Remove the pattern lock remotely.
  • πŸ“ Find out the location of your phone (if it is lost).
  • πŸ”‹ Check the battery level.

Instructions:

  1. Go to i.mi.com and log in to your Mi Account.
  2. Select the blocked Redmi 9 from the list of devices.
  3. Click Delete Data β†’ Unlock the device.
  4. Confirm the action via SMS or email.

After that, the pattern lock will be reset, but all data on the phone will be deleted (except for files on the phone). SD-The method works only with an active Internet connection on the phone.

πŸ’‘

If the phone is discharged but on, plug it into charging for 10-15 minutes before using Find Device. the service may not see a device with a charge level below 5%.

3. Hard Reset (hard reset) via Recovery Mode

Hard Reset is an extreme measure that erases all data on your phone, including apps, settings, and files in internal memory.

  • πŸ”Œ The phone is not connected to the Internet.
  • πŸ” You don’t remember the data from your Mi Account.
  • πŸ“΅ Other methods didn't work.

Instructions for Redmi 9:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the Power button + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery Mode menu, select Wipe Data β†’ Wipe All Data (use volume buttons for navigation, power button for confirmation).
  4. Confirm the reset, wait for the process to be completed and restart the phone.

⚠️ Attention: On some firmware MIUI After Hard Reset, you may need to enter data from Mi Account, which was previously linked to the phone (Factory Reset Protection).If you do not remember the account, the phone will become a brick".

Turn off the phone.|Extract. SIM-map SD-card (if any)|Charge the battery to at least 30%|Prepare data from Mi Account (in case of a case) FRP)-->

4. Unlock through ADB (for advanced users)

The Android Debug Bridge (ADB) method is suitable if the phone is on USB debugging and has access to a computer. It is one of the few ways to save data on the phone, but it requires pre-preparedness.

What you need:

  • πŸ’» A computer with installed Xiaomi drivers and ADB.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“± Included debugging by USB (Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times to activate the developer mode).

Instructions:

1. Connect the phone to the computer via USB.


2. Open the command line (Windows) or the terminal (macOS/Linux).




3. Enter the commands in order:




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




4.Reboot the phone: reboot

After the reboot, the pattern lock will be reset. If the commands don't work, try the alternative:

adb shell am start -n com.android.settings/.ChooseLockGeneric

⚠️ Attention: MIUI 12/13 With the latest security updates, this method may not work, and root rights are required, which are not available on most Xiaomi stock firmware.

What if the ADB can’t see the device?
If the adb device command doesn’t show your Redmi 9, check: 1.> (You can download it on the official website. 2. Is File Transfer Mode enabled (MTP) when connected USB. 3. Whether debugging is permitted USB in the developer settings (Settings) β†’ Additionally. β†’ For developers β†’ Debugging by USB). If the problem persists, try another one. USB-cable.

5. Use of service codes (for older versions of MIUI)

On MIUI firmware older than version 12, you could reset the pattern lock through service codes, which is rare now, but it's worth a try:

Code.DescriptionWorks for MIUI.
##7780##Resetting settings (data is stored)Up to version 11.
*2767*3855#Full reset (removes everything)Up to version 10.
##4636##Test menu (sometimes there is a reset option)All versions.

If the code works, the phone will reboot and the pattern lock will be deleted. On new firmware, these combinations are usually blocked, but you can try them as a last chance before Hard Reset.

6. Contact the Xiaomi Service Center

If none of the methods worked, you can contact the official Xiaomi service center.

  • πŸ”’ Phone's locked. FRP (Factory Reset Protection) after discharge.

What will be required:

  • πŸ“„ Document confirming the purchase (check, box with IMEI).
  • πŸ†” Passport of the owner.
  • πŸ“± The phone itself with a charge of at least 50%.

The service centre may:

  • πŸ“‹ Provide help to unlock Mi Account (if the account is blocked).

⚠️ Attention: Do not contact unofficial services! Fraudsters can steal data from your phone or install malware. Xiaomi official centers in Russia can be found on the website mi.com/ru/service.

πŸ’‘

The official service is the only legal way to unlock if the phone is tied to someone else’s Mi Account data (for example, when buying used ones).

7. How to recover data after unlocking

If you had to do a Hard Reset, not all the data is lost. Here's how to get it back.

Recovery methods:

  • πŸ–₯️ Mi Cloud: If sync is enabled, contacts, notes and photos can be returned via i.mi.com β†’ Recover data.
  • πŸ“ Google Account: Contacts, calendar, and certain settings are automatically restored when you first log in to Google after a reset.
  • πŸ’Ύ Local Backup: If you have made backups through Settings β†’ System system β†’ Backup, connect your phone to your PC and restore data from the folder MIUI/backup.
  • πŸ”§ Recovery software: Dr.Fone, EaseUS MobiSaver, or Tenorshare UltData can return deleted files, but only if no new data is recorded on the phone after the reset.

What is usually not regenerated:

  • πŸ“± Installed applications and their data (game progress, settings).
  • πŸ’¬ Messages from messengers (if there was no cloud backup).
  • πŸ“‚ Files in internal memory that are not synced to the cloud.

To avoid future losses, set up automatic backups:

  1. Go to Settings β†’ About Phone β†’ Backup.
  2. Enable Automatic Backup in Mi Cloud.
  3. Choose which data to save (contacts, messages, photos).

FAQ: Frequent questions about unlocking Redmi 9

Can I unlock Redmi 9 without losing data?
Yes, but only if: The phone is connected to the Internet and you remember the data from Mi Account (method 1), USB debugging is enabled and there is access to the computer (method 4 with ADB), otherwise the data will be lost.
What if after Hard Reset, the phone asks for an old Mi Account?
This is Factory Reset Protection (FRP) Solutions: Enter the account that was linked to the phone. If you don't remember, contact the Xiaomi service center with the documents on the phone. On some firmware, waiting 72 hours with the email entered helps (there may be a button Forgot the password?).
Can I bypass the pattern lock through Safe Mode?
No. Safe Mode on Redmi 9 disables third-party apps, but doesn't reset system security settings, including the pattern lock.To log into Safe Mode: Press the power button before the off menu appears. Hold off power until a request to switch to Safe Mode appears. But that won't help with unlocking.
How to know if USB debugging is enabled on a locked phone?
If debugging was activated before locking, then: When connected to a PC, the phone will be defined as Android ADB Interface in Device Manager, the adb device command will show the serial number of the device, ADB-method will not work.
How much does it cost to unlock in the Xiaomi service center?
The cost depends on the reason for blocking: Reset pattern lock (without FRP): 1000-1500 rubles. FRP bypass (if Mi Account is forgotten): 2000-3000 rubles. Flashing (if the system is damaged): 1500-2500 rubles. If the phone for warranties and locking occurred due to the fault of the system (for example, after updating), the reset can be free.