The situation when you cannot access important instant messengers, banking apps or the gallery due to a forgotten code is one of the most stressful for a smartphone owner. Modern Android skins like MIUI, OneUI or ColorOSoffer built-in โ€œApp Lockโ€ features to protect your privacy, but this very protection can become a trap if you lose your passkey. Fortunately, there are several proven ways to bypass this barrier, but their effectiveness directly depends on the device model and operating system version.

Before taking radical measures, you need to understand what type of blocking is installed. This could be a standard pattern, PIN, or biometric security that requires you to enter a backup password after several unsuccessful attempts. In some cases, the system itself will offer to reset settings through your account Google, but this function is not available on all smartphones. Further actions will require you to be careful and strictly follow the instructions to avoid data loss or complete blocking of the device.

Use built-in recovery tools

The simplest and safest method, which is worth trying first, is to use the โ€œForgot Passwordโ€ function provided by the interface developers. After five incorrect attempts to enter a code, a special button or link often appears on the lock screen. Clicking on it redirects the user to the account authorization page Google or Mi Account, depending on the brand of your gadget. Successfully logging into your account allows you to set a new access code without losing any files.

However, this method only works if the smartphone is connected to the Internet and you remember your account information. If the device is in airplane mode or the network is unavailable, the system will not be able to verify your identity. In such situations, the screen may simply freeze at the login stage, requiring a reboot, which sometimes resets the attempt counter, but not the lock itself.

โš ๏ธ Attention: If you enter the wrong Google account password more than 10 times in a row, the security system may temporarily block the ability to log in for 24 hours. Do not try to guess combinations at random.

For owners of smartphones Xiaomi i Redmi the situation is complicated by the fact that binding to Mi Account is mandatory for many system functions. If you forget the password for the application and your account at the same time, unlocking through the standard menu becomes impossible. In this case, you will have to resort to more complex technical methods described below.

๐Ÿ“Š What locking method are you using?
Pattern key
PIN code
Fingerprint
Recognition faces

Resetting settings via Recovery mode

If soft methods do not work, the only option is to completely reset the device to factory settings via the menu Recovery Mode. This process deletes all user data, including photos, contacts and installed applications, but is guaranteed to remove any software lock. Before starting the procedure, make sure that the battery charge is at least 50% so that the phone does not turn off at a critical moment of the firmware.

To enter recovery mode, you need to turn off the smartphone and hold down a certain combination of physical buttons. Typically this is the Volume Up key and the Power button held simultaneously until the brand logo appears. On devices Samsung you may need to connect the cable to the computer before pressing the buttons, since new versions Android restrict access to this menu for security reasons.

In the menu that appears, navigation is carried out using the volume buttons, and selecting an item is done using the power button. You need to find the section Wipe data/factory reset and confirm the action. After the process is completed, select Reboot system now. The phone will reboot as new, and application protection will be completely removed along with other settings.

โ˜‘๏ธ Preparing to reset via Recovery

Done: 0 / 4

It is worth noting that after a reset, protection is triggered on modern devices FRP (Factory Reset Protection). 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 with the device before the reset. This is done to protect against theft, so if you do not remember your account details, the phone may remain a useless brick even after a successful reset.

Removing the lock via USB debugging (ADB)

For advanced users, there is a method for deleting the file with the lock parameters through a computer and a utility Android Debug Bridge. This method does not require a data reset, but only works if USB debugging was previously enabled on the smartphone in the developer menu. If this option was disabled, this method will not work, and you will have to return to a full reset.

Connect the smartphone to the computer via a USB cable and open the command line on the PC with administrator rights. Enter the command to check the device connection:

adb devices

If the list displays the serial number of your device with status device, then the connection is established. Next, you need to enter a command to delete the file that stores the pattern or password:

adb shell rm /data/system/gesture.key

Or, in the case of a PIN code:

adb shell rm /data/system/password.key

After executing the command, restart the phone. The lock should disappear, and you can set a new password or completely disable application protection in the settings.

What to do if ADB does not see the device?

If the adb devices command does not show your device, check the installed drivers. Smartphones of different brands (Huawei, Samsung, Xiaomi) often require specific drivers, which can be downloaded from the manufacturers' official websites. Also try replacing the USB cable, as some cables only support charging, but not data transfer.

Unlock specifics on different brands

