Merge pull request #321 from mmtrt/fix-keylayout

Use Xiaomi's fingerprint keylayout also on poco devices
This commit is contained in:
Pierre-Hugues HUSSON 2022-08-24 12:12:28 +02:00 committed by GitHub
commit 7a36effb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ changeKeylayout() {
fi fi
if getprop ro.vendor.build.fingerprint | grep -iq \ if getprop ro.vendor.build.fingerprint | grep -iq \
-e poco/ -e redmi/ -e xiaomi/ ; then -e poco/ -e POCO/ -e redmi/ -e xiaomi/ ; then
if [ ! -f /mnt/phh/keylayout/uinput-goodix.kl ]; then if [ ! -f /mnt/phh/keylayout/uinput-goodix.kl ]; then
cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl
chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl