设备硬件不带振动马达,有些无源码的第三方应用,需要删掉应用里的振动选项,可以尝试修改去掉系统振动服务,应用获取不到服务,就不会显示相应的功能。
注意 gms项目这样修改后CTS会有一项Vibrator Fail
--- a/frameworks/base/services/java/com/android/server/SystemServer.java
+++ b/frameworks/base/services/java/com/android/server/SystemServer.java
@@ -1600,9 +1600,9 @@ public final class SystemServer implements Dumpable {
mSystemServiceManager.startService(ROLE_SERVICE_CLASS);
t.traceEnd();
- t.traceBegin("StartVibratorManagerService");
- mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class);
- t.traceEnd();
+ //yim t.traceBegin("StartVibratorManagerService");
+ //yim mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class);
+ //yim t.traceEnd();
t.traceBegin("StartDynamicSystemService");
dynamicSystem = new DynamicSystemService(context);