Forgotten PIN code or purchased secondhand Android smartphone with blocking is a situation that thousands of users face every day. Unlike iPhonewhere unlocking without a password often requires contacting a service center, Android offers several ways to solve the problem - from official manufacturer tools to technical workarounds. However, it is important to understand: not all methods are safe, and some can lead to data loss or even device breakdown.

This article covers current unlocking methods for 2026including legal options for owners (via Google Account, Find My Device) and technical tricks for advanced users (mode Fastboot, ADB, reset via Recovery). We will also look at why some popular tips on the Internet (like โ€œcall a locked phoneโ€) do not work on modern versions Android 12-15, and what risks do โ€œgreyโ€ unlocking services pose.

Before you begin, answer honestly: you are the legal owner of the device? Unlocking someone else's smartphone without the owner's consent may violate Article 272 of the Criminal Code of the Russian Federation (illegal access to computer information). If the phone is found or purchased second-hand, first try contacting the previous owner.

๐Ÿ“Š How did you get a locked Android?
I bought it used and the seller did not reset it
Forgot my PIN/pattern
Found on the street/in transport
Given as a gift, but donโ€™t know the password
Another option

If you have forgotten PIN code on your device, start with legal methods. Manufacturers Android have provided several options for restoring access without losing data - but they only work if key conditions are met.

The most reliable method is to use Google Accountlinked to the device. However, with the release Android 5.0 Lollipop (and even more so in Android 12-15) the unlocking function through the account removed from the interface. However, it is saved in some firmware from manufacturers, for example, on Samsung or Xiaomi with proprietary shells One UI and MIUI respectively.

  • ๐Ÿ”‘ Find My Device โ€”a service from Googlethat allows you to reset your password remotely. Works if Remote control and Geolocationare turned on on the phone, and you also have access to the Internet.
  • ๐Ÿ“ง Recovery via email โ€”on some devices, after 5 incorrect entry attempts, the โ€œForgot your password?โ€ button appears. with a prompt to enter your email address.
  • ๐Ÿ“ž Reset via SIM card is an outdated method that worked for Android 4.4 and below. Modern smartphones do not support it.

On devices Samsung s One UI (for example, Galaxy S23, A54) after several unsuccessful input attempts PIN code an option Unblock via Samsung Accountmay appear. To do this:

  1. Enter the wrong PIN 5 times in a row.
  2. Click on the link that appears "Forgot your PIN?".
  3. Enter your login and password from Samsung Accountlinked to the device.
  4. Follow the instructions to create a new lock code.
๐Ÿ’ก

If there is no "Forgot your password?" button on the lock screen, try connecting your phone to Wi-Fi (if there is such an option) - sometimes this will activate additional recovery functions.

2. Unlocking via Google Find My Device (step-by-step guide)

Service Find My Device (official page) is the safest reset method PIN code for devices linked to Google Account. The method works even if you donโ€™t remember the phone password, but:

  • โœ… The device must be connected to the Internet (mobile data or Wi-Fi).
  • โœ… The function Find device must be activated in the settings (Settings โ†’ Google โ†’ Security โ†’ Find device).
  • โœ… You must know the login and password for Google Accountthat was last authorized on the phone.

Reset instructions:

  1. Go to the website Find My Device from a computer or another phone.
  2. Log in using the same Google Accountas on the locked device.
  3. In the list of devices, select the desired smartphone.
  4. Click Block device (yes, even if it is already blocked).
  5. Enter new temporary password (it will replace the current PIN code).
  6. Confirm the action. After 1-2 minutes, a field for entering a new password will appear on the phone screen.

If the device not connected to the network, the service will show its last known location, but you wonโ€™t be able to reset the password. In this case, try connecting the phone to the charger and waiting for Wi-Fi to appear - sometimes this will activate background processes.

What to do if Find My Device does not see the device?

If the phone is not displayed in the list, check:

- The account is correct (perhaps another Google profile was authorized on the device).

- Synchronization settings (on some firmware you need to manually enable the "Find Device" function).

- Internet connection (if the phone is in airplane mode, the service will not see it).

3. Reset via Recovery Mode (full data clearing)

