Do not start VibratorManagerService on TV
Test: build+flash, wait for launcher, inspect logcat for related errors
Bug: 264411203
Change-Id: I8255557f63c9e5c37481397ead92950b3c37de46
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index ec3e734..2f2e1cb 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -1559,9 +1559,11 @@
mSystemServiceManager.startService(ROLE_SERVICE_CLASS);
t.traceEnd();
- t.traceBegin("StartVibratorManagerService");
- mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class);
- t.traceEnd();
+ if (!isTv) {
+ t.traceBegin("StartVibratorManagerService");
+ mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class);
+ t.traceEnd();
+ }
t.traceBegin("StartDynamicSystemService");
dynamicSystem = new DynamicSystemService(context);