The situation when the owner of a smartphone suddenly cannot get into the system due to a forgotten pattern key is one of the most stressful in the world of mobile devices. This is especially acute on popular budget models, such as Redmi 9A, which are often used as main work tools or devices for the elderly. Losing access to contacts, photos and banking applications can paralyze everyday life, forcing you to panic and look for quick solutions on the Internet.

Fortunately, the architecture Android and the proprietary shell MIUI from the company Xiaomi provide for several mechanisms for restoring access, although they have their own nuances. It is important to understand that not all methods guarantee the safety of personal data: some methods require a complete reset to factory settings, while others allow you to get by with “little blood.” The choice of a specific algorithm of actions directly depends on whether it was configured in advance Mi-account, whether USB debugging is enabled and what version of the operating system is installed on the device.

In this guide we will analyze in detail all legitimate unlocking methods Redmi 9A, from the most gentle to radical. You will learn how to use Google's built-in security features, the features of Xiaomi's Find My Device service, as well as technical reset methods through the Recovery menu. Please note that modern versions of Android have significantly tightened the security policy, so old tricks with calls or entering special codes in an emergency call most often no longer work on new firmware.

Using the “Forgot the key” function through a Google account

The simplest and least traumatic method for data only works if a number of preconditions are met. If your Redmi 9A has been logged in Google account and the device has an active connection to the Internet (via Wi-Fi or mobile network), the system may offer an alternative authorization method. After five unsuccessful attempts to enter a graphic pattern, a button with the words “Forgot the key” or “Forgot the pattern” usually appears on the lock screen.

Clicking on this button initiates a request to enter the login and password for the Google account that was previously synchronized with the phone. This is an owner verification mechanism included in the basic protection Android. However, it is worth noting that on versions of Android 5.0 and higher, and especially in modern builds, this function is often hidden or completely removed from the interface for the sake of security. If the button does not appear after many attempts, this method, unfortunately, is not available for your specific software configuration. MIUI, this feature is often hidden or completely removed from the interface for the sake of security. If the button does not appear after many attempts, this method is unfortunately not available for your specific software configuration.

Even if the button is there, the success of the operation depends on the stability of the network connection. The device must have time to send a request to Google servers and receive confirmation that the entered data is correct. If the signal reception is poor, the process may take longer or end in error. In this case, you should try to move to an area of reliable reception or temporarily connect the phone to another Wi-Fi network if it is possible to unlock it in another way (for example, through a guest network).

⚠️ Attention: The unlocking function via Google account will not work if you have not previously added an account to the phone settings or if the device is offline without access to the network.

📊 How often do you change the unlock password?
Once a month
Once every six months
I never change
Forgot right after installation

Remote unlocking via the Xiaomi Find Device service

Smartphone owners Xiaomi i Redmi have a unique advantage - access to their own cloud device management service. If the locked Redmi 9A has been logged in Mi-account and the “Find my device” function has been activated, you can remotely unlock the screen via the web interface. To do this, you need to go to the official website of the service from any other device with Internet access and log in using the same credentials.

After logging into your personal account, you will be presented with a list of all linked gadgets. By selecting your Redmi 9A from the list, you will see a map with the location of the phone (if it is online) and a control panel. Among the available commands there will be an option “Unblock” or “Unlock”. Activating this command will send a signal to the phone, which will forcefully remove the current screen protection method, be it a pattern, PIN or fingerprint.

This method is the most preferred as it allows you to keep all user data, photos and application settings intact. However, a critical condition is the availability of the Internet on the locked smartphone itself. If the phone is turned off or in airplane mode, the command will remain in the queue until a connection appears. It is also worth considering that after such unlocking, the system may require you to re-enter the password for the Mi account the next time you enter the security settings.

💡

Make sure that the “Find device” function was enabled in advance in the Mi account settings, otherwise remote control will not be available.

Reset settings via Recovery Menu (Hard Reset)

When soft methods do not work, you have to resort to radical measures known as Hard Reset. This process returns the smartphone to its factory state, completely erasing all data from the internal memory, including contacts, messages, installed applications and, in fact, the forgotten pattern itself. On Redmi 9A entry into recovery mode is carried out using a combination of physical buttons, which makes this method available even when the touch screen is completely inoperative.

First you need to completely turn off the device. Then hold down the volume up button (Volume Up) and the power button (Power) at the same time. Hold them until the logo Miappears, then release the power button, but continue to hold the volume button until the main menu Recoveryappears. Navigate in this menu using the volume buttons (up and down), and selecting an item using the power button.

In the menu, select the item Wipe Data, confirm the action by selecting Wipe All Data, and wait for the process to complete. After a successful reset, select the option Reboot to reboot the system. The initial boot after a reset may take several minutes. Be prepared for the fact that when setting up for the first time, the phone will require you to enter the login and password for the Google account that was synchronized earlier - this is protection against theft, known as FRP lock.

☑️ Preparing for Hard Reset

Done: 0 / 4

⚠️ Attention: The Hard Reset procedure permanently deletes all files from the phone’s internal memory. If you have a microSD memory card, the data on it is usually saved, but it is still recommended to remove it before the procedure.

