Refresh the cache on new package installation.

Bug: 189818162
Test: atest PackageManagerShellCommandIncrementalTest ResourcesHardeningTest#checkXmlAttributesRemote
Change-Id: I2082f2d75037c4513377f24546fbd7aec846983e
This commit is contained in:
Alex Buynytskyy
2021-07-07 10:43:39 -07:00
parent 527d6d6a3e
commit 49a88f66f1

View File

@@ -6179,6 +6179,9 @@ public class PackageManagerService extends IPackageManager.Stub
}
if (succeeded) {
// Clear the uid cache after we installed a new package.
mPerUidReadTimeoutsCache = null;
// Send the removed broadcasts
if (res.removedInfo != null) {
res.removedInfo.sendPackageRemovedBroadcasts(killApp, false /*removedBySystem*/);