beyond0lte: enable fingerprint gestures
Change-Id: I3289fac865b8d7bf5900d8fa8b3f5b03b818a230
diff --git a/BoardConfig.mk b/BoardConfig.mk
index ba8f15f..d336c03 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -27,6 +27,9 @@
## Display
TARGET_SCREEN_DENSITY := 480
+## Fingerprint
+TARGET_SEC_FP_HAS_FINGERPRINT_GESTURES := true
+
## Kernel
TARGET_KERNEL_CONFIG := exynos9820-beyond0lte_defconfig
diff --git a/configs/keylayout/uinput-sec-fp.kl b/configs/keylayout/uinput-sec-fp.kl
new file mode 100644
index 0000000..b558ffc
--- /dev/null
+++ b/configs/keylayout/uinput-sec-fp.kl
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2021 The LineageOS Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+key 108 SYSTEM_NAVIGATION_DOWN
+key 103 SYSTEM_NAVIGATION_UP
diff --git a/device.mk b/device.mk
index a384782..25b8528 100644
--- a/device.mk
+++ b/device.mk
@@ -23,5 +23,9 @@
# Setup dalvik vm configs
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
+# Fingerprint Gestures
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/keylayout/uinput-sec-fp.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-sec-fp.kl
+
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 186d84d..4d533e1 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -45,4 +45,10 @@
<!-- Indicates whether device has a power button fingerprint sensor. -->
<bool name="config_is_powerbutton_fps">true</bool>
+
+ <!-- Specify if the fingerprint hardware support gestures-->
+ <bool name="config_fingerprintSupportsGestures">true</bool>
+
+ <!-- Enable system navigation keys. -->
+ <bool name="config_supportSystemNavigationKeys">true</bool>
</resources>