Understanding how incredibly dangerous this question is, I'd like to know if it is possible to programmatically issue a factory reset, as available in Droid and G1. Does anyone know how this is implemented? Is this implemented using the standard Android SDK, a Motorola-specific function, or something else?
You may use the WipeData()
method in DevicePolicyManager, which will erase all user data:
http://developer.android.com/guide/topics/admin/device-admin.html
Available since Android 2.2
Close enough?
There is no means in the SDK to initiate a factory reset.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With