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

Commit f9973826 authored by Ivan Podogov's avatar Ivan Podogov
Browse files

Add Lefty module connection in the framework.

Bug: 17961466
Change-Id: I252f0c3b048d15afc3b80364ef907e049c131477
parent b253ac08
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -189,6 +189,8 @@ public final class SystemServer {
            "com.google.android.clockwork.connectivity.WearConnectivityService";
    private static final String WEAR_DISPLAY_SERVICE_CLASS =
            "com.google.android.clockwork.display.WearDisplayService";
    private static final String WEAR_LEFTY_SERVICE_CLASS =
            "com.google.android.clockwork.lefty.WearLeftyService";
    private static final String WEAR_TIME_SERVICE_CLASS =
            "com.google.android.clockwork.time.WearTimeService";
    private static final String ACCOUNT_SERVICE_CLASS =
@@ -703,6 +705,7 @@ public final class SystemServer {
                false);
        // TODO(b/36863239): Remove when transitioned from native service.
        boolean enableRadioService = SystemProperties.getBoolean("config.enable_java_radio", false);
        boolean enableLeftyService = SystemProperties.getBoolean("config.enable_lefty", false);

        boolean isEmulator = SystemProperties.get("ro.kernel.qemu").equals("1");

@@ -1498,6 +1501,12 @@ public final class SystemServer {
                mSystemServiceManager.startService(WEAR_DISPLAY_SERVICE_CLASS);
                mSystemServiceManager.startService(WEAR_TIME_SERVICE_CLASS);
                traceEnd();

                if (enableLeftyService) {
                    traceBeginAndSlog("StartWearLeftyService");
                    mSystemServiceManager.startService(WEAR_LEFTY_SERVICE_CLASS);
                    traceEnd();
                }
            }
        }