Looks like Samsung FODs are calibrated at 319 nits, not max brightness

This commit is contained in:
Pierre-Hugues Husson 2020-09-29 00:18:41 +02:00 committed by tboy1991
parent dd12c94c40
commit b53b105e83

View File

@ -745,7 +745,7 @@ resetprop service.adb.root 0
# This is for Samsung Galaxy devices with HBM FOD
# On those devices, a magic Layer usageBits switches to "mask_brightness"
# But default is 255, so set it to max instead
cat /sys/class/backlight/*/max_brightness |sort -n |tail -n 1 > /sys/class/lcd/panel/mask_brightness
echo 319 > /sys/class/lcd/panel/mask_brightness
if getprop ro.vendor.build.fingerprint |grep -qiE '^xiaomi/';then
setprop persist.sys.phh.fod.xiaomi true