Forgotten password on Samsung Galaxy is a situation faced by every fifth smartphone user. The main problem is not the blocking itself, but the risk of losing photos, contacts and other important data when resetting the settings. Fortunately, there are legal ways to bypass blocking without losing informationif you act carefully and use the right tools.

In this article we will look at 5 proven methods unblocking Samsung based on Android 10-14including the use of ADB, account Samsung, mode Safe Mode and bypass Google FRP (Factory Reset Protection). We will pay special attention to the nuances for different models - from Galaxy S21 to Galaxy A54, and also warn against popular errors that can lead to a complete data reset.

Important: all the described methods only work if you follow two conditions: 1) USB debugging is enabled on the phone (for methods with ADB), 2) you remember the data from your account Google or Samsunglinked to the device.

If none of the conditions are met, the chances of saving data tend to zero - you will have to use Hard Reset.

๐Ÿ“Š Which Samsung model is blocked?
Galaxy S series (S23/S22/S21)
Galaxy A series (A54/A34/A14)
Galaxy Note
Galaxy Z (folding)
Other model

1. Unlocking through a Samsung account (method for devices with Knox)

The easiest and most official way is to use the function "Find my mobile" (Find My Mobile) from Samsung. This method works on all devices with the service installed Knox (almost all models after 2016). The main condition: the phone must be connected to the Internet (via a mobile network or Wi-Fi).

Instructions:

  • ๐ŸŒ Go to the site Find My Mobile from a computer or other device.
  • ๐Ÿ”‘ Log in using the same account Samsungthat is linked to the locked phone.
  • ๐Ÿ“ฑ In the list of devices, select your Galaxy and click "Unlock" (Unlock).
  • โœ… Confirm the action via SMS or email (if two-factor authentication is enabled).

After 1-2 minutes, the phone will unlock automatically. This method does not require data reset and works even if you do not remember the pattern or PIN code. However, if the function is enabled on the device "Network blocking" (for telecom operators), an additional PUK code may be required.

โš ๏ธ Attention: If you have previously disabled the service Find My Mobile in the phone settings, this method will not work. Also, the method is not suitable for devices with rooted firmware or custom recovery.

The phone is connected to the Internet (Wi-Fi/mobile data)

Samsung account is linked to the device

Two-factor authentication is disabled or available

The device is not in "Offline" mode (check in the list of devices)

-->

2. Using ADB (for users with debugging enabled)

