sm8150-common: Add input configurations for fingerprint devices

Change-Id: Ia3fe94c0de0e299e5dbe9fa26599489bdb8a92ec
This commit is contained in:
Sebastiano Barezzi
2024-07-30 01:54:50 +02:00
parent 437438d9df
commit 7e34d70908
9 changed files with 77 additions and 21 deletions

23
idc/Android.bp Normal file
View File

@@ -0,0 +1,23 @@
//
// Copyright (C) 2024 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
prebuilt_usr_idc {
name: "uinput-fortsense.idc",
src: "uinput-fortsense.idc",
vendor: true,
}
prebuilt_usr_idc {
name: "uinput-fpc.idc",
src: "uinput-fpc.idc",
vendor: true,
}
prebuilt_usr_idc {
name: "uinput-goodix.idc",
src: "uinput-goodix.idc",
vendor: true,
}

5
idc/uinput-fortsense.idc Normal file
View File

@@ -0,0 +1,5 @@
device.internal = 1
keyboard.layout = uinput-fortsense
keyboard.builtIn = 1
keyboard.orientationAware = 1

5
idc/uinput-fpc.idc Normal file
View File

@@ -0,0 +1,5 @@
device.internal = 1
keyboard.layout = uinput-fpc
keyboard.builtIn = 1
keyboard.orientationAware = 1

5
idc/uinput-goodix.idc Normal file
View File

@@ -0,0 +1,5 @@
device.internal = 1
keyboard.layout = uinput-goodix
keyboard.builtIn = 1
keyboard.orientationAware = 1

View File

@@ -10,6 +10,12 @@ prebuilt_usr_keylayout {
vendor: true,
}
prebuilt_usr_keylayout {
name: "uinput-fortsense.kl",
src: "uinput-fortsense.kl",
vendor: true,
}
prebuilt_usr_keylayout {
name: "uinput-fpc.kl",
src: "uinput-fpc.kl",

View File

@@ -0,0 +1,5 @@
# Single Tap
key 353 DPAD_CENTER VIRTUAL
# Double Tap
key 306 BUTTON_C VIRTUAL

View File

@@ -1,11 +1,15 @@
#
# FPC fingerprint sensor driver
#
# Copyright (c) 2013,2014 Fingerprint Cards AB <tech@fingerprints.com>
#
# 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 304 DPAD_CENTER VIRTUAL
#key 102 HOME VIRTUAL
#key 108 SYSTEM_NAVIGATION_DOWN
#key 103 SYSTEM_NAVIGATION_DOWN
# Swipe Up
#key 103 DPAD_UP VIRTUAL
#key 304 HOME VIRTUAL
# Swipe Down
#key 108 DPAD_DOWN VIRTUAL
# Single Tap
key 105 DPAD_CENTER VIRTUAL
# Double Tap
key 106 BUTTON_C VIRTUAL

View File

@@ -1,11 +1,8 @@
#
# Goodix fingerprint sensor driver
#
# Copyright (c) 2013,2014 Fingerprint Cards AB <tech@fingerprints.com>
#
# 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 102 HOME VIRTUAL
#single click
key 353 DPAD_CENTER VIRTUAL
#double click
key 306 BUTTON_C VIRTUAL
# HOME --> DPAD_CENTER
key 102 DPAD_CENTER VIRTUAL
#key 105 DPAD_LEFT VIRTUAL
#key 106 DPAD_RIGHT VIRTUAL

View File

@@ -277,9 +277,15 @@ PRODUCT_PACKAGES += \
# Input
PRODUCT_PACKAGES += \
sm8150-tavil-snd-card_Button_Jack.kl \
uinput-fortsense.kl \
uinput-fpc.kl \
uinput-goodix.kl
PRODUCT_PACKAGES += \
uinput-fortsense.idc \
uinput-fpc.idc \
uinput-goodix.idc
# IPACM
PRODUCT_PACKAGES += \
ipacm \