Merge pull request #162 from mrgreywater/android-10.0

fix brightness flickering for Lenovo Z5s
This commit is contained in:
Pierre-Hugues HUSSON 2020-03-13 17:56:51 +01:00 committed by GitHub
commit 00016d4320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,12 @@ if getprop ro.vendor.build.fingerprint | grep -iq \
setprop persist.sys.qcom-brightness -1 setprop persist.sys.qcom-brightness -1
fi fi
# Lenovo Z5s brightness flickers without this setting
if getprop ro.vendor.build.fingerprint | grep -iq \
-e Lenovo/jd2019; then
setprop persist.sys.qcom-brightness -1
fi
if getprop ro.vendor.build.fingerprint | grep -qi oneplus/oneplus6/oneplus6; then if getprop ro.vendor.build.fingerprint | grep -qi oneplus/oneplus6/oneplus6; then
resize2fs /dev/block/platform/soc/1d84000.ufshc/by-name/userdata resize2fs /dev/block/platform/soc/1d84000.ufshc/by-name/userdata
fi fi