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

Commit 1bab893e authored by Daniel Colascione's avatar Daniel Colascione Committed by Automerger Merge Worker
Browse files

RESTRICT AUTOMERGE: Autocork package invalidations am: d59e2a90

Change-Id: Iddd9a644ac1f69a35bfeee18d8f9ef9f51e1ede3
parents 6c42b1ac d59e2a90
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8071,13 +8071,16 @@ public abstract class PackageManager {
        sApplicationInfoCache.disableLocal();
    }

    private static final PropertyInvalidatedCache.AutoCorker sCacheAutoCorker =
            new PropertyInvalidatedCache.AutoCorker(PermissionManager.CACHE_KEY_PACKAGE_INFO);

    /**
     * Invalidate caches of package and permission information system-wide.
     *
     * @hide
     */
    public static void invalidatePackageInfoCache() {
        PropertyInvalidatedCache.invalidateCache(PermissionManager.CACHE_KEY_PACKAGE_INFO);
        sCacheAutoCorker.autoCork();
    }

    // Some of the flags don't affect the query result, but let's be conservative and cache