Added in API level 29

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.

Summary

Inherited methods