The situation when a user forgets a password or pattern on a device with an operating system Android Marshmallowoccurs quite often. Despite the fact that this version of the OS was released several years ago, millions of smartphones and tablets are still in active use. Unlocking Android 6.0 may be required not only if credentials are lost, but also in cases where the device is blocked due to system failures or malware.

The procedure for restoring access depends on several factors: whether USB debugging is enabled, whether the account is linked Google, and what type of blocking is set (PIN code, password, pattern or fingerprint). It is important to understand that most methods, especially for older firmware versions, involve a complete data reset. In devices based on Android 6.0, deleting data via Recovery is the only guaranteed way to remove the lock without using third-party paid services.

In this material we will analyze in detail the legal and technical ways to regain control of the gadget. We will look at both standard reset methods and the nuances of working with the engineering menu typical for the era of release of this operating system. Be prepared for the fact that some steps will require care and strict adherence to the sequence of actions.

Using a Google account to reset the block

The version Android 6.0 still had a mechanism for restoring access through a Google account, although it was already beginning to gradually give way to more stringent security protocols. If you enter the wrong password or pattern several times in a row, the system should offer the option “Forgot your pattern?” or “Forgot your password?” Clicking on this button will redirect you to the authorization form.

To successfully complete this procedure, the device must have an active Internet connection. This can be either a mobile network or Wi-Fi. Enter the username and password for the account that was previously synchronized with the phone. After successful authentication, the system will prompt you to set a new screen lock method.

However, it is worth considering that this method does not always work. If, after entering data, the system generates an error or the restore button does not appear, it means that the security policy has been tightened by the manufacturer of a particular smartphone or the device settings do not allow remote reset. In this case, you need to move on to more radical methods.

  • 📶 Make sure that data transfer is turned on on the device or it is connected to a Wi-Fi network.
  • 🔑 Enter the details of the Google account that was the main one on this device.
  • ⏳ Wait until the reset button appears only after 5-10 unsuccessful input attempts.
📊 How do you usually lock the screen?
Pattern
PIN code
Password
Fingerprint
Face

Resetting settings via Recovery mode

The most reliable and universal way to unlock Android 6.0 is to perform a Hard Reset through the Recovery Mode. This method allows you to erase all user data, including lock screen files, and return the device to its factory state.

To enter recovery mode, you must completely turn off your smartphone. Then you need to hold down a certain key combination. Most often this is the power button along with the volume up button. On some models, the Samsung or LG combinations may vary, so it is worth checking the specifications of your model.

⚠️ Attention: Before performing a reset, make sure that the battery charge is at least 50%. Interrupting the process due to low battery may permanently damage the system and turn your phone into a brick.

Once the Recovery logo or menu appears, use the Volume buttons to navigate up and down, and the Power button to confirm your selection. You need to find the item Wipe data/factory reset. Confirm the action by selecting Yes or Confirm in the menu that appears. The process will take a few minutes, after which you will need to select the item Reboot system now.

☑️ Preparing for Hard Reset

Done: 0 / 4

Deleting the key file through the file manager (Root required)

If on your device with Android 6.0 previously received root access and installed custom recovery or file manager with access to system folders, there is a way to reset the lock without losing personal data. This method is based on manually deleting files that store information about a pattern or PIN code.

The essence of the method is to delete files gesture.key (for a pattern) or password.key (for a digital password). These files are located in the directory /data/system/. To access them, you will need to connect your smartphone to the computer in debugging mode or use the terminal directly on the device if you have access to the console.

You can uninstall via ADB (Android Debug Bridge) if USB debugging was enabled before blocking. Connect your phone to your PC, open the command prompt and enter the command to enter the shell. Next, you will need to execute the command to delete a specific file.

adb shell

rm /data/system/gesture.key

rm /data/system/password.key

After executing the commands, you must reboot the device. When turned on, the system will not detect the lock file and will allow you to log in without entering a password or with any entered value. However, on modern builds of Android 6.0 with disk encryption enabled, this method may not work, since the system partition will not be writable without unlocking.

What to do if root access is not installed?

If you do not have superuser rights, attempting to delete system files through third-party applications will only result in an access error. In this case, the only option is a full reset via Recovery, described in the previous section. Do not try to install dubious hacking apps, they often contain viruses.

Using Google's Find My Device service

Google provided owners of devices based on Android a powerful management tool via a web interface. The Find My Device service allowed not only to track the location of the phone, but also to remotely lock or reset the settings. For Android 6.0, this functionality was already quite developed.

