A lock key on Android is a security feature that protects your smartphone from unauthorized access. But sometimes it becomes a problem: you forgot your password, bought a used phone with someone else's PIN code, or encountered a software glitch. In such cases, unlocking turns into a real headache.

Methods of disabling the lock key depend on the phone model, Android version and type of protection (PIN, pattern, fingerprint). In this article we will look legitimate methods from simple settings to radical reset. Important: some actions lead to data loss, so try safe options first.

If you are not sure of your actions, it is better to contact a service center - especially if important data is stored on the phone. But if you're willing to take the risk, follow the instructions below. Let's start with the most gentle methods and gradually move on to more complex ones.

1. Disabling the lock key through settings (if the phone is unlocked)

If you remember your current password or PIN, the easiest way is to change the lock settings through the Android menu. This method works on all versions of the system, including Android 13 and Android 14.

Here are step-by-step guide:

  • ๐Ÿ”“ Open Settings on the phone.
  • ๐Ÿ“ฑ Go to the section Security and privacy (on some devices - simply Security).
  • ๐Ÿ”‘ Select Screen lock or Lock type.
  • ๐Ÿ“ฒ Enter the current PIN/password/pattern to confirm.
  • ๐Ÿšซ Press No or Deleteto completely disable the blocking.

On some devices (for example, Samsung Galaxy or Xiaomi Redmi), additional confirmation may be required via Google account or fingerprint. If the system asks for the old password, but you have forgotten it, go to the next section.

๐Ÿ’ก

If you have the function enabled Smart Lock, try unlocking your phone through a trusted device (for example, a smart watch) or in a safe place (home/work).

2. Using a Google account (for Android 4.4โ€“9.0)

On older versions of Android (before Android 10) there was a built-in mechanism for resetting the lock via account Google. If you enter the password incorrectly several times, the system will offer the option Forgot your pattern key? or Forgot your password?.

How it works:

  1. Enter the wrong PIN/pattern 5-10 times in a row.
  2. A message will appear on the screen Forgot your pattern? - click on it.
  3. Enter the data from yours Google account, which is tied to the phone.
  4. Follow the instructions to reset the lock.

โš ๏ธ Attention: Starting from Android 10 and newer this method does not work โ€”Google has removed the function due to security vulnerabilities. If you have a modern smartphone (Samsung S22, Google Pixel 7, OnePlus 11 etc.), skip this section.

๐Ÿ“Š What version of Android does your phone use?
Android 10 or newer
Android 9.0 (Pie)
Android 8.0 (Oreo)
Android 7.0 (Nougat) or older

3. Unlocking via ADB (for advanced users)

ADB (Android Debug Bridge) is a tool for debugging Android devices via a computer. If your phone was previously enabled Developer mode i USB debugging, you can try to remove the lock using the command.

What you will need:

  • ๐Ÿ’ป Computer with installed ADB drivers.
  • ๐Ÿ”Œ USB cable (preferably original).
  • โš™๏ธ Enabled USB debugging on the phone (if the phone has been unlocked at least once).

Instructions:

  1. Connect your phone to the computer via USB.
  2. Open the command line (cmd on Windows or Terminal on macOS/Linux).
  3. Enter command to check the connection:
    adb devices

    If the device is displayed in the list, proceed further.

  4. Delete the file with the lock key (does not work on all firmware):
    adb shell rm /data/system/gesture.key

    or for the PIN code:

    adb shell rm /data/system/password.key
  5. Reboot the phone:
    adb reboot

After rebooting, the screen lock should disappear. If not, try repeating the command or move on to the next method.

Install ADB drivers on your PC|Enable USB debugging on your phone (if possible)|Prepare an original USB cable|Download the Platform Tools utility from the Android Studio website-->

4. Reset via Recovery Mode (data loss)

If the previous methods did not work, a radical method remains - reset to factory settings via Recovery Mode. This method will delete all data from your phone, including photos, contacts, and apps. Use it only as a last resort!

How to start Recovery Mode:

  • ๐Ÿ“ด Turn off the phone.
  • ๐Ÿ”˜ Press the combination of buttons (depending on the model):
    • Samsung: Power + Volume up + Bixby
    • Xiaomi/Redmi/Poco: Power + Volume up
    • Google Pixel: Power + Volume down
    • OnePlus: Power + Volume down
  • ๐Ÿ”„ Wait for the logo Recovery Mode.

Next:

  1. Use the volume buttons to navigate and the power button to select.
  2. Select Wipe data/factory reset (on some devices - Clear eMMC).
  3. Confirm the action (Yes).
  4. After the reset, select Reboot system now.

โš ๏ธ Attention: On some phones (for example, Samsung s Knox) after the reset it may work FRP protection (Factory Reset Protection) In this case, you will need to enter data from the previously linked one. Google account.

What is FRP protection?

