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

Commit 5116c33a authored by Amith Yamasani's avatar Amith Yamasani Committed by android-build-merger
Browse files

Merge "DO NOT MERGE Fix security exception due to incorrect flags" into pi-dev

am: 9f1885de

Change-Id: I292370dc2fcf4b33e42c5a97a9d5d5bacfe0def8
parents b5566e87 9f1885de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -710,7 +710,7 @@ public class UsageStatsService extends SystemService implements
            final int callingUid = Binder.getCallingUid();
            final int callingUserId = UserHandle.getUserId(callingUid);

            if (mPackageManagerInternal.getPackageUid(pkg, PackageManager.MATCH_ANY_USER,
            if (mPackageManagerInternal.getPackageUid(pkg, /*flags=*/ 0,
                    callingUserId) != callingUid) {
                throw new SecurityException("Calling uid " + pkg + " cannot query events"
                        + "for package " + pkg);