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

Commit fe1b5d93 authored by Vitor Carvalho's avatar Vitor Carvalho
Browse files

Add a flag to enable the SupervisionService on Wear devices.

This flag will be used to control the rollout of the SupervisionService on Wear devices. The plan is to do A/B testing while ramping the `supervision_api_on_wear` flag to ensure that resource consumption remains at an acceptable level.

Bug: 373358935
Change-Id: I555196b15abd4713bfd942c27466f858d6230c37
Flag: android.app.supervision.flags.supervision_api_on_wear
parent 60c366b8
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -8,3 +8,11 @@ flag {
  description: "Flag to enable the SupervisionService"
  bug: "340351729"
}

flag {
  name: "supervision_api_on_wear"
  is_exported: true
  namespace: "supervision"
  description: "Flag to enable the SupervisionService on Wear devices"
  bug: "373358935"
}
+2 −1
Original line number Diff line number Diff line
@@ -1620,7 +1620,8 @@ public final class SystemServer implements Dumpable {
            mSystemServiceManager.startService(ROLE_SERVICE_CLASS);
            t.traceEnd();

            if (!isWatch && android.app.supervision.flags.Flags.supervisionApi()) {
            if (android.app.supervision.flags.Flags.supervisionApi()
                    && (!isWatch || android.app.supervision.flags.Flags.supervisionApiOnWear())) {
                t.traceBegin("StartSupervisionService");
                mSystemServiceManager.startService(SupervisionService.Lifecycle.class);
                t.traceEnd();