60 lines
2.2 KiB
Text
60 lines
2.2 KiB
Text
on boot
|
|
#insmod /system/vendor/modules/bcmdhd.ko
|
|
insmod /system/vendor/modules/bcm_btlpm.ko
|
|
|
|
# bluetooth power up/down interface
|
|
chmod 0660 /sys/class/rfkill/rfkill0/state
|
|
chmod 0660 /sys/class/rfkill/rfkill0/type
|
|
chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/state
|
|
chown bluetooth net_bt_admin /sys/class/rfkill/rfkill0/type
|
|
write /sys/class/rfkill/rfkill0/state 0
|
|
|
|
# bluetooth LPM
|
|
chmod 0220 /proc/bluetooth/sleep/lpm
|
|
chmod 0220 /proc/bluetooth/sleep/btwrite
|
|
chown bluetooth net_bt_admin /proc/bluetooth/sleep/lpm
|
|
chown bluetooth net_bt_admin /proc/bluetooth/sleep/btwrite
|
|
|
|
# bluetooth MAC address programming
|
|
chown bluetooth net_bt_admin ro.bt.bdaddr_path
|
|
chown bluetooth net_bt_admin /system/etc/bluetooth
|
|
chown bluetooth net_bt_admin /data/misc/bluetooth
|
|
setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bdaddr"
|
|
|
|
# to observe dnsmasq.leases file for dhcp information of soft ap.
|
|
chown dhcp system /data/misc/dhcp
|
|
|
|
# broadcom wifi service
|
|
# 1 broadcom wifi sta service
|
|
service wpa_supplicant_broadcom /system/vendor/bin/hw/wpa_supplicant \
|
|
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
|
-m/data/misc/wifi/p2p_supplicant.conf \
|
|
-puse_p2p_group_interface=1p2p_device=1use_multi_chan_concurrent=1 \
|
|
-O/data/misc/wifi/sockets \
|
|
-e/data/misc/wifi/entropy.bin \
|
|
-g@android:wpa_wlan0
|
|
class main
|
|
socket wpa_wlan0 dgram 660 wifi wifi
|
|
disabled
|
|
oneshot
|
|
|
|
# 2 broadcom wifi sta p2p concurrent service
|
|
service p2p_supplicant /system/vendor/bin/wpa_supplicant \
|
|
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
|
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
|
|
-puse_p2p_group_interface=1p2p_device=1use_multi_chan_concurrent=1 \
|
|
-O/data/misc/wifi/sockets \
|
|
-m/data/misc/wifi/p2p_supplicant.conf \
|
|
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
|
|
class main
|
|
socket wpa_wlan0 dgram 660 wifi wifi
|
|
disabled
|
|
oneshot
|
|
|
|
# Run gps service
|
|
#service gps-daemon /system/bin/glgps -c /system/etc/gps/gpsconfig.xml
|
|
# class main
|
|
# socket gps seqpacket 0660 gps system
|
|
# socket rilgps.socket seqpacket 0660 gps system
|
|
# user gps
|
|
# group system inet sdcard_rw
|