How can i do the factory reset in android using ADB command? I had used adb reboot recovery command to get reset. But third party applications couldn't be cleared somehow.Is it correct way to achieve using ADB?
Actually, I want to do factory reset android devices through java code.What can be solution here?
Try :
And here is the list of arguments :
Warning
From @sidharth: "caused my lava iris alfa to go into a bootloop :("
For my Motorola Nexus 6 running Android Marshmallow 6.0.1 I did:
I have made it from fastboot mode (Phone - Xiomi Mi5 Android 6.0.1)
Here is steps:
You can send intent MASTER_CLEAR in adb:
or as root