Merge pull request #113 from eremitein/android-9.0
fp-gestures: don't change if exists
This commit is contained in:
commit
6110dd3f78
@ -72,12 +72,17 @@ changeKeylayout() {
|
|||||||
-e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl \
|
-e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl \
|
||||||
-e xiaomi/nitrogen -e xiaomi/daisy -e xiaomi/sakura \
|
-e xiaomi/nitrogen -e xiaomi/daisy -e xiaomi/sakura \
|
||||||
-e xiaomi/whyred -e xiaomi/tulip; then
|
-e xiaomi/whyred -e xiaomi/tulip; 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
|
||||||
|
changed=true
|
||||||
|
fi
|
||||||
|
if [ ! -f /mnt/phh/keylayout/uinput-fpc.kl ]; then
|
||||||
cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl
|
cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl
|
||||||
chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl
|
chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl
|
||||||
changed=true
|
changed=true
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if getprop ro.vendor.build.fingerprint | grep -qi oneplus/oneplus6/oneplus6; then
|
if getprop ro.vendor.build.fingerprint | grep -qi oneplus/oneplus6/oneplus6; then
|
||||||
cp /system/phh/oneplus6-synaptics_s3320.kl /mnt/phh/keylayout/synaptics_s3320.kl
|
cp /system/phh/oneplus6-synaptics_s3320.kl /mnt/phh/keylayout/synaptics_s3320.kl
|
||||||
|
Loading…
Reference in New Issue
Block a user