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

Commit 278a8673 authored by Daniel Colascione's avatar Daniel Colascione Committed by Android (Google) Code Review
Browse files

Merge "Autocork package invalidations"

parents 5b3ac5e8 4849c3a9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8015,13 +8015,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