From 4663cec554e611acd5d545921a05af08f56501ec Mon Sep 17 00:00:00 2001 From: Ajay Singh Parmar Date: Thu, 8 Aug 2013 12:30:31 -0700 Subject: [PATCH] init: qcom: Update HDCP topology sysfs permissions This change updates the sysfs node "hdcp/tp" permissions such that it can be accessed by system modules Change-Id: Iafc1788b5454cb034a7a62fa3e9c0ff62d46dbdc --- rootdir/etc/init.qcom.early_boot.sh | 4 +++- rootdir/etc/init.qcom.factory.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.early_boot.sh b/rootdir/etc/init.qcom.early_boot.sh index 23f21a15..2f6147fb 100755 --- a/rootdir/etc/init.qcom.early_boot.sh +++ b/rootdir/etc/init.qcom.early_boot.sh @@ -1,5 +1,5 @@ #!/system/bin/sh -# Copyright (c) 2012, The Linux Foundation. All rights reserved. +# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -147,9 +147,11 @@ do case "$value" in "dtv panel") chown system.graphics $file/hpd + chown system.system $file/hdcp/tp chown system.graphics $file/vendor_name chown system.graphics $file/product_description chmod 0664 $file/hpd + chmod 0664 $file/hdcp/tp chmod 0664 $file/vendor_name chmod 0664 $file/product_description chmod 0664 $file/video_mode diff --git a/rootdir/etc/init.qcom.factory.sh b/rootdir/etc/init.qcom.factory.sh index 6d54931e..d09436c0 100644 --- a/rootdir/etc/init.qcom.factory.sh +++ b/rootdir/etc/init.qcom.factory.sh @@ -77,7 +77,9 @@ # setup permissions for fb1 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 + chmod 0664 /sys/devices/virtual/graphics/fb1/hdcp/tp chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d