The situation when you have forgotten the digital access code to your device happens quite often. This can happen after a long break in using the gadget or after a system update, when old input habits change. PIN code is the first line of protection for your personal data, but sometimes it becomes an insurmountable barrier for the owner himself.
There are several legal ways to unlock a smartphone, but the choice of method directly depends on the operating version system Android and the presence of preliminary settings. Some methods allow you to save your data, while others require you to completely reset your device to factory settings. In this material we will analyze all the current options for action.
The main rule is not to panic and not to try an endless number of combinations at random. After a certain number of unsuccessful attempts, the system may temporarily block input or require confirmation through your account Google. Before taking drastic measures, try to remember the code in a calm environment.
Using the “Forgot Password” function through a Google account
On devices with version Android up to 5.0 (Lollipop), there was a convenient built-in access recovery function. If you entered an incorrect PIN or pattern five times in a row, a Forgot your password?button appeared on the lock screen. Clicking on it redirected the user to the authorization page.
To restore access, you will need to enter the username and password for your Google account, which was previously synchronized with this device. After successful authentication, the system will offer to set a new screen lock method or disable it completely. This is the most gentle method, since it does not require deleting user data.
Unfortunately, in modern versions Android (starting from 6.0 and higher) this function has been removed for security reasons. Attackers could use it to bypass security by simply guessing the email password. Therefore, if you have a modern smartphone, this method most likely will not work, and you will have to look for alternatives.
⚠️ Attention: On devices with a new firmware version, the recovery button may be missing even after multiple input errors. Don't waste time endlessly trying if the interface doesn't offer this option.
Remote reset via the Find service device"
If your smartphone is connected to the Internet (via Wi-Fi or a mobile network) and geolocation is enabled, you can use the official service from Google. This method allows you not only to track the location of the gadget, but also to execute a command to completely clear the data, which will automatically remove the screen lock.
To do this, go to the site from a computer or another phone android.com/find and log in to the same account Googlethat is used on the locked device. Select the desired model from the list of devices. In the control menu you will see three options: “Ring”, “Block” and “Clean device”.
Choosing the cleaning option initiates the process Factory Reset. All photos, contacts and apps will be permanently deleted, but the phone will return to its out-of-the-box state where you won't be prompted for a PIN. After setting up again, you can restore your data from a backup, if one existed.
Before performing a remote reset, make sure that the phone is at least 30% charged so that it does not turn off during the data erase process, which can lead to boot errors.
Resetting settings via Recovery Mode (Hard Reset)
This is universal a method that works on most smartphones regardless of brand, be it Samsung, Xiaomi or Pixel. It requires physical access to the control buttons, since you need to enter the recovery menu before loading the operating system.
The login procedure may vary depending on the manufacturer. Most often, you need to turn off the phone and then hold down the key combination Volume Up and Power. On some models Samsung you may need to connect the USB cable to the computer while pressing the buttons. Hold the keys until the logo or recovery menu appears.
In the menu Recovery Mode control is carried out with the volume buttons (up/down to move) and the power button (to confirm the selection). You need to find the item Wipe data/factory reset. Confirm the action by selecting Yes or Confirm. After the process is completed, select the option Reboot system now.
☑️ Algorithm of actions in Recovery
It is worth considering that after such a reset, protection will work on devices with Android 5.1 and higher. FRP (Factory Reset Protection). The phone will require you to enter the password for the Google account that was synchronized earlier. This is done so that a stolen phone cannot simply be dumped and resold.
| Smartphone brand | Button combination | Input features |
|---|---|---|
| Samsung | Volume Up + Power (or Home) | A USB cable is required on new models |
| Xiaomi / Redmi | Volume Up + Power | The menu can be in Chinese/English |
| Google Pixel | Volume Down + Power | First you will get to Bootloader, then select Recovery |
| Huawei / Honor | Volume Up + Power | Hold until the logo appears |
Unlock via USB debugging (ADB)
This method is only suitable for advanced users who previously had USB debugging enabled in the "For" menu developers." If this function was active and the computer was already authorized to work with this device, you can delete the file with access keys via the command line.
Connect the smartphone to the PC via a cable and open the command line (CMD) or a terminal with administrator rights. Enter the command to enter the device shell: adb shell. If the connection is successful, you will see a prompt to enter commands.
Next, you need to delete the file responsible for storing the pattern key or PIN code. Enter the following command:
rm /data/system/gesture.key
Or, in some cases:
rm /data/system/password.key
After running the command, reboot the device. The screen lock should disappear and you can set a new code. However, if USB debugging was not enabled before the lock, this method will not work because the computer will not have access to the file system.
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 drivers. It is also possible that debug mode was disabled by security after a reboot or session timed out. In this case, the method is not applicable.
Third-party apps for unlocking
There are many utilities on the market positioned as tools for removing screen locks without losing data. Popular solutions include Dr.Fone, Tenorshare 4uKey or iMyFone LockWiper. They offer an automated process that is understandable even to beginners.
The principle of operation of such apps often comes down to the same reset via the Download or Recovery mode, but in a more convenient interface. However, it is important to understand that free password removal without losing data on modern Android with encryption is almost impossible. Most apps will delete the data along with the password.
Using third-party software carries certain risks. You trust access to your device to unverified software, which can lead to data leakage or installation of malicious modules. In addition, many of these apps are paid, and payment does not guarantee results on specific phone models.
⚠️ Attention: Beware of apps that promise “magic” password removal while saving all photos and correspondence on encrypted Android 10-14 devices. This is technically impossible without decryption keys, which are stored in protected memory.
Prevention and creation of backup copies
In order not to encounter the problem of losing access in the future, it is recommended to set up alternative unlocking methods. Modern Android supports biometrics: fingerprint or facial recognition. These methods are more convenient and reduce the risk that you will forget the digital code.
Regularly creating backups in the cloud Google Drive or on your computer will save your data in case a hard reset is necessary. Set up automatic synchronization of contacts, calendar and photos. Then even a complete reset will not be a disaster, since you can quickly restore information.
It's also a good idea to write down your PIN or pattern in a safe place, such as a password manager or a paper notepad that you keep at home. Do not use too simple combinations like 1234 or 0000, but also do not choose complex codes that cannot be remembered.
Regular synchronization of data with the cloud is the only way to guarantee the safety of information when forced to reset your smartphone.
Often asked questions (FAQ)
Is it possible to unlock a phone without deleting data?
On modern versions of Android (6.0 and above), this is almost impossible without knowing the old password. The only chance is if the “Forgot Password” function via Google works (on older versions) or if you had USB debugging enabled and you know how to work with ADB. In other cases, a reset will be required.
What is FRP-lock and how to bypass it?
FRP (Factory Reset Protection) is reset protection. After a hard reset, the phone requires you to enter the Google account that was previously on it. The only way to officially bypass this is by entering the correct password. Unofficial methods (bypass) are complex, depend on the specific model and security version, and are often closed by updates.
Will the reset work if the phone is turned off?
Yes, the method through Recovery Mode (Hard Reset) works on the device being turned off. You need to hold down the combination buttons to enter the recovery menu without turning on the phone in the usual way. However, after the reset, the phone will turn on and require configuration.
Will resetting delete files on the SD memory card?
Usually the standard procedure Wipe data/factory reset affects only the internal memory of the device. Files on the external memory card remain intact. However, to be completely sure, before resetting, it is better to remove the memory card, if the design of the phone allows it.
Will calling the phone help to remove the lock?
This myth worked on very old versions of Android (2.x - 3.x). On modern systems, calling does not give access to settings or the desktop. You can answer the call, but you cannot switch to other applications or remove the screen lock through a call.