A โโblocked smartphone on Android is a problem that every fifth user faces. The reasons are different: a forgotten pattern key, an incorrectly entered PIN code after flashing, activation of factory protection after a reset, or even blocking by the operator for non-payment. Depending on the situation, the unlocking methods are radically different - from simply entering a backup PIN to complex manipulations with the firmware via recovery mode.
This article covers all current methods of unlocking, including official (via Google Find My Device) and alternative (using ADB or Fastboot). We will analyze which actions are safe for data and which will lead to a complete reset, and also warn about risks that are often silent in other guides. For example, on devices with a chip Qualcomm Snapdragon 8 Gen 2 and newer, blocking through FRP (Factory Reset Protection) can make the phone a โbrickโ after an incorrect reset..
Before you begin, answer two key questions: 1. Do you remember the data from Google accountlinked to the phone? 2. Is the data on your device important to you, or are you willing to lose it in order to unlock it?
The answers determine which section you should start with.
1. Unlocking via Google Find My Device (official method)
The most reliable method if the phone is turned on geolocation services and it is connected to the Internet. The method works on all devices with Android 5.0+, but requires preliminary linking Google account.
Instructions:
- ๐ Go to the website Google Find My Device from a computer or another phone.
- ๐ Log in using the same account as on the locked device.
- ๐ฑ Select your smartphone in the list of devices. If it is not there, check whether it is enabled
Settings โ Google โ Security โ Find device. - ๐ Click "Lock device" and enter a new temporary password (it will replace the current block).
After this, the phone will be unlocked, but you will need to enter a new password. If the device is offline, the command will be executed the next time it connects to the network.
โ ๏ธ Attention: On some models Xiaomi and Huawei after unlocking via Find My Device additional authorization may be required in Mi Account or Huawei ID. Without it, the phone will be blocked again after 24 hours.
If the phone is not displayed in Find My Device, try turning it on through another user: ask a friend to log in to their device under your account and activate the "Find device" option remotely.
2. Reset via Recovery Mode (data loss)
If you do not remember the data from Google account or the phone is not connected to the Internet, remains hard reset via Recovery Mode. This method will delete all data, including photos, messages and installed applications, but will restore access to the device.
How to log in Recovery Mode:
- ๐ Turn off the phone (press the power button for 10 seconds).
- ๐ Press the combination of buttons:
- Samsung:
Volume up + Power + Bixby(if any) - Xiaomi/Redmi:
Volume up + Power - Google Pixel:
Volume down + Power
- Samsung:
- ๐ฑ Release the buttons when the logo or menu appears
Recovery.
In the recovery menu:
- Use the volume buttons to navigate and the power button to select.
- Select "Wipe data/factory resetยป โ ยซYesยป.
- After reset, select "Reboot system nowยป.
โ ๏ธ Attention: On devices with Android 11+ after a reset, FRP lock (Factory Reset Protection) may work. It will require you to enter data from the last linked Google account. If you donโt remember them, the phone will remain locked!Disconnect the SIM card and memory card (if they are not needed)
Charge the phone at least by 30%
Make sure you know the data from your Google account (for FRP)
Prepare a backup copy (if the phone was previously synchronized with Google)
-->
3. Unlocking via ADB (for advanced users)
Android Debug Bridge (ADB) is a debugging tool that allows you to control your phone through a computer. The method only works if the phone USB debugging mode is enabled (
Settings โ For developers โ USB debugging).If debugging was activated before blocking, follow the instructions:
- ๐ฅ๏ธ Install Android SDK Platform-Tools to your computer.
- ๐ฑ Connect your phone to the PC via a USB cable.
- ๐ Open the command line (
Win + Rโ entercmd) and execute commands:adb devices(your device should be displayed)
adb shell rm /data/system/gesture.key(for a pattern) or
adb shell rm /data/system/password.key(for PIN/password)
- ๐ Restart your phone. After turning on, the lock will disappear.
If the commands did not work, try an alternative method:
adb shell am start -n com.android.settings/.ChooseLockGenericThis command will open the lock change menu where you can set a new PIN.
โ ๏ธ Attention: On Android 10+ Google has tightened the protection and removalgesture.keymay not work. In this case, only a reset viaFastboot(see the next section) will help.What to do if ADB does not see the device?
If the command
adb devicesreturns empty list:1. Make sure the cable is working (try another one).
2. Check if drivers are installed for your model (for example Samsung USB Drivers for Samsung phones).
3. Switch the USB connection mode on your phone (if possible) to โFile transferโ (
MTP).4. Try another USB port (preferably
USB 2.0).4. Unlocking via Fastboot (for devices with an unlocked bootloader)
The method is suitable for phones with unlocked bootloader (bootloader).If the bootloader is locked (by default on most devices), this method will not work without first unlocking it, which will lead to data reset.
Instructions:
- ๐ Connect the phone to the PC and transfer it to mode
Fastboot:
- Turn off the device.
- Hold
Volume down + Power(for most models).๐ฅ๏ธ In the command line, run: fastboot devices(your device should be displayed)
fastboot erase frp(removes FRP lock)
fastboot rebootIf you need to reset pattern key or PIN:
fastboot flash userdata userdata.img(file
userdata.imgcan be extracted from the official firmware for your model).
Phone model Unlock command Is unlocking required bootloader? Google Pixel fastboot flashing unlockfastboot erase frpYes Samsung Galaxy (Exynos) fastboot erase userdataNo (but will reset the data) Xiaomi Redmi/POCO fastboot erase persistfastboot rebootYes (on new models) OnePlus fastboot oem unlockfastboot erase frpYes Unlocking the bootloader (
fastboot oem unlock) on modern devices causes a complete data reset and may void the warranty. On some models (for example, Samsung c Knox) this will also disable the Samsung Pay i Secure Folder.5 functions. Using service codes (for older models)
On phones up to Android 9 sometimes work service codes to reset the lock. These codes are unique to each manufacturer and often depend on the firmware version.
Popular codes:
- ๐ Samsung:
##7780##(soft reset) or*2767*3855#(full reset, deletes everything!).- ๐ HTC:
##3424##(pattern reset).- ๐ Huawei:
##2846579##โ ยซProjectMenuยป โ ยซRecoveryยป.How to enter codes:
- Open the standard "Phone" application.
- Enter the code as a phone number and click "Call".
- Confirm reset if appears request.
โ ๏ธ Attention: Service codes may not work on new devices or may lead to loss of IMEI (which will make the phone unusable for calls). On Samsung s One UI 4.0+ these codes are disabled.6. Contacting the service center (warranty cases)
If none of the methods helped, all you have to do is contact official service center. This is relevant in cases:
- ๐ FRP blocking without access to Google account.
- ๐ก๏ธ Blocking by the operator (for example, for non-payment of a loan on the phone).
- ๐ง Hardware damage (for example, the screen does not work, but the phone is locked).
What is required to unlock:
- ๐ Owner's passport.
- ๐ Receipt or warranty card (if phone is under warranty).
- ๐ฑ Device IMEI (can be found through the box or sticker under the battery).
The cost of the service varies:
Lock type Average cost (โฝ) Completion time Reset pattern/PIN 500โ1500 10โ30 minutes FRP-lock (without receipt) 1500โ3000 1โ2 hours Operator blocking 2000โ5000 1โ3 days Hardware repair + unlocking 3000โ10000 2โ5 days โ ๏ธ Attention: Unofficial services may offer โunblocking in 5 minutesโ through suspicious software. This often leads to spyware being installed or the phone breaking. Contact only authorized centers.Reset via Recovery|Google Find My Device|ADB/Fastboot|Service Center|Nothing helps-->
7. Alternative methods (with risk to data)
If standard methods do not work, you can try unofficial solutions, but they are fraught with data loss or system damage.
Method 1: Firmware via Odin (for Samsung)
- ๐ฅ๏ธ Download the official firmware for your model from the website SamFW.
- ๐ฅ Install the app Odin.
- ๐ฑ Switch the phone to mode
Download Mode(Volume Down + Power + Home).- ๐ง Connect to your PC and flash the files via Odin (checkboxes:
BL,AP,CP,CSC).Method 2: Using utilities like Dr.Fone or Tenorshare 4uKey
These apps promise unlocking without data loss, but:
- ๐ฐ Cost from 1000 to 3000 rubles.
- ๐ก๏ธ May contain malware.
- โ ๏ธ Do not work on Android 12+ due to enhanced protection.
Method 3: Exploits for specific models
On forums like XDA Developers sometimes they publish vulnerabilities to bypass the blocking. For example, for Samsung Galaxy S10 there was an exploit via
Combination FirmwareHowever:
- ๐งTechnical skills required.
- ๐จ May lead to brick (total inoperability) of the phone.
- ๐ต Works only on older versions firmware.
Frequently asked questions (FAQ)
โ Is it possible to unlock the phone without losing data?
Yes, but only if:
- You have it turned on USB debugging and have access debugging via USB data-i="244">(in new versions the protection is stricter).
ADB.- The phone is connected to the Internet, and you remember data from Google account (method with Find My Device).
- Installed on the device Android 8.0 or older (on new versions the protection is stricter).
In all other cases, the data will be lost.
โ What to do if after resetting the phone asks for the old Google account (FRP)?
This Factory Reset Protection (FRP) โprotection against theft. Solution options:
- Enter the data from the last linked account.
- If you donโt remember the password, restore it via Google Account Recovery.
- To bypass FRP on some models, firmware via
Fastboot(see section 4) helps. data-i="254">Contact the service center with documents for your phone.- Contact the service center with the documents on your phone.
โ ๏ธ Attention: Methods of bypassing FRP through "holes" in the firmware often lead to blocking of your Google account for suspicious activity.
โ Why mobile phones stopped working after unlocking network?
This can happen for two reasons:
- Loss of IMEI - often happens after incorrect firmware via
FastbootorOdin. It can be solved by restoring IMEI through the engineering menu (##4636##) or a service center.- Operator blocking โif the phone was on credit or lease, the operator can remotely turn off the network. Check the status via
*#06#(IMEI must match what is on the box).โ Is it possible to unlock the phone if the screen is broken and the sensor does not work?
Yes, but you will need:
- ๐ฅ๏ธ Connect the phone to the PC and control via
ADB(if debugging was enabled).- ๐ Use an OTG cable and connect a mouse (on some phones the sensor is replaced by a cursor).
- ๐ง Replace the display at a service center (if the data is important).
If the screen is completely black, but the phone turns on (vibrates, makes sounds), try connecting it to an external monitor via USB-C/HDMI (on supported models).
โ Is it legal to use unlocking apps?
From a legal point of view view:
- โ Unlocking own phone is legal.
- โ Bypassing blocking on others devices (for example, found or purchased "from hand") may qualify as a violation of Art. 272 of the Criminal Code of the Russian Federation (โIllegal access to computer informationโ).
- โ ๏ธ apps like Dr.Fone often violate Google license agreements, which can lead to account blocking.
We recommend using only official methods or contact service centers.