diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 165aaac6a42c2..70abf8054dbbf 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -685,11 +685,6 @@ public final class SystemServer { * Starts some essential services that are not tangled up in the bootstrap process. */ private void startCoreServices() { - // Records errors and logs, for example wtf() - traceBeginAndSlog("StartDropBoxManager"); - mSystemServiceManager.startService(DropBoxManagerService.class); - traceEnd(); - traceBeginAndSlog("StartBatteryService"); // Tracks the battery level. Requires LightService. mSystemServiceManager.startService(BatteryService.class); @@ -816,6 +811,13 @@ public final class SystemServer { SQLiteCompatibilityWalFlags.reset(); traceEnd(); + // Records errors and logs, for example wtf() + // Currently this service indirectly depends on SettingsProvider so do this after + // InstallSystemProviders. + traceBeginAndSlog("StartDropBoxManager"); + mSystemServiceManager.startService(DropBoxManagerService.class); + traceEnd(); + traceBeginAndSlog("StartVibratorService"); vibrator = new VibratorService(context); ServiceManager.addService("vibrator", vibrator);