语言

DevicePolicyManager.EnableSystemApp 方法

定义

重载

名称 说明
EnableSystemApp(ComponentName, String)

重新启用在初始化用户时默认禁用的系统应用。

EnableSystemApp(ComponentName, Intent)

根据在初始化用户时默认禁用的意向重新启用系统应用。

EnableSystemApp(ComponentName, String)

重新启用在初始化用户时默认禁用的系统应用。

[Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "GetEnableSystemApp_Landroid_content_ComponentName_Ljava_lang_String_Handler")]
public virtual void EnableSystemApp(Android.Content.ComponentName? admin, string? packageName);
[<Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "GetEnableSystemApp_Landroid_content_ComponentName_Ljava_lang_String_Handler")>]
abstract member EnableSystemApp : Android.Content.ComponentName * string -> unit
override this.EnableSystemApp : Android.Content.ComponentName * string -> unit

参数

admin
ComponentName

此请求与哪个 DeviceAdminReceiver 请求相关联,或者 null 调用方是否为启用系统应用委托。

packageName
String

在调用配置文件中重新启用的包。

特性

注解

重新启用在初始化用户时默认禁用的系统应用。 可以通过设备所有者、配置文件所有者或委托通过 < a0/> 调用此函数。

Java文档android.app.admin.DevicePolicyManager.enableSystemApp(android.content.ComponentName, java.lang.String)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

EnableSystemApp(ComponentName, Intent)

根据在初始化用户时默认禁用的意向重新启用系统应用。

[Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Landroid/content/Intent;)I", "GetEnableSystemApp_Landroid_content_ComponentName_Landroid_content_Intent_Handler")]
public virtual int EnableSystemApp(Android.Content.ComponentName? admin, Android.Content.Intent? intent);
[<Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Landroid/content/Intent;)I", "GetEnableSystemApp_Landroid_content_ComponentName_Landroid_content_Intent_Handler")>]
abstract member EnableSystemApp : Android.Content.ComponentName * Android.Content.Intent -> int
override this.EnableSystemApp : Android.Content.ComponentName * Android.Content.Intent -> int

参数

admin
ComponentName

此请求与哪个 DeviceAdminReceiver 请求相关联,或者 null 调用方是否为启用系统应用委托。

intent
Intent

与要安装的应用匹配的意向。 针对此意向解析的所有应用都将在调用配置文件中重新启用。

返回

int 匹配意向和已安装的活动数。

特性

注解

根据在初始化用户时默认禁用的意向重新启用系统应用。 可以通过设备所有者、配置文件所有者或委托通过 < a0/> 调用此函数。

Java文档android.app.admin.DevicePolicyManager.enableSystemApp(android.content.ComponentName, android.content.Intent)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于