Merge "ConnectivityManager: Address review comments from aosp/1595396" am: 1515b6c96d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1633279 Change-Id: I6653d668d1fdc4370f8d5db1da41214b9755bb4d
This commit is contained in:
@@ -3418,6 +3418,8 @@ public class ConnectivityManager {
|
|||||||
* not include location sensitive info.
|
* not include location sensitive info.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
|
// Note: Some existing fields which are location sensitive may still be included without
|
||||||
|
// this flag if the app targets SDK < S (to maintain backwards compatibility).
|
||||||
public static final int FLAG_INCLUDE_LOCATION_INFO = 1 << 0;
|
public static final int FLAG_INCLUDE_LOCATION_INFO = 1 << 0;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
@@ -1111,7 +1111,9 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
* app needs to hold {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission. If the
|
* app needs to hold {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission. If the
|
||||||
* app targets SDK version greater than or equal to {@link Build.VERSION_CODES#S}, then they
|
* app targets SDK version greater than or equal to {@link Build.VERSION_CODES#S}, then they
|
||||||
* also need to use {@link NetworkCallback#FLAG_INCLUDE_LOCATION_INFO} to get the info in their
|
* also need to use {@link NetworkCallback#FLAG_INCLUDE_LOCATION_INFO} to get the info in their
|
||||||
* callback. The app will be blamed for location access if this field is included.
|
* callback. If the apps targets SDK version equal to {{@link Build.VERSION_CODES#R}, this field
|
||||||
|
* will always be included. The app will be blamed for location access if this field is
|
||||||
|
* included.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public int getOwnerUid() {
|
public int getOwnerUid() {
|
||||||
|
|||||||
Reference in New Issue
Block a user