From 90e92a56558fbc59f31985b034366bcdd3e4ebc1 Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan Date: Sat, 19 Feb 2022 14:54:34 +0000 Subject: [PATCH] Make high refresh rate show up for Xiaomi Civi Some new Mi devices only reveal high refresh rate on `ro.product.manufacturer=Xiaomi` Until the offending blob is pinpointed, fake the prop with copyprop Feel free to experiment on other devices with similar symptom Change-Id: I125cc55d6c3d57d7e62c65c997de086cca24abdd --- rw-system.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 3ee53dd..5bfa270 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -695,14 +695,13 @@ fi setprop ctl.stop console dmesg -n 1 +copyprop() { + p="$(getprop "$2")" + if [ "$p" ]; then + resetprop_phh "$1" "$(getprop "$2")" + fi +} if [ -f /system/phh/secure ] || [ -f /metadata/phh/secure ];then - copyprop() { - p="$(getprop "$2")" - if [ "$p" ]; then - resetprop_phh "$1" "$(getprop "$2")" - fi - } - copyprop ro.build.device ro.vendor.build.device copyprop ro.system.build.fingerprint ro.vendor.build.fingerprint copyprop ro.bootimage.build.fingerprint ro.vendor.build.fingerprint @@ -1047,3 +1046,7 @@ fi if [ -f /vendor/bin/ccci_rpcd ];then setprop debug.phh.props.ccci_rpcd vendor fi + +if getprop ro.vendor.build.fingerprint | grep -qi -e iaomi/mona; then + copyprop ro.product.manufacturer ro.product.vendor.manufacturer +fi