frameworks/base/core/res/res/values/config.xml <!-- 长按振动 --> <!-- Vibrator pattern for feedback about a long screen/key press --> <integer-array name="config_longPressVibePattern"> <item>0</item> <item>1</item> <item>20</item> <item>21</item> </integer-array>
<!-- 虚拟按键振动 --> <!-- Vibrator pattern for feedback about touching a virtual key --> <integer-array name="config_virtualKeyVibePattern"> <item>0</item> <item>10</item> <item>20</item> <item>30</item> </integer-array>
<!-- 软键盘按键振动 --> <!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap --> <integer-array name="config_keyboardTapVibePattern"> <item>40</item> </integer-array>
<!-- 非安全模式启动振动 --> <!-- Vibrator pattern for feedback about booting with safe mode disabled --> <integer-array name="config_safeModeDisabledVibePattern"> <item>0</item> <item>1</item> <item>20</item> <item>21</item> </integer-array>
<!-- 安全模式启动振动 --> <!-- Vibrator pattern for feedback about booting with safe mode disabled --> <integer-array name="config_safeModeEnabledVibePattern"> <item>0</item> <item>1</item> <item>20</item> <item>21</item> <item>500</item> <item>600</item> </integer-array>