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

Commit b7070809 authored by Songchun Fan's avatar Songchun Fan Committed by Automerger Merge Worker
Browse files

[pm] restrict PackageInstaller getMySessions() results based on calling UIDs am: 222a6b43

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15146213

Change-Id: I6f7a4fcace80f3d8cfbd38c1b4165772589b68de
parents 47522717 222a6b43
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -989,7 +989,8 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
                SessionInfo info =
                        session.generateInfoForCaller(false /*withIcon*/, Process.SYSTEM_UID);
                if (Objects.equals(info.getInstallerPackageName(), installerPackageName)
                        && session.userId == userId && !session.hasParentSessionId()) {
                        && session.userId == userId && !session.hasParentSessionId()
                        && isCallingUidOwner(session)) {
                    result.add(info);
                }
            }