With ADB, how do I factory reset my Android?

Photo of author
Written By Jam radar

Jam Radar specializes in delivering astute tech reviews, comprehensive guides, and precise troubleshooting solutions.

With ADB, how do I factory reset my Android?

A command-line tool that facilitates device connectivity is the Android Debug Bridge (ADB). It is utilized to create communication between a background daemon process and an emulator instance (Android device) (server).

It gives you access to a Unix shell, which you may use to do a variety of operations including installing or troubleshooting a device and running different commands on it.

With ADB, you can also factory reset Android; the steps are as follows:

With ADB, factory reset an Android device?

Two ways to wipe your Android device clean via ADB are given below:

Step 1: 

Make sure USB Debugging is enabled on your phone. To make this change effective, go to Settings > Apps > Development.

Download and install the ADB and Fastboot Tools on your PC to get started.

Verify that your computer has successfully installed the USB driver for your device. You can download required drivers through ADB using ADB Fastboot, and then use Fastboot to install the most recent version of those drivers using ADB and Fastboot, respectively.

Use a working USB cable to connect your Android phone to your PC. Check to verify if Windows Device Management recognizes your Android phone as being connected to the PC by turning on your ADB device.

Open the Windows command prompt and type C:UsersYour usernameAppDataLocalAndroidandroid-sdkplatform-tools to access the ADB Fastboot Tool folder.

Fill out the command line with the ADB and Fastboot commands.

Your Android device should restart and enter the Android System Recovery / Bootloader Mode interface once you press the Enter key.

Now that your Android smartphone is not connected to your computer, you may choose Wipe Data / Factory Reset from the menu bar to open the Android Recovery Menu.

Your Android smartphone should be factory reset after this.

Step 2: 

Access the folder where Minimal ADB & Fastboot is stored and run that program.

Start by enabling USB Debugging on your phone, then attaching it to your computer.

Enter the command listed below into the terminal window:

Something along the lines of: xxxxxxxxx device identified should appear. Next, press Enter, and then type the command that appears.

shell adb

then type the following command. Press Enter after entering the command.

restoration – wipe data.

If the command does not function, type the following command and press Enter:

erase data

The restoration process should commence after a phone restart.

As an alternative, you can start your computer in recovery mode and perform the reset manually.

Type the command below, then press Enter:

How to stop USB debugging with the ADB command

Even if your smartphone’s screen is locked or broken and you are unable to enable USB debugging, you can still quickly disable it using the ADB command if it has already been enabled.

Choose whether to launch a PowerShell window or the Command Prompt.

The following command must be used after starting adb shell and after connecting to your device.

settings global adb enabled is set to 0.

Following that, go to Settings > Developers settings to find that USB debugging has been disabled.

ADB Commands for specific Android 1 activities Toggle Connected Devices

You must verify that the device you need to interface with is actually connected to your computer before you can execute ADB commands on it. Although ADB has advanced significantly in recent years, it can occasionally have trouble “seeing” linked smartphones or tablets.

Run the following command to make sure ABD is prepared to communicate with your Android device:

The linked devices’ serial numbers should appear in the command prompt or Terminal after this command has been run.

If your Android device does not appear to be linked to the computer, make sure USB debugging is turned on.

2. Restart Your Computer

Your device will restart in its default settings when you issue this command. When you need to reboot your device after flashing something to it, you frequently use this command.

If you’re experiencing issues with your Android device, such as when your smartphone suddenly stops responding, using this command might also be helpful.

3. Enter Recovery Mode

On Android devices, recovery mode is a different bootable partition that can be accessed in the event of a system crash. You might be able to repair issues with your Android device by entering recovery mode.

You can use the following command to restart your device in recovery mode:

Your smartphone will turn off if you restart it in recovery mode. This will replace any custom recovery that you might have set up on your device.

4. Enter Bootloader Mode after rebooting

When you turn on your Android device, the bootloader is the first application to launch. You must boot your device into bootloader mode in order to conduct actions connected to rooting, including unlocking the bootloader, rebooting into recovery mode, and so forth.

5. Start up Fastboot

You can flash both custom ROMs and recoveries using Android’s fastboot mode. Use the following command to enter fastboot mode without first booting into the bootloader and 

6. then choosinDeliver a File to Your Device 

Many apps, including the free OpenMTP, allow you to transfer files from your Android mobile to your PC. Downloading an entire application might not be essential, though, if you only need to transmit a few files.

You can send files from your computer to your Android phone or tablet using the adb push command. Only the file’s location and the location where you want to deliver it are necessary:

The file will then be downloaded to the “Downloads” folder on your tablet or smartphone.

7. Download Files to Your Computer:

Both pushing and pulling files are possibilities. You can copy a file from a computer to your Android device using this command, then view it on your laptop or desktop.

Use the pull command to specify the file you want to extract as well as the location on your computer where it should be saved.

FileLocation Destination: adb pull

Consider the following example: We want to save a “myphoto.jpg” file to our computer’s desktop by downloading it from our tablet or smartphone.

8. Add a Program to Your Device

You might need to transfer an APK file (Android Package) from your laptop to your smartphone or tablet when you download an app from a source other than Google Play.

9. Mount the system again

Your Android device’s complete system may occasionally need to be remounted. As a result, the “/system” partition becomes writable and must be used before any files are copied there. On an Android smartphone that has been rooted, the system can only be remounted.

    Leave a Comment