banner



factory reset from adb

4 Answers 4

Y'all can ship intent MASTER_CLEAR in adb:

                adb shell am broadcast -a android.intent.activity.MASTER_CLEAR                              

or as root

                adb shell  "su -c 'am circulate -a android.intent.activity.MASTER_CLEAR'"                              

After Android 8.0 and above with root permission from vanquish

                am broadcast -p "android" --receiver-foreground -a android.intent.activity.FACTORY_RESET                              

ArkadiBernov's user avatar

answered Feb 17, 2016 at 1:59

0x8BADF00D's user avatar

ten

  • Astonishing, didn't recall that information technology would piece of work, but in my case it helped! (it was a cheap overmax tablet, where I couldn't even access fastboot, nor recovery --wipe_data helped!) Thanks!

    Oct 1, 2016 at 15:00

  • Note: On near devices you will demand to be root for this to piece of work, else you volition not accept the appropriate permission to send this broadcast. Before running this command, use adb root to restart your phone's shell with root privileges

    Mar 27, 2017 at 17:46

  • This command is non working in Android-OMR1 maxim background execution non immune.

    April ten, 2018 at seven:27

  • This works for Devices which are rooted. But if Device is not Rooted than it is not working. It Doesn't give any response. Any Idea?

    April x, 2018 at 10:00

Try :

                adb shell recovery --wipe_data                              

And hither is the list of arguments :

                * The arguments which may be supplied in the recovery.command file:  *   --send_intent=anystring - write the text out to recovery.intent  *   --update_package=path - verify install an OTA package file  *   --wipe_data - erase user data (and cache), and so reboot  *   --wipe_cache - wipe enshroud (but not user data), and then reboot  *   --set_encrypted_filesystem=on|off - enables / diasables encrypted fs                              

Community's user avatar

answered Feb 4, 2013 at 11:26

EvZ's user avatar

4

  • Hi EvZ, WILL adb shell recovery --wipe_data clear the 3rd party applications?

    Feb 4, 2013 at xi:29

  • It should I used it a while agone,simply you can try.

    Feb 4, 2013 at 11:39

  • @EvZ that ends up with "segmentation fault". any inkling ?

    Nov 27, 2013 at 5:26

  • If you lot get "segment fault" error, endeavour the following commands: adb shell wipe data; adb reboot;

    Jan 26, 2014 at 22:56

Alert

From @sidharth: "caused my lava iris alfa to go into a bootloop :("


For my Motorola Nexus half-dozen running Android Marshmallow 6.0.1 I did:

                adb devices       # Cheque the phone is running adb reboot bootloader # Wait a few seconds fastboot devices  # Bank check the phone is in bootloader fastboot -westward       # Wipe user information                              

Luke Singham's user avatar

Luke Singham

1,486 two gold badges 19 silver badges 38 statuary badges

answered Sep 6, 2016 at 20:44

Robin Winslow's user avatar

4

  • caused my lava iris alfa to get into a bootloop :(

    Sep 9, 2016 at xviii:13

  • @Sidharth oh no! Do you think I should delete this answer - if it's dangerous? Or hopefully your annotate is plenty of a word of warning.

    Sep 11, 2016 at xi:36

  • I estimate you could edit your answer and put out a warning for others.

    Sep 12, 2016 at 2:04

  • My phone has been hanged afterwards this solution. Fortunately other solution helped me to solve my trouble (My telephone - xiomi mi5 android 6.0.1).

    February 25, 2017 at 21:54

I accept made information technology from fastboot mode (Phone - Xiomi Mi5 Android 6.0.1)

Here is steps:

                # check if device available fastboot devices # remove user data fastboot erase userdata # remove cache fastboot erase enshroud  # reboot device fastboot reboot                              

answered Feb 25, 2017 at 22:00

Den Kison's user avatar

2

  • I had to utilize adb reboot bootloader first, but it worked

    Aug eighteen, 2019 at 17:36

  • I had to use adb rootand adb reboot bootloader earlier executing these commands, otherwise my device gets stuck.

    Sep 20, 2021 at 8:33

Source: https://stackoverflow.com/questions/14685721/how-can-i-do-factory-reset-using-adb-in-android

0 Response to "factory reset from adb"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel