From 0048f513fdcebe8c6dbd06cfa0b53224faac51ed Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 21 Mar 2022 19:02:59 -0400 Subject: [PATCH] Change fingerprint manifest grep, because people are putting manifest anywhere --- rw-system.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 276f646..ee9b0b3 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -346,15 +346,14 @@ if grep vendor.huawei.hardware.biometrics.fingerprint /vendor/manifest.xml; then fi foundFingerprint=false -for manifest in /vendor/manifest.xml /vendor/etc/vintf/manifest.xml /odm/etc/vintf/manifest.xml /odm/etc/vintf/manifest/manifest_oplus_fingerprint.xml;do - if grep -q \ - -e android.hardware.biometrics.fingerprint \ - -e vendor.oppo.hardware.biometrics.fingerprint \ - -e vendor.oplus.hardware.biometrics.fingerprint \ - $manifest; - then - foundFingerprint=true - fi +for manifest in /vendor/manifest.xml /vendor/etc/vintf /odm/etc/vintf;do + if grep -q \ + -e android.hardware.biometrics.fingerprint \ + -e vendor.oppo.hardware.biometrics.fingerprint \ + -e vendor.oplus.hardware.biometrics.fingerprint \ + -r $manifest;then + foundFingerprint=true + fi done if [ "$foundFingerprint" = false ];then