How to Factory Reset Android Device Using Command Prompt

It is always a good thing to know that there is always an alternative to a prevailing problem, just that you may not be aware of it at a point in time.


You can actually issue some command lines within ADB environment to factory reset your android device in case you loose access to the device may be by means of a forgotten password/pattern lock or any other means.

Truly, most android device has shortcut (by pressing conbination of buttons) to the recovery and from there you can factory reset your device, but what if you do not know the particular combinations for your android device? This is a better alternative.

How to Factory Reset Android Device Using Command Prompt


Before you can be able to factory reset your android device using the command line, you should know that you need;
1- A computer; Desktop PC or Laptop.
2- Must have set up ADB on your PC. Refer to this page on how to set up ADB on your PC.
3- Must have installed your android device's drivers on the PC.
4- And lastly, USB Debugging must be enabled on the android device.

Once you have met all the requirements above, just connect your phone to the PC and hit the buttons.

Command lines to issue;

1- Start the Command Prompt and type cd c:\adb -this points you to the folder within which your ADB tools are gathered provided that your ADB tools folder is named ADB.

2- On the next line, type adb devices -this lists the ADB devices attached to the PC.

3- On the next line type adb shell -this brings you within the shell cmands.

4- Now, on the next line type data wipe and then, wait few seconds for the next command line to appear.

NOTE
1- Following each command line you input, you must hit the enter key to execute the command.
2- You should reboot your phone by any means. Either remove the battery, re-insert it and put on the phone or simply put off and restart the phone.



Share And Interact Using the Buttons Above