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

Commit 11e4c368 authored by Nathan Harold's avatar Nathan Harold Committed by Automerger Merge Worker
Browse files

Merge "Add TelephonyRegistry LOCATION checks" into rvc-dev am: b1755b5e am:...

Merge "Add TelephonyRegistry LOCATION checks" into rvc-dev am: b1755b5e am: 03def1e1 am: d99bda65 am: d65ea4d3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11760916

Change-Id: I05a2e9f7c1dcf68c6f6f20a4db6834feb3c3c965
parents 7c38645f d65ea4d3
Loading
Loading
Loading
Loading
+20 −17
Original line number Diff line number Diff line
@@ -311,12 +311,15 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
    private List<Map<Integer, PreciseDataConnectionState>> mPreciseDataConnectionStates =
            new ArrayList<Map<Integer, PreciseDataConnectionState>>();

    // Nothing here yet, but putting it here in case we want to add more in the future.
    static final int ENFORCE_COARSE_LOCATION_PERMISSION_MASK = 0;
    static final int ENFORCE_COARSE_LOCATION_PERMISSION_MASK =
            PhoneStateListener.LISTEN_REGISTRATION_FAILURE
                    | PhoneStateListener.LISTEN_BARRING_INFO;

    static final int ENFORCE_FINE_LOCATION_PERMISSION_MASK =
            PhoneStateListener.LISTEN_CELL_LOCATION
                    | PhoneStateListener.LISTEN_CELL_INFO;
                    | PhoneStateListener.LISTEN_CELL_INFO
                    | PhoneStateListener.LISTEN_REGISTRATION_FAILURE
                    | PhoneStateListener.LISTEN_BARRING_INFO;

    static final int ENFORCE_PHONE_STATE_PERMISSION_MASK =
            PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR