Update Samsung HBM to use max brightnmess

This commit is contained in:
Pierre-Hugues Husson 2020-05-14 15:47:02 +02:00
parent e9afb88256
commit b3a5ea6275

View File

@ -690,5 +690,7 @@ if getprop ro.vendor.build.fingerprint |grep -qiE \
fi fi
resetprop service.adb.root 0 resetprop service.adb.root 0
#This is for Samsung Galaxy devices with HBM FOD # This is for Samsung Galaxy devices with HBM FOD
echo 319 > /sys/class/lcd/panel/mask_brightness # 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