Losing a password or PIN code for a smartphone is a stressful situation that users of mobile devices regularly face. Android. A forgotten combination of numbers instantly turns the gadget into a “brick”, preventing access to contacts, photos and important applications. However, modern versions of the operating system offer several legal ways to restore access without contacting a service center.

In this article we will look in detail at how to remove the PIN code on Android from the lock screen using standard Google tools and built-in security features. You will learn about the nuances of resetting on different firmware versions, as well as what actions can lead to complete data loss. It is important to understand that methods of bypassing protection are constantly being improved by developers for security purposes, so old methods may no longer work.

Before taking active steps, it is necessary to assess the criticality of the information stored on the device. Some methods require complete data deletion, while others allow you to keep your files intact. The choice of a specific method depends on the model of your smartphone, version Android and the presence of a linked account.

Using the “Forgot pattern key” function via Google

The most humane and safe way to unlock the device is available on Android versions up to 5.0 inclusive, as well as on some custom firmware with activated access to Internet. If you enter the wrong PIN five times in a row, a “Forgot Pattern” or “Forgot PIN” button will usually appear on the lock screen. Clicking on this option will redirect you to the authorization form.

In the window that opens, you will need to enter the login and password for your Google account, which was previously synchronized with this phone. After successfully verifying your credentials, the system will prompt you to set a new unlock combination or completely disable screen protection. This method does not require deleting user data and takes only a couple of minutes.

However, it is worth considering that on modern versions Android 10, 11, 12 and later this function is often missing for security reasons. Google has tightened its security policies to prevent attackers from gaining access to a device simply by knowing the owner's email password. If the button does not appear after many unsuccessful attempts, you will have to look for alternative solutions.

⚠️ Attention: For this method to work, the smartphone must be connected to a Wi-Fi network or mobile data. If the device is locked and does not have access to the network, the method will not work.

Attempts to recover the password for a Google account from another device may take time, during which the phone will be locked.

Removing the lock through the Find Device service

If the standard method through the lock screen does not work, you can use remote control through the official Google service. The Find My Device function allows you not only to track the location of a lost phone, but also to perform a remote reset of security settings. To do this, you will need a computer or other smartphone with Internet access.

Go to the official service page and log in using the same Google account as on the locked phone. The system will show a list of your devices on the map. Select the desired smartphone from the list. In the control menu you will see three main options: “Ring”, “Block” and “Wipe device”.

Selecting an option "Clean device" initiates the process of completely resetting the phone to factory settings. This action will delete the PIN code, pattern, fingerprints and, unfortunately, all user data (photos, contacts, applications). Once the process is complete, the phone will reboot and look like new, requiring initial setup.

  • 🔹 Make sure that the Internet (mobile data or Wi-Fi) is turned on on the locked smartphone.
  • 🔹 Check that the "Find my device" function was activated in the security settings before locks.
  • 🔹 Remember that after resetting, data from the internal memory will be irretrievably lost without a backup.
📊 Have you encountered a screen lock?
Yes, I forgot the password
No, I use a fingerprint
Blocked the phone remotely
Never set a password

This method is the most universal for modern versions Androidas it does not depend on the firmware version. The only condition is that you have previously linked your account and have a network connection. If the phone is turned off or in airplane mode, the reset command will be executed only after it goes online for the first time.

Resetting settings through the Recovery Mode menu

When remote methods are not available, recovery mode comes to the rescue Recovery Mode. This is a special service menu, hardwired into the device’s memory, which allows you to perform system operations regardless of the state of the operating system. This mode is entered by a combination of physical buttons when the phone is turned off or rebooted.

The login process may vary depending on the manufacturer. Devices Samsung often require connecting to a PC via a USB cable and holding down the volume and power buttons. On smartphones Xiaomi, Huawei and other brands, it is usually enough to hold down the volume up button and the power button at the same time. Hold them until a logo or menu with text appears.

In the Recovery menu, navigation 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. Select it and confirm the action by selecting Yes or Factory data reset. The system will begin the process of formatting the user partition.

Manufacturer Button combination Input features
Samsung Volume Up + Power (or Bixby) Often you need to connect a USB cable to PC
Xiaomi / Redmi Volume Up + Power The menu appears immediately after vibration
Huawei / Honor Volume Up + Power Hold until the logo appears
Pixel / Nexus Volume Down + Power First go to Fastboot, then select Recovery

After the reset is complete, select the option Reboot system now. The phone will restart and the screen lock will be removed. However, you should be prepared for the fact that during the first setup, the system may request data from the previous Google account (FRP protection) to make sure that the device has not been stolen.

☑️ Preparing to reset via Recovery

Done: 0 / 4
⚠️ Attention: On some new models with MediaTek processors or recent versions of Android, entering Recovery may be blocked if the phone has not been previously unlocked at least once after purchase.

Unlocking via USB and ADB debugging

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

