DevicePolicyManager.StorageEncryptionStatus Property

Definition

Called by an application that is administering the device to determine the current encryption status of the device.

public virtual Android.App.Admin.EncryptionStatus StorageEncryptionStatus { [Android.Runtime.Register("getStorageEncryptionStatus", "()I", "GetGetStorageEncryptionStatusHandler")] get; }
[<get: Android.Runtime.Register("getStorageEncryptionStatus", "()I", "GetGetStorageEncryptionStatusHandler")>]
member this.StorageEncryptionStatus : Android.App.Admin.EncryptionStatus

Property Value

current status of encryption. The value will be one of #ENCRYPTION_STATUS_UNSUPPORTED, #ENCRYPTION_STATUS_INACTIVE, #ENCRYPTION_STATUS_ACTIVATING, #ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY, #ENCRYPTION_STATUS_ACTIVE, or #ENCRYPTION_STATUS_ACTIVE_PER_USER.

Attributes

Remarks

Called by an application that is administering the device to determine the current encryption status of the device.

Depending on the returned status code, the caller may proceed in different ways. If the result is #ENCRYPTION_STATUS_UNSUPPORTED, the storage system does not support encryption. If the result is #ENCRYPTION_STATUS_INACTIVE, use #ACTION_START_ENCRYPTION to begin the process of encrypting or decrypting the storage. If the result is #ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY, the storage system has enabled encryption but no password is set so further action may be required. If the result is #ENCRYPTION_STATUS_ACTIVATING, #ENCRYPTION_STATUS_ACTIVE or #ENCRYPTION_STATUS_ACTIVE_PER_USER, no further action is required.

Java documentation for android.app.admin.DevicePolicyManager.getStorageEncryptionStatus().

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