0

I need help, I want to factory reset my device using code in an application

user3468609
  • 21
  • 1
  • 2

2 Answers2

2

you can not do it directly. What you can do is launch an Intent to open the settings where the option is located

Blackbelt
  • 156,034
  • 29
  • 297
  • 305
1

You would have to use the DevicePolicyManager and include permissions in the AndroidManifest.xml refer this link....

Community
  • 1
  • 1
Akshay
  • 6,029
  • 7
  • 40
  • 59