diff options
author | Xin Li <delphij@google.com> | 2020-09-02 12:34:03 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2020-09-02 12:34:37 -0700 |
commit | c8c8e8e8bed4213a7e77ca61fd71adbb17054459 (patch) | |
tree | ae08e042f28b29882742073d166c893cae264ccc /telephony/common | |
parent | cf7c807eea1a1209c533c20fa97a952c904b6577 (diff) | |
parent | 34a1b9c951c38537ab96b69bc308f6e0884823f5 (diff) |
Merge RP1A.200720.011
Bug: 167588565
Merged-In: Iec7a26ecd68aca9c7a38cc8f441197a8237b0c8c
Change-Id: Ia8f5f008bc1f77115b644ab996aedc892fab68e7
Diffstat (limited to 'telephony/common')
-rw-r--r-- | telephony/common/android/telephony/LocationAccessPolicy.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/telephony/common/android/telephony/LocationAccessPolicy.java b/telephony/common/android/telephony/LocationAccessPolicy.java index 1985f7810873..25b062f85d3e 100644 --- a/telephony/common/android/telephony/LocationAccessPolicy.java +++ b/telephony/common/android/telephony/LocationAccessPolicy.java @@ -260,11 +260,12 @@ public final class LocationAccessPolicy { /** Check if location permissions have been granted */ public static LocationPermissionResult checkLocationPermission( Context context, LocationPermissionQuery query) { - // Always allow the phone process and system server to access location. This avoid - // breaking legacy code that rely on public-facing APIs to access cell location, and - // it doesn't create an info leak risk because the cell location is stored in the phone + // Always allow the phone process, system server, and network stack to access location. + // This avoid breaking legacy code that rely on public-facing APIs to access cell location, + // and it doesn't create an info leak risk because the cell location is stored in the phone // process anyway, and the system server already has location access. if (query.callingUid == Process.PHONE_UID || query.callingUid == Process.SYSTEM_UID + || query.callingUid == Process.NETWORK_STACK_UID || query.callingUid == Process.ROOT_UID) { return LocationPermissionResult.ALLOWED; } |