diff --git a/device-redfin.mk b/device-redfin.mk index b30d5b2..b6a96ae 100644 --- a/device-redfin.mk +++ b/device-redfin.mk @@ -103,3 +103,6 @@ PRODUCT_COPY_FILES += \ # Audio effects PRODUCT_PACKAGES += \ libqcomvoiceprocessingdescriptors + +# Fingerprint HIDL +include device/google/redfin/fingerprint.mk diff --git a/fingerprint.mk b/fingerprint.mk new file mode 100644 index 0000000..9ee3b4b --- /dev/null +++ b/fingerprint.mk @@ -0,0 +1,9 @@ +include vendor/google_devices/redfin/proprietary/FingerprintConfig.mk + +# Fingerprint +PRODUCT_PACKAGES += \ + android.hardware.biometrics.fingerprint@2.1-service.fpc \ + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \ + $(LOCAL_PATH)/uinput-fpc.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-fpc.idc diff --git a/uinput-fpc.idc b/uinput-fpc.idc new file mode 100644 index 0000000..b1786ed --- /dev/null +++ b/uinput-fpc.idc @@ -0,0 +1,19 @@ +# Copyright (C) 2019 The Android Open Source 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. + +# +# Fingerprint navigation configuration file +# +keyboard.orientationAware = 1 +keyboard.builtIn = 1 diff --git a/uinput-fpc.kl b/uinput-fpc.kl new file mode 100644 index 0000000..2bc2054 --- /dev/null +++ b/uinput-fpc.kl @@ -0,0 +1,4 @@ +key 105 SYSTEM_NAVIGATION_LEFT +key 108 SYSTEM_NAVIGATION_DOWN +key 103 SYSTEM_NAVIGATION_UP +key 106 SYSTEM_NAVIGATION_RIGHT