Disable fingerprint sensor input from Doogee S88 Pro

See https://github.com/phhusson/treble_experimentations/issues/2204
This commit is contained in:
Pierre-Hugues Husson 2022-02-21 05:27:26 -05:00
parent eb24d77380
commit 50903fde85

View File

@ -287,6 +287,12 @@ changeKeylayout() {
changed=true
fi
if getprop ro.vendor.build.fingerprint | grep -iq DOOGEE/S88Pro;then
cp /system/phh/empty /mnt/phh/keylayout/sf-keys.kl
chmod 0644 /mnt/phh/keylayout/sf-keys.kl
changed=true
fi
if [ "$changed" = true ]; then
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
restorecon -R /system/usr/keylayout