summaryrefslogtreecommitdiff
path: root/rootdir/init.qcom.rc
diff options
context:
space:
mode:
authorGiulio Cervera <giulio.cervera@cyanogenmod.org>2016-01-24 22:56:30 +0100
committerMax Weffers <rcstar6696@gmail.com>2017-01-30 15:34:35 +0100
commitfb6c3e3ce6f2d1f492ce782e993301d2c9bab1eb (patch)
tree73fbd7c013b7620a64db0c7fdbe4e15e1cc31169 /rootdir/init.qcom.rc
parent0cba1f6b5f2aee83b6ee84e63efc8488b043157c (diff)
clean update and aggregate graphics permissions
Change-Id: I2120fe0a383cea455d0090dd1bac2e6b34133aac
Diffstat (limited to 'rootdir/init.qcom.rc')
-rw-r--r--rootdir/init.qcom.rc55
1 files changed, 32 insertions, 23 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index f05aa5b..12134a1 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -138,23 +138,44 @@ on boot
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
- # MDP idle notifier
+ # Graphics
chown system graphics /sys/class/graphics/fb0/idle_time
- chmod 0664 /sys/class/graphics/fb0/idle_time
+ chmod 0664 /sys/devices/virtual/graphics/fb0/idle_time
+ chown system graphics /sys/class/graphics/fb0/dynamic_fps
+ chmod 0664 /sys/devices/virtual/graphics/fb0/dynamic_fps
+ chown system graphics /sys/class/graphics/fb0/dyn_pu
+ chmod 0664 /sys/devices/virtual/graphics/fb0/dyn_pu
+ chown system graphics /sys/class/graphics/fb0/modes
+ chmod 0664 /sys/devices/virtual/graphics/fb0/modes
+ chown system graphics /sys/class/graphics/fb0/mode
+ chmod 0664 /sys/devices/virtual/graphics/fb0/mode
- # Remove write permissions to video related nodes
chown system graphics /sys/class/graphics/fb1/hpd
- chown system system /sys/class/graphics/fb1/hdcp/tp
+ chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
+ chown system graphics /sys/class/graphics/fb1/res_info
+ chmod 0664 /sys/devices/virtual/graphics/fb1/res_info
chown system graphics /sys/class/graphics/fb1/vendor_name
+ chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name
chown system graphics /sys/class/graphics/fb1/product_description
+ chmod 0664 /sys/devices/virtual/graphics/fb1/product_description
+ chown system graphics /sys/class/graphics/fb1/video_mode
+ chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode
+ chown system graphics /sys/class/graphics/fb1/format_3d
+ chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d
chown system graphics /sys/class/graphics/fb1/s3d_mode
- chmod 0664 /sys/class/graphics/fb1/hpd
- chmod 0664 /sys/class/graphics/fb1/hdcp/tp
- chmod 0664 /sys/class/graphics/fb1/vendor_name
- chmod 0664 /sys/class/graphics/fb1/product_description
- chmod 0664 /sys/class/graphics/fb1/video_mode
- chmod 0664 /sys/class/graphics/fb1/format_3d
- chmod 0664 /sys/class/graphics/fb1/s3d_mode
+ chmod 0664 /sys/devices/virtual/graphics/fb1/s3d_mode
+ chown system graphics /sys/class/graphics/fb1/cec/enable
+ chmod 0664 /sys/devices/virtual/graphics/fb1/cec/enable
+ chown system graphics /sys/class/graphics/fb1/cec/logical_addr
+ chmod 0664 /sys/devices/virtual/graphics/fb1/cec/logical_addr
+ chown system graphics /sys/class/graphics/fb1/cec/rd_msg
+ chmod 0664 /sys/devices/virtual/graphics/fb1/cec/rd_msg
+ chown system graphics /sys/class/graphics/fb1/pa
+ chmod 0664 /sys/devices/virtual/graphics/fb1/pa
+ chown system graphics /sys/class/graphics/fb1/cec/wr_msg
+ chmod 0664 /sys/devices/virtual/graphics/fb1/cec/wr_msg
+ chown system graphics /sys/class/graphics/fb1/hdcp/tp
+ chmod 0664 /sys/devices/virtual/graphics/fb1/hdcp/tp
# create symlink for fb1 as HDMI
symlink /dev/graphics/fb1 /dev/graphics/hdmi
@@ -163,18 +184,6 @@ on boot
chown system system /sys/class/mhl/sii8334/adopter_id
chown system system /sys/class/mhl/sii8334/device_id
- # Change permissions for fps_level nodes
- chown system graphics /sys/class/graphics/fb0/msm_fb_fps_level
- chown system graphics /sys/class/graphics/fb1/msm_fb_fps_level
- chown system graphics /sys/class/graphics/fb2/msm_fb_fps_level
- chmod 644 /sys/class/graphics/fb0/msm_fb_fps_level
- chmod 400 /sys/class/graphics/fb1/msm_fb_fps_level
- chmod 400 /sys/class/graphics/fb2/msm_fb_fps_level
-
- # Dynamic fps
- chmod 644 /sys/devices/virtual/graphics/fb0/dynamic_fps
- chown system graphics /sys/devices/virtual/graphics/fb0/dynamic_fps
-
# For bridgemgr daemon to inform the USB driver of the correct transport
chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport