Merge changes Ifa2aa335,I09366a7f am: 1b2443d1c5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1565201 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id6a7c2ce8b46e448b3fa61c2ccc0050423521c52
This commit is contained in:
@@ -4838,7 +4838,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
}
|
||||
synchronized (mVpns) {
|
||||
throwIfLockdownEnabled();
|
||||
mVpns.get(user).startLegacyVpn(profile, mKeyStore, egress);
|
||||
mVpns.get(user).startLegacyVpn(profile, mKeyStore, null /* underlying */, egress);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8068,7 +8068,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
int user = UserHandle.getUserId(mDeps.getCallingUid());
|
||||
final boolean success;
|
||||
synchronized (mVpns) {
|
||||
throwIfLockdownEnabled();
|
||||
success = mVpns.get(user).setUnderlyingNetworks(networks);
|
||||
}
|
||||
return success;
|
||||
|
||||
@@ -148,6 +148,7 @@ public class VpnTest {
|
||||
managedProfileA.profileGroupId = primaryUser.id;
|
||||
}
|
||||
|
||||
static final Network EGRESS_NETWORK = new Network(101);
|
||||
static final String EGRESS_IFACE = "wlan0";
|
||||
static final String TEST_VPN_PKG = "com.testvpn.vpn";
|
||||
private static final String TEST_VPN_SERVER = "1.2.3.4";
|
||||
@@ -963,7 +964,7 @@ public class VpnTest {
|
||||
InetAddresses.parseNumericAddress("192.0.2.0"), EGRESS_IFACE);
|
||||
lp.addRoute(defaultRoute);
|
||||
|
||||
vpn.startLegacyVpn(vpnProfile, mKeyStore, lp);
|
||||
vpn.startLegacyVpn(vpnProfile, mKeyStore, EGRESS_NETWORK, lp);
|
||||
return vpn;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user