Forgetting the password, pattern or PIN code from the lock screen, the owner of an Android smartphone instantly loses access to all contacts, photos and installed applications, turning the device into a useless “brick.”

Fortunately, the operating architecture The system Android provides several mechanisms for restoring access, even if standard unlocking methods do not work. There are methods using a computer and special utilities, as well as completely autonomous methods that work through hardware buttons. It is important to understand that most of these procedures involve the complete removal of user data, so they should be resorted to only as a last resort.

In this article we will analyze in detail all the current methods of resetting the lock for devices from various manufacturers: from Samsung and Xiaomi to Google Pixel. We will look at working with the mode Recovery Mode, using Google cloud services, as well as specific engineering menus. Before you begin, carefully study the warnings about data loss, since restoring files after a reset without a preliminary copy is almost impossible.

Preparing for the reset procedure and assessing the risks

Before you begin active steps to unlock your device, you must clearly understand the consequences. Resetting to factory settings (Factory Reset) erases all information in the phone’s internal storage. This applies to photos, videos, installed applications, notes and system settings. The only thing that is usually saved is the data on the memory card microSDif it is installed separately, and information synchronized with the cloud account.

If you have the opportunity to connect the phone to the computer before it is completely locked (for example, when downloading), try copying important files. However, in most cases, the system requires access confirmation on the screen, which makes this method ineffective if the password is forgotten. It is also worth checking whether the “Find My Device” function (Find My Device) is activated in your Google account, as this may be the easiest solution to the problem.

⚠️ Attention: After resetting the settings on modern devices with Android version 5.1 and higher, protection is triggered. FRP (Factory Reset Protection). This means that when you first boot, 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, it will be extremely difficult to unlock the phone even after formatting.

Make sure that the battery level is at least 50-60%. The process of overwriting system partitions and clearing memory requires stable power. Sudden shutdown of the device during formatting can damage the bootloader and turn the smartphone into an unusable device that requires flashing through a service center.

☑️ Ready to reset

Done: 0 / 4

Reset via Recovery mode (hardware method)

The most universal way to bypass the lock screen is to use the recovery menu (Recovery Mode). This mode is built into the firmware of every Android smartphone and allows you to perform system operations regardless of the state of the main interface. This menu is entered using a combination of physical buttons, which differs depending on the device manufacturer.

For most modern smartphones without a physical Home button (for example, Xiaomi, Huawei, Honor), the algorithm is as follows: turn off the device completely. Then hold down the volume up button (Volume Up) and the power button (Power) at the same time. Hold them down until the brand logo appears, then release the power button, but continue to hold the volume down until you enter the menu. On devices Samsung with or without the Bixby button, the combinations may vary, sometimes you need to connect the USB cable to the computer in the off state before pressing the buttons.

Once you get to the Recovery menu, control is carried out by the volume buttons (up/down to move) and the power button (to confirm the selection). In some new models, especially pure Android, the menu may support touch control. You need to find an item containing the words Wipe data/factory reset or Reset to factory settings. Selecting this item initiates the cleaning process.

⚠️ Attention: The Recovery menu interface may look intimidating to an untrained user. Often there are a lot of technical terms in English. Be extremely careful and do not select items like Wipe cache partition (this is safe, but useless for resetting your password) or Format data (may require additional confirmation with a code) if you are not sure of your actions.

The system will ask for confirmation of the action, usually asking you to select Yes or Factory data reset. After confirmation, the formatting process will begin, which will take from a few seconds to a couple of minutes. Upon completion, a message Data wipe completewill appear. Next, you need to select the item Reboot system now to reboot the phone in normal mode.

What to do if Recovery does not open?

If the button combination does not work, the “Fast Boot” function may be enabled or the buttons are faulty. Try connecting the switched-off phone with a USB cable to the switched-on computer, and then hold down the buttons. On some Samsung models, you need to hold down the volume buttons and connect the cable at the same time.

Remote reset via Google's Find My Device service

If a locked smartphone is connected to the Internet (via Wi-Fi or a mobile network) and login to a Google account is activated on it, the most civilized way to unlock is to use a web service Find My Device. This method allows you not only to track the location of the device, but also to remotely initiate a reset.

To do this, you will need any other gadget with Internet access: a computer, tablet or a friend’s phone. Go to the official page of the service android.com/find and log in using the same Google account that is used on the blocked device. The system will automatically try to determine the location of the phone and display it on the map.

In the side menu or at the bottom of the screen you will see three main options: “Ring”, “Block” and “Wipe device”. We are interested in the function “Wipe device” (Erase Device). When you click on it, the system will warn you that all data will be deleted permanently. After confirming the action, you will send a command to the phone.

As soon as the locked smartphone receives a signal from Google servers, it will automatically begin the reset process. The screen will go dark, the device will reboot and start as new, without a pattern or PIN code. This method is convenient because it does not require pressing physical buttons and works remotely, but it is useless if the phone is turned off or in airplane mode.

💡

If the phone does not appear in the list of devices on the Google website, check whether you entered the login correctly. Also make sure that geolocation and data transfer are enabled on the phone itself, otherwise communication with the server is impossible.

Specifics of unlocking Samsung smartphones

