Fix bug for user removed case

For user removed case, need to remove all data
which is related with theremoved userId.

Bug: N/A
Test: N/A
Change-Id: Icad92b86d37154134117a0c6035d95617df352d1
Merged-In: I400e2d9d3ec8b76a293856c44375bb1d302c530f
This commit is contained in:
yong8.huang
2022-10-14 14:23:42 +08:00
parent 8314a3e51b
commit 667237ea5b

View File

@@ -517,7 +517,6 @@ public class InternalResourceService extends SystemService {
removedPkgs.add(pkgInfo.packageName);
mUidToPackageCache.remove(pkgInfo.applicationInfo.uid);
mPkgCache.remove(i);
break;
}
}
mAgent.onUserRemovedLocked(userId, removedPkgs);