Forgot your pattern key or PIN code from your smartphone? The situation is familiar to many: the phone is blocked after several unsuccessful entry attempts, but important data - photos, contacts, messages - remains inside. Reset the password on Android without losing data possible, but requires strict adherence to instructions and an understanding of the risks. In this article we will look at 5 official and unofficial methodsthat work on most devices from Samsung, Xiaomi, Huawei, Google Pixel and other brands.
Important: not all methods are universal. Efficiency depends on the version Android (from 5.0 Lollipop to 14), device model and the presence of root access. If the phone is linked to an account Google or Mi Account, the chances of success are higher. And now - to the point.
1. Unlocking via Google account (for Android 4.4 and older)
The easiest method is to use a linked account Google. It works on devices from Android 4.4 KitKat to 7.0 Nougat, but on new versions (starting from 8.0 Oreo) this method is often disabled by default.
If, after 5 unsuccessful attempts to enter the password, the button "Forgot your password?" or "Forgot your graphic key?" appears on the screen, you are in luck. Click on it and enter the data from the account Googlethat was linked to the phone. The system will prompt you to create a new PIN or graphic key.
- ๐น Works on: Samsung Galaxy S5/S6, LG G3/G4, Sony Xperia Z3 and other devices from 2014โ2016.
- โ Does not work on: smartphones with
Android 8.0+, if the manufacturer removed this function (for example, Xiaomi after an updateMIUI 10). - โ ๏ธ Limitation: Internet connection required (Wi-Fi or mobile network).
โ ๏ธ Attention: On some devices Huawei and Honor after resetting the password via Google you may need to re-authorize in applications (for example, in WhatsApp or banking services).
If there is no button, try entering any password 5-10 times in a row. On some firmware this will prompt you to enter data "Forgot your password?" no, try entering any password 5-10 times in a row. On some firmware this will prompt you to enter data Google. Please note that after repeated unsuccessful attempts, the phone may be locked for 30 seconds.
2. Using the Find My Device function
Service "Find device" from Google allows you not only to track phone, but also reset lock password. The method works if:
- ๐ฑ The device is turned on and connected to the Internet.
- ๐ Function "Find device" activated in settings (
Settings โ Google โ Security โ Find device). - ๐ You remember the account details Googlelinked to the phone.
Instructions:
- Go to the website
google.com/android/findfrom a computer or another phone. - Login using the same account Googleas on the locked device.
- Select your smartphone from the list of devices.
- Click "Lock device" (yes, exactly block, not erase!).
- Enter a new temporary password (for example,
123456) and confirm. - On a locked phone, enter this temporary password - the device will be unlocked.
โ ๏ธ Attention: On some devices Samsung sOne UI 5.0+this method may not work due to additional protection Samsung Knox. In this case, try the method withADB(section 4).
The advantage of the method: does not require resetting the settings and works even on new versions Android 13/14. The disadvantage is that you need to remember the data Google and have access to another device with the Internet.
If you have two-factor authentication enabled in Google, prepare backup codes or access to SMS/email to confirm login.
3. Unlocking via Mi Account (for Xiaomi smartphones)
Owners Xiaomi, Redmi or POCO are luckier: the company provides an official way to reset the password through your account Mi Account. This method works even on the latest versions MIUI 14 and does not require resetting data.
Instructions:
- Go to the page
account.xiaomi.comfrom your computer. - Login using your own Mi Account (the same as the one associated with the phone).
- Select the tab "Find device" (
Find Device). - Click "Unlock device" (
Unlock Device). - Confirm the action via SMS or email.
- Wait for a notification on your phone - it will unlock automatically.
If this method does not work, try an alternative:
- ๐ง Enter any password 5 times in a row until the message appears "Forgot your password?".
- ๐ฑ Click on it and select "Unlock via Mi Account".
- ๐ Enter your account details - the phone will be unlocked.
| Xiaomi model | Supports unlocking via Mi Account | Notes |
|---|---|---|
| Redmi Note 10/11/12 | โ Yes | Works on MIUI 12โ14 |
| POCO X3/X4/X5 | โ Yes | Internet connection required |
| Xiaomi 12/13/14 | โ ๏ธ Partially | Confirmation via SMS may be required |
| Redmi 9A/9C | โ Yes | Works even without the Internet (via SMS) |
โ ๏ธ Attention: On some firmware Xiaomi after unlocking via Mi Account reset protection may work (Factory Reset Protection). In this case, you will need to re-enter your account data after a reboot.
4. Unlocking via ADB (for advanced users)
If the previous methods did not work, and your phone has USB debugging (USB Debuggingenabled, you can use ADB (Android Debug Bridge). This method is suitable for devices with Android 5.0โ11.0 and requires a computer.
Conditions:
- ๐ฅ๏ธ Drivers for your phone and
ADB. - ๐ USB debugging was enabled before blocking.
- ๐ฆ The phone has permissions
ADB(even without root).
Instructions:
- Connect your phone to your computer via USB.
- Open the command line (
cmd) and enter:
adb shellsu
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 unlock without a password.
If the commands did not work, try an alternative option (for Android 10+):
adb shellam start -n com.android.settings/.ChooseLockGeneric
input text 1234
input keyevent 66
This command tries to set a new PIN 1234 programmatically.
Install drivers for your phone model|Download ADB Tools from the official Google website|Enable USB debugging (if the phone is not already locked)|Prepare an original USB cable (do not damage the connector!)
-->
โ ๏ธ Attention: TheAndroid 12+Google tightened the protection, andADB-commands may not work. In this case, only methods with a full reset remain (section 6).
Critical: if USB debugging was not done. is enabled in advance, this method will not work. Do not try to activate it on a locked phone - this is impossible without resetting.
5. Bypassing the lock via Safe Mode (for some firmware)
Some firmware (for example, on Samsung or LG) disable third-party blocking applications via Safe Mode. This works if the password is set not by the system, but by a third-party application (for example, AppLock or Norton App Lock).
Instructions:
- Turn off the phone (hold down the power button).
- Hold the power button until the logo appears, then immediately press and hold the Volume Down button.
- Hold it until the phone boots into Safe Mode (there will be an inscription at the bottom of the screen).
- Uninstall the application that blocks the screen (for example,
AppLock). - Reboot the phone in normal mode.
If the lock is set by the system (standard PIN or pattern), Safe Mode will not help. Also, this method does not work on Xiaomi and Huawei with the latest firmware versions.
What to do if Safe Mode does not turn on?
On some phones (for example Google Pixel or OnePlus) loading into Safe Mode occurs differently:
1. Turn off your phone.
2. Turn it on by holding the power button.
3. When the logo appears, immediately press and hold Volume Down buttonuntil you see "Safe Mode" at the bottom of the screen.
If this did not work, your model does not support this mode to bypass the lock.
6. When nothing helps: reset via Recovery
If all the previous methods did not work, the last option remains - reset via Recovery Mode. This will lead to total data lossbut will unlock the phone. Use this method only as a last resort.
Instructions for most devices:
- Turn off the phone.
- Hold down the button combination to enter in
Recovery Mode(depending on the model):- ๐ฑ Samsung:
Power + Volume Up + Bixby(orHomeon older models). - ๐ฑ Xiaomi/Redmi/POCO:
Power + Volume Up. - ๐ฑ Huawei/Honor:
Power + Volume Up(hold for 10+ seconds). - ๐ฑ Google Pixel:
Power + Volume Downthen selectRecovery Mode.
- ๐ฑ Samsung:
Recovery select "Wipe data/factory reset" (volume button control, confirmation - power button).After the reset, the phone will be like new - without a password, but also without your data. If synchronization with Googlewas enabled before blocking, some of the information (contacts, photos in Google Photos) can be restored after logging into your account.
โ ๏ธ Attention: On devices with Android 9+ after the reset it may work Factory Reset Protection (FRP). In this case, you will need to enter the data of the Googleaccount that was linked to the phone before the reset. If you don't remember it, the phone will remain locked.
Resetting via Recovery is the only reliable way to unlock if USB debugging was not enabled in advance. However, it erases all data without the possibility of recovery (except for those synchronized with the cloud).
FAQ: Frequently asked questions about unlocking Android
Is it possible to unlock the phone without losing data if USB debugging is not enabled?
Unfortunately, no. Without pre-enabled USB debugging or a linked account (Google/Mi Account) You cannot guarantee to unlock the phone without resetting. The only chance is methods using accounts (sections 1โ3), but they do not work on all devices.
What to do if after resetting via Recovery the phone asks for the old account Google?
This protection worked. To bypass it, you need to enter the account information FRP (Factory Reset Protection). To bypass it, you need to enter your account information Googlethat was linked to the phone before resetting. data-i="247">Try to restore access viaIf you donโt remember it:
- Try to restore access via
accounts.google.com. - If the account is deleted, contact support Google with proof of ownership of the device (receipt, box).
- On some devices Samsung FRP can be bypassed through
Combination Firmware, but this requires skills and risks bricking the phone.
Does unlocking through a Google account work on Android 13?
No. Starting from Android 8.0 Oreo, Google he removed the ability to reset the password through the account for security reasons. On new versions (Android 12/13/14), this method does not workexcept for certain firmware from manufacturers (for example, on some Xiaomi or Huawei).
Is it possible to restore data after resetting via Recovery?
Partially. If synchronization was enabled before blocking:
- ๐ Contact โ are restored from Google Contacts.
- ๐ท Photos/videos โ if they were uploaded to Google Photos.
- ๐ Notes/calendars โ synchronized via Google Keep or Calendar.
Local files (SMS, calls, applications, settings) are permanently deletedIf you had a backup via TWRP or Samsung Smart Switch, you can try to restore it after unlocking.
Are there paid services for unlocking without losing data?
Yes, but their effectiveness is questionable. Some services. (for example, Dr.Fone or Tenorshare 4uKey) promise unlocking without resetting, but:
- โ ๏ธ They often require root accesswhich cannot be obtained on a locked phone.
- ๐ฐ The cost reaches $30โ50, and the result is not guaranteed.
- ๐ There is a risk of installing malware on your computer.
Before paying, check reviews and make sure that the service supports your phone model and version Android.