Check if there is a fingerprint HAL before declaring fingerprint feature

This commit is contained in:
Pierre-Hugues Husson 2018-05-18 15:09:30 +02:00
parent a8ead1aa88
commit bf886321ea

View File

@ -49,6 +49,10 @@ if grep vendor.huawei.hardware.biometrics.fingerprint /vendor/manifest.xml;then
mount -o bind system/phh/huawei/fingerprint.kl /vendor/usr/keylayout/fingerprint.kl mount -o bind system/phh/huawei/fingerprint.kl /vendor/usr/keylayout/fingerprint.kl
fi fi
if ! grep android.hardware.biometrics.fingerprint /vendor/manifest.xml;then
mount -o bind system/phh/empty /system/etc/permissions/android.hardware.fingerprint.xml
fi
#Disable trustkernel keystore, because it doesn't work for the moment #Disable trustkernel keystore, because it doesn't work for the moment
#Found on MTK devices #Found on MTK devices
mount -o bind /system/phh/empty /vendor/lib/hw/keystore.trustkernel.so || true mount -o bind /system/phh/empty /vendor/lib/hw/keystore.trustkernel.so || true