summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Remi NGUYEN VAN <reminv@google.com> 2019-03-12 11:50:22 +0900
committer Remi NGUYEN VAN <reminv@google.com> 2019-03-12 04:53:11 +0000
commitc7054c5e2083ef37e65d53e18cfb80940729d5ae (patch)
tree05817b41acc4f0ef3cab358c7507ff1ed833922b
parent7c447498c38f633718d2a95adef3a0609e86862e (diff)
Move NetworkStack start to AM.systemReady
In practice the NetworkStack was not started after ActivityManager#systemReady, since ActivityManager was only scheduling the start (mPendingStarts). Requesting the start too early causes issues for the PackageManager to install updates/rollbacks. Test: flashed AOSP and internal builds, WiFi working Bug: 128331883 Change-Id: I93315ad31925bd436e21d1eabb21d5967e6aae60
-rw-r--r--services/java/com/android/server/SystemServer.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 6cbb35b152c5..477e34df182e 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -1241,14 +1241,6 @@ public final class SystemServer {
}
traceEnd();
- traceBeginAndSlog("StartNetworkStack");
- try {
- NetworkStackClient.getInstance().start(context);
- } catch (Throwable e) {
- reportWtf("starting Network Stack", e);
- }
- traceEnd();
-
traceBeginAndSlog("StartNsdService");
try {
serviceDiscovery = NsdService.create(context);
@@ -1944,6 +1936,14 @@ public final class SystemServer {
SystemService.PHASE_THIRD_PARTY_APPS_CAN_START);
traceEnd();
+ traceBeginAndSlog("StartNetworkStack");
+ try {
+ NetworkStackClient.getInstance().start(context);
+ } catch (Throwable e) {
+ reportWtf("starting Network Stack", e);
+ }
+ traceEnd();
+
traceBeginAndSlog("MakeLocationServiceReady");
try {
if (locationF != null) locationF.systemRunning();