FRP (Factory Reset Protection) is a security feature from Google that is activated after a factory reset. Google account, after a hard reset the system will ask for a login and password. This protects the device from theft, but can make it difficult to unlock if you do not remember your account details. On some firmwares (for example, on Xiaomi with MIUI) FRP can be bypassed through special utilities, but this requires technical skills.

5. Bypassing the blocking through service codes (for some models)

Some manufacturers leave Service codes to reset the blocking. This method does not work on all devices and may depend on the firmware version. Below are the current codes for popular brands:

Brand Service code Action Note
Samsung #0# Display test (sometimes allows you to bypass the pattern) Works on older models (until 2018)
Xiaomi/Redmi ##7780## Reset settings (without deleting data) Does not always remove the screen lock
Huawei/Honor ##2846579## Service menu (reset lock is possible) Requires additional actions in the menu
LG 3845#*model# (replace model with your model number) Reset lock (only for old models) Does not work on new ones devices

โš ๏ธ Attention: Entering service codes can lead to unstable operation of the phone or reset of network settings. Use them at your own risk!

๐Ÿ’ก

Service codes are not a universal solution. Most modern smartphones block such commands to protect user data.

6. Contacting a service center: when nothing helps

If all of the above methods did not work, the last option remains - contact official service center or phone repair specialists. This is especially true in cases:

  • ๐Ÿ”’ The phone is blocked via Find My Device (remote blocking from Google).
  • ๐Ÿ›ก๏ธ Activated FRP protection, and you donโ€™t remember account data.
  • ๐Ÿ“ฑ The device has hardware locking (for example, after theft).
  • โš™๏ธ You are not confident in your technical skills and are afraid of damaging the phone.

Cost unlocking in the service depends on the model and complexity of the work. For example:

  • Samsung Galaxy S23 - from 1500 to 3000 rubles.
  • Xiaomi Redmi Note 12 - from 1000 to 2000 rubles.
  • Google Pixel 7 - from 2500 rubles (due to complex protection).

Before visiting service:

  • ๐Ÿ“„ Take documents for your phone with you (if it is under warranty).
  • ๐Ÿ” Check whether the data will be saved after unlocking (usually not).
  • ๐Ÿ’ณ Ask about the cost in advance - some services even charge for diagnostics.
๐Ÿ“Š Would you prefer to unlock the phone yourself or contact the service?
On my own (I save money)
To the service (I donโ€™t want to risk it)
I would try it myself, and if it doesnโ€™t work, go to the service
Depends on the phone model

FAQ: Frequently asked questions about unlocking Android

Is it possible to unlock a phone without losing data?

Yes, but only if you have it turned on USB debugging and have access to a computer s ADB. In other cases (reset via Recovery, FRP) the data will be deleted. If there is important information on the phone, try removing the SD card (if any) or connecting the device to the PC in MTP (if unlocking is temporarily available).

What to do if after resetting it asks for an old Google account (FRP)?

This Factory Reset Protection is protection against theft. To bypass it:

  1. Enter data from the last linked account.
  2. If you donโ€™t remember your password, recover it via Google recovery page.
  3. On some firmware (for example, Xiaomi) you can use Mi Account instead of Google.
  4. If all else fails, contact the service (bypassing FRP often requires special software).
Do Android unlocking apps work? (for example, Dr.Fone, iMyFone)?

apps like Dr.Fone LockWiper or iMyFone LockWiper can help, but:

  • โœ… Not all models are supported (especially new ones Samsung and Google Pixel).
  • โŒ Often require payment (from 30 to 100 dollars).
  • โš ๏ธ May contain malware (download only from official sites).
  • ๐Ÿ”ง They do not guarantee 100% results - sometimes they just perform a reset via ADB.

Before purchasing such a app, check the reviews and compatibility with your model.

Is it possible to unlock a phone if it is stolen or lost?

No, if the phone is locked via Find My Device or has FRP protectionattempts to bypass the lock on someone else's. device: FRP protection (for example,

  • ๐Ÿšซ They violate the law (Article 272 of the Criminal Code of the Russian Federation - unlawful access to information).
  • ๐Ÿ”’ May lead to complete data loss.
  • ๐Ÿ“ต Some operators (for example, MTS, Beeline) block IMEI at the request of the owner.

If you find someone else's phone, it is better to hand it over to the police or a communication store.

How to avoid problems with blocked in the future?

To avoid being blocked again:

  • ๐Ÿ” Use password manager (for example, 1Password or Bitwarden) to store PIN codes.
  • ๐Ÿ“ฑ Configure Smart Lock (unlocking in secure places).
  • ๐Ÿ”„ Do regularly data backup (via Settings โ†’ Google โ†’ Backup).
  • ๐Ÿ“ง Link to phone spare email for recovery.
  • โš™๏ธ Enable Settings โ†’ System โ†’ Options developer โ†’ USB debugging (in case of unlocking via ADB).