Merge "Set legacy type for VPN" into sc-dev

This commit is contained in:
Lucas Lin
2021-06-18 02:46:49 +00:00
committed by Android (Google) Code Review

View File

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