Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ded03bd authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Compare against correct user id to determine static lib clients

Test: manual, static shared lib CTS tests pass

bug:36632264

Change-Id: I58b2787ff0b95c89f9e9bb9a005b39e3505aefcb
parent 7b64dbd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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(