From 862135d95b772a57e109b23e8b6b4481302a935d Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 8 Jun 2020 18:51:33 +0200 Subject: [PATCH] moto fp gestures for fpc --- rw-system.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index fceb80d..973dd7d 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -163,7 +163,9 @@ changeKeylayout() { if getprop ro.product.vendor.manufacturer |grep -q -e motorola;then cp /system/phh/moto-uinput-egis.kl /mnt/phh/keylayout/uinput-egis.kl + cp /system/phh/moto-uinput-egis.kl /mnt/phh/keylayout/uinput-fpc.kl chmod 0644 /mnt/phh/keylayout/uinput-egis.kl + chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl changed=true fi @@ -487,9 +489,13 @@ for f in /vendor/lib{,64}/hw/com.qti.chi.override.so /vendor/lib{,64}/libVD*;do chcon "$ctxt" "/mnt/phh/$b" mount -o bind "/mnt/phh/$b" "$f" - setprop sys.phh.xx.manufacturer "$(getprop ro.product.vendor.manufacturer)" + manufacturer=$(getprop ro.product.vendor.manufacturer) + [ -z "$manufacturer" ] && manufacturer=$(getprop ro.product.manufacturer) + model=$(getprop ro.product.vendor.model) + [ -z "$model" ] && model=$(getprop ro.product.odm.model) + setprop sys.phh.xx.manufacturer "$manufacturer" setprop sys.phh.xx.brand "$(getprop ro.product.vendor.brand)" - setprop sys.phh.xx.model "$(getprop ro.product.vendor.model)" + setprop sys.phh.xx.model "$model" done if [ -n "$(getprop ro.boot.product.hardware.sku)" ] && [ -z "$(getprop ro.hw.oemName)" ];then