The situation when you pick up your smartphone, and the screen requires you to enter PIN code, which completely flew out of your head, causes panic. This is a common problem faced by users of different versions of the operating system, from old Android 6.0 to the latest Android 14. Fortunately, there are several legal ways to restore access to your device without resorting to paid services.
The choice of a specific method depends on the model of your gadget, the firmware version and whether certain security features have been pre-configured. Some methods allow you to save personal photos and contacts, while others require complete resetting settings. We will consider all current options, from the most gentle to radical measures.
Before taking active steps, make sure that the device is charged at least 50-60%. The unlocking process, especially those associated with rebooting into special modes, may take time. If the battery runs out at a critical moment, it can lead to damage to system files.
Using the “Find My Device” function from Google
The most civilized way to regain access to your phone is to use the official service from the OS developers. If your device is logged in Google account and geolocation is enabled, you can control the blocking remotely. This method is ideal, as it often allows you to simply change your current password to a new one without deleting your data.
First, log into the site from a computer or another phone. android.com/find. Log in using the same account that is used on the locked gadget. The system will detect the location of the device and offer several actions: call, block or clear data.
Select the “Lock” option. You will be prompted to enter a new temporary password that will replace the forgotten pattern or PIN. After confirming the action, after a few minutes a field for entering a new code will appear on the screen of the locked phone.
⚠️ Attention: If the Internet is not configured on the phone (Wi-Fi or mobile network) or the “Find device” function is disabled, this method will not work. Make sure the gadget is online.
It is important to understand that this method only works if the phone is online. If it is turned off or in airplane mode, the command will not be delivered. Also, on some models with custom skins, such as MIUI or OneUI, the interface may differ slightly, but the logic remains the same.
If you have two-factor authentication enabled, make sure you have access to your phone number or backup codes to log into your Google account from another device.
Unlocking via Safe Mode
This method is relevant if the lock was set by a third-party application, and not by system settings. Often, users install locker apps that conflict with the system or simply forget the password for them. Safe Mode loads Android only with system applications, ignoring all third-party software.
To enter this mode, you usually need to hold down the power button on the screen (if you have access to the curtain notifications) or use physical buttons. On most devices, you need to hold down the button Power, and when the shutdown menu appears, hold down the “Shutdown” or “Reboot” item on the screen for a long time.
After confirming entering safe mode, a corresponding message will appear in the corner of the screen. Now you can go to Settings → Applications and find a suspicious locker. Delete it or clear the application data, then restart the phone in normal mode.
- 📱 Press and hold the power button until the menu appears on the screen.
- 🔄 Press and hold the “Power off” icon on the touch screen.
- ✅ Confirm switching to safe mode in the window that appears.
- 🗑️ Remove the application that asks for a password when you turn it on.
It is worth noting that if the password is set systemically (through the security settings of Android itself), safe mode will not help bypass it. It is only effective against third-party screen blockers. Do not confuse the system lock with applications of the “Application Blocker” type.
Reset settings via Recovery Mode
If the previous methods did not help, you will have to resort to a more radical solution - Hard Reset. This process will completely erase all data from the phone's internal memory, returning it to its factory state. This is the only guaranteed method if there are no backups and access to accounts.
To enter recovery mode (Recovery Mode), you must use a combination of physical buttons. Usually this is a combination of the volume up button Vol+ and the power button Power. On some models Samsung you may need to connect the USB cable to the computer while pressing the buttons.
After the manufacturer's logo appears, release the buttons. You will be taken to a menu with a text interface, where navigation is done with the volume buttons and selection is done with the power button. Find the item Wipe data/factory reset and confirm your choice.
| Manufacturer | Button combination | Input features |
|---|---|---|
| Samsung | Vol+ + Power (or Bixby) | You need to connect a USB cable on new models |
| Xiaomi / Redmi | Vol+ + Power | Sometimes confirmation through your Mi account is required after a reset |
| Pixel / Nexus | Vol- + Power | First you will get to Fastboot, then select Recovery using the arrows |
| Huawei / Honor | Vol+ + Power | On older models without Google services, logging in is easier |
⚠️ Attention: After resetting the settings, FRP (Factory Reset Protection) protection will work on devices with Android 5.1 and higher. You will need to enter the login and password for the Google account that was synchronized with the phone before the reset.
The formatting process may take from 5 to 15 minutes. Do not try to interrupt him or force him to turn off the phone. After completion, the system will prompt you to reboot, and you will see the initial setup screen, as if the phone had just been purchased from the store.
☑️ Preparing for a full reset
Deleting the password file via ADB (for advanced)
For users who previously included USB debugging in the developer menu, there is a technical way to delete a file with an access key without losing data. This method requires a computer and an installed tool package Android Debug Bridge (ADB).
Connect the phone to the PC via a USB cable. Open a command prompt or terminal on your computer in the ADB tools folder. Enter the command to check the connection: adb devices. If a message appears on your phone screen asking you to allow debugging, confirm it (if the screen allows interaction) or hope that permission was granted earlier.
adb shell rm /data/system/gesture.key
This command deletes the file that stores the pattern. Once completed, reboot your device. In some cases, the system may accept any key entered or allow entry without one. For a digital password, the file may be called password.key.
What to do if ADB does not see the device?
If the `adb devices` command shows an empty list or an `unauthorized` status, then debugging has not been enabled or not confirmed on the phone itself. In this case, this method will not work, and you will have to use Recovery Mode.
It is important to consider that on modern versions of Android with encrypted storage, this method may not work, since access to the partition /data is impossible without unlocking. However, on devices with older firmware this often works flawlessly.
Bypassing blocking through manufacturer services
Large brands, such as Samsung and Xiaomihave their own security ecosystems that can duplicate Google's functions. If you have created a manufacturer account and linked the device, the chances of recovery without resetting the data increase.
Owners Samsung should visit the website findmymobile.samsung.com. If the Remote Unlock feature has been activated in your phone settings in advance, you can unlock the screen with one button. This works even if the pattern, PIN or password is forgotten.
Users Xiaomi will be helped by the service i.mi.com. Through it, you can remotely erase data or, in some cases, change the screen lock password. However, the functionality of this service often depends on the region and version of the shell MIUI.
- 🔐 Go to the official website of your brand's device search service.
- 📧 Log in to the manufacturer's account (Samsung Account, Mi Account).
- 📱 Select a blocked device from the list in your personal account.
- 🚫 Click the "Unlock" or "Erase Data" button.
The effectiveness of these services directly depends on whether they were configured before the problem occurred. If you have never registered a brand account on your phone, this path will be closed.
Manufacturer services are the best alternative to Google Find My Device, but they require prior registration of a brand account on the device.
Prevention and creation of backups
After successfully restoring access (or purchasing a new device), it is critical to set up backup systems. Losing data is always stressful, but regular backups reduce the risks to a minimum. Use cloud storage and local copies.
Set up automatic synchronization of contacts and photos with Google Drive or Google Photos. For complete copies of the system, you can use the built-in backup tools in the Android settings or third-party utilities on your PC, such as Titanium Backup (Root required) or standard developer tools.
⚠️ Attention: The operating conditions of cloud services and settings interfaces may change with software updates. Always check the current synchronization settings in the “Accounts” section of your smartphone.
It is also recommended to write down complex passwords in a safe place - a paper notepad or password manager, which can be accessed through biometrics or a master password that you remember. Don't rely only on memory.
Frequently asked questions (FAQ)
Is it possible to unlock your phone without losing data?
Yes, this is possible through Google's Find My Device service or through manufacturer services (for example, Samsung Find My Mobile), if they have been configured in advance. In other cases, you will most likely need to reset the settings.
What is FRP and how to bypass it?
FRP (Factory Reset Protection) is anti-theft protection. After resetting the settings, the phone requires you to enter the Google account that was on it before the reset. Officially, you can get around this only by knowing the password for your account. Unofficial methods are complex and depend on the specific model.
Will calling your phone help you remove the lock?
On very old versions of Android (up to 5.0), there was a bug that allowed you to get into the settings through the call menu. On modern devices, this method does not work due to improved system security.
Will a reset via Recovery work if the phone is stolen?
You can reset, but after turning on the phone will ask for the previous owner's account (FRP). Without this data, it will be impossible to use the device, which makes theft pointless for resale.
How to enter safe mode if the sensor does not respond?
If the sensor is blocked, try using the physical power button. On some models, when booting, you need to hold down the volume down button Vol-to force enter Safe Mode.