Android 开机震动在哪调用的,怎样关闭?
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.javapublic boolean performHapticFeedbackLw(WindowState win, int effectId, boolean always) {
.... ...
case HapticFeedbackConstants.SAFE_MODE_DISABLED:
return ; //正常模式启动, 如果不想震动, 直接return;
pattern = mSafeModeDisabledVibePattern;
break;
case HapticFeedbackConstants.SAFE_MODE_ENABLED:
return ; //安全模式启动, 如果不想震动, 直接return;
pattern = mSafeModeEnabledVibePattern;
break;
default:
return false;
}
}
补充:移动开发 , Android ,