I wish to reset an android device programmatically using :
adb shell
recovery --wipe_data
Asked
Active
Viewed 720 times
1

CodeWalker
- 2,281
- 4
- 23
- 50
1 Answers
0
For running shell commands you can use Runtime
class. For more information check the documentation
For example:
Runtime.getRuntime().exec("commands_here");
-
1Can I run it from `OnCreate` itself ? – CodeWalker Aug 25 '14 at 18:21