Revert "Add more specific check for correct model"

This reverts commit 91a4066603.
This commit is contained in:
Hackintosh 5 2019-01-04 15:46:51 +00:00
parent 91a4066603
commit e31f9ceec8

View File

@ -226,10 +226,8 @@ if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*"
fi fi
if getprop ro.vendor.build.fingerprint |grep -iq -E -e 'huawei|honor' || getprop persist.sys.overlay.huawei |grep -iq -E -e 'true' ; then if getprop ro.vendor.build.fingerprint |grep -iq -E -e 'huawei|honor' || getprop persist.sys.overlay.huawei |grep -iq -E -e 'true' ; then
boardname=$(getprop ro.board.boardname | cut -d "_" -f1 | tr '[:upper:]' '[:lower:]') mount -o bind /product/etc/nfc/libnfc-nxp_*_*.conf /system/etc/libnfc-nxp.conf
modeltype=$(getprop ro.board.boardname | cut -d "_" -f2 | tr '[:lower:]' '[:upper:]') mount -o bind /product/etc/nfc/libnfc_brcm_*_*.conf /system/etc/libnfc-brcm.conf
mount -o bind /product/etc/nfc/libnfc-nxp_${boardname}_${modeltype}.conf /system/etc/libnfc-nxp.conf
mount -o bind /product/etc/nfc/libnfc_brcm_${boardname}_${modeltype}.conf /system/etc/libnfc-brcm.conf
mount -o bind /system/phh/libnfc-nci-huawei.conf /system/etc/libnfc-nci.conf mount -o bind /system/phh/libnfc-nci-huawei.conf /system/etc/libnfc-nci.conf
fi fi