Entering an incorrect pattern or PIN code on the Android lock screen instantly starts the attempt limitation timer, and after several errors the device completely blocks access to the system, leaving the owner alone with a blocked interface and the risk of losing all saved data data.
There are several proven ways to restore access to the device, but the choice of a specific method directly depends on the version of the operating system, the model of your smartphone and the preliminary settings. Some options allow you to save your data, others require a complete reset. Below we will analyze each scenario in detail so that you can choose the optimal solution for your situation.
Before you begin any active actions, make sure that the device is charged at least 30-40%. The unlocking process, especially those associated with flashing or resetting, will require energy, and suddenly turning off the phone at a critical moment can lead to serious software errors.
Using the Find My Device service from Google
The most civilized and safest way to regain control of your smartphone is to use the official service from Google. This method only works if you are logged in to your locked device. Google account, the Internet (mobile or Wi-Fi) is turned on and the geolocation function is activated. If these conditions are met, you can remotely control the device through any browser.
Go to the site android.com/find from a computer or other phone. Log in to the same account that is used on the locked gadget. The system will automatically detect the location of the device and offer three actions: play sound, lock the device or clear data. We are interested in the locking function, which in some versions of the interface allows you to set a new temporary password.
After setting a new code via the web interface, try entering it on the screen of a locked phone. If it works, you will have access to the system and can change the security settings in the menu Settings โ Security โ Screen lock. However, it is worth remembering that in the latest versions of Android, this function is often limited to only completely deleting data.
โ ๏ธ Attention: The โWipe deviceโ function will permanently delete all files, photos and applications from the internal memory. The data on the SD memory card may be preserved, but this depends on the specific model and encryption settings.
The effectiveness of this method directly depends on how quickly you react. If the phone is in airplane mode or turned off, the command will not be executed until the network appears. Therefore, this method is ideal if you simply forgot the code, but the phone is nearby and connected to Wi-Fi.
The Find My Device service is the only official way to unlock without losing data, but it requires an active Internet connection on the smartphone itself.
Resetting the pattern key through a Google account on older versions
Owners of devices with an operating system system Android versions 4.4 and below have a significant advantage. In these firmware versions, the function of restoring access directly through the lock screen was implemented. If you have entered an incorrect pattern five times in a row, the โForgot your pattern?โ button will appear on the screen.
By clicking on this inscription, the system will prompt you to log in using your Google account. Enter the username and password for the account that was previously linked to the phone. After successful verification by the server, the device will automatically unlock, and you can install a new security method or disable it altogether.
Unfortunately, starting from Android 5.0 Lollipop, this feature has been removed for security reasons. Now, after many unsuccessful input attempts, the phone only offers to wait a certain time (from 30 seconds to several hours) before the next attempt. This is done to prevent brute-force password guessing.
- ๐ฑ Suitable only for devices running Android 4.4 KitKat and below.
- ๐ Requires knowledge of the exact data from the Google account.
- โณ If an input error occurs, you will need to wait before trying again attempt.
If you have a newer version of the system, do not waste time looking for this button - it is not physically there. In this case, you will have to move on to more radical measures, such as resetting the settings to factory settings (Hard Reset).
Why was the reset function via account removed?
Google engineers decided that the ability to unlock via email reduces the overall security of the device. If an attacker finds out your Google password, he will gain full access to the phone, so in new versions the account is used only to confirm identity after a full reset (FRP).
Performing a Hard Reset via Recovery Mode
When software methods do not help, the engineering recovery menu, known as Recovery Mode, comes to the rescue. This is a special boot mode that allows system operations to be performed regardless of the state of the underlying operating system. This menu is entered using a combination of physical buttons before loading Android.
The algorithm of actions may vary slightly depending on the manufacturer. For most smartphones (Samsung, Xiaomi, Huawei), you need to turn off the device and then hold down the combination of the โVolume Upโ and โPowerโ buttons. On some models, such as older Sony or Motorola, you may need to connect the USB cable when you press the buttons.
When you see the manufacturer's logo or menu with text in English, release the buttons. Navigation in this menu is carried out using the volume buttons (up/down), and selecting an item is done using the power button. You need to find the section Wipe data/factory reset and confirm your choice.
โ๏ธ Preparing for Hard Reset
After confirmation, the system will begin the process of formatting the internal memory. This may take from a few seconds to a couple of minutes. When the process is complete, select Reboot system now. The phone will reboot in a clean state, as if you just took it out of the box.
โ ๏ธ Attention: After resetting the settings, FRP (Factory Reset Protection) protection will work. You will definitely need to enter the username and password for the Google account that was synchronized with the phone before the blocking. Without this data, it will be impossible to turn on the phone.
Unlocking through brand services (Samsung, Xiaomi, Huawei)
Large smartphone manufacturers create their own ecosystems, which often provide more flexible device management tools than standard Android. For example, equipment owners Samsung can use the service Find My Mobile, which allows you to remotely remove the screen lock, even if the USB debugging function has not been enabled.
To do this, you need to go to the service website from a computer and log in with your account Samsung Account. If your phone is connected to a network, the "Unlock" option will appear in the control menu. This action will remove all types of screen locks: pin code, pattern, fingerprint and iris scanner.
Users Xiaomi and Huawei also have similar cloud services. In the case of Xiaomi, if the โFind deviceโ function is enabled, you can erase data through the website i.mi.com. However, unlike Samsung, these services most often perform a data reset, rather than simply removing a password while saving information.
| Brand | Service name | Data saving | Requirements |
|---|---|---|---|
| Samsung | Find My Mobile | Yes (possibly) | Samsung account, internet |
| Xiaomi | Mi Cloud | No (reset) | Mi account, internet |
| Huawei | Cloud Find My Phone | No (reset) | Huawei account, internet |
| Find My Device | No (reset) | Google account, Internet |
Using proprietary utilities is often the preferred option, since they are better integrated into the firmware and are less likely to cause system conflicts after unlocking. Be sure to check whether a manufacturer account was created when you first set up your phone.
Bypassing blocking via USB debugging (ADB)
This method is only suitable for advanced users and requires prior preparation. If your phone had USB debugging enabled in the developer menu before the lock, and you previously authorized this computer, then you can try to delete the file with the lock key via the command line.
You will need a computer with ADB drivers and the utility installed Platform Tools. Connect your phone to PC with a cable. Open a command line or terminal in the folder with the utility and enter the command to test the connection: adb devices. If the device is displayed in the list, then the connection is established.
Next you need to enter a command to delete the file that stores the pattern or password. The path to the file may differ depending on the version of Android, but the following instruction is most often used:
adb shell rm /data/system/gesture.key
Or for a PIN code:
adb shell rm /data/system/password.key
After executing the command, reboot the device. In theory, the lock screen should disappear, or you can enter any code and the phone will unlock. However, on modern versions of Android with disk encryption, this method works extremely rarely, since the system will not allow you to access the partition /data without unlocking.
If the adb devices command does not see the phone, try different USB cables and ports. Sometimes installing universal Google USB Driver helps.
Flashing a smartphone via a computer (SP Flash Tool and analogs)
When all soft methods have been exhausted, the only option left is to completely flash the device. This is the most complex and risky method, requiring specific software for each processor (MediaTek, Qualcomm, Exynos). A popular utility for MediaTek processors SP Flash Tool.
The essence of the method is to write a new system image to the phone's memory, which automatically erases the partition with user data and security settings. You will need to find the official firmware (Stock ROM) specifically for your phone model. Using firmware from another model is guaranteed to turn the phone into a โbrick.โ
The process usually looks like this: you boot the phone into Download Mode or BROM Mode mode (often by holding down the volume buttons while connecting the cable to the switched off device), launch the app on the PC, specify the path to the firmware file and click the โDownloadโ button. The process writes new memory sectors bit by bit.
โ ๏ธ Attention: Incorrect firmware can disrupt the operation of communication modules (IMEI), causing the phone to stop connecting to the network. In addition, this procedure voids the device's official warranty.
This method requires high qualifications. If you are not confident in your abilities, it is better to contact a service center. An error at the stage of selecting a scatter file or memory address can make restoring the device economically unfeasible.
Frequently asked questions (FAQ)
What is FRP and why does the phone ask for the old account after a reset?
FRP (Factory Reset Protection) is an anti-theft mechanism. It links the device to the last entered Google account. After resetting the settings via Recovery, the phone requires confirmation that the reset was performed by the owner and not the thief. Without entering the correct login and password, you will not be able to activate the phone.
Is it possible to unlock the phone without losing photos and contacts?
On modern versions of Android (starting from 6.0 and higher), this is almost impossible without knowing the current password. Data encryption is tied to your lock code. The only chance is the Find My Device service from Samsung or logging in through your Google account on very old versions of the system. In other cases, resetting the password means resetting the data.
Will calling a locked phone help to unlock it?
This trick worked on very old versions of Android (2.x - 4.x). The idea was to accept it during an incoming call, minimize the call screen and try to go into the settings. This method does not work on modern smartphones, since the security system isolates the lock screen from other functions during a call.
What should I do if I forgot both the password and data from my Google account?
Restore access to your Google account via your computer using the recovery form on the Google website. If you can't restore your account, you won't be able to officially unlock your phone. You will have to take the device to a service center with a purchase receipt to confirm ownership, where specialists can reflash the device.
Will Hard Reset work if the phone is completely discharged?
No, a battery charge is required to enter Recovery mode and perform a reset. If the phone is completely discharged, connect it to the charger and wait at least 15-20 minutes before trying to hold down the buttons to enter the service menu.