DeviceSettings

public abstract class DeviceSettings


与设备上与安全相关的设备设置相关的信息。

摘要

嵌套类型

public abstract class DeviceSettings.Builder

DeviceSettings 的构建器。

设备的加密状态。

设备上是否启用了 Google Play 保护机制验证。

用于保护设备或资料的屏幕锁定的复杂性。

公共方法

static DeviceSettings.Builder
static DeviceSettings
abstract DeviceSettings.EncryptionStatus

加密状态。

Metadata

有关加密状态的元数据。

abstract DeviceSettings.GooglePlayProtectVerifyAppsState

设备上是否启用了 Google Play 保护机制验证。

Metadata

与 Google Play 保护机制验证应用状态相关的元数据。

abstract DeviceSettings.ScreenLockComplexity

用于保护设备或资料的屏幕锁定的复杂性。

Metadata

有关屏幕锁定复杂度的元数据。

boolean

如果设置了 encryptionStatusMetadata,则返回 true

boolean

如果设置了 googlePlayProtectVerifyAppsStateMetadata,则返回 true

boolean

如果设置了 screenLockComplexityMetadata,则返回 true

abstract DeviceSettings.Builder

公共方法

builder

public static DeviceSettings.Builder builder()

getDefaultInstance

public static DeviceSettings getDefaultInstance()

getEncryptionStatus

public abstract DeviceSettings.EncryptionStatus getEncryptionStatus()

加密状态。

getEncryptionStatusMetadata

public Metadata getEncryptionStatusMetadata()

有关加密状态的元数据。

getGooglePlayProtectVerifyAppsState

public abstract DeviceSettings.GooglePlayProtectVerifyAppsState getGooglePlayProtectVerifyAppsState()

设备上是否启用了 Google Play 保护机制验证。

getGooglePlayProtectVerifyAppsStateMetadata

public Metadata getGooglePlayProtectVerifyAppsStateMetadata()

与 Google Play 保护机制验证应用状态相关的元数据。

getScreenLockComplexity

public abstract DeviceSettings.ScreenLockComplexity getScreenLockComplexity()

用于保护设备或资料的屏幕锁定的复杂程度。这需要调用方具有 REQUEST_PASSWORD_COMPLEXITY 权限。

getScreenLockComplexityMetadata

public Metadata getScreenLockComplexityMetadata()

有关屏幕锁定复杂度的元数据。

hasEncryptionStatusMetadata

public boolean hasEncryptionStatusMetadata()

如果设置了 encryptionStatusMetadata,则返回 true

hasGooglePlayProtectVerifyAppsStateMetadata

public boolean hasGooglePlayProtectVerifyAppsStateMetadata()

如果设置了 googlePlayProtectVerifyAppsStateMetadata,则返回 true

hasScreenLockComplexityMetadata

public boolean hasScreenLockComplexityMetadata()

如果设置了 screenLockComplexityMetadata,则返回 true

toBuilder

public abstract DeviceSettings.Builder toBuilder()