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.
- Enter the email or phone number associated with the Mi Account.
- Confirm your login via SMS or email (if two-factor authentication is enabled).
- 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.
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:
- Go to i.mi.com and log in to your Mi Account.
- Select the blocked Redmi 9 from the list of devices.
- Click Delete Data β Unlock the device.
- 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:
- Turn off the phone (press the power button for 10 seconds).
- Press the Power button + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
- From the Recovery Mode menu, select Wipe Data β Wipe All Data (use volume buttons for navigation, power button for confirmation).
- 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: rebootAfter 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?
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. | Description | Works 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:
- Go to Settings β About Phone β Backup.
- Enable Automatic Backup in Mi Cloud.
- Choose which data to save (contacts, messages, photos).