DevicePolicyManager.StorageEncryptionStatus 属性

定义

由管理设备的应用程序调用,以确定设备的当前加密状态。

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

属性值

加密的当前状态。 该值为之#ENCRYPTION_STATUS_UNSUPPORTED一、、#ENCRYPTION_STATUS_INACTIVE#ENCRYPTION_STATUS_ACTIVATING#ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY、或#ENCRYPTION_STATUS_ACTIVE#ENCRYPTION_STATUS_ACTIVE_PER_USER

属性

注解

由管理设备的应用程序调用,以确定设备的当前加密状态。

根据返回的状态代码,调用方可能以不同的方式继续。 如果结果是 #ENCRYPTION_STATUS_UNSUPPORTED,则存储系统不支持加密。 如果结果是 #ENCRYPTION_STATUS_INACTIVE,则用于 #ACTION_START_ENCRYPTION 开始加密或解密存储的过程。 如果结果是 #ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY,则存储系统已启用加密,但未设置密码,因此可能需要进一步操作。 如果结果为 #ENCRYPTION_STATUS_ACTIVATING#ENCRYPTION_STATUS_ACTIVE#ENCRYPTION_STATUS_ACTIVE_PER_USER不需要进一步操作。

适用于 . 的 android.app.admin.DevicePolicyManager.getStorageEncryptionStatus()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于