To use this method, you will need another smartphone or computer with Internet access. Go to the official Google service page and log in to the same account that was used on the blocked device. If your phone is online and geolocation is enabled, you will see it on the map.

In the device management menu, select the “Erase Device” option. This command initiates a remote factory reset. As soon as the locked smartphone receives a signal from the Google server, it will automatically erase all data and reboot, thereby removing the lock screen.

  • 🌐 The device must be turned on and connected to the network (Wi-Fi or mobile data).
  • 📍 The “Find device” function must be activated in the settings.
  • 🔐 You must know the password for the Google account linked to the phone.

It is worth noting that after such a reset, during the first setup, the phone may request confirmation of the owner by entering the password for the Google account (FRP Lock). This is protection against theft, which cannot be bypassed by a simple reset.

Unlock specifics of different manufacturers

Smartphone manufacturers often modify the standard one Android 6.0, adding their own shells and levels of protection. This affects unlocking methods. For example, devices Samsung of that era could have additional service codes or specific download modes (Download Mode), which do not work on pure Android.

Devices from Xiaomi and Huawei often required binding to their own cloud services (Mi Account, Huawei ID). If the phone was locked and connected to the Internet, resetting via Recovery might not help, since upon activation the system will ask for the login and password for the corporate account. In such cases, official unlocking is possible only through the manufacturer's support service upon presentation of a purchase receipt.

Below is a table with the features of entering recovery mode for popular brands of that time:

Manufacturer Button combination Features
Samsung Volume Up + Home + Power Requires pressing the Home button, if there is one
Xiaomi / Redmi Volume Up + Power Often requires confirmation with language before reset
LG Volume Down + Power (then release and hold again) Specific algorithm for rebooting into Recovery
Sony Volume Down + Power Notification indicator blinks upon entry
HTC Volume Down + Power You must select Factory Reset in the bootloader

⚠️ Attention: Interfaces and key combinations may vary depending on the specific model and firmware version. If the standard combination does not work, try holding down the volume down button instead of up, or hold the buttons longer (up to 15-20 seconds).

💡

If the phone does not respond to button presses, try connecting it to a charger or computer before trying to enter Recovery. Sometimes a low charge blocks the response to key combinations.

FRP problem (Google Factory Reset Protection)

One ​​of the main problems after resetting to Android 6.0 is the activation of FRP protection. This security system was implemented to prevent the use of stolen devices. If you performed a Hard Reset through buttons rather than through menu settings, when you first boot the phone will require you to enter the password for the last synchronized Google account.

Without entering the correct data, it will be impossible to use the phone. It is difficult to bypass this protection using legal methods. The only official way is to restore access to your Google account through the password recovery procedure on another device. If you do not remember your account details, the device may remain blocked forever.

There are technical ways to bypass FRP through vulnerabilities in the browser or access settings, but they require deep technical knowledge, the presence of specific software and often change with the release of security updates. For an ordinary user, attempting to hack FRP on your own carries a high risk of the device being completely inoperable.

💡

FRP locking only works when reset via Recovery. If you reset the phone through the settings menu (when you know the password), the protection will not be activated.

Frequently asked questions (FAQ)

Is it possible to unlock Android 6.0 without losing data?

In most cases, if you have forgotten the password and have not enabled USB debugging, you can unlock the device without losing data impossible. The only chance is to use the “Forgot Password” feature through your Google Account, if it is available on your lock screen. All other methods, including Hard Reset, delete all information.

What to do if the phone asks for a Google account after resetting (FRP)?

This is a normal anti-theft operation. You need to enter the login and password for the Google account that was synchronized with the phone before the reset. If you recently changed your password, wait 24 hours before trying to enter it again on a locked device.

Will calling a locked phone help unlock it?

On older versions of Android, there was a method when, when there was an incoming call, you could minimize the lock screen and get to the menu. On Android 6.0, this vulnerability has already been fixed in most firmware, so this method most likely will not work.

Is it safe to use unlocking apps from a computer?

Most free apps that promise “instant unlocking” are fraudulent or contain viruses. Paid utilities often simply automate the reset process via Recovery, which you can perform for free using buttons on the device itself. Be careful when downloading such software.

Will fingerprint unlocking work if I forgot my PIN code?

No. In Android 6.0, fingerprint is an additional means of authentication, but not the main one. After rebooting the device, the system always requires you to enter the main locking method (PIN, password or pattern). Without it, biometrics will not be activated.