Track default upstream when system is ready

Start tracking default upstream from boot.This is useful for
entitlement refine in following change. EntitlementManager can
decide if it needs to process entitlement provisioning before
tethering started.

Test: -atest FrameworksNetTests
      -build, flash, booted
      -manually turnoff/on tethering with different upstream
bug: 111490073

Change-Id: I8fdbd64c52f26b5363693bb5bd8050930e8ea961
This commit is contained in:
markchien
2018-11-13 18:34:56 +09:00
parent 47311631d8
commit 8d48d97b65

View File

@@ -1968,6 +1968,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
void systemReady() {
mProxyTracker.loadGlobalProxy();
registerNetdEventCallback();
mTethering.systemReady();
synchronized (this) {
mSystemReady = true;