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

Commit 6f13c436 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: Idb0ba52a58231ce9ede97b158a1cb38d1a9633ae
parents 6823c8a8 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);