[pm] restrict PackageInstaller getMySessions() results based on calling UIDs am: 222a6b43a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15146213 Change-Id: I42061fe615bce5ddf84551a1e48405449effec4f
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user