From 9b9b7794e7b76e4908f76c1a0023dc0c55ee4d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20R?= Date: Thu, 9 Dec 2021 13:32:53 -0600 Subject: [PATCH 1/2] Disable FP gestures for Motorola One Fusion Plus --- rw-system.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index ccda9a2..1ded2d7 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -274,6 +274,14 @@ changeKeylayout() { changed=true fi + if getprop ro.vendor.build.fingerprint | grep -iq -e motorola/liber; then + if [ ! -f /mnt/phh/keylayout/uinput_nav.kl ]; then + cp /system/phh/empty /mnt/phh/keylayout/uinput_nav.kl + chmod 0644 /mnt/phh/keylayout/uinput_nav.kl + changed=true + fi + fi + if [ "$changed" = true ]; then mount -o bind /mnt/phh/keylayout /system/usr/keylayout restorecon -R /system/usr/keylayout From 4babb2da95b884d3b94c8e6e5c11071a624eef7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20R?= Date: Thu, 9 Dec 2021 15:52:23 -0600 Subject: [PATCH 2/2] Remove unnecessary if --- rw-system.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 1ded2d7..9b7b1b6 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -275,11 +275,10 @@ changeKeylayout() { fi if getprop ro.vendor.build.fingerprint | grep -iq -e motorola/liber; then - if [ ! -f /mnt/phh/keylayout/uinput_nav.kl ]; then + cp /system/phh/empty /mnt/phh/keylayout/uinput_nav.kl chmod 0644 /mnt/phh/keylayout/uinput_nav.kl changed=true - fi fi if [ "$changed" = true ]; then