After several incorrect attempts to enter a PIN code or pattern, the screen of your Android smartphone will lock, requiring confirmation through your Google account or waiting for the timer to expire, instantly restricting access to calls, messages and important files.

Before you begin Before radical measures, it is necessary to conduct a thorough diagnosis of the problem. Perhaps it’s not that you forgot the code, but a simple sensor sticking, a dirty screen, or a software glitch that temporarily distorted the data input. In this article, we will look at a range of solutions: from secure remote unlocking methods to complex procedures through the engineering menu and computer utilities. Remember that modern versions of Android (starting from 6.0 and higher) use data encryption tied to the lock password, so some old reset methods can lead to complete loss of information.

The effectiveness of either another method directly depends on your smartphone model, operating system version and pre-installed security settings. If you have previously linked the device to an account Samsung Account or enabled USB debugging, the chances of successfully restoring access without data loss increase many times over. We will analyze each scenario in detail so that you can choose the most appropriate action algorithm for your specific case.

Using remote control services from manufacturers

The most civilized and safest way to restore access to a blocked gadget is to use branded cloud services. Large electronics manufacturers, such as Samsung, Xiaomi i Huawei, integrate special search and device management functions into their shells. These tools allow you not only to track the location of a lost phone, but also to remotely change or completely remove the screen lock.

There is a service for owners of equipment from the Korean giant. Find My Mobile. If you have logged into your account on your smartphone Samsung and activated the remote control function, you can access the official website of the service from any other device. You will need to log in to the interface using the same credentials as on the locked phone. After successful login, the system will display a map with the location of the device and a control panel.

In the control menu, you need to find the “Unlock” item. The system will require you to re-enter your account password Samsung to confirm the identity of the owner. Once confirmed, the command will be sent to the device and all types of screen lock - pattern, PIN, password or fingerprint - will be removed. It is important to note that this method only works if there is an active Internet connection on the locked smartphone.

⚠️ Attention: The remote unlock feature may not be available if an additional level of protection was set in the phone's security settings, for example, “Secure Folder” with a separate password, or if the device was rebooted less than 24 hours ago without entering the main code.

Other brands also have similar mechanisms, although their functionality may differ. For example, the service also allows you to reset the lock password, but this option often depends on the firmware region and version. In some cases, manufacturers deliberately limit the ability to remotely remove a password for the sake of user data security, so that attackers cannot access the phone in case of theft. Mi Cloud from Xiaomi also allows you to reset the lock password, but this option often depends on the firmware region and version MIUI. In some cases, manufacturers deliberately limit the ability to remotely remove a password for the sake of user data security, so that attackers cannot gain access to the phone if it is stolen.

📊 Which unlocking method have you tried before?
Samsung Find My Mobile service
Reset via Recovery
apps on PC
Contacting the service center
Nothing helped

Reset via Google account and the “Forgot the key” function

In older versions of the operating system Android (up to version 5.0 Lollipop inclusive) existed an elegant and simple access recovery mechanism. After five unsuccessful attempts to enter a pattern key or PIN code, the “Forgot your key?” button appeared on the lock screen. or “Forgot your password?” Clicking on this button prompted you to enter the login and password for the account Googlethat was previously synchronized with the device.

This method made it possible to instantly remove the lock and set a new access code without losing any data. However, in modern versions Android this function has been eliminated for security reasons. The developers considered that the presence of such a loophole makes devices vulnerable to attackers who can simply guess a simple password or exploit system vulnerabilities. Now the system requires identity verification in other ways.

However, in some custom firmware or on devices with specific corporate security settings, this mechanism can still function. If, after repeated mistakes, you see the coveted button, you are lucky. Enter your account information Gmail and follow the on-screen instructions. Make sure that the device is connected to a Wi-Fi network or mobile data, otherwise the credentials will not be verified.

💡

If the “Forgot Key” button does not appear even after 10-15 attempts, do not waste time waiting - in your version of Android this feature is disabled at the system level. Proceed to other methods.

