-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.comms.rc
executable file
·141 lines (117 loc) · 3.72 KB
/
init.comms.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#Copyright (c) 2011-2014 NVIDIA Corporation. All Rights Reserved.
#
#NVIDIA Corporation and its licensors retain all intellectual property and
#proprietary rights in and to this software and related documentation. Any
#use, reproduction, disclosure or distribution of this software and related
#documentation without an express license agreement from NVIDIA Corporation
#is strictly prohibited.
on boot
# bluetooth
# change back to bluetooth from system
chown bluetooth net_bt_stack /data/misc/bluetooth
# power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
write /sys/class/rfkill/rfkill0/state 0
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
# bluetooth MAC address programming
chown bluetooth net_bt_stack ro.bt.bdaddr_path
chown bluetooth net_bt_stack /system/etc/bluetooth
chown bluetooth net_bt_stack /mnt/factory/bluetooth/bt_mac.txt
setprop ro.bt.bdaddr_path "/mnt/factory/bluetooth/bt_mac.txt"
on fs
setprop ro.gpsstatus.changed true
on post-fs-data
mkdir /data/misc/wifi 0771 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wifi/firmware 0770 wifi system
#create gps files
mkdir /data/gps
chown gps system /data/gps/
chmod 0770 /data/gps/
start wifiloader
# wifiloader - set the wifi commchip_id accordingly
service wifiloader /system/bin/wifi_loader.sh
class main
user root
group root
oneshot
disabled
service start-gps /system/bin/gps_select.sh
user root
group root
class late_start
oneshot
disabled
#Start GPS daemon
service gpsd /system/bin/glgps_nvidiaTegra2android -c /system/etc/gps/gpsconfig.xml
user gps
socket gps seqpacket 0660 gps system
group system inet sdcard_rw sdcard_r
class late_start
service dhcpcd_p2p_wlan0 /system/bin/dhcpcd p2p-wlan0-0
class main
disabled
oneshot
service dhcpcd_p2p_p2p0 /system/bin/dhcpcd p2p-p2p0-0
class main
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -aABKL -y 0
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL -f/system/etc/dhcpcd/dhcpcd.conf
class main
disabled
oneshot
service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_bt-pan /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service p2p_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-m /data/misc/wifi/p2p_supplicant.conf -O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1p2p_device=1 \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dns_masq /system/bin/dnsmasq --no-daemon --no-resolv --no-poll --dhcp-option-force=43,ANDROID_METERED --dhcp-range=192.168.42.2,192.168.42.254,1h &
class main
user dhcp
group dhcp wifi system
disabled
oneshot
# Wifi support rx-filter
setprop wifi.rx-filter 1