The situation when you pick up a smartphone, but the screen greets you with a requirement to enter a code that has slipped your mind, is familiar to many. Panic at this moment is a natural reaction, because important contacts, photos and access to banking applications are stored inside the device. However loss of access does not mean irretrievable loss of data or turning the gadget into a “brick”. There are several proven ways to regain control of the device.

The effectiveness of the method directly depends on the version of the operating system Android, the model of your smartphone and pre-installed security settings. Some methods allow you to keep your personal files, while others require a full factory reset. It is important to act consistently and not make chaotic input attempts, so as not to provoke a temporary blocking of the device for several hours.

In this guide, we will look at both software recovery methods through an account Googleand hardware methods through the recovery menu. We will also touch on the nuances of working with modern versions of the OS, where data protection has become much stricter than in earlier releases.

Using the “Find Device” function from Google

The most civilized and safest way to regain access to your phone is to use the service Google Find My Device. This tool was originally created to find lost gadgets, but also allows you to remotely control your screen lock. For this method to work, it is critical that the smartphone is turned on, connected to the Internet (via Wi-Fi or a mobile network) and has an active login to your Google account.

If these conditions are met, you need to log in from any other device (computer or tablet) to the official page of the service. After authorization using the same login as on the locked phone, the system will display the device’s location and control panel. Here you'll see a "Lock" or "Secure Device" option that allows you to set a new temporary password.

⚠️ Attention: If your device has data encryption enabled (which is standard on Android 6.0 and above), changing the password remotely may not work to unlock the screen, but will only set a new code for subsequent login. In some cases, this leads to the need to reset the data.

The process is as follows: you enter a new code in the web interface, confirm the action, and after a few minutes the smartphone accepts the new command. After that, try entering the code you set on the phone screen. If it works, immediately go to the security settings and disable the lock or set a new, memorable PIN code.

💡

Make sure that geolocation and data transfer are enabled on the locked phone, otherwise the command from the Google server simply will not reach the device.

Reset settings through the Recovery Mode menu

When software methods are powerless, recovery mode or Recovery Modecomes to the rescue. This is a special diagnostic mode built into the firmware of every Android smartphone, which allows you to perform system operations regardless of the state of the main operating system. The main disadvantage of this method is the complete deletion of all user data, since the reset returns to the factory state.

To get to this menu, you need to turn off the smartphone and press a certain combination of physical buttons. Combinations vary depending on the manufacturer: this is often the power and volume up button, and the power and volume down button. You need to hold the buttons until the brand logo or a special menu with text in English appears. Samsung This is often the power and volume up button, Xiaomi - power and volume down. You need to hold the buttons until the brand logo or a special menu with text in English appears.

☑️ Entering Recovery Mode

Done: 0 / 4

Navigation in the Recovery menu is carried out with the volume buttons (up/down), and the selection of the item is confirmed with the power button. You need to find the item wipe data/factory reset. After selection, the system will ask for confirmation; usually you need to select item Yes or Factory data reset. The formatting process will take from a few seconds to a couple of minutes.

⚠️ Attention: After resetting the settings, protection will work FRP (Factory Reset Protection). When you boot for the first time, the phone will require you to enter the login and password for the Google account that was synchronized with the device before the reset. This is protection against theft, and it is extremely difficult to bypass it without account data.
What to do if the buttons do not work?

If the physical volume buttons are broken, you can get to Recovery through the ADB command with USB debugging connected, by entering the command in the terminal: adb reboot recovery.

Unlocking through manufacturer services (Samsung, Xiaomi)

Large vendors often create their own security ecosystems that work in parallel with Google services. For example, device owners Samsung can use the service Samsung Find My Mobile. This is one of the few legal ways to unlock the screen without losing data, but it requires first registering a Samsung account and enabling the “Remote Control” function in the phone settings.

For devices Xiaomi, Huawei and Honor there are also cloud services that allow you to control the device remotely. However, their functionality is often limited to searching for a location or playing sound. The remote unlock function is less common and depends on the specific model and version of the shell. data-i="78">Yes MIUI or EMUI.

Manufacturer Service name Saving data Requirements
Samsung Find My Mobile Yes Samsung account, internet
Xiaomi Mi Cloud No (usually reset) Mi account, search enabled
Google (All) Find My Device No (erasing) Google account, Internet
Sony Xperia Companion No (recovery) PC, USB cable

If you are a user Samsung, go to the service website, select your device in the list and click the “Unlock” button. The system will require you to enter the password for your Samsung account, after which the pattern or PIN code on the phone will be deleted. This is the most gentle method for users of this brand.

