Merge "Compare against correct user id to determine static lib clients" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-05-31 00:52:38 +00:00
committed by Android (Google) Code Review

View File

@@ -18531,7 +18531,7 @@ public class PackageManagerService extends IPackageManager.Stub
pkg.staticSharedLibVersion); pkg.staticSharedLibVersion);
if (libEntry != null) { if (libEntry != null) {
for (int currUserId : allUsers) { for (int currUserId : allUsers) {
if (userId != UserHandle.USER_ALL && userId != currUserId) { if (removeUser != UserHandle.USER_ALL && removeUser != currUserId) {
continue; continue;
} }
List<VersionedPackage> libClientPackages = getPackagesUsingSharedLibraryLPr( List<VersionedPackage> libClientPackages = getPackagesUsingSharedLibraryLPr(