Migrate caimito devices into caimito folder from sha 31a6eb4c2ffbc
Bug: 291867277 Change-Id: Ia7d34e6ab34bdd03406391f98c58b04eb77671cd
This commit is contained in:
parent
f63ebdb758
commit
b5194d9b24
307 changed files with 1405340 additions and 0 deletions
17
fingerprint/device_framework_matrix_product.xml
Normal file
17
fingerprint/device_framework_matrix_product.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<compatibility-matrix version="1.0" type="framework" level="7">
|
||||
<hal format="aidl" optional="true">
|
||||
<name>android.hardware.biometrics.fingerprint</name>
|
||||
<interface>
|
||||
<name>IFingerprint</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.qti.hardware.fingerprint</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IQtiExtendedFingerprint</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</compatibility-matrix>
|
52
fingerprint/init.qfp.sh
Normal file
52
fingerprint/init.qfp.sh
Normal file
|
@ -0,0 +1,52 @@
|
|||
#!/vendor/bin/sh
|
||||
|
||||
QTI_VFS_DIR=/data/vendor/misc/qti_fp
|
||||
VFS_CALIB_PATH=$QTI_VFS_DIR/vfs_calib.dat
|
||||
VFS_CALIB_SRC=/vendor/etc/qti_fp/vfs_calib.dat
|
||||
|
||||
# Update prop if not already set.
|
||||
init_prop() {
|
||||
PROP=`getprop $1`
|
||||
if [[ -z "$PROP" ]]
|
||||
then
|
||||
setprop $1 "$2"
|
||||
fi
|
||||
}
|
||||
|
||||
# Clear prop
|
||||
clear_prop() {
|
||||
setprop $1 ""
|
||||
}
|
||||
|
||||
UPDATE_VFS=`getprop persist.vendor.qfp.update_vfs_calib`
|
||||
|
||||
# Copy if file doesn't exist or if the persist flag is set.
|
||||
if [[ ! -f $VFS_CALIB_PATH || $UPDATE_VFS -eq 1 ]]; then
|
||||
log -p v "QFP: Updating vfs_calib.dat"
|
||||
mkdir -p $QTI_VFS_DIR
|
||||
chmod 0777 $QTI_VFS_DIR
|
||||
cp $VFS_CALIB_SRC $VFS_CALIB_PATH
|
||||
chmod 0777 $VFS_CALIB_PATH
|
||||
chown system:system $VFS_CALIB_PATH
|
||||
# Clear the flag after the initial copy.
|
||||
clear_prop persist.vendor.qfp.update_vfs_calib
|
||||
fi
|
||||
|
||||
init_prop persist.vendor.qfp.enable_pv "12 0 0"
|
||||
init_prop persist.vendor.qfp.enable_setprop 0
|
||||
|
||||
# If enable_setprop is 0 (disabled), delete the set props and use the hardcoded.
|
||||
if [[ `getprop persist.vendor.qfp.enable_setprop` -eq 0 ]]; then
|
||||
clear_prop persist.vendor.qfp
|
||||
clear_prop persist.vendor.qfp.enable_intr2
|
||||
clear_prop persist.vendor.qfp.enable_fd
|
||||
clear_prop persist.vendor.qfp.enable_td
|
||||
clear_prop persist.vendor.qfp.enable_ntz
|
||||
clear_prop persist.vendor.qfp.fd_events_src
|
||||
clear_prop persist.vendor.qfp.tz_srv_name
|
||||
clear_prop persist.vendor.qfp.tz_dev_name
|
||||
clear_prop persist.vendor.qfp.vfs_info
|
||||
fi
|
||||
|
||||
# Default to debug log level
|
||||
init_prop log.tag.QFP 3
|
40
fingerprint/ultrasonic_udfps.mk
Normal file
40
fingerprint/ultrasonic_udfps.mk
Normal file
|
@ -0,0 +1,40 @@
|
|||
#
|
||||
# Copyright 2021 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.
|
||||
#
|
||||
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
vendor/qcom/fingerprint/qfp-service \
|
||||
vendor/qcom/fingerprint/QFPCalibration \
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
qfp-daemon \
|
||||
QFPCalibration \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
|
||||
|
||||
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/caimito/fingerprint/device_framework_matrix_product.xml
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/caimito/fingerprint/init.qfp.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qfp.sh
|
||||
|
||||
#$(call soong_config_set,fp_hal_feature,biometric_suez_support,true)
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.qfp.update_vfs_calib=1
|
||||
|
||||
ifneq (,$(findstring factory, $(TARGET_PRODUCT)))
|
||||
PRODUCT_PACKAGES += QfsFactoryTest
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue