- context
- the Context to use
- packageFile
- the update package to install. Must be on a partition mountable by recovery. (The set of partitions known to recovery may vary from device to device. Generally, /cache and /data are safe.)
Type Reason Java.IO.IOException if writing the recovery command file fails, or if the reboot itself fails.
Reboots the device in order to install the given update package. Requires the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#REBOOT permission.