I am trying to factory data reset my Oppo Neo 7 (Android 5.1) using ADB shell. Any way I can try and link to ADB shell?
2 Answers
You need:
- Minimal ADB & Fastboot which contains ADB executable then unzip the file
- ADB drivers and install them
- A computer
Steps:
Open the folder where Minimal ADB & Fastboot is, launch it.
Now on your phone, enable USB Debugging, then connect to the computer.
On the terminal window, type
adb devices
[press enter]. You should see something like:xxxxxxxxx device detected
Type
adb shell
[press enter]Type
recovery --wipe_data
[press enter], or if it doesn't work, typewipe data
[press enter]Your phone should restart and begin the restoration process.
Alternate Option
You can also simply boot into the recovery then perform the reset manually. Type the following command on your terminal:
adb reboot recovery
-
3Worked for me! I had a Xiaomi Redme 7A, Android 9.0, which I had corrupted so badly I couldn't do a factory reset through Settings. So I went through your options. First
adb shell
and thenrecovery wipe_data
, and got "... recovery: not found". Ditto forwipe data
. Then I triedadb reboot recovery
and the device responded (Joy!!!), and gave me a short sequence of confirmation dialogs, driven from the Volume Up/Down and power keys, and then did with the reset. The device was NOT in fastboot mode. It was just attached to the USB, with normal developer options enabled. Commented Jul 10, 2020 at 3:53 -
Comments are not for extended discussion; this conversation has been moved to chat.– Andrew T. ♦Commented Jul 13, 2021 at 14:10
-
Not sure why this answer has so many upvotes but it is wrong at half.
adb shell
has no commandrecovery
. Only small last partYou can also simply boot into the recovery
is correct (is it outdated?)– rzlvmpCommented Feb 8, 2022 at 4:42
For devices that support Fastboot mode, you can try the following commands:
- Enter fastboot mode:
adb reboot bootloader
- Check whether the mobile phone is also in fastboot mode:
fastboot devices
- Delete the data:
fastboot erase userdata
- Delete cache:
fastboot erase cache
-
1
-
good point. Then your solution will need to be used. Many devices support fastboot commands, so I think this is a good option in most cases.– user221603Commented May 31, 2017 at 11:16
-
-
source 404; if we delete data, cache will also delete? Commented May 20, 2021 at 12:33
-
@SmartManoj Samsung devices don't support fastboot commands. Deleting data also deletes cache– esQmo_Commented May 20, 2021 at 13:57
wipedata
.