summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2017-09-28 18:59:38 -0500
committerPraneeth Bajjuri2017-10-02 17:35:19 -0500
commit69a313b9a144661487168bc1674f770338dc11bd (patch)
tree9673557734ac0432e97d2606c620f011aa5a1062
parent9c829fc09970dd7f20d364a07fd0abf94cc0db8e (diff)
downloaddevice-ti-am57xevm-69a313b9a144661487168bc1674f770338dc11bd.tar.gz
device-ti-am57xevm-69a313b9a144661487168bc1674f770338dc11bd.tar.xz
device-ti-am57xevm-69a313b9a144661487168bc1674f770338dc11bd.zip
am57xevm: Set IPC/Radio related permissions to system:media
Audio no longer belongs to the 'media' process. It runs in a separated process ('audioserver') so the LAD and IPC files (/dev/cmem, /dev/uio0, /dev/hwspinlock) couldn't be accessed anymore because their ownership was set to media:system. The binderized audio service is started under the 'audioserver' user and several groups including 'media': service audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-service class hal user audioserver # media gid needed for /dev/fm (radio) and for /data/misc/media (tee) group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct ... So, changing the group of the LAD and IPC files to 'media' allows the audio service to access them again. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com> [picked from http://review.omapzoom.org/#/c/38588] [comment: radio is not applicable to am57xevm hence lad_dra7xx service is not seen in init.am57xevmboard.rc] Change-Id: Ifba0c3c86e84ed28ada1b0078efa06dcfaf2bc49 Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r--init.am57xevmboard.rc4
-rw-r--r--ueventd.am57xevmboard.rc14
2 files changed, 9 insertions, 9 deletions
diff --git a/init.am57xevmboard.rc b/init.am57xevmboard.rc
index 641e721..f3b6917 100644
--- a/init.am57xevmboard.rc
+++ b/init.am57xevmboard.rc
@@ -15,8 +15,8 @@ on post-fs-data
15 setprop vold.post_fs_data_done 1 15 setprop vold.post_fs_data_done 1
16 mkdir /data/misc/dhcp 0770 dhcp dhcp 16 mkdir /data/misc/dhcp 0770 dhcp dhcp
17 chown dhcp dhcp /data/misc/dhcp 17 chown dhcp dhcp /data/misc/dhcp
18 mkdir /data/lad 0770 media system 18 mkdir /data/lad 0770 system media
19 mkdir /data/lad/LAD 0770 media system 19 mkdir /data/lad/LAD 0770 system media
20 20
21# enabling thermal zone for mpu 21# enabling thermal zone for mpu
22 write /sys/class/thermal/thermal_zone0/mode enabled 22 write /sys/class/thermal/thermal_zone0/mode enabled
diff --git a/ueventd.am57xevmboard.rc b/ueventd.am57xevmboard.rc
index 4d48453..7a69ae1 100644
--- a/ueventd.am57xevmboard.rc
+++ b/ueventd.am57xevmboard.rc
@@ -18,14 +18,14 @@
18/dev/hci_tty 0666 bluetooth bluetooth 18/dev/hci_tty 0666 bluetooth bluetooth
19 19
20# Radio Tuners 20# Radio Tuners
21/dev/i2c-0 0660 media system 21/dev/i2c-0 0660 system media
22/dev/i2c-1 0660 media system 22/dev/i2c-1 0660 system media
23/dev/i2c-3 0660 media system 23/dev/i2c-3 0660 system media
24/dev/i2c-4 0660 media system 24/dev/i2c-4 0660 system media
25 25
26# cmem 26# cmem
27/dev/cmem 0660 media system 27/dev/cmem 0660 system media
28 28
29# ipc 29# ipc
30/dev/uio0 0660 media system 30/dev/uio0 0660 system media
31/dev/hwspinlock 0660 media system 31/dev/hwspinlock 0660 system media