DevicePolicyManager.InstallSystemUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by device owner or profile owner of an organization-owned managed profile to install a system update from the given file.
[Android.Runtime.Register("installSystemUpdate", "(Landroid/content/ComponentName;Landroid/net/Uri;Ljava/util/concurrent/Executor;Landroid/app/admin/DevicePolicyManager$InstallSystemUpdateCallback;)V", "GetInstallSystemUpdate_Landroid_content_ComponentName_Landroid_net_Uri_Ljava_util_concurrent_Executor_Landroid_app_admin_DevicePolicyManager_InstallSystemUpdateCallback_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SYSTEM_UPDATES")]
public virtual void InstallSystemUpdate (Android.Content.ComponentName? admin, Android.Net.Uri updateFilePath, Java.Util.Concurrent.IExecutor executor, Android.App.Admin.DevicePolicyManager.InstallSystemUpdateCallback callback);
[<Android.Runtime.Register("installSystemUpdate", "(Landroid/content/ComponentName;Landroid/net/Uri;Ljava/util/concurrent/Executor;Landroid/app/admin/DevicePolicyManager$InstallSystemUpdateCallback;)V", "GetInstallSystemUpdate_Landroid_content_ComponentName_Landroid_net_Uri_Ljava_util_concurrent_Executor_Landroid_app_admin_DevicePolicyManager_InstallSystemUpdateCallback_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SYSTEM_UPDATES")>]
abstract member InstallSystemUpdate : Android.Content.ComponentName * Android.Net.Uri * Java.Util.Concurrent.IExecutor * Android.App.Admin.DevicePolicyManager.InstallSystemUpdateCallback -> unit
override this.InstallSystemUpdate : Android.Content.ComponentName * Android.Net.Uri * Java.Util.Concurrent.IExecutor * Android.App.Admin.DevicePolicyManager.InstallSystemUpdateCallback -> unit
Parameters
- admin
- ComponentName
The DeviceAdminReceiver
that this request is associated with.
- updateFilePath
- Uri
An Uri of the file that contains the update. The file should be readable by the calling app.
- executor
- IExecutor
The executor through which the callback should be invoked.
A callback object that will inform the caller when installing an update fails.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.