StrictMode.VmPolicy.Builder.DetectCredentialProtectedWhileLocked Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Detects access to 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.
[Android.Runtime.Register("detectCredentialProtectedWhileLocked", "()Landroid/os/StrictMode$VmPolicy$Builder;", "", ApiSince=29)]
public Android.OS.StrictMode.VmPolicy.Builder DetectCredentialProtectedWhileLocked();
[<Android.Runtime.Register("detectCredentialProtectedWhileLocked", "()Landroid/os/StrictMode$VmPolicy$Builder;", "", ApiSince=29)>]
member this.DetectCredentialProtectedWhileLocked : unit -> Android.OS.StrictMode.VmPolicy.Builder
Returns
The returned value is non-null.
- Attributes
Remarks
Detects access to 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.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.