The company Samsung has its own set of tools, which in some cases allows you to bypass the standard full reset procedure. If an account has been set up on the device Samsung Account and the “Find my mobile” function is enabled (Find My Mobile), the user has a unique opportunity to remotely remove the screen lock password without losing data.

To do this, you need to go to the site findmymobile.samsung.com from any browser and log in to your Samsung account. Select your locked smartphone from the list of devices. In the control panel on the right, find the option Unlock (Unlock). The system will require you to re-enter your Samsung account password to confirm the owner's identity.

After confirmation, all types of screen locks (PIN, password, pattern, fingerprint) will be deleted. The phone will unlock and you will be taken to the desktop with all your saved data. This is the only legal way to save information if your password is forgotten, but it only works if all the prerequisites are met.

Method Saving data Required conditions Difficulty
Recovery Mode None (complete removal) Physical access to buttons Low
Google Find My Device No (complete removal) Internet, Google account Low
Samsung Find My Mobile Yes (data is saved) Samsung account, Internet Low
Service center Depends on the method Documents about purchase High (time/money)

⚠️ Attention: Samsung's remote unlock feature does not work if the phone is offline. The command will be queued and executed only when the device is connected to the network. Do not try to turn off the phone while waiting, it is better to leave it on with the lock screen.

📊 What type of lock are you having problems with?
Pattern key
PIN code
Complex password
Fingerprint does not work
Face ID does not recognize

Using ADB for advanced users

For those who previously enabled the USB debugging (USB Debugging) mode on their device and authorized the computer, there is a technical way to delete the file with passwords through the toolkit Android Debug Bridge (ADB). This method allows you to reset the lock without completely formatting the data, but it only works on older versions of Android (up to about 6.0-7.0) or on devices with certain security settings.

You need to connect the phone to the computer via a USB cable, install drivers and ADB utilities on the PC. Open a command line or terminal in the ADB tools folder and enter the command to test the connection: adb devices. If the device is displayed in the list with status device, you can proceed to deleting the system lock file.

adb shell rm /data/system/gesture.key

This command deletes the file in which the pattern is stored. To reset your PIN or password, you may need to delete files password.key or locksettings.db. After executing the command, you must reboot the device. You can enter any combination on the lock screen, and the phone should be unlocked.

It is worth noting that on modern versions of Android with data encryption, this method practically does not work, since the system will not allow access to the partition /data without first unlocking. However, for owners of old smartphones or tablets, this can be a lifesaver.

💡

The ADB method is effective only if USB debugging was previously enabled. If this option was disabled, the computer will not have access to the phone’s file system.

Alternative methods and service centers

In situations where none of the software methods helped, or the device has specific protection (for example, enhanced encryption of corporate smartphones), you can contact a specialized service center. Engineers have access to professional software, such as Octoplus, Z3X Box or Chimera, which allows you to interact with the bootloader at a low level.

However, even professional boxes do not guarantee the preservation of data when password protection is removed on modern security chips. Often the only solution is to reflash the device (“upload” a clean system image), which inevitably leads to loss of information. In addition, to carry out such work, services often require the provision of documents confirming ownership of the device in order to avoid working with stolen phones.

There are also so-called “engineering codes” for entering the service menu, but on the vast majority of modern devices they are either disabled by manufacturers or do not allow you to reset the screen lock without superuser rights (Root). Attempts to obtain root access on a locked device often lead to a complete loss of warranty and the risk of being bricked.

If you plan to sell or give the phone to another person after the reset, make sure that you have signed out of all accounts (if possible through web interfaces) or be prepared to provide the new owner with your Google account information to pass the FRP verification. Otherwise, the device will remain locked during the initial setup.

The myth about calling a phone

There is an old myth that if you call a locked phone, accept the call and minimize the phone application, you can get into the settings. On modern versions of Android (starting from 5.0), this vulnerability has been completely eliminated, and this method no longer works.

Frequently asked questions (FAQ)

Will I lose all photos and contacts when I reset my password?

Yes, in 99% of cases, reset via Recovery or Google service results in the complete deletion of all user data from the internal memory. Only those files that have been synchronized with the cloud (Google Photos, Google Contacts) or are located on an external SD card can be saved if it has not been formatted as internal memory.

What is FRP and how to bypass it?

FRP (Factory Reset Protection) is an anti-theft system. After resetting, the phone requires you to enter the password for the last synchronized Google account. Officially, you can bypass it only by knowing this password. Unofficial bypass methods exist on the Internet, but they are complex, depend on the specific model and version of Android, and often stop working after security updates.

Is it possible to unlock a phone without losing data?

Without losing data, this is only possible in two cases: if you remember the password, or if you have a Samsung account set up (for Samsung phones) with the remote unlock feature. For all other brands (Xiaomi, Huawei, Pixel, etc.) there are no safe ways to unlock without formatting due to data encryption.

Will the reset work if the phone is turned off?

No. To perform the reset command through the Google service, the phone must be turned on and connected to the Internet. If the device is turned off, the command will be waited on the server until the phone is turned on and the network appears. Hard reset via buttons (Recovery) works regardless of the network state, but requires physical access to the switched off device.

Will removing the SIM card help remove the lock?

No, removing the SIM card does not affect the screen lock in any way. The pattern key, PIN code and password are stored in a secure area of the device’s internal memory and do not depend on the presence of a SIM card or access to a mobile network.