The situation when a smartphone turns into a “brick” due to a forgotten password is familiar to many. The screen lights up, the system boots, but it doesn’t go beyond entering the security code. This causes panic, especially if important contacts, work documents or unique photographs are stored inside. Reset settings often seems to be the only way out, but modern versions of Android also offer more gentle methods of restoring access.

Before taking decisive action, you need to understand that data security is in Android 10 and newer is built on encryption. This means that bypassing the block without losing information is becoming more difficult every year. However, there are proven action algorithms that allow you to return control of the device to normal mode or at least save important files before complete cleaning.

In this article we will analyze all the current ways to solve the problem, from using cloud services to the engineering menu. We will consider scenarios for different manufacturers, such as Samsung, Xiaomi and Huawei, since their shells have unique unlocking features. The main thing is to act consistently and not panic, so as not to aggravate the situation with random errors.

Using a Google account to restore access

The most civilized and secure method provided by the developers of the operating system is logging in through a Google account. This method works if you have previously logged into your account on the locked device, and the smartphone itself has an active connection to the Internet (via Wi-Fi or a mobile network). If you see the message “Forgot your pattern” or “Forgot your password” after several unsuccessful entry attempts, you are in luck.

Tap the corresponding button on the lock screen. The system will prompt you to enter the login and password for Google account, which was the main one on this device. After successful authorization, the phone will offer to install a new locking method or remove it altogether. 0) this method worked flawlessly, whereas in new versions it may be hidden or require preliminary configuration in the security menu.

If the standard login does not work, you can use the “Find My Device” function from another gadget. To do this, go to the Google website from a computer or another phone, sign in to the same account and select a blocked device from the list. A screen lock option is often available in the control menu, which allows you to set a new temporary passwordby replacing a forgotten code.

⚠️ Attention: If you changed the password for your Google account recently (less than 24 hours ago), the security system may temporarily prevent you from unlocking your phone with this new one password. This is protection against data theft.

It is worth noting that this method requires a stable connection. If the phone is in airplane mode or without a SIM card, the remote command may not reach. In this case, try restarting the device so that it tries to connect to the network again, or use the smart home function to turn on Wi-Fi, if it is configured.

Search services from manufacturers Samsung, Xiaomi and Huawei

Large electronics manufacturers create their own ecosystems, which are often more effective than standard Google tools. Device owners Samsung can use the service Find My Mobile. If a Samsung account was registered on your phone and remote unlocking is enabled, you can go to the service website, select your device and click the “Unlock” button. This will remove all types of screen locks, including fingerprint and PIN.

Users Xiaomi (Redmi, POCO) must contact the Mi Cloud service. The principle of operation is similar: logging in through your Mi account on the i.mi.com website allows you to remotely erase the lock screen. However, there is an important nuance here: the function only works if the “Find device” option was enabled on the phone in the Mi account settings. Without this preliminary configuration, remote access will not be possible.

Devices Huawei and Honor use the Huawei Cloud cloud service. Through the Find My Phone function, you can not only track your location, but also manage your blocking. In some cases, the option to remove the lock screen is available, but more often it offers a complete data wipe. Always check your device's network connection status before sending commands as they are executed in the background.

📊 What brand of smartphone do you have?
Samsung
Xiaomi
Huawei/Honor
Other (Pixel, Sony, Nokia)
I use stock Android

The advantage of branded services is is that they often allow you to unlock the device without data lossas opposed to a hard reset. However, this requires active preliminary preparation: registering an account and turning on the appropriate toggle switches in the security settings. If you just bought a phone, do it right now, before you encounter a problem.

Recovery Mode and factory reset

When software methods are powerless, Recovery Mode the recovery mode built into each firmware comes to the rescue Android smartphone. This mode is entered by using a combination of physical buttons when the phone is turned off. Most often this is a combination of the power button and the volume down button (or up, depending on the model). You need to hold them until a logo or menu with English text appears.

Navigation in the Recovery menu is carried out using the volume buttons (up/down), and selecting an item is done using the power button. You need to find item Wipe data/factory reset or Clear storage. Confirmation of an action usually requires selecting an item Yes or Factory data reset. This process will completely delete all user data, returning the phone to its factory state.

☑️ Checklist before resetting

Done: 0 / 4

After the reset is complete, the phone will reboot. The first launch may take several minutes. The system will ask you to enter the details of the Google account that was previously synchronized with the device. This is a security mechanism FRP (Factory Reset Protection)that prevents the use of a stolen phone after a reset. If you do not remember the password for your account, it will be extremely difficult to unlock the device.

