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

Commit 770b1811 authored by Emil Bengtsson's avatar Emil Bengtsson Committed by Garvit Narang
Browse files

Migrate WristOrientationService

Test: atest ClockworkFrameworksRoboTests
Bug: 352725980
Flag: android.server.migrate_wrist_orientation
(cherry picked from https://partner-android-review.googlesource.com/q/commit:869dba778f1e7b1c7eb1776269f5cd35b65cf373)
Merged-In: I3b50563948f1ed4aad38b2aa6206920fa19f5d45
Change-Id: I3b50563948f1ed4aad38b2aa6206920fa19f5d45
parent d09a2578
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2737,8 +2737,9 @@ public final class SystemServer implements Dumpable {
            mSystemServiceManager.startService(WEAR_MODE_SERVICE_CLASS);
            t.traceEnd();

            boolean enableWristOrientationService = SystemProperties.getBoolean(
                    "config.enable_wristorientation", false);
            boolean enableWristOrientationService =
                    !android.server.Flags.migrateWristOrientation()
                    && SystemProperties.getBoolean("config.enable_wristorientation", false);
            if (enableWristOrientationService) {
                t.traceBegin("StartWristOrientationService");
                mSystemServiceManager.startService(WRIST_ORIENTATION_SERVICE_CLASS);
+8 −0
Original line number Diff line number Diff line
@@ -30,6 +30,14 @@ flag {
     bug: "340928692"
}

flag {
     name: "migrate_wrist_orientation"
     namespace: "wear_frameworks"
     description: "Migrate wrist orientation service functionality to wear settings service"
     bug: "352725980"
     is_fixed_read_only: true
}

flag {
    name: "allow_network_time_update_service"
    namespace: "wear_systems"