summaryrefslogtreecommitdiff
path: root/rootdir/init.qcom.rc
diff options
context:
space:
mode:
authortunturn <arbiter1000@gmail.com>2017-03-11 17:05:54 +1100
committerMax Weffers <rcstar6696@gmail.com>2017-03-14 13:18:04 +0100
commite9b01bc76c3f0886e25efceb7c8e23ab98842f89 (patch)
treea31d0036a34a96be0db928ddfc92d1f6cd42cc39 /rootdir/init.qcom.rc
parent10c5f658b38449c16599e52f40f403349caa5674 (diff)
shinano-common: cleanup rootdir ramdisk scripts
* also clean bluetooth stuff Change-Id: Ib76be395aa584553c758c23063e233b54e41a856
Diffstat (limited to 'rootdir/init.qcom.rc')
-rw-r--r--rootdir/init.qcom.rc36
1 files changed, 30 insertions, 6 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index a8fc56b..ebcab1f 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -55,9 +55,11 @@ on init
setprop ro.bt.bdaddr_path "/data/etc/bluetooth_bdaddr"
chown bluetooth bluetooth ${ro.bt.bdaddr_path}
- # bluetooth LPM
- chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
- chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
+ setprop ro.bluetooth.hfp.ver 1.6
+ setprop bluetooth.a2dp.sink.enabled false
+ setprop bluetooth.enable_timeout_ms 12000
+ chown bluetooth net_bt_admin /proc/bluetooth/wakeup/proto
+ chmod 0664 /proc/bluetooth/wakeup/proto
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
@@ -104,14 +106,32 @@ on boot
write /sys/module/qpnp_power_on/parameters/forcecrash_on 1
# Bluetooth
- chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
- chown bluetooth net_bt /sys/class/rfkill/rfkill0/state
+ chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/type
+ chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/state
+ # bluetooth LPM
+ chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
+ chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
+
+ # BT DUN port-bridge
+ chmod 0660 /dev/smd7
+ chown bluetooth bluetooth /dev/smd7
+
chmod 0660 /sys/class/rfkill/rfkill0/state
- chown bluetooth net_bt /dev/ttyHS0
+ chown bluetooth net_bt_admin /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
+ #Create QMUX deamon socket area
+ mkdir /dev/socket/qmux_radio 0770 radio radio
+ chmod 2770 /dev/socket/qmux_radio
+ mkdir /dev/socket/qmux_audio 0770 media audio
+ chmod 2770 /dev/socket/qmux_audio
+ mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
+ chmod 2770 /dev/socket/qmux_bluetooth
+ mkdir /dev/socket/qmux_gps 0770 gps gps
+ chmod 2770 /dev/socket/qmux_gps
+
# Create PERFD deamon related dirs
mkdir /data/misc/perfd 0755 root system
chmod 2755 /data/misc/perfd
@@ -406,6 +426,10 @@ on post-fs-data
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
+on property:bluetooth.isEnabled=true
+# start btwlancoex
+ write /sys/class/bluetooth/hci0/idle_timeout 7000
+
# QMUX must be in multiple groups to support external process connections
service qmuxd /system/bin/qmuxd
class main