aboutsummaryrefslogtreecommitdiff
path: root/rootdir/init.qcom.rc
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir/init.qcom.rc')
-rw-r--r--rootdir/init.qcom.rc109
1 files changed, 54 insertions, 55 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index 44b34f5..27067c7 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -53,6 +53,20 @@ on init
mkdir /dev/bus 0755 root root
mkdir /dev/bus/usb 0755 root root
+ # Bluetooth address setting
+ setprop ro.bt.bdaddr_path "/data/etc/bluetooth_bdaddr"
+ chown bluetooth bluetooth 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
+
# create directory for scd
mkdir /dev/socket/scd 0755 system system
@@ -109,33 +123,17 @@ on early-boot
# Run pre_hw_config.sh before entering charge only mode.
exec /system/bin/sh /system/etc/pre_hw_config.sh
- exec /system/bin/sh /system/etc/init.qcom.wifi.sh
-
on boot
write /sys/module/qpnp_power_on/parameters/forcecrash_on 1
exec /system/bin/btnvtool -O
- chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
- chown bluetooth bluetooth /proc/bluetooth/sleep/proto
- chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_lpm
- chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite
- chown system system /sys/module/sco/parameters/disable_esco
- chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
- chmod 0660 /sys/module/bluetooth_power/parameters/power
- chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
+ chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/type
+ chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/state
- chmod 0660 /proc/bluetooth/sleep/proto
- chown bluetooth bluetooth /dev/ttyHS0
- chmod 0660 /sys/module/hci_uart/parameters/ath_lpm
- chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite
+ 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
- chmod 0660 /dev/ttyHS2
- chown bluetooth bluetooth /dev/ttyHS2
-
# Create QMUX deamon socket area
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio
@@ -260,7 +258,6 @@ on post-fs
# Change to socket location on libkeyctrl/suntory for /data encryption
mkdir /dev/socket/suntory 0755 system system
-# msm specific files that need to be created on /data
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
@@ -512,25 +509,6 @@ on charger
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
-# Update WIFI MAC address
-service mac-update /system/bin/mac-update
- class main
- user wifi
- oneshot
-
-service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
- class late_start
- user bluetooth
- group qcom_oncrpc bluetooth net_bt_admin system net_bt_stack
- disabled
- oneshot
-
-on property:bluetooth.hciattach=true
- start hciattach
-
-on property:bluetooth.hciattach=false
- setprop bluetooth.status off
-
# QMUX must be in multiple groups to support external process connections
service qmuxd /system/bin/qmuxd
class main
@@ -579,13 +557,16 @@ on property:sys.boot_completed=1
service qseecomd /system/bin/qseecomd
class core
user root
- group root
+ group root persist_rw
-service wpa_supplicant /system/bin/wpa_supplicant \
+service p2p_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
- -O/data/misc/wifi/sockets \
- -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
+ -O/data/misc/wifi/sockets -N \
+ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
+ -I/system/etc/wifi/p2p_supplicant_overlay.conf \
+ -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
+ -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
@@ -595,39 +576,57 @@ service wpa_supplicant /system/bin/wpa_supplicant \
disabled
oneshot
-service p2p_supplicant /system/bin/wpa_supplicant \
- -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
- -I/system/etc/wifi/p2p_supplicant_overlay.conf -N \
+service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
- -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \
+ -O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
-# we will start as root and wpa_supplicant will switch to user wifi
-# after setting up the capabilities required for WEXT
-# user wifi
-# group wifi inet keystore
+ # we will start as root and wpa_supplicant will switch to user wifi
+ # after setting up the capabilities required for WEXT
+ # user wifi
+ # group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
- class main
+ class late_start
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
- class main
+ class late_start
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
- class main
+ class late_start
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
- class main
+ class late_start
+ disabled
+ oneshot
+
+service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
+ disabled
+ oneshot
+
+service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
+ disabled
+ oneshot
+
+service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
+ disabled
+ oneshot
+
+service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
+ disabled
+ oneshot
+
+service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
disabled
oneshot