aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaulik Shah <mkshah@codeaurora.org>2016-12-20 16:32:26 +0530
committerDavide Garberi <dade.garberi@gmail.com>2018-01-10 18:27:20 +0100
commit5bed236ac90337369cb338ee460b384b051923c0 (patch)
tree335770655699704cf8d242ebde4f42f8c8a3f35e
parent805c350d0d04f9c46eef4425b8cbbb9f6dbeea42 (diff)
msm8996-common: Change msm_core node ownership from root to system
Energy-awareness service will be starting as system instead of root. Change ownership from root to system on nodes that energy-awareness uses. Change-Id: Ic23a49817c064b84b6abc5ad949d901c527ca7a8 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
-rwxr-xr-xrootdir/etc/init.qcom.rc5
-rw-r--r--rootdir/etc/ueventd.qcom.rc3
2 files changed, 8 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index c7f0ed3..331ab28 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -246,6 +246,11 @@ on boot
chmod 0660 /dev/ttyHS2
chown bluetooth bluetooth /dev/ttyHS2
+ chown system system /sys/module/msm_core/parameters/polling_interval
+ chown system system /sys/module/msm_core/parameters/disabled
+ chown system system /sys/kernel/debug/msm_core/enable
+ chown system system /sys/kernel/debug/msm_core/ptable
+
chown bluetooth net_bt /sys/class/rfkill/rfkill0/device/extldo
chmod 0660 /sys/class/rfkill/rfkill0/device/extldo
diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc
index 43ada97..36cf948 100644
--- a/rootdir/etc/ueventd.qcom.rc
+++ b/rootdir/etc/ueventd.qcom.rc
@@ -51,6 +51,9 @@
#permissions for CSVT
/dev/smd11 0660 radio radio
+#permissions for pta
+/dev/pta 0660 system system
+
/dev/radio0 0640 system system
/dev/rfcomm0 0660 bluetooth bluetooth
/dev/ttyUSB0 0660 bluetooth bluetooth