Connect the smartphone to the computer via a USB cable. Open a command prompt (CMD) or terminal on the PC where Android Debug Bridge (ADB)is installed. Enter the command to check the connection: adb devices. If the device is displayed in the list with status device, then the connection is established.

To delete the PIN code, you need to erase the system file that stores the password hash. Enter the following command into the terminal:

adb shell rm /data/system/gesture.key

Or, if you used a digital PIN code:

adb shell rm /data/system/password.key

After executing the command, reboot the device. When turned on, you can enter any combination of numbers or swipe your finger anywhere on the screen, and the phone will unlock. Immediately after this, it is recommended to go to the security settings and disable the old PIN code by setting a new one.

What to do if ADB does not see the device?

If the adb devices command does not show the phone, it means USB debugging was not enabled before the blocking, or the computer is not authorized. In this case, the method will not work, and you will have to use a reset via Recovery. Also try installing ADB drivers manually through Windows Device Manager.

The method using adb is the least disruptive since it does not affect user files. However, its applicability is extremely limited by the pre-configuration conditions of the phone. For most ordinary users, this option remains theoretical.

Third-party apps for unlocking

There are many utilities on the market that position themselves as universal tools for unlocking Android. apps like Dr.Fone, Tenorshare 4uKey or iMyFone LockWiper offer an automated process for removing protection. They work on the principle of automatically entering recovery mode and executing reset scripts.

The use of such software is usually paid and requires installation on a computer. The process looks simple: you connect your phone, select the device model in the app and click the “Unlock” button. The app itself downloads the necessary data package and carries out the procedure. This is convenient for those who are afraid of making mistakes in manual manipulation of buttons.

However, the effectiveness of such apps does not always reach 100%. They often cannot bypass the protection FRP (Factory Reset Protection) on new devices. In addition, using third-party software always carries the risk of data leakage or installation of malicious code if the app is downloaded from an unreliable source.

  • 🔹 Most apps delete all data from the device during the unlocking process.
  • 🔹 Free versions often have limitations and only allow you to scan the device.
  • 🔹 Support Old phone models (before 2016) are usually better in such utilities than new ones.
💡

Before purchasing a paid unlocking app, be sure to check for a trial version or demo mode to make sure that the software sees your specific device.

It is worth noting that many functions that paid utilities offer can be performed manually for free through the Recovery mode. In this case, the fee is charged mainly for the convenience of the interface and automation of the process for inexperienced users.

FRP protection and possible problems after a reset

After performing a Hard Reset using any of the methods described above, you may encounter the Google activation screen. This is a protection system FRP (Factory Reset Protection)that requires entering the login and password from the account that was synchronized with the phone before the reset.

The purpose of this protection is to make the stolen phone useless for an attacker, even if he resets the settings. If you don't remember your account details, your phone will remain locked during the initial setup. You can bypass FRP using legal methods only by restoring access to mail through the Google recovery form.

There are various instructions on the Internet for bypassing FRP through vulnerabilities in the browser or accessibility menu, but they are quickly closed by security updates. Attempts to use such methods on modern versions Android 13-14 often lead to additional blocking or unstable operation of the system.

⚠️ Attention: Buying a used phone without checking that the previous owner has logged out of the account is a huge risk. You may receive a device that cannot be activated without the participation of the seller.

If the phone was officially purchased and your account is yours, there will be no problems. Just enter your details. If the device is corporate or previously belonged to another person, you will need to contact the administrator or the previous owner to remove the device from the list of trusted ones in the Google console.

💡

The FRP system is a reliable barrier against theft, but it creates difficulties if the password is forgotten. Always write down your Google account information in a safe place.

Frequently asked questions (FAQ)

Is it possible to remove the PIN code without losing photos and contacts?

Without losing data, this is only possible in two cases: if the “Forgot the key” function works through Google (on older versions of Android) or if USB debugging was enabled and you use the ADB command to delete the key file. In all other cases, including resetting via Recovery and the Find My Device service, the data will be deleted.

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

You need to restore access to your Google account through any other browser on your computer or phone using the Google password recovery form. Without entering the correct data from the last synchronized account, you will not be able to legally unlock the device.

Will removing the SIM card help to remove the lock?

No, removing the SIM card does not affect the screen lock in any way. The PIN code is stored in the memory of the device itself and is tied to the system, and not to the SIM card. This is a common misconception that will not lead to the desired result.

Is it possible to unlock your phone using a fingerprint if you forgot your PIN code?

No, the Android security system is designed in such a way that after rebooting the device, you always need to enter the main locking method (PIN code, pattern or password). Biometric data (fingerprint, face) only works after successfully entering the main code.

Will a reset via Recovery work on a phone with encrypted storage?

Yes, a reset via Recovery will delete the encryption keys along with the data. However, this means that all information will become unreadable and will be deleted. You will gain access to the system, but it will be impossible to restore the files even with special apps.