android_packages_modules_Co.../framework/src/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai fbf102a88b Include NET_CAPABILITY_NOT_VCN_MANAGED for tethering local network agent
Currently, NET_CAPABILITY_NOT_VCN_MANAGED is implicited added for
NetworkRequest built by normal apps.
However, the tethering network agent doesn't have this capability,
which makes the agent being exposed to VcnManager and cannot be
seen by normal apps.

Add NET_CAPABILITY_NOT_VCN_MANAGED to tethering NetworkAgent. Include
NET_CAPABILITY_NOT_VCN_MANAGED in local network capabilities for
metrics and API utilities to ensure correct evaluation of local
network connectivity. Update unit tests to reflect the new capability.

Flag: EXEMPT bug fix
Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.CSSatisfiedByLocalNetworkMetricsTest \
      ConnectivityCoverageTests:android.net.connectivity.com.android.metrics.SatisfiedByLocalNetworkMetricsTest \
      --update-device
Test: manual generate request by CTS and statsd_testdrive -e 10247
Bug: 428098173
Change-Id: Ifa9ce0827abd22d887a0e8a2ab6f4d7391b2b8ed
2025-08-06 11:24:33 +08:00
..
apf Update document for ApfCapabilities.hashCode() 2024-06-13 20:44:46 +09:00
connectivity Include NET_CAPABILITY_NOT_VCN_MANAGED for tethering local network agent 2025-08-06 11:24:33 +08:00
util Move ConnectivityResources to service-connectivity 2023-04-28 19:18:39 +09:00
BpfNetMapsConstants.java Adding access methods for local_net_access_map and 2025-02-07 15:10:49 -05:00
BpfNetMapsUtils.java Fix to return BLOCKED_REASON_NONE for system uids 2024-07-30 16:56:52 +09:00
CaptivePortal.java CaptivePortal: implement setDelegateUid API. 2024-12-11 20:27:10 +09:00
CaptivePortalData.java Revert^2 "Implement opt-in to custom tabs in captive portals." 2025-07-13 23:47:42 -07:00
ConnectionInfo.aidl Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
ConnectionInfo.java Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
ConnectivityDiagnosticsManager.java Check location permission for ConnDiags last. 2021-05-21 16:22:50 +00:00
ConnectivityFrameworkInitializer.java Don't expose raw IBinder APIs. 2021-04-15 18:47:21 +09:00
ConnectivityManager.java Revert "Revert "Add hidden API to register/unregister QUIC conne..." 2025-03-27 08:49:00 +09:00
ConnectivitySettingsManager.java Enable per-subId 'avoid bad Wi-Fi' setting storage 2025-06-19 11:30:06 +00:00
ConnectivityThread.java Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
DhcpInfo.java Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
DhcpOption.java Address API review comments for DhcpOption object 2022-02-07 19:42:40 -08:00
DnsResolver.java Add test for downstream tethering 2023-09-12 17:53:37 +09:00
DnsResolverServiceManager.java Use jarjar rule generator for connectivity rules 2022-07-20 19:57:11 +09:00
DscpPolicy.java Move the DscpPolicy status constants and IntDef to NetworkAgent. 2022-03-25 01:06:46 +09:00
ICaptivePortal.aidl CaptivePortal: implement setDelegateUid API. 2024-12-11 20:27:10 +09:00
IConnectivityDiagnosticsCallback.aidl Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
IConnectivityManager.aidl Revert "Revert "Add hidden API to register/unregister QUIC conne..." 2025-03-27 08:49:00 +09:00
InetAddresses.java Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
INetworkActivityListener.aidl [IT06]Move INetworkActivityListener into connectivity module 2021-02-18 12:03:21 +08:00
INetworkAgent.aidl Reapply "Return the registry in registerNetworkAgent." 2025-03-18 14:42:39 +09:00
INetworkAgentRegistry.aidl Reapply "Return the registry in registerNetworkAgent." 2025-03-18 14:42:39 +09:00
INetworkOfferCallback.aidl [NS05] Feed network offer callbacks 2021-06-07 10:57:48 +00:00
InvalidPacketException.java Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
IOnCompleteListener.aidl Move network selection utils to Connectivity 2021-03-18 23:57:26 +09:00
IpConfiguration.java Expose public APIs for IP & static IP configuration 2022-02-07 19:57:07 +00:00
IpPrefix.java Revert "Revert "Unhide IpPrefix(InetAddress, int)"" 2021-12-19 11:54:56 +00:00
IQosCallback.aidl Add 5G/NR QOS support 2021-03-23 19:14:21 -07:00
ISocketKeepaliveCallback.aidl [DK3] Send onPause/onResume keepalive callbacks 2023-02-06 13:23:13 +00:00
ITestNetworkManager.aidl TestNetworkService: add support to disable DAD on test interfaces 2022-07-21 10:20:16 -07:00
KeepalivePacketData.java Add KeepalivePacketData toString() 2022-02-11 19:17:10 +00:00
L2capNetworkSpecifier.java Move server reservation validation to L2capNetworkSpecifier 2025-02-25 09:26:08 -08:00
LinkAddress.java Deduplicate the isIpv6ULA implementation. 2023-07-18 20:04:43 +09:00
LinkProperties.java LinkProperties: use ordered comparison for P-CSCFs - only on U+ 2023-05-18 05:57:51 +00:00
LocalNetworkConfig.java Prepare exposing LocalNetworkConfig and its satellites 2023-11-09 14:26:13 +09:00
LocalNetworkInfo.java Add LocalNetworkInfo and send callbacks when it changes 2023-11-07 17:29:38 +09:00
MacAddress.java Address comment from ag/12107302 2023-07-27 17:29:18 +09:00
MulticastRoutingConfig.java Add equals, hashCode to MulticastRoutingConfig 2023-11-10 13:06:22 +08:00
NattKeepalivePacketData.java Correct typo variable 2023-06-15 01:43:07 +00:00
NattSocketKeepalive.java Add underpinned Network parameter in SocketKeepalive.start() 2023-02-14 10:29:19 +00:00
Network.java Parcel Network#mPrivateDnsBypass 2025-04-07 11:46:38 +09:00
NetworkAgent.java Fix NetworkAgent 4-way binder interlock 2025-05-26 11:16:51 +09:00
NetworkAgentConfig.java Revert "Add SkipNativeNetworkCreation flag in NetworkAgentConfig" 2025-02-26 01:30:20 -08:00
NetworkAndAgentRegistryParcelable.aidl Reapply "Return the registry in registerNetworkAgent." 2025-03-18 14:42:39 +09:00
NetworkCapabilities.java Improve annotation and javadoc for set/getTransportType APIs 2025-06-12 14:03:04 +08:00
NetworkConfig.java Move module sources to packages/Connectivity 2021-02-01 11:52:14 +09:00
NetworkInfo.java Fix agents disconnecting in SUSPENDED state. 2023-05-16 16:35:03 +09:00
NetworkProvider.java NetworkProvider: improve documentation of unregisterNetworkOffer 2022-07-25 13:31:14 -07:00
NetworkReleasedException.java Expose constructor of Exceptions. 2022-03-17 18:05:56 +00:00
NetworkRequest.java Fix exception when unparcelling NetworkRequest with reservationId 2025-01-07 12:59:21 -08:00
NetworkScore.java Allow VCN network to beat a physical cell in network ranking 2025-06-17 01:30:07 +00:00
NetworkStackBpfNetMaps.java Move isChainEnabled and getUidRule to BpfNetMapsUtils 2024-03-19 04:21:29 +00:00
NetworkState.java Remove Slog usage in NetworkState 2021-03-11 21:01:30 +09:00
NetworkUtils.java Add method to get socket cookie from socket FileDescriptor 2025-03-03 17:23:04 -08:00
OemNetworkPreferences.java Adding OEM Network Preferences for testing 2021-04-05 21:51:09 -07:00
ParseException.java Set ParseException constructors as public 2021-04-08 15:57:31 +09:00
ProfileNetworkPreference.java Correct javadoc usage 2022-07-15 03:44:46 +00:00
ProxyInfo.java Fix a bug where the PAC proxy port is not set correctly. 2023-06-05 20:24:59 +09:00
QosCallback.java Move QoS API classes to Connectivity 2021-03-01 18:09:30 +09:00
QosCallbackConnection.java Use jarjar rule generator for connectivity rules 2022-07-20 19:57:11 +09:00
QosCallbackException.java Use jarjar rule generator for connectivity rules 2022-07-20 19:57:11 +09:00
QosFilter.java Extend QosFilter address matching function 2025-05-08 22:37:32 -07:00
QosFilterParcelable.java Support QosCallback for UDP socket -Filter 2022-04-20 22:46:21 +00:00
QosSession.java Fix typedef retention 2023-11-10 13:28:07 +00:00
QosSessionAttributes.java Move QoS API classes to Connectivity 2021-03-01 18:09:30 +09:00
QosSocketFilter.java Extend QosFilter address matching function 2025-05-08 22:37:32 -07:00
QosSocketInfo.java Support QosCallback for UDP socket: Expose API&CTS 2022-09-29 08:54:08 +00:00
RouteInfo.java Add a routing coordinator class 2023-10-24 22:12:26 +09:00
SocketKeepalive.java DO not throw exception for ERROR_NO_SUCH_SLOT error 2023-05-23 05:08:45 +00:00
SocketLocalAddressChangedException.java Expose constructor of Exceptions. 2022-03-17 18:05:56 +00:00
SocketNotBoundException.java Expose constructor of Exceptions. 2022-03-17 18:05:56 +00:00
SocketNotConnectedException.java Support QosCallback for UDP socket: Expose API&CTS 2022-09-29 08:54:08 +00:00
SocketRemoteAddressChangedException.java Support QosCallback for UDP socket: Expose API&CTS 2022-09-29 08:54:08 +00:00
StaticIpConfiguration.java Expose public APIs for IP & static IP configuration 2022-02-07 19:57:07 +00:00
TcpKeepalivePacketData.java Replace fields with getters in keepalive API 2021-04-08 14:06:53 +09:00
TcpRepairWindow.java Remove TcpRepairWindow from module-lib API 2021-04-12 14:26:55 +08:00
TcpSocketKeepalive.java Correct nullability and add extra check for underpinnedNetwork 2023-03-13 09:00:43 +00:00
TestNetworkInterface.java TestNetworkInterface: improve documentation of newly added methods 2022-11-18 09:44:30 -08:00
TestNetworkManager.java Delete unused createTapInterface method 2025-02-24 09:19:44 -08:00
TestNetworkSpecifier.java Remove Preconditions usage in TestNetworkSpecifier 2021-03-22 00:02:10 +00:00
TransportInfo.java resolve merge conflicts of 403b7fd0b0a6736bcee1817fb5c774f8c8a040de to stage-aosp-master 2021-03-21 19:16:33 +00:00
UidOwnerValue.java [BR01.1] Support BpfNetMapsReader 2023-10-23 20:11:02 +08:00
UidRange.aidl Move UidRange to connectivity 2021-03-02 15:35:36 +09:00
UidRange.java Genericize NC#hasSameUids 2021-12-16 23:03:42 +09:00
VpnTransportInfo.java Rename getBypassable to isBypassable 2022-12-15 04:22:43 +00:00