After the fifth incorrect attempt to enter a digital combination, the smartphone screen is blocked with an error message, completely blocking access to calls, messages and saved data. The device goes into protection mode, requiring identity verification through a linked Google account or a forced factory reset to remove a forgotten PIN.
Before taking active steps, you need to clearly determine the type of lock you are facing. This could be a standard PIN code screen, an unlock code SIM cards or a pattern that you simply cannot reproduce from memory. The choice of tool to solve the problem directly depends on this factor. In some cases, it is enough to use the “Forgot password” function, while in others you will have to resort to complete data formatting. Let's look at all possible scenarios and methods for eliminating them so that you can regain control of your gadget.
Differences between screen lock and SIM card
Many users confuse two completely different levels of protection, which leads to incorrect actions when trying to unlock. Screen lock protects the device itself from unauthorized access to the interface, applications and files. This is the first line of defense you encounter right after pressing the power button. To remove this restriction, graphic keys are used biometric data, such as a fingerprint or a face scanner, as well as digital codes.
On the other hand, there is protection for itself SIM cards, which is stored inside the telecom operator's chip. If you have enabled PIN code protection in the mobile network settings, then every time you reboot the phone or remove the SIM card, the system will request a code specifically to access the operator’s network. Entering the wrong code here will not block the phone itself, but will make calls and using the mobile data impossible. Understanding this difference is critical, as the reset methods for these two types of protection are radically different.
⚠️ Attention: If the phone asks for a code immediately after turning on, before the desktop appears, it is most likely SIM card protection. If the request appears after the system boots when you try to unlock the screen, this is protecting the device.
The table below shows key differences that will help you quickly identify the problem:
| Characteristics | Screen lock | SIM card lock |
|---|---|---|
| What protects | Phone data, applications, photos | Access to the operator's network, calls |
| When requested | When the screen is turned on or rebooted | Only when rebooted or changing SIM |
| Consequences of errors | Temporary blocking of input, data reset | SIM blocking with PUK code, card replacement |
| Setting location | Settings → Security → Screen lock | Settings → Security → SIM lock |
Incorrect interpretation of the request may lead to you trying to reset your phone when the problem is solved by simply entering the PUK code. Always carefully read the text of the message on the screen: if it mentions “SIM locked” or “Enter PUK”, do not touch the Android system settings.
Using the “Forgot Password” function through a Google account
The most civilized and safe way to restore access is available on devices running relatively old versions Android (approximately up to version 5.0-5.1, although on some In custom firmware, the function lasts longer). This method allows you to reset a forgotten pattern or PIN without losing personal data using a linked Google account. The essence of the method is to authorize the owner of the device through a cloud service, which confirms your rights to control the gadget.
To use this option, you must enter the wrong password five times in a row or draw the wrong pattern. After the fifth attempt, a button should appear on the lock screen that says “Forgot your pattern” or “Forgot your PIN.” Clicking on this button will take you to the authorization screen, where you will need to enter the login and password for your Google accountwhich was previously synchronized with this phone.
Make sure that the phone is connected to the Internet (Wi-Fi or mobile network), otherwise the system will not be able to verify the entered data with the servers Google.
After successful authorization, the system will prompt you to set a new screen lock method or disable it altogether. This method is ideal as it keeps all your photos, contacts and installed apps intact. However, it is worth considering that in modern versions of Android this feature has been removed in favor of more stringent security measures, such as mandatory data reset after repeated input errors.
If the “Forgot Password” button does not appear even after many unsuccessful attempts, this means that your version of the system does not support this recovery method. In this case, you should not waste time endlessly trying to guess the code, as this can lead to a complete blocking of the device for a long time or activation of FRP protection.
Remote unlocking through the Find My Device service
Google provides a powerful tool for managing lost or locked devices called Find My Device (Find Device). This service allows you not only to track the location of your phone, but also to remotely change the blocking settings. It is important to understand that for this method to work, the phone must be turned on, have an active Internet connection and be linked to your account.
The unlocking process is as follows: you need to go to the official website of the service from a computer or another smartphone. After logging in under the same account as on the blocked device, you will see a map with the location of the gadget. In the control menu, select the “Lock device” option. Yes, it’s paradoxical, but this function allows you to set a new temporary passwordwhich will replace the forgotten old one.
☑️ Requirements for Find My Device to work
In the window that opens, you will be asked to enter a new password twice and optionally add a message for the finder (although in our case it not necessary). After confirming the actions, the new code will be applied to the device within a few seconds. Now you can pick up the phone and enter this exact code you just installed to gain access to the system.
It is worth noting that this method will not work if the phone is offline or if the geolocation and remote control service has been previously disabled in the security settings. Also, some manufacturers, such as Samsung or Xiaomi, may have their own analogues of this service, which work even more efficiently than the standard solution from Google.
What to do if Find My Device does not see the phone?
If the service displays the status “Offline” or “Last connected: a long time ago,” this means that the phone has no connection to the network. Try rebooting the device (if you know how to do this without unlocking, for example, using a button combination) so that it tries to restore the connection. However, if Boot Lock is enabled, this step may not help. In this case, the only option left is to reset via Recovery.
Resetting settings via the Recovery Mode menu
When software methods through the account are not available, the only working option is a hardware reset, known as Hard Reset. This process is performed through a special service menu Recovery Mode, which is built into the device’s memory regardless of the state of the operating system. It is important to warn you right away: this method will completely delete all user data from the phone’s internal memory.
To enter recovery mode, you must turn off the smartphone and press a certain combination of physical buttons. This combination differs on different models: most often it is simultaneously pressing the power button and the volume up key. On some devices, you may need to connect the USB cable to the computer while pressing the buttons. Hold the buttons until the brand logo appears or goes to a menu with a text interface. Samsung You may need to connect the USB cable to your computer while pressing the buttons. Hold the buttons until the brand logo appears or goes to a menu with a text interface.
⚠️ Attention: All data (photos, contacts, messages, applications) will be permanently deleted. If you have a cloud backup, you can restore the information after setting up your phone as new.
In the Recovery menu, control is carried out with the volume buttons (up/down to move through items) and the power button (to confirm the selection). You need to find the item containing the words Wipe data/factory reset. After selecting this item, the system will ask for confirmation, usually this is item Yes or Factory data reset. The formatting process will start, which will take from a few seconds to a couple of minutes.
Hard Reset is an extreme measure that is guaranteed to remove the screen lock, but at the cost of losing all local information on the device.
After completing the procedure, select the option Reboot system now. The phone will reboot and start up as if it just left the factory. You have to go through the initial setup, connect to Wi-Fi and enter your Google account. FRP (Factory Reset Protection) protection may work here, which will require you to enter the password for the account that was synchronized with the phone before the reset. This is a security measure against theft, so make sure you remember your account details.
Unlocking a SIM card using a PUK code
If the problem is not the screen, but the request for a SIM card unlock code, the situation is resolved differently. If you enter the SIM card PIN code incorrectly three times, it is blocked and requires you to enter a longer code - PUK (Personal Unblocking Key). This code consists of 8 digits and is unique for each SIM card. It has a limit on entry attempts: usually 10 attempts are given, after which the SIM card is blocked forever and can only be replaced at the operator’s salon.
Where can I find this treasured code? The most reliable source is the plastic card holder from which you initially broke the SIM card when purchasing. It usually contains PIN and PUK codes. If the card is lost, you should not guess or look for code generators on the Internet - this is useless and dangerous. The only sure way is to contact your telecom operator.
You can contact support in several ways:
- 📞 Call support from another phone of the same operator.
- 💻 Log in to your personal account on the operator’s website or in the mobile application (if you have access via Wi-Fi on another device).
- 🏢 Visit the nearest phone store with the passport for which the SIM card is issued.
After receiving the PUK code, enter it in the request field on your phone. The system will ask you to set a new PIN code for the SIM card (usually 4 digits), and then confirm it. After a successful procedure, the block will be removed and you will be able to make calls again. Do not set up too complex combinations that are easy to forget, or disable the PIN code request in the security settings if this measure seems unnecessary to you.
What happens if you enter the PUK incorrectly 10 times?
The SIM card will receive the status “permanently blocked” (PUK blocked). It is impossible to restore it programmatically. You will have to go to the operator's salon with your passport and get a new SIM card with the same number. The old card will become a useless piece of plastic.
Third-party utilities and brand specifics
In addition to standard Android tools, there are specialized solutions from manufacturers and third-party developers. Large brands, such as Samsungoffer their own block bypass services. For example, the service Samsung Find My Mobile allows you to remotely unlock the screen without losing data if you have previously created a Samsung account and enabled the appropriate option. This is one of the few legal ways to bypass the lock on modern devices without resetting.
There are also many PC apps on the market that claim to be able to remove the lock (for example, Tenorshare 4uKey, Dr.Fone and others). These utilities often work on the principle of exploiting vulnerabilities in the bootloader or USB debugging. However, their effectiveness greatly depends on the phone model and Android version. On new devices with updated security patches, such apps are often powerless or require payment for results that are not guaranteed.
⚠️ Warning: Be careful when downloading password crackers from unverified sources. Many of them contain malware that can steal your data from your computer or harm the phone system.
For devices with enabled USB debugging (USB Debugging) there is a theoretical possibility of removing the lock through a computer using the platform ADB (Android Debug Bridge). If this function was activated previously, you can try sending a command to delete the file with the lock key via the console. The command looks something like this:
adb shell rm /data/system/gesture.key
However, on modern versions of Android, this file often has additional protection or deleting it does not immediately unlock it without a reboot, which will again ask for a password. Therefore, this method is considered rather theoretical for ordinary users and requires deep technical knowledge.
Prevention and creation of backups
The best way to deal with the blocking problem is to prevent it. Regularly backing up your data should become a habit. Services Google Photos automatically save your pictures to the cloud, and contacts are synchronized with your Google account by default. Make sure that these functions are active so that in case of a Hard Reset you will lose a minimum of information.
It is also recommended to set up biometric unlocking (fingerprint, face) in addition to the digital code. This is not only more convenient, but also reduces the risk that you will forget the exact sequence of numbers, since you will use it less often. However, remember that biometrics do not work after you restart the device, so a strong but memorable PIN is still necessary.
Write your PIN and PUK code on paper and keep it in a safe place, such as in documents or a safe. Digital notes may not be available if your phone is locked.
Check periodically to ensure that remote management features are enabled on your account. Go to Google's security settings and make sure your device is listed as trusted and Find My Device is turned on. This simple check can save you a lot of nerves in a critical situation.
Is it possible to unlock your phone without losing data if you forgot your PIN?
On modern versions of Android (starting from 6.0 and higher), this is almost impossible without first setting up specific services (like Samsung Find My Mobile). The standard security mechanism involves resetting data after exhausting input attempts to protect information from intruders.
What is an FRP lock and why does it ask for a password after a reset?
FRP (Factory Reset Protection) is an anti-theft protection. If the phone was reset through the Recovery menu, and not through the system settings, during the first setup it will require you to enter the password for the Google account that was previously on the device. This is done so that a thief cannot simply erase the data and sell the phone.
How many attempts are given to enter the PIN code before it is completely blocked?
Usually, 5 attempts are given to enter the screen PIN code. After this, input is blocked for 30 seconds, then 1 minute, 5 minutes, and so on. After many unsuccessful attempts, the system may prompt you to reset the settings. For a SIM card, 3 PIN attempts and 10 PUK attempts are given.
Will removing the SIM card help remove the screen lock?
No, removing the SIM card does not affect the phone screen lock in any way. These are different levels of protection. Removing the SIM card can only help if the phone is locked by the operator for debt or if you need to bypass the PUK code request temporarily, but you will not get access to the Android interface.