Stay organized with collections
Save and categorize content based on your preferences.
PersistentDataBlockManager
open class PersistentDataBlockManager
Interface to the persistent data partition. Provides access to information about the state of factory reset protection.
Summary
Public methods |
open Boolean |
Returns true if FactoryResetProtection (FRP) is active, meaning the device rebooted and has not been able to deactivate FRP because the deactivation secrets were wiped by an untrusted factory reset.
|
Public methods
isFactoryResetProtectionActive
open fun isFactoryResetProtectionActive(): Boolean
Returns true if FactoryResetProtection (FRP) is active, meaning the device rebooted and has not been able to deactivate FRP because the deactivation secrets were wiped by an untrusted factory reset.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# PersistentDataBlockManager\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPersistentDataBlockManager\n==========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/persistentdata/PersistentDataBlockManager \"View this page in Java\") \n\n```\nopen class PersistentDataBlockManager\n```\n\n|---|----------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.persistentdata.PersistentDataBlockManager](#) |\n\nInterface to the persistent data partition. Provides access to information about the state of factory reset protection.\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isFactoryResetProtectionActive](#isFactoryResetProtectionActive())`()` Returns true if FactoryResetProtection (FRP) is active, meaning the device rebooted and has not been able to deactivate FRP because the deactivation secrets were wiped by an untrusted factory reset. |\n\nPublic methods\n--------------\n\n### isFactoryResetProtectionActive\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun isFactoryResetProtectionActive(): Boolean\n```\n\nReturns true if FactoryResetProtection (FRP) is active, meaning the device rebooted and has not been able to deactivate FRP because the deactivation secrets were wiped by an untrusted factory reset."]]