From b53b105e83025046124baf71a78044f6cbdb638b Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 29 Sep 2020 00:18:41 +0200 Subject: [PATCH] Looks like Samsung FODs are calibrated at 319 nits, not max brightness --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index b9be253..03e6dbc 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -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