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

Commit 12a6a98f authored by David van Tonder's avatar David van Tonder Committed by Gerrit Code Review
Browse files

Merge "Don't enable GPS if the requesting app is blacklisted." into cm-10.1

parents 71e08435 0f166de3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -982,7 +982,8 @@ public class LocationManagerService extends ILocationManager.Stub implements Run

        if (records != null) {
            for (UpdateRecord record : records) {
                if (UserHandle.getUserId(record.mReceiver.mUid) == mCurrentUserId) {
                if (UserHandle.getUserId(record.mReceiver.mUid) == mCurrentUserId &&
                        !mBlacklist.isBlacklisted(record.mReceiver.mPackageName)) {
                    LocationRequest locationRequest = record.mRequest;
                    providerRequest.locationRequests.add(locationRequest);
                    if (locationRequest.getInterval() < providerRequest.interval) {