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

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

[pm] restrict PackageInstaller getMySessions() results based on calling UIDs...

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

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

Change-Id: I2e201dbe9b9a75b79ce9f8de59e52764e0176fa9
parents fc7a4725 7b17f2b7
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);
                }
            }