summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author James Mattis <jmattis@google.com> 2021-03-25 10:44:22 -0700
committer James Mattis <jmattis@google.com> 2021-03-30 17:16:44 -0700
commit4a12466678e912b621c1e0636ddeeea3cc0cf5a3 (patch)
tree34b0f131a36b1bfa38535f2f9d28d661ef6fd9f1
parent07a238ab02ec48da53e0f11351e3336bc8da649e (diff)
Change the const for the unreachable network
Changing the const used for the unreachable network for per-app functionality for those apps whose traffic for the default network we wish to lose connectivity as dictated by per app network preferences. This is being done as per changes in https://r.android.com/1643182. Bug: 181579204 Test: atest FrameworksNetTests Change-Id: I1bffadfa03a6221096100c9e0457ea00f94027a3
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index 7ea3738aae00..e3ce7a31b97e 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -6296,8 +6296,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
// Request used to optionally keep vehicle internal network always active
private final NetworkRequest mDefaultVehicleRequest;
- // TODO replace with INetd.DUMMY_NET_ID when available.
- private static final int NO_SERVICE_NET_ID = 51;
+ // TODO replace with INetd.UNREACHABLE_NET_ID when available.
+ private static final int NO_SERVICE_NET_ID = 52;
// Sentinel NAI used to direct apps with default networks that should have no connectivity to a
// network with no service. This NAI should never be matched against, nor should any public API
// ever return the associated network. For this reason, this NAI is not in the list of available