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

Commit 1d377794 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Start WearGestureService

This service is now being started with a flag and sysprop check.

Bug: 396154116
Bug: 399666870
Test: booted successfully
Flag: android.server.wear_gesture_api
Change-Id: I3b1210545a87836b390be3e8271187bb62efcb41
parent e4d969c1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -366,6 +366,8 @@ public final class SystemServer implements Dumpable {
            "com.android.clockwork.time.WearTimeService";
    private static final String WEAR_SETTINGS_SERVICE_CLASS =
            "com.android.clockwork.settings.WearSettingsService";
    private static final String WEAR_GESTURE_SERVICE_CLASS =
            "com.android.clockwork.gesture.WearGestureService";
    private static final String WRIST_ORIENTATION_SERVICE_CLASS =
            "com.android.clockwork.wristorientation.WristOrientationService";
    private static final String IOT_SERVICE_CLASS =
@@ -2844,6 +2846,13 @@ public final class SystemServer implements Dumpable {
                mSystemServiceManager.startService(WRIST_ORIENTATION_SERVICE_CLASS);
                t.traceEnd();
            }

            if (android.server.Flags.wearGestureApi()
                    && SystemProperties.getBoolean("config.enable_gesture_api", false)) {
                t.traceBegin("StartWearGestureService");
                mSystemServiceManager.startService(WEAR_GESTURE_SERVICE_CLASS);
                t.traceEnd();
            }
        }

        if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SLICES_DISABLED)) {
+8 −0
Original line number Diff line number Diff line
@@ -66,3 +66,11 @@ flag {
     description: "Remove AppIntegrityManagerService"
     bug: "364200023"
}

flag {
     name: "wear_gesture_api"
     namespace: "wear_frameworks"
     description: "Whether the Wear Gesture API is available."
     bug: "396154116"
     is_exported: true
}
 No newline at end of file