If the official methods did not work, and access to the phone is needed urgently, you can still Hard reset through the recovery mode (Recovery ModeThis method Deletes all data from the device, including photos, messages and installed applications. Use it only as a last resort!

The procedure differs depending on the manufacturer. Below are universal instructions for most Android smartphones (including Samsung, Xiaomi, Google Pixel, OnePlus):

  1. Turn off the phone (press and hold the power button for 10-15 seconds).
  2. Press the combination of buttons to enter Recovery:
    • Samsung: Power + Volume up + Bixby (on new models - Power + Volume up).
    • Xiaomi/Redmi/Poco: Power + Volume up.
    • Google Pixel: Power + Volume down, then select Recovery Mode.
    • OnePlus: Power + Volume down.
  • In the menu Recovery use the volume buttons to select Wipe data/factory reset (on some devices you first need to select Advanced).
  • Confirm the action (Yes or Confirm).
  • After the reset, select Reboot system now.
  • After the reboot, the phone will be like new - you will need to go through the initial setup. If the device was activated FRP protection (Factory Reset Protection, after the reset you will need to enter the username and password from last Google Account.

    โ˜‘๏ธ Preparing to reset via Recovery

    Done: 0 / 4

    4. Unlocking via ADB (for experienced ones) users)

    Android Debug Bridge (ADB) - a debugging tool that allows you to control the device via the command line If on the phone USB debugging mode is enabled (Settings โ†’ For developers โ†’ USB debugging), you can try resetting PIN code without losing data. However, this method requires preliminary preparation and does not work on all firmware.

    Attention: with exit Android 11 and newer Google tightened the security policy, and many ADBcommands for unlocking stopped working. However, on some devices (especially with custom firmware) the method remains relevant.

    Instructions:

    1. Connect the phone to the computer via USB cable (original, not a cheap charger!).
    2. Open Command line (Windows) or Terminal (macOS/Linux) in the folder with ADB (you can download from official website).
    3. Check the device connection with the command:
      adb devices

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

    4. Delete the file from password (does not work on all devices!):
      adb shell rm /data/system/gesture.key
      

      adb shell rm /data/system/password.key

      adb shell rm /data/system/locksettings.db

      adb shell rm /data/system/locksettings.db-wal

      adb shell rm /data/system/locksettings.db-shm

    5. Reboot the device:
      adb reboot

    After rebooting, the lock screen may disappear, or a request to create a new one will appear. PIN codeIf the command does not work, try an alternative method via ADB:

    adb shell am start -n com.android.settings/.ChooseLockGeneric
    

    adb shell input text 1234 && adb shell input keyevent 66

    This command tries to set a new password. If the lock screen remains, try other combinations. 1234. If the lock screen remains, try other combinations.

    ๐Ÿ’ก

    The ADB method only works if USB debugging was enabled BEFORE locking the phone. If you have not activated this mode in advance, the method. useless.

    5. Unlocking via Fastboot (for devices with an unlocked bootloader)

    Mode Fastboot allows you to flash the device at a low level, including deleting PIN code. However, this method is only suitable for smartphones with unlocked bootloader (bootloader). On most serial devices, the bootloader is locked, and unlocking it leads to full reset (and on some models, for example, Xiaomirequires waiting 7-15 days after linking the account).

    If the bootloader is already unlocked (for example, on devices for developers or after rooting), follow the instructions:

    1. Turn off the phone.
    2. Hold the combination to enter Fastboot (usually Power + Volume down).
    3. Connect the device to the PC and check its detection:
      fastboot devices
    4. Delete files with passwords (similar to ADB, but through Fastboot):
      fastboot erase locksettings

      On some devices you may need:

      fastboot flash locksettings locksettings.img

      (where locksettings.img is an empty file that needs to be created in advance).

    5. Reboot the phone:
      fastboot reboot

    If the bootloader is locked, unlocking it will reset all data on the phone. devices Xiaomi for this you will need:

    1. Link your account Mi Account to the phone (if not done earlier).
    2. Apply for unlocking through official tool.
    3. Wait 7-15 days (the period depends on the model).
    4. Unlock the bootloader with the command:
      fastboot oem unlock
    ๐Ÿ’ก

    On devices Google Pixel unlocking the bootloader resets all data, but does not require waiting. Use the command fastboot flashing unlock.

    6. Alternative methods and myths about unlocking

    On the Internet you can find dozens of โ€œsecretโ€ unlocking methods Android, but most of them are either outdated or simply don't work. Let's consider the most popular myths and real alternatives.

    Myth Reality Alternative
    You can call a locked phone and unlock it through a call. On Android 5.0+ this method does not work. The lock screen is not removed during a call. Use Find My Device or ADB (if debugging is enabled).
    Using SIM cards and the PUK code can be reset password. PUK code unlocks only SIM cardand not the phone itself. Try resetting via Recovery (but this will delete the data).
    There are "universal" unlock codes for all Android. There are no such codes. Each PIN or graphic key is unique. Contact the service center with proof of ownership.
    You can connect the keyboard via OTG and enter the password blindly. On new versions Android This is blocked by the security system. Use ADB (if debugging is enabled).

    Another common tip is to fool the fingerprint sensor. This method: freeze the phoneto fool the fingerprint sensor. This method:

    • โ„๏ธ Worked on some older models (for example, Samsung Galaxy S6), but is not relevant for modern smartphones.
    • โš ๏ธ May damage the screen or battery due to condensation.
    • ๐Ÿšซ On Android 10+ is blocked by software.

    If none of the methods worked, there are two options left:

    1. Contact the service center with documents confirming the purchase.
    2. Use paid unlocking services (for example, Dr.Fone, Tenorshare 4uKey). However, their effectiveness varies, and some may be fraudulent.
    How to check the reliability of an unlocking service?

    Before paying, check:

    - Availability of reviews on independent sites (for example, Trustpilot).

    - Money back guarantee if unsuccessful.

    - Support for your phone model (some services only work with certain brands).

    7. How to avoid blocking in the future

    The best way to deal with a blocked phone is preventionHere. Some tips to help avoid problems:

    • ๐Ÿ” Use biometric authorization (fingerprint or facial recognition) in addition to PIN code.
    • ๐Ÿ“ Write down the password in a safe place (for example, Google Keep or 1Password).
    • ๐Ÿ”„ Make regular backups via Google Drive or Samsung Cloud.
    • ๐Ÿ”ง Enable USB debugging (in case you need ADB).
    • ๐Ÿ“ฑ Link your phone to Google Account and activate Find My Device.

    On devices Samsung can be configured backup PIN code to unlock with a fingerprint:

    1. Go to Settings โ†’ Biometrics and security โ†’ Fingerprints.
    2. Select Backup PIN.
    3. Create an alternative password (for example, date of birth).

    On Xiaomi it is useful to activate Mi Cloud and link your account. This will allow you to unlock the device via web interface (similar to Find My Device).

    ๐Ÿ’ก

    Even if you use a pattern key, set a backup PIN code. On some devices, after 5 incorrect attempts, the system requires you to enter exactly this.

    FAQ: Frequently asked questions about unlocking Android

    Is it possible to unlock the phone without losing data?

    Yes, but only if:

    • The phone is enabled USB debugging and there is access to ADB.
    • The device is linked to Google Account or Samsung Account, and the service Find My Device sees it on the network.
    • You are using specialized software (for example, Dr.Fone), which supports your model.

    In all other cases, data reset is inevitable.

    What to do if, after resetting via Recovery, the old Google account (FRP) is required?

    This Factory Reset Protection (FRP) is a security feature that is activated after a reset on devices with Android 5.1+. To bypass it:

    1. Enter the details of the last Google Accountthat was on the phone.
    2. If you donโ€™t remember your account, try using access recovery.
    3. For some models (for example, Samsung) there are workarounds through ODIN or Combination Firmware, but they require technical skills.

    โš ๏ธ Attention: Services offering โ€œFRP bypass in 5 minutesโ€ are often fraudulent. Beware of sites that require payment for โ€œinstructions.โ€

    Does unlocking work through service codes? devices they##)?

    No. Service codes like ##7780## or *2767*3855# either outdated or performing a factory reset (which is equivalent to the method via Recovery). On modern devices they do not remove the screen lock.

    The exception is codes for checking IMEI (*#06#) or testing equipment, but they will not help with unlocking.

    Is it possible to unlock a phone through a computer without ADB?

    Without ADB there are few options, but there are several alternatives:

    • ๐Ÿ–ฅ๏ธ Unlocking apps (for example, Tenorshare 4uKey for Android, iMyFone LockWiper). They are paid, but support many models.
    • ๐Ÿ”ง Firmware via Odin (for Samsung) or Fastboot (for Google Pixel, OnePlus). Requires an unlocked bootloader.
    • ๐Ÿ“ฑ Bypass via Safe Mode โ€”on some devices you can boot into safe mode and delete blocking application (if it is third-party).

    Without technical skills, it is better to contact a service center.

    What happens if you enter the PIN code incorrectly 10 times?

    Depends on the manufacturer and version Android:

    • Samsung: After 15 incorrect attempts, it will offer unlocking via Samsung Account.
    • Xiaomi: After 5 attempts - a timeout of 30 seconds, after 10 - a requirement to enter Mi Account.
    • Google Pixel: After 20 attempts - complete blocking, a reset is required.
    • OnePlus: After 5 attempts - an offer to use backup PIN.

    On most devices, after repeated incorrect entries, a message appears about the need to reset.