If the standard method does not work, you can try calling the credentials entry screen through the emergency call menu. This method is a kind of “folk hack” and is unstable, but on some models it is still relevant. The action algorithm is as follows: Samsung And LG it's still relevant. The algorithm of actions is as follows:

  • 📞 On the lock screen, press the “Emergency call” button.
  • 🔢 Enter a special combination of characters, for example, ten stars **** or copy the line from the clipboard, if possible.
  • 📋 Try pasting the copied text into the password entry field via the context menu (long press).
  • 🔄 Repeat the procedure several times to cause a crash in the lock interface and redirect you to the Google account entry screen.

It is worth understanding that this method is experimental. In the latest security updates Android the ability to paste text from the clipboard on the lock screen was blocked, which made this trick inoperative for most modern smartphones from 2026-2026.

Smart Lock function and bypassing the lock

Function Smart Lock was designed to make using a smartphone more convenient by eliminating the need for the user to constantly enter a password in a secure environment. If you have configured this feature in advance, it can be your lifesaver if you have forgotten your code. The principle of operation is that the phone automatically remains unlocked when certain conditions are met.

There are several types of triggers for Smart Lock. The most common one is “Safe Places”. If you have added your home or office to the list of trusted geolocations, then when you are within the radius of these points, the screen will not require you to enter a password. Simply press the power button and you will have access to the system. Try going outside or moving to another room where geolocation will work if the phone is not yet completely blocked.

Another useful type is “Trusted devices”. The smartphone can remain unlocked if there is a paired Bluetooth device nearby, such as a smartwatch, fitness bracelet or car multimedia system. Turn on Bluetooth on your locked phone (if possible through the notification shade) and wait for the connection with a trusted gadget. Once the connection is established, the screen lock can be automatically released.

⚠️ Attention: The Smart Lock function only works until the first time you manually lock the screen with the power button. If you've already rebooted your phone or pressed the lock button manually, the system will require you to enter a master password, and you won't be able to bypass it through Smart Lock.

There is also a Face Recognition or Voice Recognition mode that can be activated as part of the Smart Lock system. Try looking into the camera or saying the passphrase “Ok Google” to activate the voice assistant. Through voice commands, it is sometimes possible to make a call or open settings, which will make it possible to indirectly influence the situation, although direct password reset through the assistant is closed in new versions of the OS.

Why did Smart Lock stop working?

In the latest versions of Android, Google has tightened its security policy. Now, even if you have a trusted device, the system may periodically request confirmation with a password, especially after updating applications or changing system settings.

Hardware reset via Recovery Mode

When software methods have been exhausted, the only guaranteed way to return the device to functionality is a complete data reset via recovery mode (Recovery Mode). This method will delete all information from the internal memory of the smartphone, including photos, contacts, messages and installed applications, but will return the phone to its factory state without a password.

To enter recovery mode, you must use a combination of physical buttons. The set of keys depends on the device manufacturer. Usually the phone should be completely turned off. If you cannot turn off a locked phone due to the password requirement, try a forced reboot by holding down the power button for 10-15 seconds, and when the screen goes blank, immediately switch to the Recovery entry combination.

Below is a table with the most common button combinations for entering recovery mode for popular brands:

Manufacturer Button combination Features
Samsung Volume Up + Power (or Home + Volume Up + Power for older models) On new models, you may need to connect a USB cable to the PC
Xiaomi / Redmi / POCO Volume Up + Power Hold until the Mi logo appears
Huawei / Honor Volume Up + Power Sometimes you need to hold both buttons for a long time
Sony Volume Down + Power Notification indicator will light up green
Universal Volume Down + Power Most often it opens Fastboot, from where you can go to Recovery

After successfully entering the Recovery menu, control is carried out with the volume buttons (up/down to move) and the power button (to confirm the choice). You need to find the item Wipe data/factory reset. Confirm the action by selecting Yes or Factory data reset. The formatting process will take a few minutes.

☑️ Preparing to reset via Recovery

Done: 0 / 4

After completing the procedure, select item Reboot system now. The phone will reboot and start up as new. However, an unpleasant surprise may await you here in the form of protection FRP (Factory Reset Protection). The system will require you to enter the username and password for the Google account that was synchronized with the phone before the reset. This is an anti-theft measure, and it is extremely difficult to bypass it without account data.

Using USB debugging and a computer

For advanced users who have previously enabled the USB debugging (USB Debugging) mode in the developer menu, it is possible to remove the lock using a computer and platform Android Debug Bridge (ADB). This method allows you to send commands directly to the system, bypassing the lock screen, but it requires preliminary configuration and the presence of drivers on the PC.

