Mount bind Huawei's fingerprint.kl
This commit is contained in:
parent
14764f3afd
commit
29622ec3e3
28
rw-system.sh
28
rw-system.sh
@ -12,19 +12,18 @@ mount -o remount,ro /
|
||||
|
||||
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" ] && exit 0
|
||||
if [ -n "$img" ];then
|
||||
#Rewrite SPL/Android version if needed
|
||||
Arelease="$(getSPL $img android)"
|
||||
setprop ro.keymaster.xxx.release $Arelease
|
||||
setprop ro.keymaster.xxx.security_patch "$(getSPL $img spl)"
|
||||
|
||||
#Rewrite SPL/Android version if needed
|
||||
Arelease="$(getSPL $img android)"
|
||||
setprop ro.keymaster.xxx.release $Arelease
|
||||
setprop ro.keymaster.xxx.security_patch "$(getSPL $img spl)"
|
||||
|
||||
#Only Android 8.0 needs this
|
||||
if ! echo "$Arelease" |grep -qF 8.0;then
|
||||
#Only Android 8.0 needs this
|
||||
if ! echo "$Arelease" |grep -qF 8.0;then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
for f in /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so /system/lib64/vndk-26/libsoftkeymasterdevice.so;do
|
||||
for f in /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so /system/lib64/vndk-26/libsoftkeymasterdevice.so;do
|
||||
[ ! -f $f ] && continue
|
||||
b="$(basename "$f")"
|
||||
|
||||
@ -38,5 +37,10 @@ for f in /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so /system/lib
|
||||
fi
|
||||
chmod 0644 /dev/phh/$b
|
||||
mount -o bind /dev/phh/$b $f
|
||||
done
|
||||
setprop ctl.restart keymaster-3-0
|
||||
done
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user