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:
parent
f3d2373aa3
commit
d8d75db746
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue