The situation when you have forgotten the pattern key, PIN code or password for your smartphone happens more often than it seems. Panic at such moments is a natural reaction, because important contacts, photos and access to banking applications are stored inside the device. However, do not despair: there are several proven ways restore access to access the system, even if the lock screen does not let you in.

The choice of a specific method depends on the version of the operating system Android, the model of your device and pre-installed security settings. Some methods allow you to save your data, others require a complete reset. Before taking active steps, you need to assess the risks and choose the most suitable option for your situation.

In this article we will examine in detail the legal and technical methods of solving the problem. We will look at both built-in tools from Googleand specific button combinations for different manufacturers. It is important to understand that modern security systems are becoming stricter, so there is no universal “magic button.”

Using Google’s “Find My Device” function

The easiest and safest way to unlock your phone is available to those who have previously linked their Google account and enabled geolocation. The service Find My Device allows you not only to track the location of the gadget, but also to remotely change the screen lock. To do this, you will need a computer or other smartphone with Internet access.

Go to the official website of the service and log in under the same account that is used on the blocked phone. The system will try to determine the location of the device. If the connection is established, you will see the control menu, where one of the options will be "Lock". Paradoxically, this function allows you to set a new temporary password that will replace the forgotten key.

⚠️ Attention: This method only works if the phone is turned on, connected to a mobile network or Wi-Fi, and access to location data has been activated in the security settings.

After installing a new one password via the web interface, try entering it on the lock screen of your smartphone. If it works, immediately go to settings and turn off the lock or set a new, memorable code. Please note that on some versions of Android this feature has been removed in favor of complete security.

💡

If the “Lock” function does not prompt you to enter a new password, but only erases data, try first activating the lock mode, and then immediately change the password in the security settings via the web interface.

Unlocking through a Samsung account (for Samsung owners)

Owners of devices from the South Korean giant are in a more advantageous position thanks to the service Samsung Find My Mobile. Unlike Google's standard solution, this tool officially allows you to remove your lock screen without losing any data. This is one of the main advantages of the ecosystem One UI.

To use the method, you must be logged in on your phone Samsung Account and have the “Remote Unlock” option enabled. Go to Samsung Device Management Portal and enter your credentials. In the side menu, select Unlock (Unlock).

The system will ask you to confirm your Samsung account password. After confirmation, all types of screen locks (pattern, PIN, password, fingerprint) will be removed. The smartphone will return to a state with no screen protection, which will allow you to set new security settings.

📊 What type of lock did you forget?
Pattern key
PIN code
Complex password
Fingerprint doesn't work

Resetting settings via Recovery Mode (Hard Reset)

If the remote methods did not work or the phone is not connected to the network, a radical but effective method remains - Hard Reset. This process returns the device to factory settings, completely clearing the internal memory of user data, including a forgotten password.

Entering recovery mode (Recovery Mode) is carried out by a combination of physical buttons when the device is turned off. The set of keys varies depending on the manufacturer. Usually this is a combination of the power button and the volume key.

Once you get to the Recovery menu, control is carried out with the volume buttons (up/down), and the selection is confirmed with the power button. You need to find the item Wipe data/factory reset. Confirm the action by selecting Yes or Factory data reset.

Manufacturer Button combination Login features
Samsung (new) Volume Up + Power Requires connection to PC with cable
Xiaomi / Redmi Volume Up + Power Hold until the logo appears
Huawei / Honor Volume Up + Power Sometimes you need to hold both volume buttons
Pixel / Nexus Volume Down + Power First you will get to Fastboot, then select Recovery
Sony Volume Down + Power The indicator will blink yellow when entering

⚠️ Attention: After resetting the settings, FRP (Factory Reset Protection) protection will work. You will definitely need to enter the login and password for the Google account that was synchronized with the phone before the reset.

☑️ Preparing for Hard Reset

Done: 0 / 4

Bypassing blocking on older versions of Android

On devices running Android 4.4 and below, there was a vulnerability, or rather an interface feature, allowing you to reset the key through your Google account directly from the lock screen. If you still have such a gadget or a budget Chinese smartphone with old firmware, this method may work.

