Is there a way to programmatically perform a factory reset on an Android device?
android
Solution
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?
Problem
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?