angler: fingerprint: build driver+TZ app from source

Bug: 34161798
Change-Id: I3edf2cf7731d8ca8397401ae95720a2fea8eafa7
diff --git a/device.mk b/device.mk
index 1283f74..08c6637 100644
--- a/device.mk
+++ b/device.mk
@@ -39,6 +39,7 @@
     device/huawei/angler/init.recovery.angler.rc:root/init.recovery.angler.rc \
     device/huawei/angler/init.angler.power.sh:system/bin/init.angler.power.sh \
     device/huawei/angler/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl \
+    device/huawei/angler/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc \
     device/huawei/angler/init.qcom.devwait.sh:system/bin/init.qcom.devwait.sh \
     device/huawei/angler/init.qcom.devstart.sh:system/bin/init.qcom.devstart.sh
 
@@ -100,6 +101,8 @@
     fingerprint.angler \
     android.hardware.biometrics.fingerprint@2.1-service
 
+$(call inherit-product-if-exists, vendor/fpc/device/device.mk)
+
 # Delegation for OEM customization
 PRODUCT_OEM_PROPERTIES := \
     ro.config.ringtone \
diff --git a/uinput-fpc.idc b/uinput-fpc.idc
new file mode 100644
index 0000000..526d0e8
--- /dev/null
+++ b/uinput-fpc.idc
@@ -0,0 +1,20 @@
+# Copyright (C) 2017 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
index 2bc2054..c8f0acd 100644
--- a/uinput-fpc.kl
+++ b/uinput-fpc.kl
@@ -1,4 +1,4 @@
-key 105   SYSTEM_NAVIGATION_LEFT
+key 106   SYSTEM_NAVIGATION_LEFT
 key 108   SYSTEM_NAVIGATION_DOWN
 key 103   SYSTEM_NAVIGATION_UP
-key 106   SYSTEM_NAVIGATION_RIGHT
+key 105   SYSTEM_NAVIGATION_RIGHT