From b3a5ea62753c3f98796b935586ab6a1eb40be6cb Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 14 May 2020 15:47:02 +0200 Subject: [PATCH] Update Samsung HBM to use max brightnmess --- rw-system.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 83fbdc1..0d64c08 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -690,5 +690,7 @@ if getprop ro.vendor.build.fingerprint |grep -qiE \ fi resetprop service.adb.root 0 -#This is for Samsung Galaxy devices with HBM FOD -echo 319 > /sys/class/lcd/panel/mask_brightness +# 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/panel/max_brightness > /sys/class/lcd/panel/mask_brightness