Merge "Refresh the cache on new package installation." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-07-08 15:20:36 +00:00
committed by Android (Google) Code Review

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*/);