Situations when a smartphone based on Android begins to be unstable, gets blocked, or requires complete cleaning before sale, happen quite often. A standard reset through the settings menu is sometimes impossible due to software errors, a forgotten pattern, or a frozen interface. In such cases, the only working option is to perform Hard Reset using a personal computer. This method gives you more control over the process and allows you to bypass many software blockages.
Using a PC to reset gives you access to debugging tools, such as ADB and Fastboot, that are not available in normal device operation. However, this approach requires some technical preparation and caution, since incorrect actions can lead to data loss or “bricking” the gadget. Before starting the procedure, it is critical to understand the difference between a soft reset and a full flashing.
⚠️ Attention: All data on the phone's internal storage will be permanently deleted. This applies to photos, contacts, messages and installed applications. Make a backup copy of important information to cloud services or external media before starting any manipulations.
Preparing equipment and software
To successfully complete the procedure, you will need not only the smartphone and computer itself, but also specific software. The first step is to install device drivers, without which the Windows or Linux operating system will not be able to correctly recognize the connected gadget in debug mode. Typically, drivers are installed automatically upon connection, but for serious operations it is better to download the official package from the website of the manufacturer of your smartphone. Next, you need to install the tools. This is an official set of utilities from Google, including ADB (Android Debug Bridge) and Fastboot. These apps allow you to send commands directly to the phone's operating system, bypassing the standard interface. You can download the archive on the official Android developer portal, after which you need to unpack it into a convenient directory, for example, the root of drive C. smartphone.
Next you need to install the toolkit Android SDK Platform Tools. This is an official set of utilities from Google, including ADB (Android Debug Bridge) and Fastboot. These apps allow you to send commands directly to the phone's operating system, bypassing the standard interface. You can download the archive on the official Android developer portal, after which you need to unpack it into a convenient directory, for example, the root of drive C.
- 🔌 Original USB cable: using cheap analogues often leads to an unstable connection and interruption of the data transfer process.
- 💻 Charged battery: the battery charge level must be at least 50-60% to avoid turning off the device at a critical moment.
- 🖥️ Stable OS: make sure that the latest system updates are installed on the computer and the antivirus is temporarily disabled so as not to block the work of scripts.
☑️ Checking readiness for reset
Checking the connection between devices is a mandatory step. Connect your phone to your PC, enable USB debugging mode on it and enter the command adb devicesin the command line. If in response you see the device serial number and status device, then the connection is established correctly. Otherwise, you will need to reinstall the drivers or replace the cable.
Activation of debugging mode and authorization
By default, access to advanced control functions via a computer is disabled for security reasons. To open this access, you must activate the hidden “For Developers” menu. Go to Settings → About phone and find the item “Build number”. Quickly click on it 7 times in a row until a notification appears that you have become a developer.
After activating the new section in the settings, go to the menu System → For developers. Here you need to find the “USB Debugging” switch and activate it. When you connect to a new computer for the first time, a request for debugging permission with an RSA key fingerprint will appear on the smartphone screen. You must check the box “Always allow from this computer” and confirm the action.
What to do if the debugging request does not appear?
Sometimes the authorization window does not pop up automatically. Try disconnecting and reconnecting the cable, or restart your phone. Also check if the “Charge Only” mode is enabled in notifications when connecting USB - switch it to “File Transfer” (MTP) mode.
It is important to note that on some shells, such as MIUI from Xiaomi or OneUI from Samsung, additional steps may be required. For example, in MIUI you also need to enable the “USB Debugging (Security Settings)” option, which requires you to log in to your Mi account. Ignoring these nuances will result in commands from the computer simply not being executed.
Reset via ADB: a universal method
The Android Debug Interface (ADB) is the most reliable way to perform a reset if the phone turns on and responds to commands. This method works on almost all devices, regardless of brand, provided that the bootloader is not blocked by the manufacturer at the command prohibition level. The process is initiated through the command line or terminal on the computer.
Open a command line in the folder with Platform Tools installed. To do this, in Windows Explorer, hold down the Shift key, right-click on an empty space and select “Open PowerShell window here” or “Open Command Prompt”. Enter the following command to reboot the device into recovery mode:
adb reboot recovery
After executing the command, the phone will reboot into the Recovery menu. The interface may differ: on stock Android, control is carried out with the volume and power buttons, and on custom recovery (for example, TWRP) touch input is available. You need to find the item Wipe data/factory reset and confirm your choice. The system will ask for confirmation, usually this is item Factory data reset.
⚠️ Attention: If after entering the command
adb reboot recoverythe phone simply reboots into normal mode, it means that your manufacturer has blocked this function. In this case, you will have to use a combination of physical buttons to enter Recovery manually.
If the phone is stuck on the logo and does not boot completely, but ADB sees it, the command adb reboot recovery is the only way to get to the reset menu without disassembling the device.
An alternative option for advanced users is to send a command to format the data partition directly, bypassing the recovery menu. This is done by the command adb shell recovery --wipe_data. However, this method is less visual and carries increased risks, since you do not see the intermediate stages of the process. Use it only if the touch screen in Recovery mode does not work.
Using Fastboot mode for deep cleaning
Mode Fastboot (or Bootloader) is at a lower level than Recovery mode. It allows you to interact with device memory sections directly. This method is especially effective when the standard Recovery is damaged or missing. This mode is usually entered using a key combination when turned on (most often Volume Down + Power).
Connect the device in Fastboot mode to the computer and check the connection with the command fastboot devices. If the serial number is displayed, you can begin cleaning. The command to wipe the user data partition is as follows:
fastboot erase userdata
Running this command instantly deletes all user data, including cache and settings. In some cases, you may also need to clear the cache partition with the fastboot erase cachecommand. After completing the procedures, enter the command fastboot reboot to reboot the system. The phone will start as new, requiring initial setup.
| Command | Action | Risk of data loss |
|---|---|---|
fastboot erase userdata |
Full clearing of the user partition | Critical (all data is deleted) |
fastboot erase cache |
Clearing the system cache | Minimal (temporary files only) |
fastboot format userdata |
Formatting the partition into a file system | Critical (the data structure is destroyed) |
fastboot reboot |
Rebooting the device | Absent |
Command fastboot format userdata is more radical than erase, since it not only deletes files, but also recreates the partition file system, which helps with serious logical errors of the drive.
It is worth considering that on modern On devices with data encryption, the userdata section can be protected. In such cases, the cleaning command may not work without first unlocking the bootloader. Unlocking the bootloader itself often initiates an automatic data reset for security purposes, which solves the user's problem without entering additional commands.
Manufacturer's proprietary utilities
Large smartphone manufacturers develop their own software for managing devices via a PC. These utilities often have a friendlier interface and automate the reset process, minimizing the risk of user error. Using native software is recommended if you are not confident in your abilities when working with the command line.
For Samsung devices there is a app Odin (unofficial, but a de facto standard) or official Smart Switch. In Download Mode (loaded with the Volume Down + Home + Power buttons), you can flash a clean image of the system, which will automatically erase all data. Xiaomi devices are serviced through a utility Mi Flash Toolwhich requires an unlocked bootloader and allows you to select a cleaning mode clean all.
Sony users can use the app Xperia Companion, which has a “Software Recovery” function. It downloads the latest firmware from the servers and reinstalls the system, ensuring that all traces of previous use are removed. A similar tool HiSuite is present in Huawei, although its functionality in recent versions has been limited due to sanctions, the basic reset function often remains available.
⚠️ Attention: Branded utilities may require logging into the manufacturer's account to confirm the right to service the device. Make sure that you remember the login and password for your account (Mi Account, Samsung Account), otherwise after resetting the phone may be blocked by the anti-theft function (FRP).
Possible problems and their solutions
Unforeseen difficulties may arise during the reset process via a computer. The most common mistake is that the computer does not see the device in ADB or Fastboot mode. Often the problem lies in the drivers. Try manually updating the driver in Windows Device Manager by pointing to the Google USB Driver folder. Sometimes installing universal ADB Interface drivers helps.
Another common problem is an error device unauthorized. This means that the phone did not confirm the connection. If your phone screen doesn't work or doesn't respond to touch, you won't be able to confirm the connection. In this case, you will have to use a combination of physical buttons to enter Recovery, since the method via ADB requires confirmed authorization.
If the process freezes at the formatting stage, do not forcibly disconnect the cable. Wait for a timeout or try to abort the operation using the Ctrl+C key combination in the command line. After this, restart your computer and try entering Fastboot mode again. In rare cases, it may be necessary to flash the device through specialized repair boxes if a soft reset does not help due to physical memory damage.
What is FRP locking?
Factory Reset Protection is Google's security system. If you reset your phone via a computer, but did not sign out of your Google account in advance, the first time you set it up, the phone will require you to enter the password for this account. Without it, the device will be impossible to use.
Frequently asked questions (FAQ)
Is it possible to reset the phone through the computer if it is turned off?
No, for ADB to work, the phone must be turned on. However, you can use a combination of physical buttons (usually Volume Up + Power) to enter Recovery mode when you turn on the device, even if the system does not boot. In this case, a computer is not needed, unless you plan to flash it.
Will information be deleted from the SD card when resetting via PC?
Standard commands adb and fastboot affect only the internal memory of the device. The data on the external memory card (microSD) should be saved. However, for complete safety, it is recommended to remove the card before starting the procedure, since some proprietary utilities may offer the option of completely wiping all media.
What to do if after resetting the phone requires a Google account?
It was the FRP protection that worked. You need to enter the login and password for the Google account that was synchronized with the phone before the reset. If you do not remember the data, restoring access is only possible through the Google account recovery form on another device. It is impossible to bypass this protection in legal ways without account data.
Is it safe to use third-party reset apps?
Using unverified third-party software carries risks. Such apps may contain malicious code or may not work correctly with specific phone models, resulting in breakdowns. It is recommended to use only the official Google tools (Platform Tools) or proprietary utilities from the smartphone manufacturer.
How long does the reset process via a computer take?
The command itself is executed almost instantly. The main time is taken by rebooting the device and subsequent initialization of the system (the “Application Optimization” process), which can last from 5 to 20 minutes depending on the processor power and the amount of internal memory.