Unlocking via USB and ADB debugging

For advanced users who have previously enabled USB debugging in the "For Developers" menu, there is a technical method deleting a file with a key without losing data. This method requires a computer, installed drivers ADB and minimal knowledge of working with the command line. The essence of the method is to directly access the file system of the device and delete the system file that stores the hash of the pattern key.

Connect the locked one Redmi 9A to the computer via the original USB cable. Open a command prompt or terminal on your PC in the installed tools folder Platform Tools. Enter the command to test connection with the device: adb devices. If your phone screen prompts you to allow debugging (unlikely when locked, but possible under certain conditions), accept it. Next, you need to obtain superuser rights and delete the target file.

adb shell

rm /data/system/gesture.key

reboot

Executing this sequence of commands deletes the file gesture.key, after which the system, when rebooting, considers that the key was never installed and allows you to log in with or without any picture. However, on modern versions Android with data encryption, this method is often blocked, since without unlocking the screen, the user's file system remains encrypted and unwritable even through ADB. The chance of success is high only on older firmware versions or specific builds.

What to do if ADB does not see the device?

If the adb devices command does not show the phone's serial number, check the installed drivers. Try using a different USB port or cable. It is also possible that the debugging mode was disabled by the security system after a reboot.

FRP protection features and Google accounts

After resetting the settings using any of the methods, the owner Redmi 9A will be faced with an activation screen that requires identity verification. This is the system Factory Reset Protection (FRP), developed by Google to protect devices from theft. If the phone was reset not through the standard settings menu (where the password was entered), but through Recovery or service commands, the system blocks access until the data of the last synchronized Google account is entered.

This means that knowing the pattern key is now not as important as knowing the Gmail password. If you also forgot your account password, restoring access turns into a complex procedure for cracking FRP protection, which is constantly becoming more difficult with each Android security update. The official way in this case is to restore access to your Google account through a form on the website from another device, using a backup email or phone number.

The table below shows the main differences between unlocking methods and their impact on data:

Unlock method Saving data Internet required Difficulty
Via Google account Full Yes Low
Xiaomi Find Device Service Full Yes Low
Hard Reset (Recovery) Full removal No (to reset) Medium
ADB (file deletion) Full No High
💡

The FRP system is a serious obstacle: resetting the phone without knowing the password A Google account may make the device unusable.

Prevention and creation of backups

In order not to encounter the problem of a forgotten key in the future, it is advisable to set up alternative methods of biometric or digital authorization. In the security settings Redmi 9A it is recommended to activate unlocking by fingerprint or face recognition. These methods are not only more convenient, but also serve as a reliable backup if you forget a chart pattern. However, remember that after rebooting the device, the first login should always be through the primary method (key or PIN).

Regular backups to the cloud Google Drive or Mi Cloud will allow you to minimize losses if a complete reset is necessary. Set up automatic synchronization of contacts, calendar and photos. In an emergency, you can quickly restore basic information on a reset device by simply logging into your account. It's also a good idea to write down complex passwords in a secure password manager or store them on paper in a safe place.

Don't use patterns that are too simple or obvious, like the letter "L" or "Z," which are easy for an attacker to figure out, but also don't overcomplicate them to the point where muscle memory can't reproduce them. The optimal design should be unique, but easy to type on frequently. Periodically changing the key every few months is also a good digital hygiene practice, although it requires discipline.

⚠️ Attention: Recovery menu interfaces and security settings may vary slightly depending on the version of MIUI. Always check the latest guides for your specific firmware version, as steps may be renamed or moved.

💡

Use the Smart Unlock feature if available in your version of MIUI: the phone will remain unlocked when near a trusted Bluetooth device, such as a smartwatch.

Frequently asked questions (FAQ)

Is it possible to unlock Redmi 9A without losing data if the Internet is not turned on?

Unfortunately, without an Internet connection, remote unlocking methods via Google or Mi account will not work. The only way to remove the lock without a network is the ADB method, but it requires USB debugging to be enabled in advance. Otherwise, you will have to do a Hard Reset, which will lead to data deletion.

What is FRP lock and how to bypass it?

FRP (Factory Reset Protection) is Google protection that requires you to enter your account password after resetting the settings. There is no official way to bypass it without knowing the password. Unofficial methods (FRP bypass) are complex technical procedures, often change with security updates and may violate the device warranty.

Will unlocking via Find Device work if the phone is turned off?

No, the unlock command will be sent to the server and queued. The phone will only unlock when it is turned on and connected to the Internet. Until this moment, the screen will remain locked.

Will Hard Reset delete files from the SD memory card?

The standard reset procedure through the Recovery menu on Redmi 9A usually affects only the internal memory of the device. Files on the microSD memory card generally remain intact. However, for complete security, it is recommended to remove the card before starting the reset procedure.

Why, after resetting, does the phone ask for the old password that I forgot?

It was the FRP protection that worked. The phone requires you to confirm that you are the owner by entering the password for the Google account that was synced with the device before the reset. If you have forgotten this password, you need to recover it through the Google website on another device.