a7xelte: fingerprint: add fingerprint hal and configuration
authorDanny Wood <danwood76@gmail.com>
Fri, 26 Apr 2019 11:49:03 +0000 (12:49 +0100)
committerSourajit Karmakar <sourajit.karmakar@gmail.com>
Tue, 7 Jul 2020 14:58:59 +0000 (10:58 -0400)
Change-Id: I489447664e0f608b07553adbfd55ded94fddf0d4

BoardConfig.mk
device.mk
overlay/packages/apps/Settings/res/values/config.xml

index 09d94274f19e548cf59f47cc5d4b8160c424ee12..15289b5edf847636ea5b963733fbf81449bf3131 100644 (file)
@@ -24,6 +24,9 @@ TARGET_OTA_ASSERT_DEVICE := a7xelte, a7xeltexx, a7xelteub, a7xeltedo
 # Bluetooth
 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
 
+# Fingerprint
+TARGET_SEC_FP_HAL_VARIANT := bauth
+
 # RIL
 BOARD_MODEM_TYPE := tss310
 BOARD_PROVIDES_LIBRIL := true
index d2afc3ef7cdee931f36cac127971d66ebc43618a..cb335e4a4738ec64deb8eab5964af6b3dca1499a 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -41,6 +41,12 @@ PRODUCT_COPY_FILES += \
 PRODUCT_PACKAGES += \
     android.hardware.bluetooth@1.0-service
 
+# Fingerprint
+PRODUCT_PACKAGES += \
+    fingerprint.exynos5 \
+    android.hardware.biometrics.fingerprint@2.1-impl \
+    android.hardware.biometrics.fingerprint@2.1-service
+
 # Camera
 PRODUCT_PACKAGES += \
     Snap
@@ -107,6 +113,7 @@ PRODUCT_COPY_FILES += \
     frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
     frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
     frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
+    frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
     $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \
     $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
 
index 9699e82258da657414639f8a801480402802ae01..f5e6007dd13dfeeb231161d46e794f6e7c6f597f 100644 (file)
     <!-- Home button Wake Support. Some devices do not support this.
          Setting to false will disable Home button Wake support -->
     <bool name="config_show_homeWake">true</bool>
+
+    <!-- Defines the location of the fingerprint sensor on the device
+        0 = back
+        1 = front
+        2 = left side
+        3 = right side -->
+    <integer name="config_fingerprintSensorLocation">1</integer>
 </resources>