# Print output for @column tags ?> CredentialProtectedWhileLockedViolation - Android SDK | Android Developers

Most visited


Recently visited


CredentialProtectedWhileLockedViolation

public final class CredentialProtectedWhileLockedViolation
extends Violation

java.lang.Object
   ↳ java.lang.Throwable
     ↳ android.os.strictmode.Violation
       ↳ android.os.strictmode.CredentialProtectedWhileLockedViolation


Subclass of Violation that is used when a process accesses filesystem paths stored in credential protected storage areas while the user is locked.

When a user is locked, credential protected storage is unavailable, and files stored in these locations appear to not exist, which can result in subtle app bugs if they assume default behaviors or empty states. Instead, apps should store data needed while a user is locked under device protected storage areas.

See also:

Summary


Inherited methods

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.