flo: Fix thermald permission issues

The owner of /sys/class/leds/lcd-backlight/brightness is system.
Since thermald runs as root, and this node has 644 perms, writing it
generates a dac_override denial. Changing the perms to 664 fixes the
issue.

Change-Id: Ic7a3bc583c2e52c5799ef536c4b9ea07a921e54b
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
Daniel Jarai 2018-10-06 11:12:33 +03:00 committed by followmsi
parent f3d2373aa3
commit d8d75db746
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,9 @@ on boot
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
# Allow thermald to modify the current LCD brightness
chmod 664 /sys/class/leds/lcd-backlight/brightness
# create symlink for fb1 as HDMI
symlink /dev/graphics/fb1 /dev/graphics/hdmi
@ -327,6 +330,7 @@ service charger /charger
service thermald /vendor/bin/thermald
class main
user root
group radio system
service mpdecision /vendor/bin/mpdecision --avg_comp