Brand Button combination (phone off) Menu features
Samsung Volume Up + Bixby + Power Requires a USB cable connection to a PC on new models
Xiaomi Volume Up + Power Menu can be in Chinese/English
Huawei Volume Up + Power Often confirmation via fingerprint is required (if works)
Pixel / Motorola Volume Down + Power Standard Android Recovery menu

⚠️ Attention: On modern Samsung smartphones, to enter Recovery, you may need to connect the device with a cable to a working computer. Without a cable, the menu may not open.

Using USB debugging mode (ADB)

For advanced users who had it enabled in advance USB debugging in the “For Developers” menu, there is a powerful tool - ADB (Android Debug Bridge). This method allows you to control your phone from your computer by issuing commands through the command line. If the function was active and the computer was previously authorized, you can try to delete the file storing the lock keys.

To do this, you need to install the drivers and the Tools platform on the PC, connect the phone and launch the terminal. The command adb shell rm /data/system/gesture.key (or password.key for PIN code) deletes the file with the key. After rebooting, the phone can be unlocked using any method or swipe. However, on Android 6.0 and later, this method often does not work due to changes in the security structure and data encryption.

What to do if ADB does not see the phone?

If the adb devices command does not display your phone, check your installed drivers. Try a different USB cable (not all cables support data transfer). Also make sure that a window asking for permission to debug does not appear on the phone screen - if it does, you will not be able to unlock the screen without a password via ADB.

It is also possible to use ADB to install third-party unlocking utilities if the phone has access to the file system. However, this requires a custom recovery (TWRP), the installation of which is often impossible without an unlocked bootloader. Thus, ADB is more of a preventative measure or a tool for enthusiasts than a universal solution for the average user.

Specific methods for older versions of Android

Owners of devices released several years ago and running Android 4.4 - 5.0 can take advantage of vulnerabilities in older versions of the system. One popular method is to call a blocked number. By accepting an incoming call and hanging up, you can sometimes access the menu or home screen, where it is easier to access settings.

Another classic trick is to use the status bar. By calling up the notification panel (by swiping from the top), you can try to go to settings, then to the “Security” section and disable the screen lock. On some models, this path was not blocked by the safety system. The method of dialing an emergency number ##4636##, which opened an engineering menu that allows you to launch tests or a browser, also helped.

💡

If you have an old phone with Android 5.0 or lower, try entering the wrong password 5 times. A timer often appears, but sometimes a “Forgot password” button appears, which works more stable on older firmware.

It is worth understanding that with the release of each new security update, Google closes these “holes”. Therefore, unfortunately, these methods do not work on modern smartphones. If your phone is updated to the latest software version, you shouldn’t count on interface vulnerabilities.

What to do if nothing helps: service center

In cases where none of the software methods worked, or if the phone requires Google account confirmation after a reset (FRP Lock), you can only turn to professionals. Official service centers can unlock the device upon presentation of the purchase receipt or warranty card. This confirms that you are the legal owner of the gadget.

Unofficial workshops offer flashing or FRP bypass services. However, there is a risk here: using unofficial software can lead to unstable operation of the phone, loss of warranty, or even failure of the motherboard. In addition, by handing over the device to strangers, you risk the confidentiality of your data if it has not been deleted.

If the phone was found or purchased secondhand without the possibility of return, and you do not know the passwords of the previous owner, it is almost impossible to unlock it legally. Modern encryption systems AES-256 make password guessing using the brute-force method impossible to implement in a reasonable time. In such a situation, the device, alas, remains unusable.

Is it possible to unlock the phone without losing photos and contacts?

Without data loss, you can unlock your phone only if you remember the password for your Google account or manufacturer's account (Samsung Mi Account), and the corresponding remote control function has been enabled on your phone. Methods with Recovery Mode and Hard Reset always delete all data.

What is FRP and why does it require a password after a reset?

FRP (Factory Reset Protection) is an anti-theft system. If the phone was linked to a Google account, after resetting the settings it will require you to enter the password for this account. This prevents the new owner from using the stolen device.

Will unlocking via Find My Device work if the phone is offline?

No, the command to unlock or set a new password must be received by the phone from the network. If the device does not have access to the Internet, the command will remain in the queue until connected. During this time, the phone will remain locked.

Will flashing the phone help remove the password?

Flashing (installing a new version of Android) is similar to a hard reset - it will remove the password, but will also destroy all data. In addition, after flashing, FRP protection will work, and the phone will still require you to enter data from the Google account to which it was previously linked.

💡

The most reliable way to avoid problems with blocking is to regularly back up your data and write down account passwords in a safe place.