Enter the wrong pattern or password five times in a row. After the fifth attempt, the button "Forgot your pattern key?" or "Forgot your password?"will appear on the screen. Click on it.

The system will prompt you to enter your Google account information (mail and password). After successful authorization, the blocking will be removed and you will be able to set a new protection method in the settings. This method does not require data deletion.

Why did this method disappear?

Starting with Android 5.0 Lollipop, Google's security policies have become more stringent. Direct unlocking through an account from the screen has been removed so that attackers cannot easily access stolen devices knowing only the password from the victim's email.

Using USB and ADB debugging

For advanced users who had USB debugging (USB Debugging) enabled before blocking, it is possible to delete the file with the access key via computer. This method requires installation of ADB drivers and minimal knowledge of the command line.

Connect the locked smartphone to the computer via a USB cable. Open a command prompt (CMD) or terminal on your PC in the platform-tools installation folder. Enter the following command to access the device shell:

adb shell

Next, you need to go to the directory where the system security settings files are stored and delete the specific file responsible for storing the keys. Enter the command:

rm /data/system/gesture.key

If you used a PIN or password instead of a pattern, the file name may be different, for example password.key or locksettings.db. After deleting the file, reboot the device with the command reboot. You can enter any code on the lock screen, and the phone will be unlocked.

⚠️ Attention: On modern versions of Android with an encrypted drive, this method often does not work without first unlocking it at least once after turning on the power, since the /data partition remains encrypted until the password is entered.

💡

The ADB method is effective only if debugging was turned on BEFORE locking and the device does not require entering a password when connecting to a new PC (the trust mode has already been confirmed).

Specialized software for unlocking

There are a number of software solutions from third-party developers that are positioned as tools for removing screen locks. Popular utilities include Tenorshare 4uKey, Dr.Fone, iMyFone LockWiper and others.

Most of these apps work according to a similar algorithm: they connect to the phone, determine the model and either try to guess the code or initiate the reset process automatically. Some of them are paid and require the purchase of a license to complete the operation.

The effectiveness of such software varies. For older Samsung models, they can actually remove the password without losing data by exploiting bootloader vulnerabilities. For other brands, most likely, a regular Factory Reset will be performed, which you can do for free through the buttons.

  • 📱 Tenorshare 4uKey for Android: Supports removing screen lock, fingerprints and PIN codes on most devices.
  • 🔓 Dr.Fone – Screen Unlock: Well-known combine with support for thousands of models, but often requires payment for the final stage.
  • 🛠️ iMyFone LockWiper: Focuses on bypassing Google FRP lock after reset, as well as removing screen passwords.

Be careful when using third-party software. Download apps only from official developer sites to avoid viruses. Remember that miracle apps that crack the encryption of new flagships without losing data do not exist in nature due to hardware protection.

Frequently asked questions (FAQ)

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

Without data loss, this is only possible in three cases: 1) You are using the Find My Device service from Google or Samsung and the function worked correctly. 2) You have an old version of Android (4.4 and below) and you remember the data from your Google account. 3) You use specialized software for certain Samsung models. In other cases, especially during a Hard Reset, the data will be deleted.

What is FRP blocking 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. It’s difficult to get around this: there are methods through TalkBack, special combinations in the browser or firmware via a PC, but they are constantly closed by Google security updates.

Will calling a locked phone help?

On very old versions of Android (before 2.3) there was a trick: during an incoming call, you could go to the call menu and from there go to settings. On modern smartphones, this method does not work, since access to the system from the call menu is completely blocked.

Will data be deleted from the SD memory card during a reset?

Usually, during a standard reset through the Recovery menu, the data on the external memory card is saved. However, if you select the Format Internal Storage option or if the card was encrypted as part of the internal storage (Adoptable Storage), the data may become inaccessible. It is better to remove the card before the procedure.

What should I do if the phone requires an account, which I also forgot?

This is the most difficult situation. You will have to restore access to the Google account itself through the recovery procedure on the Google website from another device. Without confirming account ownership, it is almost impossible to legally unlock a device due to FRP protection.