If your Samsung Galaxy is enabled USB debugging (USB Debugging, you can delete the file with the password via ADB (Android Debug Bridge). This method requires minimal technical skills but is guaranteed to save all data. Suitable for Android 10-13; Android 14 there may be restrictions due to new security rules.

Step-by-step guide:

  1. Download and install ADB Tools on your computer.
  2. Connect your phone to the PC via a USB cable (original or certified).
  3. Open the command line (cmd) in the folder with ADB and enter:
adb shell

su

rm /data/system/gesture.key

rm /data/system/password.key

rm /data/system/locksettings.db

rm /data/system/locksettings.db-wal

rm /data/system/locksettings.db-shm

reboot

After rebooting, the phone will be unlocked. If you are prompted to enter a password, simply swipe your finger across the screen (the password will be reset).

โš ๏ธ Attention: On some models Samsung (for example, Galaxy S22 Ultra) password files may be stored in a different location. If the command does not work, try deleting the files in the folder /data/system/device_policies.xml.
Samsung model ADB unlock support Notes
Galaxy S20/S21/S22 Yes Requires confirmation of superuser rights (su)
Galaxy A52/A72 Yes On Android 12+ you may need to disable OEM Unlock in the settings
Galaxy Note 10/20 Partially On some firmware, access to data-i="111">No /data/system/
Galaxy Z Flip/Fold No Knox protection blocks changes via ADB
๐Ÿ’ก

If command su doesn't work, try to get root access through Magisk or KingRoot first. But remember: rooting resets Knox and may void your warranty.

3. Safe Mode: bypassing the block through third-party launchers

If a third-party launcher is installed on your phone (for example, Nova Launcher or Microsoft Launcher), you can try to bypass the blocking through Safe Mode. This method works because safe mode disables all third applications, including some blocking modules.

How to do it:

  • ๐Ÿ”„ Turn off the phone (press and hold the power button + Volume Down for 10 seconds).
  • ๐Ÿ”ง Hold button volume down, turn on the device - the message will appear "Safe Mode" in the lower left corner.
  • ๐Ÿ“ฑ In safe mode, try changing the launcher to the standard one (Settings โ†’ Applications โ†’ Default launcher).
  • ๐Ÿ”“ If the unlock screen does not appear, go to Settings โ†’ Security โ†’ Lock type and change the password.

This method works in ~30% of cases and depends on the version Android and phone model. On Galaxy S23 and newer the method usually does not work due to enhanced protection. Knox.

Why does Safe Mode not always help?

On new versions of Android (12+), screen locking is handled by the system process com.android.systemui, which remains active even in Safe Mode. Therefore, bypassing via launchers only works on old firmware or custom builds.

4. Bypassing Google FRP (Factory Reset Protection) after a reset

If you have already done Hard Reset (for example, via Recovery Mode), but the phone requires you to enter data from the previous account Google is FRP blocking. It can be bypassed without losing data if you have access to a SIM card or computer.

Ways to bypass FRP:

  • ๐Ÿ“ž Via SIM card: Insert a SIM with active Internet, dial #0# โ†’ LCD test โ†’ press the screen 10 times โ†’ a menu will appear where you can enable USB debugging.
  • ๐Ÿ–ฅ๏ธ Via PC: Use apps like FRP Bypass APK (requires USB debugging). Download APK file, transfer to your phone and install via ADB:
adb install frp_bypass.apk

adb shell am start -n com.example.frpbypass/.MainActivity

After installation, the application will help you add a new account Google and bypass the blocking. Important: this method only works on Android 10-11. Android 12+ Additional actions with the patch will be required libfrp.so.

โš ๏ธ Attention: Using third-party APKs to bypass FRP may be considered a violation of Google's license agreement. We recommend this method only for unlocking your own devices.

5. Alternative methods: OTG cable and service codes

If none of the above methods worked, you can try lesser-known techniques. They are suitable for specific cases and require additional equipment.

Method 1: OTG cable + mouse

  • ๐Ÿ–ฑ๏ธ Connect the OTG cable and USB mouse to the phone.
  • ๐Ÿ” On the lock screen, right-click โ†’ select "Add user".
  • ๐Ÿ‘ค Create a new user (without password) and go to his profile.
  • ๐Ÿ”ง In the new user settings, reset the main account password.

Method 2: Samsung Service Codes

Some models Samsung support hidden codes for resetting the lock:

  • *#0808# โ€” resetting USB settings (can help with problems with ADB).
  • *#7284# โ€” resetting data without deleting files (works on Galaxy S8/S9).
  • *#9900# โ€” access to system logs (sometimes allows you to bypass the lock).

These codes are not officially documented and may not work on new models. Their use is at your own discretion fear and risk.

๐Ÿ’ก

Service codes are โ€œloopholesโ€ in the firmware that Samsung closes with each update. On Android 13+, most of them are disabled.

What to do if nothing helps?

If all of the above methods do not work, there are two options left:

  1. Contact a Samsung service center with proof of ownership (receipt or box). They can unlock the phone through official tools, but this is a paid service (from 1,500 to 5,000 rubles depending on the model).
  2. Reset data via Recovery Mode:
    • Turn off the phone.
    • Press Volume Up + Power + Bixby (or Volume Up + Power for new models).
    • In the recovery menu, select Wipe data/factory reset.

In both cases, the data will be lost To avoid such situations in. in the future, set automatic backup to Settings โ†’ Accounts and archiving โ†’ Backup and recovery.

โš ๏ธ Attention: On phones with Android 14 and chip Exynos 2200 (for example, Galaxy S23), resetting via recovery can lead to the bootloader being locked. In this case, you will need firmware via Odin.

FAQ: Frequently asked questions about unlocking Samsung

โ“ Is it possible to unlock Samsung without losing data if USB debugging is disabled?

No, if debugging is disabled, then the only working methods are Find My Mobile (if the account is linked) or a service center. All other methods require either ADB, or root access, which also needs debugging.

โ“ Why does the phone require a password again after resetting via ADB?

This happens if you have not deleted all password files. Check that you have deleted: /data/system/gesture.key, /data/system/password.key, /data/system/locksettings.db*.

If the problem persists, try also deleting /data/system/device_policies.xml.

โ“ Does unlocking via Safe Mode work on the Galaxy S23?

No, starting with Android 13 and model Galaxy S22/S23, Samsung blocked the opportunity bypassing the blocking via Safe Mode. This method is only relevant for devices on Android 10-11.

โ“ Is it possible to restore data after a Hard Reset?

Theoretically, yes, but only if backup to Google Drive or Samsung Cloudwas enabled before the reset. Otherwise, the data cannot be recovered - it is encrypted with a hardware key that is reset.

โ“ Is it legal to use apps to bypass FRP?

From a legal point of view - yes, if you unlock yours the phone. However, Google and Samsung may regard this as a violation of the user agreement, which theoretically voids the warranty. For other people's devices, this qualifies as hacking (Article 272 of the Criminal Code of the Russian Federation).