Mount bind Huawei's fingerprint.kl

This commit is contained in:
Pierre-Hugues Husson 2018-04-30 13:56:06 +02:00
parent 14764f3afd
commit 29622ec3e3

View File

@ -12,8 +12,7 @@ mount -o remount,ro /
img="$(find /dev/block -type l |grep by-name |grep /kernel$(getprop ro.boot.slot_suffix) |head -n 1)" img="$(find /dev/block -type l |grep by-name |grep /kernel$(getprop ro.boot.slot_suffix) |head -n 1)"
[ -z "$img" ] && img="$(find /dev/block -type l |grep by-name |grep /boot$(getprop ro.boot.slot_suffix) |head -n 1)" [ -z "$img" ] && img="$(find /dev/block -type l |grep by-name |grep /boot$(getprop ro.boot.slot_suffix) |head -n 1)"
[ -z "$img" ] && exit 0 if [ -n "$img" ];then
#Rewrite SPL/Android version if needed #Rewrite SPL/Android version if needed
Arelease="$(getSPL $img android)" Arelease="$(getSPL $img android)"
setprop ro.keymaster.xxx.release $Arelease setprop ro.keymaster.xxx.release $Arelease
@ -40,3 +39,8 @@ for f in /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so /system/lib
mount -o bind /dev/phh/$b $f mount -o bind /dev/phh/$b $f
done done
setprop ctl.restart keymaster-3-0 setprop ctl.restart keymaster-3-0
fi
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