mtk版本中,系统默认自带了双击power键打开相机的功能。
具体配置在AOSP/frameworks/base / core/res/res/values/config.xml路径下。
<!-- Allow the gesture to double tap the power button twice to start the camera while the device
is non-interactive. -->
<bool name="config_cameraDoubleTapPowerGestureEnabled">false</bool>
true: 双击可以打开相机
false:双击不会打开相机