summaryrefslogtreecommitdiff
path: root/rootdir/init.qcom.rc
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir/init.qcom.rc')
-rw-r--r--rootdir/init.qcom.rc26
1 files changed, 8 insertions, 18 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index c703b91..af0ebda 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -55,17 +55,11 @@ on init
# Bluetooth address setting
setprop ro.bt.bdaddr_path "/data/etc/bluetooth_bdaddr"
- chown bluetooth bluetooth ro.bt.bdaddr_path
+ chown bluetooth net_bt_stack ro.bt.bdaddr_path
- # Enable Bluetooth HFP 1.6
- setprop ro.bluetooth.hfp.ver 1.6
-
- # Disable Bluetooth A2DP SNK
- setprop bluetooth.a2dp.sink.enabled false
-
- # Enable Bluetooth WakeUp trigger
- chown bluetooth net_bt_admin /proc/bluetooth/wakeup/proto
- chmod 0660 /proc/bluetooth/wakeup/proto
+ # bluetooth LPM
+ chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
+ chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
# create directory for scd
mkdir /dev/socket/scd 0755 system system
@@ -126,12 +120,12 @@ on early-boot
on boot
write /sys/module/qpnp_power_on/parameters/forcecrash_on 1
exec /system/bin/btnvtool -O
- chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/type
- chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/state
+ chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
+ chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/state
- chown bluetooth net_bt_admin /dev/ttyHS0
+ chown bluetooth net_bt_stack /dev/ttyHS0
chmod 0660 /dev/ttyHS0
- chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
+ chown bluetooth net_bt_stack /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
# Create QMUX deamon socket area
@@ -153,10 +147,6 @@ on boot
chmod 0660 /dev/smd0
chown system system /dev/smd0
- # BT DUN port-bridge
- chmod 0660 /dev/smd7
- chown bluetooth bluetooth /dev/smd7
-
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
# Remove write permissions to video related nodes