cm: Allow LiveDisplay to write to color_enhance

The proper permissions for the color_enhance sysfs node weren't
being set, rendering the color enhancement switch useless.

Set the proper permissions for LiveDisplay to toggle color enhancement.

Change-Id: Ic8dba8953b73a497cb01a645834c0e7934092b38
This commit is contained in:
Zhao Wei Liew 2016-04-30 14:57:22 +08:00 committed by Steve Kondik
parent 7a92949668
commit de1ad36765
2 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,8 @@ on boot
chmod 0660 /sys/devices/virtual/graphics/fb0/rgb
chown system system /sys/devices/virtual/graphics/fb0/sre
chmod 0660 /sys/devices/virtual/graphics/fb0/sre
chown system system /sys/devices/virtual/graphics/fb0/color_enhance
chmod 0660 /sys/devices/virtual/graphics/fb0/color_enhance
# Define TCP delayed ack settings for WiFi & LTE
chown system system /sys/kernel/ipv4/tcp_delack_seg

View File

@ -47,6 +47,7 @@
/sys/devices/virtual/graphics/fb0/cabc u:object_r:livedisplay_sysfs:s0
/sys/devices/virtual/graphics/fb0/rgb u:object_r:livedisplay_sysfs:s0
/sys/devices/virtual/graphics/fb0/sre u:object_r:livedisplay_sysfs:s0
/sys/devices/virtual/graphics/fb0/color_enhance u:object_r:livedisplay_sysfs:s0
# fsck
/system/bin/fsck\.ntfs u:object_r:fsck_exec:s0