Merge pull request #295 from AndyCGYan/fix-mona-hrr

Make high refresh rate show up for Xiaomi Civi
This commit is contained in:
Pierre-Hugues HUSSON 2022-02-19 16:06:28 +01:00 committed by GitHub
commit 155fad8a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -695,14 +695,13 @@ fi
setprop ctl.stop console setprop ctl.stop console
dmesg -n 1 dmesg -n 1
if [ -f /system/phh/secure ] || [ -f /metadata/phh/secure ];then
copyprop() { copyprop() {
p="$(getprop "$2")" p="$(getprop "$2")"
if [ "$p" ]; then if [ "$p" ]; then
resetprop_phh "$1" "$(getprop "$2")" resetprop_phh "$1" "$(getprop "$2")"
fi fi
} }
if [ -f /system/phh/secure ] || [ -f /metadata/phh/secure ];then
copyprop ro.build.device ro.vendor.build.device copyprop ro.build.device ro.vendor.build.device
copyprop ro.system.build.fingerprint ro.vendor.build.fingerprint copyprop ro.system.build.fingerprint ro.vendor.build.fingerprint
copyprop ro.bootimage.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 if [ -f /vendor/bin/ccci_rpcd ];then
setprop debug.phh.props.ccci_rpcd vendor setprop debug.phh.props.ccci_rpcd vendor
fi fi
if getprop ro.vendor.build.fingerprint | grep -qi -e iaomi/mona; then
copyprop ro.product.manufacturer ro.product.vendor.manufacturer
fi