From 6f0ec1de83f9d5e5d8920f65de57fdb487d9f2b9 Mon Sep 17 00:00:00 2001 From: Tommaso Fonda Date: Sun, 18 Feb 2024 12:18:06 +0100 Subject: [PATCH] devon: Import idc & keylayout configs Prevents undesired input events from being sent to the OS when moving fingers on the sensor. Change-Id: I7101b9d12380b2ca332f4b8ad0f3bdbf1f3b01bb --- devon-vendor.mk | 6 ++++- proprietary/vendor/usr/idc/uinput-egis.idc | 8 +++++++ proprietary/vendor/usr/idc/uinput-fpc.idc | 23 +++++++++++++++++++ .../vendor/usr/keylayout/uinput-egis.kl | 9 ++++++++ .../vendor/usr/keylayout/uinput-fpc.kl | 21 +++++++++++++++++ 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 proprietary/vendor/usr/idc/uinput-egis.idc create mode 100644 proprietary/vendor/usr/idc/uinput-fpc.idc create mode 100644 proprietary/vendor/usr/keylayout/uinput-egis.kl create mode 100644 proprietary/vendor/usr/keylayout/uinput-fpc.kl diff --git a/devon-vendor.mk b/devon-vendor.mk index d5c45f5e..266caf64 100644 --- a/devon-vendor.mk +++ b/devon-vendor.mk @@ -249,7 +249,11 @@ PRODUCT_COPY_FILES += \ vendor/motorola/devon/proprietary/vendor/lib64/libvidhance_fbc.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libvidhance_fbc.so \ vendor/motorola/devon/proprietary/vendor/lib64/libvidhance_horizon_correction.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libvidhance_horizon_correction.so \ vendor/motorola/devon/proprietary/vendor/lib64/libvidhance_stabilizer.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libvidhance_stabilizer.so \ - vendor/motorola/devon/proprietary/vendor/lib64/vendor.egistecbix.hardware.fingerprint@4.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.egistecbix.hardware.fingerprint@4.0.so + vendor/motorola/devon/proprietary/vendor/lib64/vendor.egistecbix.hardware.fingerprint@4.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.egistecbix.hardware.fingerprint@4.0.so \ + vendor/motorola/devon/proprietary/vendor/usr/idc/uinput-egis.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-egis.idc \ + vendor/motorola/devon/proprietary/vendor/usr/idc/uinput-fpc.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-fpc.idc \ + vendor/motorola/devon/proprietary/vendor/usr/keylayout/uinput-egis.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-egis.kl \ + vendor/motorola/devon/proprietary/vendor/usr/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl PRODUCT_PACKAGES += \ libthermalclient diff --git a/proprietary/vendor/usr/idc/uinput-egis.idc b/proprietary/vendor/usr/idc/uinput-egis.idc new file mode 100644 index 00000000..c410f787 --- /dev/null +++ b/proprietary/vendor/usr/idc/uinput-egis.idc @@ -0,0 +1,8 @@ +# +# Egis Touch sensor driver +# + +device.internal = 1 +keyboard.layout = uinput-egis +keyboard.builtIn = 1 +keyboard.orientationAware = 1 diff --git a/proprietary/vendor/usr/idc/uinput-fpc.idc b/proprietary/vendor/usr/idc/uinput-fpc.idc new file mode 100644 index 00000000..c6d1ed5f --- /dev/null +++ b/proprietary/vendor/usr/idc/uinput-fpc.idc @@ -0,0 +1,23 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2021 Fingerprint Cards AB +# +# 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. + +device.internal = 1 + +keyboard.layout = uinput-fpc +keyboard.builtIn = 1 +keyboard.orientationAware = 0 + diff --git a/proprietary/vendor/usr/keylayout/uinput-egis.kl b/proprietary/vendor/usr/keylayout/uinput-egis.kl new file mode 100644 index 00000000..e2d4efcd --- /dev/null +++ b/proprietary/vendor/usr/keylayout/uinput-egis.kl @@ -0,0 +1,9 @@ +# +# ETS320 Touch sensor driver +# +# + +# ets320 "finger present" +key 618 SYSTEM_NAVIGATION_UP +key 619 SYSTEM_NAVIGATION_DOWN +key 622 SYSTEM_NAVIGATION_LEFT diff --git a/proprietary/vendor/usr/keylayout/uinput-fpc.kl b/proprietary/vendor/usr/keylayout/uinput-fpc.kl new file mode 100644 index 00000000..8c2eb2a2 --- /dev/null +++ b/proprietary/vendor/usr/keylayout/uinput-fpc.kl @@ -0,0 +1,21 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2021 Fingerprint Cards AB +# +# 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. + +# fpc1020 "finger present" +key 618 SYSTEM_NAVIGATION_UP +key 619 SYSTEM_NAVIGATION_DOWN +key 622 SYSTEM_NAVIGATION_LEFT