Reapply "Unify registration and NM assignment in NAI"
Now that faulty Telephony tests have been disabled temporarily
to allow for this bugfix, this can be reverted.
This reverts commit 30fcf820f9.
Test: FrameworksTelephonyTests CtsNetTestCases
Change-Id: I57f25f5e6481106255df0ab69558e351eb938f68
This commit is contained in:
parent
8a97692638
commit
b3a53d0d39
1 changed files with 4 additions and 11 deletions
|
|
@ -9421,8 +9421,6 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||
nai.getDeclaredCapabilitiesSanitized(mCarrierPrivilegeAuthenticator)));
|
||||
processLinkPropertiesFromAgent(nai, nai.linkProperties);
|
||||
|
||||
nai.onNetworkMonitorCreated(networkMonitor);
|
||||
|
||||
mNetworkAgentInfos.add(nai);
|
||||
synchronized (mNetworkForNetId) {
|
||||
mNetworkForNetId.put(nai.network.getNetId(), nai);
|
||||
|
|
@ -9437,7 +9435,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||
if (nai.isLocalNetwork()) {
|
||||
handleUpdateLocalNetworkConfig(nai, null /* oldConfig */, nai.localNetworkConfig);
|
||||
}
|
||||
nai.notifyRegistered();
|
||||
nai.notifyRegistered(networkMonitor);
|
||||
NetworkInfo networkInfo = nai.networkInfo;
|
||||
updateNetworkInfo(nai, networkInfo);
|
||||
updateVpnUids(nai, null, nai.networkCapabilities);
|
||||
|
|
|
|||
Loading…
Reference in a new issue