Freigeben über


DevicePolicyManager.ExtraProvisioningDeviceAdminPackageChecksum Field

Definition

A String extra holding the URL-safe base64 encoded SHA-256 hash of the file at download location specified in #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION.

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

Field Value

Attributes

Remarks

A String extra holding the URL-safe base64 encoded SHA-256 hash of the file at download location specified in #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION.

Either this extra or #EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM must be present. The provided checksum must match the checksum of the file at the download location. If the checksum doesn't match an error will be shown to the user and the user will be asked to factory reset the device.

Use in an NFC record with #MIME_TYPE_PROVISIONING_NFC that starts device owner provisioning via an NFC bump. It can also be used for QR code provisioning.

<strong>Note:</strong> for devices running android.os.Build.VERSION_CODES#LOLLIPOP and android.os.Build.VERSION_CODES#LOLLIPOP_MR1 only SHA-1 hash is supported. Starting from android.os.Build.VERSION_CODES#M, this parameter accepts SHA-256 in addition to SHA-1. From android.os.Build.VERSION_CODES#Q, only SHA-256 hash is supported.

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

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