The general vibration time is configured in the following file:
Copy Code code as follows:
Frameworks/base/core/res/res/values/config.xml
<!--long Press vibration-->
<!--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>
<!--virtual keypad vibration-->
<!--vibrator 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>
<!--soft keyboard key Vibration-->
<!--vibrator very short but reliable vibration for soft keyboard tap-->
<integer-array name= "Config_keyboardtapvibepattern" >
<item>40</item>
</integer-array>
<!--non-safe mode start Vibration-->
<!--vibrator 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>
<!--Safe Mode starting vibration-->
<!--vibrator 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>
In the form of an array, the odd position indicates the pause time, the even position indicates the vibration time, the unit is MS