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
This commit is contained in:
Andy CrossGate Yan 2022-02-19 14:54:34 +00:00
parent 5874b86caf
commit 90e92a5655

View File

@ -695,14 +695,13 @@ fi
setprop ctl.stop console
dmesg -n 1
if [ -f /system/phh/secure ] || [ -f /metadata/phh/secure ];then
copyprop() {
copyprop() {
p="$(getprop "$2")"
if [ "$p" ]; then
resetprop_phh "$1" "$(getprop "$2")"
fi
}
}
if [ -f /system/phh/secure ] || [ -f /metadata/phh/secure ];then
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