Detect qcom extended brightness and set a property based on this, to be used by framework
This commit is contained in:
parent
c09149f86b
commit
19ce2265e5
@ -61,3 +61,8 @@ fi
|
||||
if ! grep android.hardware.ir /vendor/manifest.xml;then
|
||||
mount -o bind system/phh/empty /system/etc/permissions/android.hardware.consumerir.xml
|
||||
fi
|
||||
|
||||
if getprop ro.hardware |grep -qF qcom && [ -f /sys/class/backlight/panel0-backlight/max_brightness ] && \
|
||||
grep -qvE '^255$' /sys/class/backlight/panel0-backlight/max_brightness;then
|
||||
setprop persist.sys.qcom-brightness $(cat /sys/class/backlight/panel0-backlight/max_brightness)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user