[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user