fingerprint: Enable to build fingerprint

Bug: 140209205
Test: Build Pass
Change-Id: Iefa3cfd9fc0a7a79578be41a4f0a7d25449b3776
This commit is contained in:
eddielan
2019-09-17 13:41:40 +08:00
parent 26173b82fc
commit cdd189c0c1
4 changed files with 35 additions and 0 deletions

View File

@@ -103,3 +103,6 @@ PRODUCT_COPY_FILES += \
# Audio effects
PRODUCT_PACKAGES += \
libqcomvoiceprocessingdescriptors
# Fingerprint HIDL
include device/google/bramble/fingerprint.mk

9
fingerprint.mk Normal file
View File

@@ -0,0 +1,9 @@
include vendor/google_devices/bramble/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

19
uinput-fpc.idc Normal file
View File

@@ -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

4
uinput-fpc.kl Normal file
View File

@@ -0,0 +1,4 @@
key 105 SYSTEM_NAVIGATION_LEFT
key 108 SYSTEM_NAVIGATION_DOWN
key 103 SYSTEM_NAVIGATION_UP
key 106 SYSTEM_NAVIGATION_RIGHT