Merge "Set legacy type for VPN" am: e19a7da47f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1733495

Change-Id: I30a234ade5efe99fb5ba7b5b916a1de9920bdbab
This commit is contained in:
Lucas Lin
2021-06-16 04:00:13 +00:00
committed by Automerger Merge Worker

View File

@@ -1248,6 +1248,8 @@ public class Vpn {
updateState(DetailedState.CONNECTING, "agentConnect");
final NetworkAgentConfig networkAgentConfig = new NetworkAgentConfig.Builder()
.setLegacyType(ConnectivityManager.TYPE_VPN)
.setLegacyTypeName("VPN")
.setBypassableVpn(mConfig.allowBypass && !mLockdown)
.build();