Share via


DevicePolicyManager.MimeTypeProvisioningNfc Field

Definition

This MIME type is used for starting the device owner provisioning.

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

Field Value

Attributes

Remarks

This MIME type is used for starting the device owner provisioning.

During device owner provisioning a device admin app is set as the owner of the device. A device owner has full control over the device. The device owner can not be modified by the user and the only way of resetting the device is if the device owner app calls a factory reset.

A typical use case would be a device that is owned by a company, but used by either an employee or client.

The NFC message must be sent to an unprovisioned device.

The NFC record must contain a serialized java.util.Properties object which contains the following properties: <ul> <li>#EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME</li> <li>#EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION, optional</li> <li>#EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_COOKIE_HEADER, optional</li> <li>#EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM, optional</li> <li>#EXTRA_PROVISIONING_LOCAL_TIME (convert to String), optional</li> <li>#EXTRA_PROVISIONING_TIME_ZONE, optional</li> <li>#EXTRA_PROVISIONING_LOCALE, optional</li> <li>#EXTRA_PROVISIONING_WIFI_SSID, optional</li> <li>#EXTRA_PROVISIONING_WIFI_HIDDEN (convert to String), optional</li> <li>#EXTRA_PROVISIONING_WIFI_SECURITY_TYPE, optional</li> <li>#EXTRA_PROVISIONING_WIFI_PASSWORD, optional</li> <li>#EXTRA_PROVISIONING_WIFI_PROXY_HOST, optional</li> <li>#EXTRA_PROVISIONING_WIFI_PROXY_PORT (convert to String), optional</li> <li>#EXTRA_PROVISIONING_WIFI_PROXY_BYPASS, optional</li> <li>#EXTRA_PROVISIONING_WIFI_PAC_URL, optional</li> <li>#EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE, optional, supported from android.os.Build.VERSION_CODES#M</li> <li>#EXTRA_PROVISIONING_WIFI_EAP_METHOD, optional, supported from android.os.Build.VERSION_CODES#Q</li> <li>#EXTRA_PROVISIONING_WIFI_PHASE2_AUTH, optional, supported from android.os.Build.VERSION_CODES#Q</li> <li>#EXTRA_PROVISIONING_WIFI_CA_CERTIFICATE, optional, supported from android.os.Build.VERSION_CODES#Q</li> <li>#EXTRA_PROVISIONING_WIFI_USER_CERTIFICATE, optional, supported from android.os.Build.VERSION_CODES#Q</li> <li>#EXTRA_PROVISIONING_WIFI_IDENTITY, optional, supported from android.os.Build.VERSION_CODES#Q</li> <li>#EXTRA_PROVISIONING_WIFI_ANONYMOUS_IDENTITY, optional, supported from android.os.Build.VERSION_CODES#Q</li> <li>#EXTRA_PROVISIONING_WIFI_DOMAIN, optional, supported from android.os.Build.VERSION_CODES#Q</li></ul>

As of android.os.Build.VERSION_CODES#M, the properties should contain #EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME instead of #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, (although specifying only #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME is still supported).

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

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