Add huawei nfc fix

thanks to @haky86 👍
This commit is contained in:
penn5 2019-01-04 13:46:14 +00:00 committed by Hackintosh 5
parent 3c9d658c9b
commit e3c3f6cec2

View File

@ -225,4 +225,10 @@ if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*"
done
fi
if getprop ro.vendor.build.fingerprint |grep -iq -E -e 'huawei|honor' || getprop persist.sys.overlay.huawei |grep -iq -E -e 'true' ; then
mount -o bind /product/etc/nfc/libnfc-nxp_*_*.conf /system/etc/libnfc-nxp.conf
mount -o bind /product/etc/nfc/libnfc_brcm_*_*.conf /system/etc/libnfc-brcm.conf
mount -o bind /system/phh/libnfc-nci-huawei.conf /system/etc/libnfc-nci.conf
fi
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true