Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c6c7c81 authored by Mark Wheatley's avatar Mark Wheatley
Browse files

Start Wear Debug service in System Server

Start Wear Debug service in System Server if Build.IS_DEBUGGABLE is
true.

Bug: 254516347
Bug: 303660304
Test: manual
Change-Id: Id6e194013212817b922bfcce35ae82f34b6ecc92
(cherry picked from commit 43c0363cd2c9927e7d642cee341fef3a8fe003a6)
parent c88efaab
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -336,6 +336,8 @@ public final class SystemServer implements Dumpable {
            "com.android.clockwork.modes.ModeManagerService";
    private static final String WEAR_DISPLAY_SERVICE_CLASS =
            "com.android.clockwork.display.WearDisplayService";
    private static final String WEAR_DEBUG_SERVICE_CLASS =
            "com.android.clockwork.debug.WearDebugService";
    private static final String WEAR_TIME_SERVICE_CLASS =
            "com.android.clockwork.time.WearTimeService";
    private static final String WEAR_SETTINGS_SERVICE_CLASS =
@@ -2626,6 +2628,12 @@ public final class SystemServer implements Dumpable {
            mSystemServiceManager.startService(WEAR_DISPLAY_SERVICE_CLASS);
            t.traceEnd();

            if (Build.IS_DEBUGGABLE) {
                t.traceBegin("StartWearDebugService");
                mSystemServiceManager.startService(WEAR_DEBUG_SERVICE_CLASS);
                t.traceEnd();
            }

            t.traceBegin("StartWearTimeService");
            mSystemServiceManager.startService(WEAR_TIME_SERVICE_CLASS);
            t.traceEnd();