Aracılığıyla paylaş


DevicePolicyManager.ExtraProvisioningDeviceAdminSignatureChecksum Field

Definition

A String extra holding the URL-safe base64 encoded SHA-256 checksum of any signature of the android package archive at the download location specified in #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION.

[Android.Runtime.Register("EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM", ApiSince=23)]
public const string ExtraProvisioningDeviceAdminSignatureChecksum;
[<Android.Runtime.Register("EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM", ApiSince=23)>]
val mutable ExtraProvisioningDeviceAdminSignatureChecksum : string

Field Value

Attributes

Remarks

A String extra holding the URL-safe base64 encoded SHA-256 checksum of any signature of the android package archive at the download location specified in #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION.

The signatures of an android package archive can be obtained using android.content.pm.PackageManager#getPackageArchiveInfo with flag android.content.pm.PackageManager#GET_SIGNATURES.

Either this extra or #EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM must be present. The provided checksum must match the checksum of any signature of the file at the download location. If the checksum does not 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.

Java documentation for android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_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