Merge "RESTRICT AUTOMERGE: Autocork package invalidations" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd08939ba8
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user