Android.OS.RecoverySystem.InstallPackage Method
Reboots the device in order to install the given update package.

Syntax

[Android.Runtime.Register("installPackage", "(Landroid/content/Context;Ljava/io/File;)V", "")]
public static void InstallPackage (Android.Content.Context context, Java.IO.File packageFile)

Parameters

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.)

Exceptions

TypeReason
Java.IO.IOExceptionif writing the recovery command file fails, or if the reboot itself fails.

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8