From 0c42bbf8c4b33f8c21cf6ace8b7ebb68476a05ac Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 18 Jun 2020 15:00:14 +0200 Subject: [PATCH] Switch to SW keymaster on Moto One Macro, and enable devinputjack --- rw-system.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 47e0648..b326127 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -176,6 +176,15 @@ changeKeylayout() { 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 resize2fs "$(grep ' /system ' /proc/mounts | cut -d ' ' -f 1)" || true else