android_packages_modules_Co.../tests/net/java/android/net
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
..
ipmemorystore Add jarjar rule for IPv6ProvisioningLossQuirk. 2020-10-27 08:04:29 +00:00
nsd Rename Kotlin util files to not include the Kt suffix 2020-08-12 10:02:50 +09:00
util [Telephony] Use TelephonyCallback instead of PhoneStateListener part1 2021-03-08 20:25:00 +08:00
ConnectivityDiagnosticsManagerTest.java Rename Kotlin util files to not include the Kt suffix 2020-08-12 10:02:50 +09:00
ConnectivityManagerTest.java ConnectivityManager: Provide API's to include location sensitive info 2021-03-11 18:27:18 -08:00
Ikev2VpnProfileTest.java Update frameworks to use unbundled version of BouncyCastle. 2021-01-28 07:51:22 +00:00
IpMemoryStoreTest.java Adjust tests for renaming groupHint to cluster. 2020-05-29 02:28:59 +00:00
IpSecAlgorithmTest.java Support new IpSecAlgorithm AUTH_AES_CMAC 2021-02-25 10:35:10 -08:00
IpSecConfigTest.java Rename Kotlin util files to not include the Kt suffix 2020-08-12 10:02:50 +09:00
IpSecManagerTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00
IpSecTransformTest.java Factorize custom asserts. 2019-06-20 16:24:25 +09:00
KeepalivePacketDataUtilTest.java Use API TcpKeepalivePacketData in ClientModeImpl 2020-12-14 18:43:53 +09:00
MacAddressTest.java Move module utils to the module package. 2020-12-16 11:44:22 +09:00
NetworkIdentityTest.kt Update tests for PANS network usage metrics 2021-02-23 22:16:19 -08:00
NetworkStatsHistoryTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00
NetworkStatsTest.java NetworkStats: apply464xlatAdjustments - remove useBpfStats parameter. 2020-05-28 02:44:10 -07:00
NetworkTemplateTest.kt [FUI09] Expose NetworkStateSnapshot as system API 2021-03-02 23:09:16 +08:00
NetworkUtilsTest.java Split NetworkUtils and NetworkUtilsInternal 2020-12-07 19:41:49 +09:00
QosSocketFilterTest.java Add method to match address \ port with QosFilter 2021-01-22 06:24:41 -08:00
TelephonyNetworkSpecifierTest.java Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-31 21:21:38 -07:00
VpnManagerTest.java Move VPN code from ConnectivityService to VpnManagerService. 2021-02-12 01:12:24 +09:00
VpnTransportInfoTest.java Fix copyright license of VpnTransportInfo 2021-02-25 10:31:56 +08:00