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

Commit dc1262af authored by Bryan Yu's avatar Bryan Yu
Browse files

Disable VibratorManagerService on desktop

Vibration is not being used in desktop, this CL disables it by
default.

Bug: 361710645
Test: Deploy on DUT, booting successfully
Flag: EXEMPT desktop only
Change-Id: I798027563817c011235307a3f84ccda2671aceb1
parent 91727c0c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1527,6 +1527,8 @@ public final class SystemServer implements Dumpable {
        boolean disableCameraService = SystemProperties.getBoolean("config.disable_cameraservice",
                false);

        boolean isDesktop = context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_PC);

        boolean isWatch = RoSystemFeatures.hasFeatureWatch(context);

        boolean isArc = context.getPackageManager().hasSystemFeature(
@@ -1656,7 +1658,7 @@ public final class SystemServer implements Dumpable {
                t.traceEnd();
            }

            if (!isTv) {
            if (!isTv && !isDesktop) {
                t.traceBegin("StartVibratorManagerService");
                mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class);
                t.traceEnd();