The Android smartphone screen requires entering a PIN code, pattern or password, but the usual combination does not work, blocking access to contacts, photos and applications. This problem often occurs after a system update, a long break in using the device, or due to a sensor failure when the brain cannot reproduce the correct data, turning the phone into an inaccessible repository of personal information.

Fortunately, the ecosystem Android provides for several scenarios for restoring access, although they vary in degree of complexity and consequences for the information on the device. Modern versions of the operating system have become much stricter when it comes to security issues, which makes life difficult not only for attackers, but also for forgetful owners. However, even in the most advanced cases, there is a possibility of regaining control of the gadget using built-in tools or specialized software.

In this article we will analyze in detail all possible action algorithms: from soft reset methods through a Google account to radical measures with complete data deletion. We will look at the nuances of working with different manufacturers, such as Samsung, Xiaomi and Huawei, since each of them has its own unique protection features. The main thing is to remain calm and strictly follow the instructions so as not to aggravate the situation with incorrect actions.

Using the “Forgot pattern key” function via Google Account

This is the simplest and least traumatic method that works on devices with Android versions up to approximately 5.0-5.1, as well as on some newer models with certain settings. If, after five unsuccessful attempts to enter the code, the message Forgot your pattern? or Forgot your PIN?appears on the screen, you are in luck. Click on this link and the system will prompt you to log in.

You will need to enter the email address and password from your Google Accountthat was previously synchronized with this phone. It is important that the device at this moment has an active connection to the Internet, be it a mobile network or Wi-Fi. If the network is disabled, try pulling the notification curtain from top to bottom - sometimes you can do this even from a locked screen to enable data transfer.

After successful authorization, the system will allow you to set a new screen lock or disable it completely. This method does not require deleting any files and keeps all your settings intact. However, it is worth remembering that Google is gradually abandoning this feature on the latest versions of the OS in favor of stricter security protocols, so you can no longer count on it on Android 14 or 15.

⚠️ Attention: If you changed the password for your Google account recently (less than 24 hours ago), the phone may not accept the new unlock data for security reasons. In this case, you need to use the old password or wait a day.

Why did this function disappear?

Starting with Android 6.0, Google has strengthened its security policy. The device is now considered a personal safe, and accessing it through a cloud account without prior configuration is considered a vulnerability. Therefore, on modern smartphones, the “Forgot the key” button is most often missing.

Remote unlocking through the “Find Device” service

If you have the geolocation and remote control function enabled, you can use the official service from Google. This method requires another device (computer or second phone) with Internet access. You need to go to the website android.com/find and log in to the same Google account as on the locked phone.

The service will determine the location of your gadget and offer three options: play sound, block the device or clear data. Here lies an important nuance: the “Clear data” function (Factory Reset) will delete all content, but will also remove the lock screen. This is a last resort and should only be used if the data is not critical or you have a recent backup in the cloud.

Some manufacturers, for example Samsung, offer more advanced alternatives through their own services, such as SmartThings Find. In your Samsung personal account, you can delete a PIN code, pattern or fingerprint remotely, and without losing user data. This is a unique feature of the Korean giant's ecosystem, which has saved millions of users from formatting their memory.

  • 🔹 Make sure that the Internet (Wi-Fi or mobile data) is turned on on the locked phone.
  • 🔹 Check that the “Find my device” function was activated in the security settings before the loss access.
  • 🔹 When using third-party services from manufacturers, make sure that you remember the password from their account, and not just from Google.
📊 What unlocking method have you tried before?
Via Google account
Through the manufacturer's service
Reset with buttons
Nothing helped

Resetting settings via Recovery Mode (Hard Reset)

When soft methods have been exhausted, the only guaranteed option remains - a complete reset of the device to factory settings through the recovery menu (Recovery Mode). This process erases all information in the internal storage: photos, contacts, applications and messages. The data on the SD memory card usually remains untouched unless you choose the option to format the external storage.

To enter recovery mode, you must turn off the phone and use a specific combination of physical buttons. The set of buttons depends on the model and manufacturer. Typically this is a combination of the volume key (Up or Down) and the power button. On some models Xiaomi or Huawei you may need to connect the USB cable to the computer when you turn it on.

After the logo or menu appears with the Android lying on its back, navigation is carried out with the volume buttons, and selection is done with the power button. You need to find the item Wipe data/factory reset and confirm the action. The system will warn you that the process is irreversible. After completion, select Reboot system now.

⚠️ Attention: After resetting the settings, FRP (Factory Reset Protection) protection will work. The phone will require you to enter the login and password for the Google account that was synchronized with the device before the reset. If you do not remember this data, the phone will turn into a “brick.”

