Switch to SW keymaster on Moto One Macro, and enable devinputjack

This commit is contained in:
Pierre-Hugues Husson 2020-06-18 15:00:14 +02:00 committed by tboy1991
parent 3de6f6aaf6
commit b80dacffb4

View File

@ -175,6 +175,15 @@ changeKeylayout() {
fi fi
} }
if [ "$(getprop ro.product.vendor.manufacturer)" = motorola ] && getprop ro.vendor.product.name |grep -qE '^lima';then
for l in lib lib64;do
for f in mt6771 lima;do
mount /system/phh/empty /vendor/$l/hw/keystore.$f.so
done
done
setprop persist.sys.overlay.devinputjack true
fi
if mount -o remount,rw /system; then if mount -o remount,rw /system; then
resize2fs "$(grep ' /system ' /proc/mounts | cut -d ' ' -f 1)" || true resize2fs "$(grep ' /system ' /proc/mounts | cut -d ' ' -f 1)" || true
else else