RESTRICT AUTOMERGE: Autocork package invalidations am: d59e2a9045 am: 1bab893efd am: fcde3b83e7

Change-Id: I2e7f730f09dc2d5a77d35eba95b70b21980402b8
This commit is contained in:
Daniel Colascione
2020-04-20 00:24:32 +00:00
committed by Automerger Merge Worker

View File

@@ -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