From 036f0d06ec61e0a3edb355d2f74a2e45e10e9520 Mon Sep 17 00:00:00 2001 From: eddielan Date: Thu, 10 Jun 2021 17:13:31 +0800 Subject: [PATCH] fpc1540: Create a folder for sw35 configuration Bug: 188776180 Test: N/A Change-Id: Ia9f0939d709ae75161c41f33fdb61403247ade7c --- .../fpc1540/sw35/fingerprint_aidl_config.mk | 17 +++++++++++ .../sw35/fingerprint_hidl_config_factory.mk | 21 ++++++++++++++ fingerprint/fpc1540/sw35/fpc1540.mk | 29 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 fingerprint/fpc1540/sw35/fingerprint_aidl_config.mk create mode 100644 fingerprint/fpc1540/sw35/fingerprint_hidl_config_factory.mk create mode 100644 fingerprint/fpc1540/sw35/fpc1540.mk diff --git a/fingerprint/fpc1540/sw35/fingerprint_aidl_config.mk b/fingerprint/fpc1540/sw35/fingerprint_aidl_config.mk new file mode 100644 index 00000000..60392623 --- /dev/null +++ b/fingerprint/fpc1540/sw35/fingerprint_aidl_config.mk @@ -0,0 +1,17 @@ +# ---------------------------- +# Add feature flags below +# ---------------------------- +FPC_BUILD_ID='ff334fee0631b7d5e424e22d18287f4f' +FPC_CONFIG_BUILD_VERSION=35 +FPC_CONFIG_GOOGLE_CUSTOMIZE=1 +FPC_CONFIG_MAX_NR_TEMPLATES=5 +FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat +FPC_CONFIG_SENSORTEST=1 +FPC_CONFIG_TA_FS=1 +FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000 +FPC_HAL_SHARED_LIB=1 +FPC_SENSOR_SDK_LOG_LEVEL=3 +FPC_TEE_RUNTIME=TRUSTY +LIBFPC_NAME=libfpcmulti_debug.a +FPC_CONFIG_DEBUG=1 +FPC_CONFIG_ENGINEERING=1 diff --git a/fingerprint/fpc1540/sw35/fingerprint_hidl_config_factory.mk b/fingerprint/fpc1540/sw35/fingerprint_hidl_config_factory.mk new file mode 100644 index 00000000..2c467f28 --- /dev/null +++ b/fingerprint/fpc1540/sw35/fingerprint_hidl_config_factory.mk @@ -0,0 +1,21 @@ +# ---------------------------- +# Add feature flags below +# ---------------------------- +FPC_BUILD_ID='ff334fee0631b7d5e424e22d18287f4f' +FPC_CONFIG_BUILD_VERSION=35 +FPC_CONFIG_GOOGLE_CUSTOMIZE=1 +FPC_CONFIG_CAPACITIVE=1 +FPC_CONFIG_MAX_NR_TEMPLATES=5 +FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat +FPC_CONFIG_SENSORTEST=1 +FPC_CONFIG_TA_FS=1 +FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000 +FPC_SENSOR_SDK_LOG_LEVEL=3 +FPC_TEE_RUNTIME=TRUSTY +LIBFPC_NAME=libfpcmulti_debug.a +FPC_CONFIG_DEBUG=1 +FPC_CONFIG_ENGINEERING=1 + +# +# File included from device//<>/.mk +# Packages to include into the build diff --git a/fingerprint/fpc1540/sw35/fpc1540.mk b/fingerprint/fpc1540/sw35/fpc1540.mk new file mode 100644 index 00000000..e4eb8021 --- /dev/null +++ b/fingerprint/fpc1540/sw35/fpc1540.mk @@ -0,0 +1,29 @@ +# Factory build, use HIDL hal & extension so that we can use Test tool +ifneq ( ,$(findstring factory, $(TARGET_PRODUCT))) +include device/google/gs101/fingerprint/fpc1540/sw35/fingerprint_hidl_config_factory.mk +PRODUCT_PACKAGES += \ + android.hardware.biometrics.fingerprint@2.1-service.fpc \ + fpc_tee_test\ + SensorTestTool \ + ImageTool \ + ImageCollection \ + +PRODUCT_PACKAGES += \ + com.fingerprints.extension.xml \ + com.fingerprints.extension \ + +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml + +else +# Non facotry build, use fingerprint AIDL version +include device/google/gs101/fingerprint/fpc1540/sw35/fingerprint_aidl_config.mk + +PRODUCT_PACKAGES += \ + android.hardware.biometrics.fingerprint-service.fpc35 \ + fingerprint.fpc \ + +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml + +endif