If debugging was activated and the computer was previously authorized by the phone (you clicked “Allow” when connecting the cable), you can delete the file that stores information about the pattern or password. To do this, connect your phone to your PC, open a command line or terminal in the folder with ADB installed and enter the following command:

adb shell rm /data/system/gesture.key

In some cases, depending on the version of Android and the type of lock, the file name may differ. For a PIN code or password, files password.key or locksettings.dbcan be used. After executing the command, you must reboot the device. On the lock screen, you can enter any set of characters and the phone will unlock.

⚠️ Warning: On devices running Android 10 and above that use disk-level data encryption, this method will likely not work because the file system is locked until the correct password is entered at boot. ADB commands simply will not be executed due to lack of access to the data section.

There are also specialized utilities from third-party developers, such as Tenorshare 4uKey for Android, Dr.Fone or Android Multi Tools. These apps offer a graphical interface for executing complex reset scripts. They can be useful if you are not confident in your command line skills. However, most of them are paid, and their effectiveness is not guaranteed on all models, especially on devices with new security patches.

💡

The effectiveness of methods via ADB directly depends on whether the device was previously authorized on this computer. Without confirming USB debugging on the phone screen (which cannot be done when locked), the computer will not gain access to the system.

FRP protection and problems after reset

The feature Factory Reset Protection (FRP) was implemented by Google to prevent the use of stolen devices. If you reset your settings via Recovery, but did not remove your Google account from your phone settings until this point, the system will require authorization using that same account during the first setup. This creates a vicious circle: you reset your password, but you can't log into your phone because you forgot your email password.

FRP bypass is a complex and ever-changing area. Methods that work today may be closed tomorrow with the release of a new security patch. Typically, the bypass process involves exploiting vulnerabilities in the initial setup interface, connecting a keyboard via an OTG cable to open a browser, or using special applications installed through the accessibility menu.

One ​​common scenario involves using TalkBack or the accessibility menu to go to Wi-Fi settings or the browser. From there, the user tries to go to YouTube or Google settings to add a new account or reset an old one. However, with modern security patches, these holes are quickly closed.

  • 🛠 Try connecting a USB keyboard via an OTG adapter and using hot keys to call up settings.
  • 🌐 Look for up-to-date video instructions specifically for your model and version of the security patch (for example, "Samsung S21 FRP bypass Android 13 security patch 2026").
  • 📧 If you remember the login, but forgot the password, use the procedure for restoring access through the Google website from another device.

In the worst case, if you cannot bypass FRP, the only legal solution is to contact the service center with documents confirming ownership of the device (receipt, box with IMEI). Specialists can reflash the device on service equipment by removing the link to the account.

What is FRP Lock?

FRP Lock is an indicator in the engineering menu that shows whether Google protection is activated. If the status is "ON", resetting the password via Recovery will prompt you for an account. The "OFF" status means that the protection is disabled, usually on custom firmware.

Frequently asked questions (FAQ)

Is it possible to unlock the phone without losing data?

This is only possible if you have previously set up remote control through the manufacturer's account (for example, Samsung Find My Mobile) or if the Smart Lock function is activated. In other cases, especially when using a reset via Recovery, the data will be permanently deleted due to disk encryption.

What should I do if the phone asks for a Google account after the reset, but I don’t remember it?

You need to restore access to your Google account via the website google.com/account/recovery from any other device. If recovery is not possible, you will have to look for ways to bypass FRP specific to your model, or contact the service center with a purchase receipt.

Will apps for cracking passwords from a computer help?

Most of these apps are a marketing ploy and only work on very old versions of Android (up to 6.0). On modern devices they either offer the same data reset or don’t work at all. Be careful when downloading dubious software, as it may contain viruses.

Will calling a locked phone work to unlock it?

On very old versions of Android, there was a bug that allowed you to get into the settings through the call menu. This method does not work on modern systems. Answering a call will simply allow you to talk, but will not give you access to the desktop or settings menu.

How to avoid being blocked in the future?

Regularly back up your data to the cloud. Write down your passwords in a safe place (password manager). Set up Smart Lock for trusted places and devices. Make sure that the "Find my device" function from Google and the manufacturer's proprietary services are activated.