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

Commit 632c036d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix crash on calling getAppStandbyBucket()" into pi-dev

parents 15ae7208 99e1424e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -924,8 +924,7 @@ public class UsageStatsService extends SystemService implements
            } catch (RemoteException re) {
                throw re.rethrowFromSystemServer();
            }
            final int packageUid = mPackageManagerInternal.getPackageUid(packageName,
                    PackageManager.MATCH_ANY_USER, userId);
            final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId);
            // If the calling app is asking about itself, continue, else check for permission.
            if (packageUid != callingUid) {
                if (!hasPermission(callingPackage)) {