1

I wish to reset an android device programmatically using :
adb shell recovery --wipe_data

1. What is the easiest way to do this ?

2. Will it require root/superuser access ?

CodeWalker
  • 2,281
  • 4
  • 23
  • 50

1 Answers1

0

For running shell commands you can use Runtime class. For more information check the documentation

For example:

Runtime.getRuntime().exec("commands_here");