- context
- the Context to use
Type Reason Java.IO.IOException if writing the recovery command file fails, or if the reboot itself fails. Java.Lang.SecurityException if the current user is not allowed to wipe data.
Reboots the device and wipes the user data and cache partitions. This is sometimes called a "factory reset", which is something of a misnomer because the system partition is not restored to its factory state. Requires the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#REBOOT permission.