From c8148a18d02cb4108f277cc9162ac5fb2ec44b3c Mon Sep 17 00:00:00 2001 From: junyulai Date: Thu, 28 Jan 2021 14:42:52 +0800 Subject: [PATCH] [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 --- service-t/src/com/android/server/ethernet/EthernetTracker.java | 1 + 1 file changed, 1 insertion(+) diff --git a/service-t/src/com/android/server/ethernet/EthernetTracker.java b/service-t/src/com/android/server/ethernet/EthernetTracker.java index d7fd408b69..72245afdf8 100644 --- a/service-t/src/com/android/server/ethernet/EthernetTracker.java +++ b/service-t/src/com/android/server/ethernet/EthernetTracker.java @@ -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);