summaryrefslogtreecommitdiff
path: root/services/java
diff options
context:
space:
mode:
author Bryan Yu <yuholong@google.com> 2025-01-09 02:31:48 +0000
committer Bryan Yu <yuholong@google.com> 2025-01-14 09:26:53 +0000
commitdc1262af561b40cf2b1eed1b2b34ec04c743ecf6 (patch)
tree32966dbd9ca677de0ddbae3d92099b64a812abe8 /services/java
parent91727c0c80a9a5dca3e5d9153cd5def3f3dc51a3 (diff)
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
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/SystemServer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index c5d42ad9f081..6d672b2a1046 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -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();