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

Commit eb787900 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Run user sensitive 60 seconds after boot" into rvc-qpr-dev am: a88d2210 am: f12fdf1c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12361256

Change-Id: I6c26c0a385ca3126f482a0c2c0ab42bd21925aae
parents 881a17d3 f12fdf1c
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ import java.util.concurrent.ExecutionException;
public final class PermissionPolicyService extends SystemService {
    private static final String LOG_TAG = PermissionPolicyService.class.getSimpleName();
    private static final boolean DEBUG = false;
    private static final long USER_SENSITIVE_UPDATE_DELAY_MS = 10000;
    private static final long USER_SENSITIVE_UPDATE_DELAY_MS = 60000;

    private final Object mLock = new Object();

@@ -283,6 +283,11 @@ public final class PermissionPolicyService extends SystemService {
                manager.updateUserSensitiveForApp(uid);
            }
        }, UserHandle.ALL, intentFilter, null, null);

        PermissionControllerManager manager = new PermissionControllerManager(
                getUserContext(getContext(), Process.myUserHandle()), FgThread.getHandler());
        FgThread.getHandler().postDelayed(manager::updateUserSensitive,
                USER_SENSITIVE_UPDATE_DELAY_MS);
    }

    /**
@@ -425,8 +430,7 @@ public final class PermissionPolicyService extends SystemService {
                throw new IllegalStateException(e);
            }

            FgThread.getHandler().postDelayed(permissionControllerManager::updateUserSensitive,
                    USER_SENSITIVE_UPDATE_DELAY_MS);
            permissionControllerManager.updateUserSensitive();

            packageManagerInternal.updateRuntimePermissionsFingerprint(userId);
        }