summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authortunturn <arbiter1000@gmail.com>2017-03-09 12:37:53 +1100
committerMax Weffers <rcstar6696@gmail.com>2017-03-14 13:15:52 +0100
commitc46f907aaaa0a78e15658e59e38363ee6eb35517 (patch)
treee08da6891ca2b18726c7ac96adaaa1104fc7016b /rootdir
parenteeeb88097b34e2010b8fc8a27ca2cbe741113277 (diff)
shinano-common: changes to bringup broadcom FM Radio/Bluetooth
Change-Id: I633357fa8a04cf178fdee3e4471d20d5432eb230
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.qcom.rc18
-rw-r--r--rootdir/ueventd.qcom.rc8
2 files changed, 22 insertions, 4 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index 8f01da0..6a53991 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -103,12 +103,13 @@ on early-boot
on boot
write /sys/module/qpnp_power_on/parameters/forcecrash_on 1
- chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
- chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
+ # Bluetooth
+ chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
+ chown bluetooth net_bt /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/state
- chown bluetooth net_bt_stack /dev/ttyHS0
+ chown bluetooth net_bt /dev/ttyHS0
chmod 0660 /dev/ttyHS0
- chown bluetooth net_bt_stack /sys/devices/platform/msm_serial_hs.0/clock
+ chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
# Create PERFD deamon related dirs
@@ -309,6 +310,8 @@ on post-fs-data
# to observe dnsmasq.leases file for dhcp information of soft ap.
chown dhcp dhcp /data/misc/dhcp
+ mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
+
mkdir /data/tombstones 0755 system system
mkdir /data/tombstones/vendor 0755 system system
mkdir /data/pc 0700 radio radio
@@ -610,6 +613,13 @@ service mediadrm /system/bin/mediadrmserver
group mediadrm drmrpc trimarea
ioprio rt 4
+# brcm-uim-sysfs (BT/FM/ANT+)
+ service uim /system/bin/brcm-uim-sysfs
+ class late_start
+ user root
+ group bluetooth net_bt_admin net_bt
+ seclabel u:r:uim:s0
+
service ptt_socket_app /system/bin/ptt_socket_app
class main
user system
diff --git a/rootdir/ueventd.qcom.rc b/rootdir/ueventd.qcom.rc
index 4a48cdf..3624a6d 100644
--- a/rootdir/ueventd.qcom.rc
+++ b/rootdir/ueventd.qcom.rc
@@ -47,6 +47,14 @@
#permissions for CSVT
/dev/smd11 0660 radio radio
+# BT/FM/ANT+ V4L2
+/dev/brcm_bt_drv 0660 bluetooth net_bt_stack
+/dev/radio1 0660 system net_bt_stack
+/dev/rfcomm0 0660 bluetooth bluetooth
+/dev/ttyUSB0 0660 bluetooth bluetooth
+/dev/smd3 0660 bluetooth net_bt_stack
+/dev/smd2 0660 bluetooth net_bt_stack
+
/dev/radio0 0640 system system
/dev/smdcntl0 0640 radio radio
/dev/smdcntl1 0640 radio radio