☑️ Preparing for Hard Reset

Done: 0 / 4
Manufacturer Button combination (on off device) Input features
Samsung (with Home button) Volume Up + Home + Power Hold until logo appears
Samsung (without Home button) Volume Up + Power (or Bixby + Power) You may need to connect to a PC via USB
Xiaomi / Redmi / Poco Volume Up + Power You need to connect the charging cable
Huawei / Honor Volume Up + Power Hold for about 10-15 seconds
Sony / Motorola Volume Down + Power The bootloader menu will appear first, then select Recovery

Unlocking via USB and ADB debugging

This method is only suitable for advanced users, which was previously included USB debugging in the “For Developers” menu. If this option was active and you previously authorized your computer to work with this phone, you can delete the file with the lock keys via the command line.

You will need to install the ADB drivers on your computer and connect the phone with a cable. At the command line (Terminal or CMD), special commands are entered to access system files. The essence of the method is to delete files gesture.key (for a pattern) or password.key (for a PIN code) that are stored in the system partition.

adb shell rm /data/system/gesture.key

adb shell rm /data/system/password.key

After executing the command, you must reboot the device. You can enter any combination on the lock screen and the phone will unlock. However, on modern versions of Android with disk encryption, this method often does not work, since the system partition /data is locked until the correct password is entered. However, on older devices this is a working option.

💡

If the command fails with the error “Read-only file system”, try first executing the command `adb shell mount -o remount,rw /data` to get write permissions.

Features of unlocking Samsung smartphones

Device owners from Samsung are in the most advantageous position thanks to the service Find My Mobile. Unlike the standard Google tool, this service allows you to remove screen lockrather than erase data. To do this, you must have a Samsung Account configured on your phone and the remote unlock option enabled.

Go to the service website from any browser, enter your credentials. From the menu on the right, select the “Unlock” option. The system will require you to re-enter your Samsung account password to confirm your identity. After this, all types of locks (PIN, pattern, password, biometrics) will be deleted from the device instantly.

It is also worth mentioning the application Good Lock and module LockScreen, which allows you to create complex blocking rules, but if you have forgotten the main password, only the web interface will save you. This is the only case in the industry where a manufacturer officially provides a tool to bypass protection without losing information.

⚠️ Attention: The interface and capabilities of the Find My Mobile service may vary depending on the region and device model. In some countries, remote unlock functions may be limited by local laws.

Professional tools and service centers

If none of the software methods help, and the data is critical, you should contact a professional. There are hardware programmers and “boxes” (for example, Octoplus, Hydra, UnlockTool), which allow you to interact with the phone’s memory at a low level. They can temporarily disable FRP protection or read password hashes.

However, using such tools requires high qualifications. Improper intervention can lead to complete failure of the motherboard. In addition, for many new models with processors, workarounds are constantly closed by manufacturers through security updates. Service centers often offer a flashing service. This is an analogue of a Hard Reset, but performed by specialists with a guarantee that the phone will not become bricked. If you have a rare model or a specific problem, it is better to entrust the device to specialists than to risk independent experiments with recovery. Snapdragon 8 Gen 2/3 or MediaTek Dimensity workarounds are constantly closed by manufacturers through security updates.

Service centers often offer a flashing service. This is an analogue of a Hard Reset, but performed by specialists with a guarantee that the phone will not become bricked. If you have a rare model or a specific problem, it is better to entrust the device to specialists than to risk independent experiments with recovery.

💡

The newer the phone model and Android version, the less likely it is to unlock it without losing data. Security in 2026 is a priority over ease of recovery.

FAQ: Frequently Asked Questions

Is it possible to unlock a phone without losing photos and contacts?

Without losing data, this is only possible in two cases: if the “Forgot the key” function worked through Google (on older Androids) or if you use the Samsung Find service My Mobile. In all other cases, including Hard Reset, the data will be deleted.

What is FRP Lock and how to bypass it?

FRP (Factory Reset Protection) is protection against theft. After resetting the settings, the phone requires you to enter the Google account that was previously on it. The only way to get around this is by remembering your password. Unofficial methods (Bypass) exist, but they are complex and depend on the specific version of the security patch.

Will calling a phone help to remove the lock?

On very old versions of Android (2.x - 4.x) there was a bug when during an incoming call you could go to the menu and turn off the lock. This method does not work on modern smartphones, since access to settings during a call is closed.

Will a reset delete files on the SD memory card?

Usually, a standard reset via Recovery Mode formats only the internal memory. Files on the microSD card remain intact. However, if the card was configured as “internal memory” (Adoptable Storage), it will also be encrypted and inaccessible after the reset.