[VCN07.4] Add NOT_VCN_MANAGED for NetworkAgent implementations

Follow-up from aosp/1549897, the capability will not be in
default capabilities, but will be in most of the NetworkRequests
which requires internet. Thus, add the capabilities into all
NetworkAgent implementations by default to provide
backward compatibility.

Test: TH
Bug: 175662146
Change-Id: Ib6e203571946e3094e4ce534b108f796cc3b8fb7
This commit is contained in:
junyulai
2021-01-28 14:42:52 +08:00
parent e81b053c1f
commit c8148a18d0

View File

@@ -467,6 +467,7 @@ final class EthernetTracker {
nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING);
nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED);
nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED);
nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED);
if (isTestIface) {
nc.addTransportType(NetworkCapabilities.TRANSPORT_TEST);