moto fp gestures for fpc

This commit is contained in:
Pierre-Hugues Husson 2020-06-08 18:51:33 +02:00 committed by tboy1991
parent 9b18fad926
commit 862135d95b

View File

@ -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