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

Change-Id: Ic2b51a759a86a1241e2be33827932f84964a6150
This commit is contained in:
Daniel Colascione
2020-04-20 00:05:25 +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