From 2d92eeb4969b8ceed95074c6fdd10bd0228cd578 Mon Sep 17 00:00:00 2001 From: Damien Bargiacchi Date: Thu, 7 Apr 2016 14:01:03 -0700 Subject: [PATCH] Start the Wear Time System Service with SystemServer Bug: 27802041 Change-Id: I7071536934e2285e8978e9c0d0a53d5d3c1c3017 --- services/java/com/android/server/SystemServer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index e306d8925f0bf..4f54e8744c6a6 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -154,6 +154,8 @@ public final class SystemServer { "com.google.android.clockwork.ThermalObserver"; private static final String WEAR_BLUETOOTH_SERVICE_CLASS = "com.google.android.clockwork.bluetooth.WearBluetoothService"; + private static final String WEAR_TIME_SERVICE_CLASS = + "com.google.android.clockwork.time.WearTimeService"; private static final String ACCOUNT_SERVICE_CLASS = "com.android.server.accounts.AccountManagerService$Lifecycle"; private static final String CONTENT_SERVICE_CLASS = @@ -1158,6 +1160,9 @@ public final class SystemServer { if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { mSystemServiceManager.startService(WEAR_BLUETOOTH_SERVICE_CLASS); + if (!disableNonCoreServices) { + mSystemServiceManager.startService(WEAR_TIME_SERVICE_CLASS); + } } // Before things start rolling, be sure we have decided whether