RESTRICT AUTOMERGE: Autocork package invalidations am: d59e2a9045

Change-Id: Iddd9a644ac1f69a35bfeee18d8f9ef9f51e1ede3
This commit is contained in:
Daniel Colascione
2020-04-19 23:56:49 +00:00
committed by Automerger Merge Worker

View File

@@ -8071,13 +8071,16 @@ public abstract class PackageManager {
sApplicationInfoCache.disableLocal(); 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. * Invalidate caches of package and permission information system-wide.
* *
* @hide * @hide
*/ */
public static void invalidatePackageInfoCache() { 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 // Some of the flags don't affect the query result, but let's be conservative and cache