forked from CyanogenMod/android_device_lge_p920
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.wifi.bt.rc
executable file
·119 lines (119 loc) · 3.54 KB
/
init.wifi.bt.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
on fs
#TIK_BlueTI
####### Bluetooth ######
# all build into the kernel
# insmod /system/lib/modules/compat.ko
# insmod /system/lib/modules/bluetooth.ko
# insmod /system/lib/modules/rfcomm.ko
insmod /system/lib/modules/btwilink.ko
# insmod /system/lib/modules/bnep.ko
insmod /system/lib/modules/tty_hci.ko
####### UART device ######
chmod 0660 /dev/ttyO1
chown bluetooth bluetooth /dev/ttyO1
#TIK_End
###### WIFI ######
#LGE_CHANGE_S, [email protected] - TI wifi
insmod /system/lib/modules/compat.ko
insmod /system/lib/modules/cfg80211.ko
insmod /system/lib/modules/mac80211.ko
# insmod /system/lib/modules/wlcore.ko
# insmod /system/lib/modules/wl18xx.ko
insmod /system/lib/modules/wl12xx.ko #debug_level=0x63c00
#LGE_CHANGE_E, [email protected] - TI wifi
on post-fs-data
mkdir /data/misc/wifi 0775 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wifi/softap 0771 wifi wifi
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
# [email protected] SoftAP client UI S
# [KKH] mkdir /data/misc/dhcp 0770 dhcp dhcp
# chown dhcp dhcp /data/misc/dhcp
mkdir /data/misc/dhcp 0770 dhcp system
chown dhcp system /data/misc/dhcp
# [email protected] SoftAP client UI E
chmod 0666 /data/misc/wifi/wpa_supplicant.conf
chmod 0666 /data/misc/wifi/hostapd.conf
chmod 0775 /data/misc/wifi
# bluetooth power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chmod 0660 /sys/class/rfkill/rfkill1/state
chmod 0660 /sys/class/rfkill/rfkill1/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill1/type
chmod 0664 /sys/devices/platform/bd_address/bdaddr_if
chown radio bluetooth /sys/devices/platform/bd_address/bdaddr_if
setprop service.brcm.bt.btld 0
setprop service.brcm.bt.activation 0
setprop service.brcm.bt.srv_active 0
setprop service.brcm.bt.hcid_active 0
setprop sys.settings_secure_version 0
on boot
###### WIFI ######
# Lazy way go get things done when /system(/build.prop) is up
on property:ro.product.device=p920
wait /sys/class/rfkill/rfkill0/type
start uim
wait /data/misc/wifi
start wlan_precheck
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-puse_p2p_group_interface=1 \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-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
service uim /system/bin/uim-sysfs
class core
user root
group media bluetooth
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service hostapd_bin /system/bin/hostapd -d /data/misc/wifi/hostapd.conf
class main
group system wifi inet
socket wpa_wlan1 dgram 660 wifi wifi
disabled
oneshot
service wlan_precheck /system/bin/wlan-precheck
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot
###### BT #######
service iprenew_bt-pan /system/bin/dhcpcd -n
class main
disabled
oneshot
service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
class main
disabled
oneshot