Merge "Always startOrMigrate connection when caps change" am: 5288559979 am: 38904b1531
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2514996 Change-Id: I8ff523996249135b3df4c991d9d2bff7de8551b1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3744,12 +3744,10 @@ public class Vpn {
|
||||
+ mUnderlyingNetworkCapabilities + " to " + nc);
|
||||
final NetworkCapabilities oldNc = mUnderlyingNetworkCapabilities;
|
||||
mUnderlyingNetworkCapabilities = nc;
|
||||
if (oldNc == null) {
|
||||
// A new default network is available.
|
||||
if (oldNc == null || !nc.getSubscriptionIds().equals(oldNc.getSubscriptionIds())) {
|
||||
// A new default network is available, or the subscription has changed.
|
||||
// Try to migrate the session, or failing that, start a new one.
|
||||
startOrMigrateIkeSession(mActiveNetwork);
|
||||
} else if (!nc.getSubscriptionIds().equals(oldNc.getSubscriptionIds())) {
|
||||
// Renew carrierConfig values.
|
||||
maybeMigrateIkeSessionAndUpdateVpnTransportInfo(mActiveNetwork);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user