android_packages_modules_Co.../tests/net/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Roshan Pius 7992afdcc3 ConnectivityManager: Provide API's to include location sensitive info
Existing NetworkCallback users will get NetworkCapabilities with
location sensitive data removed (except for ownerUid which will be
added for existing apps for backwards compatibility). Apps
have to opt-in to receive location sensitive data.

Note: This was chosen because WifiInfo is the only TransportInfo tha
has location sensitive info & that was added only in Android 12. If we
choose to default to true, all existings apps retrieving
NetworkCapabilities for wifi networks will be blamed for location access
unnecessarily.

Changes:
i) Add a flag in NetworkCallback creation to retrieve
NetworkCapabilities with location sensitive info in their callback.
(More flags are being planned for NetworkCallback for throttling
callback frequency, etc)
ii) For NetworkCapabilities.getOwnerUid(), we will continue to send the
data for apps targeting older SDK (since this is an existing field and
the new flag defaults location sensitive data to off).

Bug: 156867433
Test: atest android.net
Test: atest com.android.server
Change-Id: If70b5ea6f5c8885f0c353c8df08a826d55fe7f7a
2021-03-11 18:27:18 -08:00
..
connectivity Add Ethernet, TestNetworkSpecifier API 2021-03-11 23:02:02 +08:00
net [FUI09] Expose NetworkStateSnapshot as system API 2021-03-02 23:09:16 +08:00
ConnectivityServiceTest.java ConnectivityManager: Provide API's to include location sensitive info 2021-03-11 18:27:18 -08:00
IpSecServiceParameterizedTest.java Merge changes I852e3a53,I86755647,I0ed8b0c6 2021-02-22 06:49:39 +00:00
IpSecServiceRefcountedResourceTest.java Remove unused INetworkManagementService from IpSecService 2021-02-08 08:05:00 +00:00
IpSecServiceTest.java Remove unused INetworkManagementService from IpSecService 2021-02-08 08:05:00 +00:00
LegacyTypeTrackerTest.kt Revert the fallback naming into default network 2021-02-04 13:14:05 +09:00
NetIdManagerTest.kt Move utils from network stack to libs. 2020-07-29 21:15:48 +09:00
NetworkManagementServiceTest.java Merge "[IT4.2] Update argument type of interfaceClassDataActivityChanged" 2020-12-28 01:05:28 +00:00
NsdServiceTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00