Compartilhar via


DevicePolicyManager.ExtraProvisioningDeviceAdminPackageName Field

Definition

A String extra holding the package name of the mobile device management application that will be set as the profile owner or device owner.

[Android.Runtime.Register("EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME")]
public const string ExtraProvisioningDeviceAdminPackageName;
[<Android.Runtime.Register("EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME")>]
val mutable ExtraProvisioningDeviceAdminPackageName : string

Field Value

Attributes

Remarks

A String extra holding the package name of the mobile device management application that will be set as the profile owner or device owner.

If an application starts provisioning directly via an intent with action #ACTION_PROVISION_MANAGED_PROFILE this package has to match the package name of the application that started provisioning. The package will be set as profile owner in that case.

This package is set as device owner when device owner provisioning is started by an NFC message containing an NFC record with MIME type #MIME_TYPE_PROVISIONING_NFC.

When this extra is set, the application must have exactly one device admin receiver. This receiver will be set as the profile or device owner and active admin.

This member is deprecated. Use #EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME. This extra is still supported, but only if there is only one device admin receiver in the package that requires the permission android.Manifest.permission#BIND_DEVICE_ADMIN.

Java documentation for android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME.

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.

Applies to

See also