From 51f9d61755a87613355f30e3a35674a2938c0269 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 fa17615..dee5e79 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -741,7 +741,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