💡

Manufacturer services are the only chance to save photos and contacts without prior backup, but they only work if pre-configured.

Using USB and ADB debugging

This method is suitable for advanced users and requires a computer with the package installed Android Debug Bridge (ADB). The main condition is that on a locked phone, “USB Debugging” must be enabled in advance in the “For Developers” menu. If this function was disabled before blocking, this method will not work.

Connect your smartphone to the computer via the original USB cable. Open a command prompt or terminal on your PC in the folder where ADB is installed. Enter the command to check the connection:

adb devices

If a device with status deviceappears in the list, then the connection is established. Next, you can try to delete the file that stores information about the graphic key. For older versions of Android (before 5.0), the command was used to delete a file gesture.key or password.key from the system folder.

📊 Have you encountered FRP lock after a reset?
Yes, it's a nightmare
No, lucky
I don’t know what it is
I went through the service center

However, on modern versions of Android this security hole is closed. ADB commands are now more commonly used to initiate a reboot into recovery mode or to transfer files if the phone is partially accessible. An attempt to delete system files without root access on new devices will result in a command execution error.

Third-party apps for unlocking

There are many utilities on the Internet that promise to unlock your phone in one click. apps like Dr.Fone, Tenorshare 4uKey or iMyFone LockWiper can really help, but it is important to understand the mechanism of their work. Most of them essentially automate the process of entering Recovery Mode and performing a factory reset, which you can do manually.

Some paid versions claim the ability to remove the lock without losing data for certain models Samsung or LG. This is possible due to vulnerabilities in the bootloader of specific older models. For other brands, such as Pixel, OnePlus or Xiaomi, removing the password almost always means formatting the section with user data.

⚠️ Attention: Download such software only from the official developer sites. There are many fakes on the Internet that contain viruses or spyware that can steal data from your computer when you connect your phone.

Before purchasing a license, be sure to use the free trial version to make sure that the app sees your device. It often happens that the software detects the phone, but cannot remove the lock due to the new version of the Android security patch, and the money will be wasted.

Prevention and creation of backups

The best way to deal with a forgotten password is its absence or a reliable recovery system. Modern smartphones offer biometric unlocking via fingerprint or face scanner. Set up these methods in addition to the digital code: even if you forget your PIN, biometrics will allow you to enter the menu and change security settings.

Regular backup of data to the cloud Google Drive or to a computer will save you from losing information during a forced reset. Set up automatic synchronization of contacts, calendar and photos. In this case, even after doing wipe data/factory reset, you can restore all important information in a few minutes after entering a new password.

Write down your backup unlock code (if the system offers it during setup) and save it in a safe place, for example, in a password manager or in a notebook that is not located next to the phone. This is a simple step that will save you hours of hassle in the future.

💡

Use a password manager to store complex combinations. This way, you only need to remember one master password, and not many codes for different devices and applications.

Frequently asked questions (FAQ)

Is it possible to unlock a phone without losing data on Android 12 and higher?

Unfortunately, on modern versions of Android with encryption enabled, this is almost impossible without pre-configuring manufacturer services (like Samsung Find My Mobile). Encryption ties access keys to a screen password, so removing the password makes the data unreadable. The only way out is a reset, which erases everything.

What is FRP and how to bypass it?

FRP (Factory Reset Protection) is Google protection that locks the phone after a factory reset, requiring you to enter the account that was on the device previously. You can officially bypass it only by entering the correct data. Unofficial methods (firmware, exploits) are complex, depend on the specific model and processor, and often stop working after security updates.

Will a button reset work if the phone is turned off?

Yes, Recovery mode works regardless of the state of the main system. Even if the phone is locked or the system is frozen, the combination of buttons when turned on will allow you to enter the recovery menu. However, to perform a reset, the phone must have at least 30-40% battery charge, otherwise the process may be interrupted at a critical stage.

Will calling a locked phone help?

On very old versions of Android (2.x - 4.x) there was a life hack: during an incoming call, you could minimize the call screen and access the settings. This method does not work on modern smartphones, since the call interface is isolated from the desktop and security system settings.

Is it safe to enter your Google account on someone else's computer to unlock it?

Enter data only on official websites (google.com, samsung.com). Make sure the connection is secured using the HTTPS protocol. After completing the unlocking procedure, it is strongly recommended to change your account password and check the list of active sessions in Google's security settings, completing all suspicious logins.