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

Commit b8c40749 authored by Eric Rahm's avatar Eric Rahm
Browse files

Init WearSettingsService

Initializes the `WearSettingsService` in `SystemServer`.

This is a cherry-pick and rebase of ag/19716435 and ag/19751030.

Test: unit test
Bug: 241600584
Bug: 241509962
Fixes: 272529454
Fixes: 272529428
Change-Id: Ie11f82ca51b41ae5d10fafd5590a9d6a1e02f810
parent 23a917bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -335,6 +335,8 @@ public final class SystemServer implements Dumpable {
            "com.android.clockwork.time.WearTimeService";
    private static final String WEAR_GLOBAL_ACTIONS_SERVICE_CLASS =
            "com.android.clockwork.globalactions.GlobalActionsService";
    private static final String WEAR_SETTINGS_SERVICE_CLASS =
            "com.android.clockwork.settings.WearSettingsService";
    private static final String ACCOUNT_SERVICE_CLASS =
            "com.android.server.accounts.AccountManagerService$Lifecycle";
    private static final String CONTENT_SERVICE_CLASS =
@@ -2594,6 +2596,10 @@ public final class SystemServer implements Dumpable {
            t.traceBegin("StartWearGlobalActionsService");
            mSystemServiceManager.startService(WEAR_GLOBAL_ACTIONS_SERVICE_CLASS);
            t.traceEnd();

            t.traceBegin("StartWearSettingsService");
            mSystemServiceManager.startService(WEAR_SETTINGS_SERVICE_CLASS);
            t.traceEnd();
        }

        if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SLICES_DISABLED)) {