From 8cac0d28c5125e31aa23855d2d8e8e2f87129de2 Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Mon, 27 Jul 2020 03:50:21 +0430 Subject: [PATCH] ginkgo: Import stock FP input configs Change-Id: I1b07388f21370eef46a06e8e6bec1861ae4c4e5d --- device.mk | 10 ++++++++++ idc/uinput-fpc.idc | 15 +++++++++++++++ idc/uinput-goodix.idc | 15 +++++++++++++++ keylayout/uinput-fpc.kl | 15 +++++++++++++++ keylayout/uinput-goodix.kl | 14 ++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 idc/uinput-fpc.idc create mode 100644 idc/uinput-goodix.idc create mode 100644 keylayout/uinput-fpc.kl create mode 100644 keylayout/uinput-goodix.kl diff --git a/device.mk b/device.mk index d7a7341..5efd181 100644 --- a/device.mk +++ b/device.mk @@ -25,6 +25,16 @@ PRODUCT_PACKAGES += \ init.device.rc \ init.fingerprint.rc +# Input +PRODUCT_COPY_FILES += \ + $(DEVICE_PATH)/idc/uinput-fpc.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-fpc.idc \ + $(DEVICE_PATH)/idc/uinput-goodix.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-goodix.idc + +# Keylayouts +PRODUCT_COPY_FILES += \ + $(DEVICE_PATH)/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \ + $(DEVICE_PATH)/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl + # Shipping API level PRODUCT_SHIPPING_API_LEVEL := 28 diff --git a/idc/uinput-fpc.idc b/idc/uinput-fpc.idc new file mode 100644 index 0000000..4cb1a4a --- /dev/null +++ b/idc/uinput-fpc.idc @@ -0,0 +1,15 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License Version 2 +# as published by the Free Software Foundation. +# + +device.internal = 1 + +keyboard.layout = uinput-fpc +keyboard.builtIn = 1 +keyboard.orientationAware = 1 diff --git a/idc/uinput-goodix.idc b/idc/uinput-goodix.idc new file mode 100644 index 0000000..88fbe7a --- /dev/null +++ b/idc/uinput-goodix.idc @@ -0,0 +1,15 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License Version 2 +# as published by the Free Software Foundation. +# + +device.internal = 1 + +keyboard.layout = uinput-gf +keyboard.builtIn = 1 +keyboard.orientationAware = 1 diff --git a/keylayout/uinput-fpc.kl b/keylayout/uinput-fpc.kl new file mode 100644 index 0000000..7d61a17 --- /dev/null +++ b/keylayout/uinput-fpc.kl @@ -0,0 +1,15 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License Version 2 +# as published by the Free Software Foundation. +# + +#key 96 DPAD_CENTER +#key 102 HOME +#key 105 DPAD_LEFT +#key 106 DPAD_RIGHT + diff --git a/keylayout/uinput-goodix.kl b/keylayout/uinput-goodix.kl new file mode 100644 index 0000000..5fa49c0 --- /dev/null +++ b/keylayout/uinput-goodix.kl @@ -0,0 +1,14 @@ +# +# Goodix fingerprint sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License Version 2 +# as published by the Free Software Foundation. +# +#key 96 DPAD_CENTER +#key 96 DPAD_CENTER +#key 102 HOME +#key 105 DPAD_LEFT +#key 106 DPAD_RIGHT