From bf886321ea0ddc394ca224ccfaba04ba3734238a Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 18 May 2018 15:09:30 +0200 Subject: [PATCH] Check if there is a fingerprint HAL before declaring fingerprint feature --- rw-system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 2e969ab..1e25e2d 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -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 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 #Found on MTK devices mount -o bind /system/phh/empty /vendor/lib/hw/keystore.trustkernel.so || true