Various Android smartphone manufacturers implement application protection functions in their own way, which affects the choice of unlocking method. Device owners Samsung can try to use the service Find My Mobileif it was configured in advance. Through the service's web interface, you can remotely unlock the screen and, in some cases, remove protection for specific applications without losing data.

Users Xiaomi face the most stringent security system. If you have forgotten the application protection password and do not have access to your Mi account, often only flashing the device via a computer using the utility Mi Flash Toolhelps. This is a more complex procedure than a regular reset, and it requires unlocking the bootloader, which can take from 7 to 15 days of waiting after submitting the application. On smartphones, the situation is complicated by the lack of Google services on new models. Here, recovery is only possible through an account

On smartphones Huawei And Honor the situation is complicated by the lack of Google services on new models. Here recovery is only possible through an account Huawei ID. If you have not linked the device to the manufacturer's cloud service, the chances of saving data are close to zero, and the only way out is a hard reset.

Brand Recovery method Risk of data loss Required account
Samsung Find My Mobile / Recovery Low / High Samsung Account
Xiaomi Mi Account / Mi Flash High Mi Account
Google Pixel Google Find My Device High Google Account
Huawei Recovery / HiSuite High Huawei ID
๐Ÿ’ก

Before buying a used smartphone, be sure to check whether the blocking of applications or the account of the previous owner is activated on it. Ask the seller to reset all settings in front of you.

Third-party utilities and their effectiveness

On the Internet you can find many apps that promise to remove the screen lock and application protection in one click, for example, Dr.Fone, Tenorshare 4uKey or iMyFone LockWiper. It's important to understand that most of these tools essentially automate the process of entering Recovery mode and performing a data reset. They do not have the magical ability to crack encryption without losing information.

The use of such software is often paid, and free versions have limited functionality. In addition, downloading such utilities from unverified sites carries the risk of infecting your computer with malware. The effectiveness of these apps greatly depends on the phone model and Android version: on new devices with updated security systems, they are often useless.

โš ๏ธ Attention: Interfaces and protection methods are constantly updated by manufacturers. What worked on Android 10 may be completely blocked on Android 13 or 14. Always check the instructions with the official support forums for your model.

If you decide to use third-party software, carefully read the reviews specifically for your smartphone model. There are no universal solutions, and what helped one user may cause irreparable harm to the device. In most cases, manually entering recovery mode through buttons is a more reliable and free method. OnePlus, may cause irreparable damage to the device Sony. In most cases, manually entering recovery mode via buttons is a more reliable and free method.

Prevention and creation of backups

To avoid the problem of a forgotten password in the future, it is recommended to configure backup authentication methods immediately after installing application protection. In the blockade settings, always specify a security question or link the function to a fingerprint, which cannot be forgotten. Regularly synchronizing data with cloud storage will also minimize the consequences of a forced reset.

Use password managers, such as Google Password Manager or Bitwardento store complex combinations. Write down your master password or store it in a safe place that is out of reach of others but known to you. This will eliminate the need to resort to extreme measures in case of loss of access.

๐Ÿ’ก

The most reliable way to protect against loss of access is not a complex password, but having an up-to-date backup copy of your data and being linked to a cloud account.

Remember that the security of your device is in your hands. Simple precautions, such as regularly updating your account contact information and enabling two-factor authentication, can save you hours of hassle and valuable data in a critical situation. Do not ignore system notifications about the need to update recovery data.

Is it possible to unlock applications without losing data?

Yes, this is only possible if you have access to the Google account or Mi Account linked to the device, and the recovery function has been activated in advance. The ADB method also helps if USB debugging was enabled before the blocking. In other cases, you will most likely have to do a hard reset.

What is FRP and why does it ask for a password after a reset?

FRP (Factory Reset Protection) is an anti-theft system built into Android. It requires entering data from the Google account that was last synced with the phone after performing a_hard reset_. This prevents the use of a stolen device after a factory reset.

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

No, to remotely unlock or reset via Google, Samsung or Xiaomi services, the device must be turned on and connected to the Internet (via Wi-Fi or mobile network). If the phone is turned off, the command will be executed only after it is turned on again and goes online.

How to remove the lock if you have forgotten both your password and your account?

This is the most difficult situation. You will need to flash the device via a computer using the manufacturer's official software (Odin for Samsung, Mi Flash for Xiaomi, etc.). In some cases, you may need to contact a service center with documents confirming ownership of the device.