Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5e8c2f3 authored by Eugene Susla's avatar Eugene Susla
Browse files

Ensure auto-revoke is disabled by default

Test: presubmit
Fixes: 151127159
Change-Id: I3aaae565820e53d69cf9734435e1580b4a298729
parent ed5cea18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -147,7 +147,8 @@ private suspend fun revokePermissionsOnUnusedApps(context: Context) {
        val whitelistAppOpMode =
            AppOpLiveData[pkg.packageName, OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, pkg.uid]
                .getInitializedValue()
        if (whitelistAppOpMode == AppOpsManager.MODE_IGNORED) {
        if (whitelistAppOpMode == AppOpsManager.MODE_IGNORED
                || whitelistAppOpMode == AppOpsManager.MODE_DEFAULT) {
            // User exempt
            return@forEachInParallel
        }