Update network preference priority value for VPN am: da7129d862 am: 29797ebfae am: 525b37ccd0

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1762867

Change-Id: Ifd744b25da4bce1a26eaccd7244acaaf5d3c7c80
This commit is contained in:
paulhu
2021-07-12 15:32:48 +00:00
committed by Automerger Merge Worker

View File

@@ -429,7 +429,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
// PREFERENCE_PRIORITY_NONE when sending to netd.
static final int PREFERENCE_PRIORITY_DEFAULT = 1000;
// As a security feature, VPNs have the top priority.
static final int PREFERENCE_PRIORITY_VPN = 1;
static final int PREFERENCE_PRIORITY_VPN = 0; // Netd supports only 0 for VPN.
// Priority of per-app OEM preference. See {@link #setOemNetworkPreference}.
@VisibleForTesting
static final int PREFERENCE_PRIORITY_OEM = 10;