Temporary re-enabling iface name change handling on HO
Temporary accept interface name change in ConnectivityService. See bug/4455071. Bug: 4903011 Change-Id: I7f06c2ca83535b981f047cb671e08550aed7df1a
This commit is contained in:
committed by
Wink Saville
parent
db32c8c540
commit
0768006559
@@ -1440,6 +1440,16 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Temporary notifying upstread change to Tethering.
|
||||
// @see bug/4455071
|
||||
/** Notify TetheringService if interface name has been changed. */
|
||||
if (TextUtils.equals(mNetTrackers[netType].getNetworkInfo().getReason(),
|
||||
Phone.REASON_LINK_PROPERTIES_CHANGED)) {
|
||||
if (isTetheringSupported()) {
|
||||
mTethering.handleTetherIfaceChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void addPrivateDnsRoutes(NetworkStateTracker nt) {
|
||||
@@ -1882,7 +1892,10 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
break;
|
||||
case NetworkStateTracker.EVENT_CONFIGURATION_CHANGED:
|
||||
info = (NetworkInfo) msg.obj;
|
||||
handleConnectivityChange(info.getType(), true);
|
||||
// TODO: Temporary allowing network configuration
|
||||
// change not resetting sockets.
|
||||
// @see bug/4455071
|
||||
handleConnectivityChange(info.getType(), false);
|
||||
break;
|
||||
case EVENT_CLEAR_NET_TRANSITION_WAKELOCK:
|
||||
String causedBy = null;
|
||||
|
||||
Reference in New Issue
Block a user