Forgotten password on an Android smartphone - a situation that every fifth user faces. According to statistics Google, 18% of support calls are related to device blocking. If standard unlocking methods (via account Google or fingerprint) do not work, the only reliable method remains is hard reset via computer. This method is suitable for devices of all brands: Samsung Galaxy, Xiaomi Redmi, Huawei P, Realme and others.
In this article we will look at 5 proven methods resetting settings via PC, including using ADBmode Fastboot, proprietary utilities of manufacturers and even bypassing blocking through Google Find My Device. Important: some methods require preliminary configuration of USB debugging, so if you have not activated it in advance, some methods may not work. We will also tell you how to minimize data loss and what to do if your smartphone is not detected by your computer.
Before you begin, please note: resetting the settings will delete all data from the device, including photos, contacts and installed applications. If synchronization with Google Accountwas enabled on your smartphone, some information (contacts, notes, mail) can be restored after unlocking. There is almost no chance for other data - so always set up backup in advance.
1. Preparing your computer: what you will need to reset
Before resetting your settings, make sure your PC is ready for the procedure. Without proper preparation, even the most reliable method may not work. Here's what you'll need:
- ๐ฅ๏ธ Computer under control Windows 7/10/11 or macOS (for some methods). A laptop or a desktop PC - it doesnโt matter, the main thing is the presence of a USB port.
- ๐ Original USB cable. Cheap Chinese cables often do not transmit data, they only charge. Use the one that came with the smartphone.
- ๐ฅ Drivers for your device. Without them, the PC will not recognize the phone in the required modes. For Samsung โ Samsung USB Driver, for Xiaomi โ Mi PC Suite, for other brands - universal Google USB Driver.
- ๐ ๏ธ Reset tools:
ADBandFastboot(included Android SDK Platform-Tools), or proprietary utilities of the manufacturer (Samsung Odin, Xiaomi Mi Flash).
If you have never connected your smartphone to this computer before enable USB debugging before blocking
- otherwise some methods will not be available. But even if debugging is disabled, there are still ways throughFastboot or Find My Device.
โ ๏ธ Attention: On devices with Android 11+ and latest firmware Samsung One UI 5.0+ or MIUI 14+ some methods (for example, reset via ADB) may be blocked by the manufacturer. In this case, use alternative methods from this article.
Download the necessary tools in advance:
- ๐ Android SDK Platform-Tools (official website Google) โ for
ADBiFastboot. - ๐ Samsung Odin โ for firmware Samsung via
Download Mode. - ๐ Mi Flash Tool โfor devices Xiaomi/Redmi/Poco.
2. Method 1: Reset via ADB (if USB debugging was enabled)
This is the fastest and safest method, but it works only if you have previously activated USB debugging in the developer settings If. no - skip this section and go to the next method.
Instructions:
- Connect your smartphone to the PC via USB.
- Open the command line (
Win + Rโ entercmdโEnter). - Go to the folder with
ADB(for example,cd C:\platform-tools). - Enter the command:
adb devicesIf the device is detected (its serial number appears), proceed to the next step. If not, check the drivers or cable.
- Execute reset:
adb shell recovery --wipe_dataOr for new versions of Android:
adb shell am start -a android.intent.action.MASTER_CLEAR
After executing the command, the smartphone will reboot and begin the reset process. This method does not require unlocking the bootloaderis therefore suitable even for devices with a locked bootloader.
Make sure that USB debugging was enabled before blocking|
Download and unpack Android SDK Platform-Tools|
Connect the original USB cable|
Check the device definition with the adb devices-->
โ ๏ธ Attention: On some devices Huawei i Honor s EMUI 10+ commandadb shellmay not work due to manufacturer restrictions. In this case, use the method viaFastboot(method 3).
3. Method 2: Reset via Find My Device (without a PC, but from a computer)
If you have access to another device (not even Android), you can use the service Google Find My Device. This method works only if:
- ๐ฑ The smartphone is connected to the Internet (via Wi-Fi or mobile network).
- ๐ A Google Account was linked to the device data-i="120">๐ The "Find device" function has been activated in the settings..
- ๐ The "Find my device" function has been activated in the settings.
Instructions:
- Go to the site Google Find My Device from any browser.
- Login using the same account Google, as on a locked smartphone.
- Select your device from the list (if there are several of them).
- Click"Erase data" โ"Erase device".
- Confirm the action by entering your account password Google.
The process may take from 5 to 30 minutes depending on the Internet speed. After the reset, the device will reboot and offer to configure it as new. Disadvantage of the method: if the smartphone is not connected to the network, the command will not arrive and the reset will not occur.
If the smartphone is connected to Wi-Fi, but is not displayed in Find My Device, try turning it on in safe mode (press the Power button โ "Safe Mode") Sometimes this helps the service identify the device.
4. Method 3: Reset via Fastboot (for an unlocked one). bootloader)
Method via Fastboot is suitable for most Android devices, but requires unlocked bootloader (bootloader). If you have never unlocked it before, this method will not work - go to method 4 or 5.
Instructions:
- Turn off the smartphone.
- Hold down the button combination to enter in
Fastboot Mode:- ๐ฑ Samsung:
Volume down + Power + Bixby(hold for 10 seconds). - ๐ฑ Xiaomi/Redmi/Poco:
Volume down + Power. - ๐ฑ Google Pixel, OnePlus:
Volume up + Power.
- ๐ฑ Samsung:
Fastboot.fastboot devices
If the device is detected, enter the reset command:
fastboot erase userdata
Then:
fastboot erase cache
And reboot the device:
fastboot reboot
After rebooting the smartphone will be completely reset. If the command fastboot erase userdata did not work, try an alternative:
fastboot -w
โ ๏ธ Attention: On devices Samsung with Knox (for example, Galaxy S22, Note 20) reset viaFastbootmay lead to flag is triggeredKnox 0x1, which voids the warranty and blocks some functions (for example, Samsung Pay).
5. Method 4: Reset through proprietary utilities (Odin, Mi Flash, HiSuite)
Smartphone manufacturers offer their own tools for flashing and resetting. They most often work even without an unlocked bootloader, but require official firmware for your model.
Let's consider three popular utilities:
| Brand | Utility | Connection mode | Is bootloader unlocking required? |
|---|---|---|---|
| Samsung | Odin | Download Mode (Volume down + Power + Bixby) |
No |
| Xiaomi/Redmi/Poco | Mi Flash Tool | Fastboot Mode (Volume down + Food) |
Yes (for some models) |
| Huawei/Honor | HiSuite or eRecovery | Fastboot Mode or eRecovery Mode (Volume up + Power) |
No |
Example of reset via Odin for Samsung:
- Download Odin and the official firmware for your model from the site Sammobile.
- Run Odin and connect the smartphone in mode
Download Mode. - B Odin click
BL,AP,CP,CSCand select the appropriate files from the firmware. - Make sure that the checkbox is only on
Auto RebootandF. Reset Time. - Click
Startand wait for completion (5-10 minutes).
For Xiaomi the process is similar, but it uses Mi Flash Tool and firmware in the format .tgz. Important: select the firmware version that matches your model and region!
What to do if the firmware does not fit?
If after updating the smartphone does not turn on or is stuck on the logo, it means you have selected the wrong software version. In this case, try:
1. Flash a different firmware version (for example, global instead of Chinese).
2. Use the "Clean All" function in Mi Flash Tool (for Xiaomi).
3. Repeat the process with another utility (for example, through Fastboot instead of Odin).
If all else fails, contact a service center - the device's memory may be damaged.
6. Method 5: Reset via Recovery Mode (without a PC, but with a computer for backup)
If you donโt have a cable at hand or the PC does not recognize the smartphone, you can try a reset via Recovery Mode. This method does not require a computer, but does not work on all devices some manufacturers block access to reset through recovery.
Instructions:
- Turn off your smartphone.
- Hold the combination to enter
Recovery Mode:- ๐ฑ Samsung:
Volume up + Power + Bixby. - ๐ฑ Xiaomi/Google/OnePlus:
Volume up + Power. - ๐ฑ Huawei:
Volume up + Power(hold until logo).
- ๐ฑ Samsung:
If the recovery menu is in Chinese (relevant for Xiaomi and some Realme), look for the item with hieroglyphs (data clearing) or (factory restore settings).
โ ๏ธ Attention: On devices Samsung s One UI 4.0+ i Xiaomi s MIUI 13+ item Wipe data can be blocked - in this case, the system will require you to enter a password. If you don't know it, this method will not work.
7. What to do if not a single method worked
If all of the above methods did not help, there are three options left:
- ๐ง Contact the service center. Official centers Samsung, Xiaomi or Huawei can reset the settings through special equipment (for example, UFI Box or Octoplus). The cost of the service is from 500 to 2000 rubles.
- ๐ Contact manufacturer support. Some brands (for example, Google for Pixel) can help you unlock the device remotely after confirming ownership.
- ๐ Sell a smartphone for parts. If the data on the device is not critical, and unlocking costs more than the phone itself, you can sell it profitably through Avito or Yula as a "donor" for repair.
On devices with a chip Qualcomm (most Xiaomi, OnePlus, Realme) there is a method reset via EDL Mode (Emergency Download Mode), but it requires a special cable and knowledge of commands for QFil or QPST. This method is risky - if you make an error, the smartphone can turn into a โbrickโ.
If you decide to take the device to the service don't tellthat you forgot the password, formulate the problem as โthe smartphone does not turn on after the updateโ or โstuck on the logoโ. This will increase the chances of a successful repair without unnecessary questions.
8. How to avoid data loss in the future
To avoid encountering the problem of a locked smartphone again, follow these recommendations:
- ๐ Use a PIN instead of a pattern. A pattern lock is easier to guess, and a PIN of 6+ digits is more secure.
- ๐ฑ Activate Smart Lock (in security settings). This will allow you to unlock your phone in trusted places (for example, at home) without entering a password.
- โ๏ธ Set up automatic backup in Google Drive (
Settings โ System โ Backup). This will save contacts, photos and application settings. - ๐ฅ๏ธ Enable USB debugging (
Settings โ About phone โ Build number (7 taps) โ Developer settings โ USB debugging). This will open access toADBin the future. - ๐ง Link your Google account and activate "Find device". This will allow you to reset your settings remotely.
If you often forget passwords, write them down in Google Password Manager or specialized applications like KeePass or 1Password. Storing passwords in notes or SMS is dangerous - if you lose access to your smartphone, you will also lose access to your recordings.
Even if you never forget passwords, set up backup and USB debugging in advance. This will take 5 minutes, but will save hours of nerves and money on repairs in the future.
FAQ: Frequently asked questions about resetting Android via PC
โ Is it possible to reset settings without losing data?
No, a full reset (factory reset) always deletes user data. The only way to save information is if you had backup enabled or you previously made a backup via custom recovery. Otherwise, the data will be lost irretrievably. Google Account or have you previously made a backup via TWRP (custom recovery). Otherwise, the data will be lost forever.
โ Why does the PC not see the smartphone in Fastboot mode?
There are several reasons:
- Drivers are not installed (download Google USB Driver or a driver for your brand).
- A non-original cable is used (try another, preferably a branded one).
- The USB port is faulty (try another port or computer).
- USB debugging is disabled on the smartphone (if required for the method).
For diagnostics, open Device Manager in Windows and check if the phone is detected as Android Bootloader Interface.
โ Does resetting via ADB work on Android 13?
Starting with Android 11, Google tightened security rules, and the command adb shell may not work on a locked device. However, on some firmware (for example MIUI 14 or One UI 5.1) it remains possible to reset using alternative commands:
adb shell recovery --wipe_data
If this method does not work, use Fastboot or proprietary utilities.
โ You can Is it possible to unlock a smartphone via IMEI?
No, IMEI will not help reset your password. This code is only needed to identify the device in the operatorโs network. Fraudsters on the Internet often offer โunlocking by IMEIโ - this is a scam. The only legal way to unlock without losing data is to contact the service center with proof of purchase.
โ What to do if after resetting the phone requires the old password?
This happens due to the function Factory Reset Protection (FRP), which is activated if the device has been linked Google Account. To unlock your smartphone:
- Connect to Wi-Fi on the welcome screen.
- Enter the data from Google Accountthat was linked to the device before the reset.
- If you donโt remember your account, try restoring it via Google Account Recovery.
On some devices Samsung and Xiaomi you can bypass FRP via TalkBack or Emergency Call, but these methods are often closed by updates.