From 91239f92d23ce4e12cd6f8ed9324d0f512fa0f5d Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 15 Feb 2022 04:27:04 +0100 Subject: [PATCH] Update StrictMode policy --- app/core/src/main/java/com/fsck/k9/StrictMode.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/core/src/main/java/com/fsck/k9/StrictMode.kt b/app/core/src/main/java/com/fsck/k9/StrictMode.kt index 93fd35212..29c628686 100644 --- a/app/core/src/main/java/com/fsck/k9/StrictMode.kt +++ b/app/core/src/main/java/com/fsck/k9/StrictMode.kt @@ -34,6 +34,10 @@ private fun createVmPolicy(): VmPolicy { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { detectCredentialProtectedWhileLocked() } + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + detectIncorrectContextUse() + detectUnsafeIntentLaunch() + } } .penaltyLog() .build()