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

Commit 51e642b9 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

Merge "Apply package visibility in getPackageForUid for shared UID apps" into sc-dev

parents 37bbbd47 aaee6c74
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -3863,7 +3863,8 @@ public class PackageManagerService extends IPackageManager.Stub
                int i = 0;
                int i = 0;
                for (int index = 0; index < N; index++) {
                for (int index = 0; index < N; index++) {
                    final PackageSetting ps = sus.packages.valueAt(index);
                    final PackageSetting ps = sus.packages.valueAt(index);
                    if (ps.getInstalled(userId)) {
                    if (ps.getInstalled(userId)
                            && !shouldFilterApplicationLocked(ps, callingUid, userId)) {
                        res[i++] = ps.name;
                        res[i++] = ps.name;
                    }
                    }
                }
                }