Update StrictMode policy

This commit is contained in:
cketti 2022-02-15 04:27:04 +01:00
parent 5d102ec610
commit 91239f92d2

View file

@ -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()