blob: 433eea77ff9e3dac058c50e89134f557cd1ef23f [file] [log] [blame]
Iliyan Malchevfefe23c2012-06-08 10:36:25 -07001#
Sungmin Choicb14b4d2012-07-05 19:07:56 -07002# Copyright 2012 The Android Open Source Project
Iliyan Malchevfefe23c2012-06-08 10:36:25 -07003#
Sungmin Choicb14b4d2012-07-05 19:07:56 -07004# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070015#
16
17import init.mako.usb.rc
18
19on early-init
Glenn Kasten48d58952012-08-03 09:40:02 -070020 mount debugfs debugfs /sys/kernel/debug
21
Jeff Sharkey3fc7e002012-08-16 14:05:42 -070022on init
Jeff Sharkeyc2d40c72012-08-21 10:35:11 -070023 # See storage config details at http://source.android.com/tech/storage/
Jeff Sharkeye5bdf342012-09-11 23:23:06 -070024 mkdir /mnt/shell/emulated 0700 shell shell
Jeff Sharkey2eef2be2012-09-30 17:19:18 -070025 mkdir /storage/emulated 0555 root root
Jeff Sharkey3fc7e002012-08-16 14:05:42 -070026
Jeff Sharkey52218312012-09-30 12:49:51 -070027 export EXTERNAL_STORAGE /storage/emulated/legacy
Jeff Sharkeye5bdf342012-09-11 23:23:06 -070028 export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
29 export EMULATED_STORAGE_TARGET /storage/emulated
Jeff Sharkey5d4c4662012-08-20 13:33:23 -070030
Jeff Sharkeyc2d40c72012-08-21 10:35:11 -070031 # Support legacy paths
Jeff Sharkey52218312012-09-30 12:49:51 -070032 symlink /storage/emulated/legacy /sdcard
33 symlink /storage/emulated/legacy /mnt/sdcard
34 symlink /storage/emulated/legacy /storage/sdcard0
35 symlink /mnt/shell/emulated/0 /storage/emulated/legacy
Jeff Sharkey3fc7e002012-08-16 14:05:42 -070036
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070037on init
38 # Set permissions for persist partition
39 mkdir /persist 0771 system system
Sungmin Choie87b04d2012-07-12 20:42:14 -070040 mkdir /firmware 0771 system system
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070041
42on fs
Brian Muramatsu482dad72012-06-18 18:58:21 -070043 mount_all ./fstab.mako
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070044 setprop ro.crypto.fuse_sdcard true
45
46on early-boot
47 # set RLIMIT_MEMLOCK to 64MB
48 setrlimit 8 67108864 67108864
49
50on boot
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070051 #Create QMUX deamon socket area
52 mkdir /dev/socket/qmux_radio 0770 radio radio
53 chmod 2770 /dev/socket/qmux_radio
54 mkdir /dev/socket/qmux_audio 0770 media audio
55 chmod 2770 /dev/socket/qmux_audio
56 mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
57 chmod 2770 /dev/socket/qmux_bluetooth
Ajay Dudanie1144092012-06-15 21:07:31 -070058 mkdir /dev/socket/qmux_gps 0770 gps gps
59 chmod 2770 /dev/socket/qmux_gps
60
Abhishek Adappad0e57532012-06-15 19:32:55 -070061 # Allow QMUX daemon to assign port open wait time
62 chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070063
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070064 #Remove SUID bit for iproute2 ip tool
65 chmod 0755 /system/bin/ip
66
67 #port-bridge
68 chmod 0660 /dev/smd0
69 chown system system /dev/smd0
70
71 #BT DUN port-bridge
72 chmod 0660 /dev/smd7
73 chown bluetooth bluetooth /dev/smd7
74
75 chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
76
77 # create symlink for fb1 as HDMI
78 symlink /dev/graphics/fb1 /dev/graphics/hdmi
79
80 # Remove write permissions to video related nodes
81 chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
82 chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode
83 chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d
84
85 # Change owner and group for media server and surface flinger
86 chown system system /sys/devices/virtual/graphics/fb1/format_3d
Sungmin Choi04a53b32012-07-23 23:14:29 -070087 chown system system /sys/devices/virtual/graphics/fb1/hpd
Iliyan Malchevfefe23c2012-06-08 10:36:25 -070088
89 #For bridgemgr daemon to inform the USB driver of the correct transport
90 chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport
91
92 chmod 660 /dev/rtc0
93 chown system system /dev/rtc0
94
95 chown root system /proc/net/ip_conntrack
96
97
98 #To allow interfaces to get v6 address when tethering is enabled
99 write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
100 write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
101 write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
102 write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
103 write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
104 write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
105 write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
106 write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
107 write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2
108 write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2
109 write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2
110 write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2
111 write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2
112 write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2
113 write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2
114 write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2
115
116
Martijn Coenen6c11a692012-07-31 13:25:27 -0700117# NFC: create data/nfc for nv storage
118 mkdir /data/nfc 770 nfc nfc
119 mkdir /data/nfc/param 770 nfc nfc
wongab.jeon65212cc2012-07-23 14:04:12 +0900120
jewon.lee06d6a3d2012-08-01 12:54:31 +0900121# Assign TCP buffer thresholds to be ceiling value of technology maximums
122# Increased technology maximums should be reflected here.
123 write /proc/sys/net/core/rmem_max 1220608
124 write /proc/sys/net/core/wmem_max 1220608
125
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700126# msm specific files that need to be created on /data
127on post-fs-data
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700128 mkdir /data/media 0775 media_rw media_rw
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700129
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700130 # Create the directories used by the Wireless subsystem
131 mkdir /data/misc/wifi 0770 wifi wifi
132 mkdir /data/misc/wifi/sockets 0770 wifi wifi
133 mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
134 mkdir /data/misc/dhcp 0770 dhcp dhcp
135# to observe dnsmasq.leases file for dhcp information of soft ap.
136 chown dhcp system /data/misc/dhcp
137
138 write /dev/wcnss_wlan 1
Jeff Johnsonf7e2b9f2012-08-30 14:26:13 -0700139 write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 1
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700140
141 # Create directory used by audio subsystem
142 mkdir /data/misc/audio 0770 audio audio
143
Iliyan Malchevab242522012-09-07 15:07:16 -0700144 # Workaround for conn_init not copying the updated firmware
145 rm /data/misc/wifi/WCNSS_qcom_cfg.ini
146 rm /data/misc/wifi/WCNSS_qcom_wlan_nv.bin
147
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700148 # Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections
149 # We chown/chmod /persist again so because mount is run as root + defaults
150 chown system system /persist
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700151 chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
152 chmod 0664 /sys/devices/platform/msm_sdcc.2/polling
153 chmod 0664 /sys/devices/platform/msm_sdcc.3/polling
154 chmod 0664 /sys/devices/platform/msm_sdcc.4/polling
155
156 # Chown polling nodes as needed from UI running on system server
157 chown system system /sys/devices/platform/msm_sdcc.1/polling
158 chown system system /sys/devices/platform/msm_sdcc.2/polling
159 chown system system /sys/devices/platform/msm_sdcc.3/polling
160 chown system system /sys/devices/platform/msm_sdcc.4/polling
161
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700162 #Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant
163 mkdir /data/system 0775 system system
Iliyan Malcheve011ca22012-06-14 14:58:24 -0700164 #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700165
dongkeun1.lee39507ab2012-06-21 18:35:51 -0700166 #Create directory used by sensor subsystem(dsps)
167 mkdir /data/system/sensors
168 chmod 665 /data/system/sensors
169 write /data/system/sensors/settings 1
Sungmin Choi154f0e22012-07-25 17:34:52 -0700170 chmod 660 /data/system/sensors/settings
dongkeun1.lee39507ab2012-06-21 18:35:51 -0700171
Sungmin Choi481c5f32012-09-16 20:22:35 -0700172 # AKM setting data
173 mkdir /data/misc/sensors
174 chmod 775 /data/misc/sensors
175
eugene.goh787e85b2012-07-26 19:13:16 +0900176 mkdir /persist/sensors
177 chmod 775 /persist/sensors
dongkeun1.lee39507ab2012-06-21 18:35:51 -0700178
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700179 #Provide the access to hostapd.conf only to root and group
180 chmod 0660 /data/hostapd/hostapd.conf
181
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700182 # Enable the setgid bit on the directory
Sungmin Choif8b43d82012-08-31 02:29:30 -0700183 mkdir /data/audio 0770 media audio
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700184 chmod 2770 /data/audio
185
Sungmin Choif8b43d82012-08-31 02:29:30 -0700186 # kickstart
Iliyan Malchev9ec760d2012-06-21 17:57:22 -0700187 mkdir /data/qcks 0770 system system
Sungmin Choi839de6d2012-08-30 17:22:25 -0700188 chown system /dev/block/platform/msm_sdcc.1/by-name
Sungmin Choif8b43d82012-08-31 02:29:30 -0700189
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700190 setprop vold.post_fs_data_done 1
191
Iliyan Malchevdc9e33c2012-09-24 14:38:17 -0700192 rm /data/local/tmp/adreno_config.txt
193
samin.ryu60606b02012-08-04 10:34:39 +0900194 # LED On/Off synchronization
195 chown system system /sys/class/leds/red/device/lock
196
Sungmin Choi9003acf2012-09-02 18:15:16 -0700197 # communicate with mpdecision and thermald
198 mkdir /dev/socket/mpdecision 0770 system system
199 chmod 2770 /dev/socket/mpdecision
200
Sungmin Choia94f9cc2012-09-18 12:30:48 -0700201 # adjust vibrator amplitude
202 write /sys/class/timed_output/vibrator/amp 70
203
roy.park178cd842012-07-02 14:09:26 -0700204 # Enable Power modes and set the CPU Freq Sampling rates
205 write /sys/module/rpm_resources/enable_low_power/L2_cache 1
206 write /sys/module/rpm_resources/enable_low_power/pxo 1
207 write /sys/module/rpm_resources/enable_low_power/vdd_dig 1
208 write /sys/module/rpm_resources/enable_low_power/vdd_mem 1
209 write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled 1
210 write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled 1
211 write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled 1
212 write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled 1
roy.park178cd842012-07-02 14:09:26 -0700213 write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled 1
214 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand"
215 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "ondemand"
216 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "ondemand"
217 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "ondemand"
218 write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
219 write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
220 write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1
221 write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4
222 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
223 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
224 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 384000
225 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 384000
226 chown system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
227 chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
228 chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
229 chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
230 chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
231 chown system /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
232 chown system /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
233 chown system /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
234 chown system /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
235 chown root.system /sys/devices/system/cpu/mfreq
236 chmod 220 /sys/devices/system/cpu/mfreq
Sungmin Choid6f17472012-08-30 15:18:28 -0700237 chown system /sys/devices/system/cpu/cpu1/online
238 chown system /sys/devices/system/cpu/cpu2/online
239 chown system /sys/devices/system/cpu/cpu3/online
roy.park178cd842012-07-02 14:09:26 -0700240 chmod 664 /sys/devices/system/cpu/cpu1/online
241 chmod 664 /sys/devices/system/cpu/cpu2/online
242 chmod 664 /sys/devices/system/cpu/cpu3/online
Sungmin Choid6f17472012-08-30 15:18:28 -0700243 chown system /sys/devices/system/cpu/cpu0/rq-stats/run_queue_avg
Omprakash Dhyadef4cb3452012-09-30 17:04:10 -0700244 chown system /sys/devices/system/cpu/cpu0/rq-stats/cpu_normalized_load
Sungmin Choid6f17472012-08-30 15:18:28 -0700245 chown system /sys/devices/system/cpu/cpu0/rq-stats/run_queue_poll_ms
246 chown system /sys/devices/system/cpu/cpu0/rq-stats/def_timer_ms
247 chown system /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
248 chown system /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
249 chown system /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled
250 chown system /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled
251 chown system /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
252 chown system /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
253 chown system /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled
254 chown system /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled
255 chown system /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
256 chown system /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
257 chown system /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled
258 chown system /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled
259 chown system /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled
roy.park178cd842012-07-02 14:09:26 -0700260
Kim,Do-Yeobf59d7ae2012-08-24 19:10:06 +0900261on charger
262 # Enable Power modes and set the CPU Freq Sampling rates
263 write /sys/module/rpm_resources/enable_low_power/L2_cache 1
264 write /sys/module/rpm_resources/enable_low_power/pxo 1
265 write /sys/module/rpm_resources/enable_low_power/vdd_dig 1
266 write /sys/module/rpm_resources/enable_low_power/vdd_mem 1
267 write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled 1
268 write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled 1
269 write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled 1
270 write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled 1
Kim,Do-Yeobf59d7ae2012-08-24 19:10:06 +0900271 write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled 1
272 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "powersave"
273 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "powersave"
274 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "powersave"
275 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "powersave"
276 write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
277 write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
278 write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1
279 write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4
280 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
281 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
282 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 384000
283 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 384000
284
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700285on property:init.svc.wpa_supplicant=stopped
286 stop dhcpcd
Sungmin Choie31eae82012-09-05 21:07:57 -0700287
Abhishek Adappad0e57532012-06-15 19:32:55 -0700288service rmt_storage /system/bin/rmt_storage
289 class main
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700290 user root
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700291
jeonghoon.lim6a2ca5a2012-07-13 13:00:37 -0700292service hciattach /system/bin/sh /system/etc/init.mako.bt.sh
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700293 class late_start
294 user bluetooth
295 group qcom_oncrpc bluetooth net_bt_admin system
296 disabled
297 oneshot
298
jeonghoon.lim6a2ca5a2012-07-13 13:00:37 -0700299on property:bluetooth.hciattach=true
300 start hciattach
301
302on property:bluetooth.hciattach=false
Jeonghoon lim0a3bd802012-08-14 18:08:24 -0700303 setprop bluetooth.status off
jeonghoon.lim6a2ca5a2012-07-13 13:00:37 -0700304
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700305service bridgemgrd /system/bin/bridgemgrd
Abhishek Adappad0e57532012-06-15 19:32:55 -0700306 class main
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700307 user radio
308 group radio
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700309
310# QMUX must be in multiple groups to support external process connections
311service qmuxd /system/bin/qmuxd
Abhishek Adappad0e57532012-06-15 19:32:55 -0700312 class main
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700313 user radio
Ajay Dudanie1144092012-06-15 21:07:31 -0700314 group radio audio bluetooth gps
Abhishek Adappad0e57532012-06-15 19:32:55 -0700315
Sungmin Choi39c55a42012-08-31 17:01:08 -0700316service ks_checker /system/bin/sh /system/etc/kickstart_checker.sh
317 class core
318 oneshot
319
Sungmin Choi94cb93d2012-08-20 16:29:11 -0700320service kickstart /system/bin/qcks -i /firmware/image/ -r /data/tombstones/mdm/
Sungmin Choi174a7c42012-08-25 19:04:29 -0700321 class core
Sungmin Choi839de6d2012-08-30 17:22:25 -0700322 user system
323 group system
Sungmin Choi39c55a42012-08-31 17:01:08 -0700324 disabled
Abhishek Adappad0e57532012-06-15 19:32:55 -0700325 oneshot
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700326
Sungmin Choi39c55a42012-08-31 17:01:08 -0700327on property:persist.radio.kickstart=on
328 start kickstart
329
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700330service netmgrd /system/bin/netmgrd
Abhishek Adappad0e57532012-06-15 19:32:55 -0700331 class main
332
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700333
334service sensors /system/bin/sensors.qcom
335 class late_start
336 user root
337 group root
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700338
Mekala Natarajancdea6b02012-06-26 18:59:03 -0700339service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
Jeff Johnson8c3bee82012-08-14 07:36:06 -0700340 -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
341 -e/data/misc/wifi/entropy.bin
342 # we will start as root and wpa_supplicant will switch to user wifi
343 # after setting up the capabilities required for WEXT
344 # user wifi
345 # group wifi inet keystore
Mekala Natarajancdea6b02012-06-26 18:59:03 -0700346 class main
Mekala Natarajancdea6b02012-06-26 18:59:03 -0700347 socket wpa_wlan0 dgram 660 wifi wifi
348 disabled
349 oneshot
350
351service p2p_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
Jeff Johnson8c3bee82012-08-14 07:36:06 -0700352 -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -N \
353 -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
354 -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1
355# we will start as root and wpa_supplicant will switch to user wifi
356# after setting up the capabilities required for WEXT
357# user wifi
358# group wifi inet keystore
Iliyan Malcheve011ca22012-06-14 14:58:24 -0700359 class main
Iliyan Malcheve011ca22012-06-14 14:58:24 -0700360 socket wpa_wlan0 dgram 660 wifi wifi
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700361 disabled
362 oneshot
363
Dmitry Shmidt6438bfc2012-09-20 13:00:35 -0700364service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
Jeff Johnson8c3bee82012-08-14 07:36:06 -0700365 class main
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700366 disabled
367 oneshot
368
Jeff Johnson8c3bee82012-08-14 07:36:06 -0700369service dhcpcd_p2p /system/bin/dhcpcd -aABKL
370 class main
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700371 disabled
372 oneshot
373
374service iprenew_wlan0 /system/bin/dhcpcd -n
Jeff Johnson8c3bee82012-08-14 07:36:06 -0700375 class main
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700376 disabled
377 oneshot
378
Jeff Johnson8c3bee82012-08-14 07:36:06 -0700379service iprenew_p2p /system/bin/dhcpcd -n
380 class main
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700381 disabled
382 oneshot
383
384service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
385 disabled
386 oneshot
387
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700388on property:ro.data.large_tcp_window_size=true
389 # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
390 write /proc/sys/net/ipv4/tcp_adv_win_scale 1
391
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700392service charger /charger
393 class charger
394
Jeff Sharkey3fc7e002012-08-16 14:05:42 -0700395# virtual sdcard daemon running as media_rw (1023)
Jeff Sharkeye5bdf342012-09-11 23:23:06 -0700396service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
Iliyan Malchevfefe23c2012-06-08 10:36:25 -0700397 class late_start
Devin Kim693f9b12012-06-15 09:56:58 -0700398
Ajay Dudani652bfde2012-07-08 13:31:43 -0700399service thermald /system/bin/thermald
400 class main
401
402service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
403 class main
Sungmin Choid6f17472012-08-30 15:18:28 -0700404 user system
405 group system
Ajay Dudanib3f2b962012-07-08 17:02:10 -0700406
407service qcamerasvr /system/bin/mm-qcamera-daemon
408 class late_start
409 user camera
410 group camera system inet input
411
Sungmin Choi5fd819d2012-07-18 01:49:40 -0700412service conn_init /system/bin/logwrapper /system/bin/conn_init
Iliyan Malchevcec30db2012-09-16 12:19:06 -0700413 class late_start
Sungmin Choi5fd819d2012-07-18 01:49:40 -0700414 user system
415 group system wifi
416 oneshot
Sungmin Choic7c04c62012-07-25 10:51:27 -0700417
jeonghoon.lim668b0cc2012-08-23 13:10:57 +0900418service bdAddrLoader /system/bin/bdAddrLoader -f /persist/bluetooth/.bdaddr -h -x
Sungmin Choif8d0dbf2012-08-19 14:33:45 -0700419 class main
420 user bluetooth
421 group system bluetooth
422 oneshot
423
Sungmin Choic7c04c62012-07-25 10:51:27 -0700424# bugreport is triggered by holding down volume down, volume up and power
425service bugreport /system/bin/bugmailer.sh -v
426 class main
427 disabled
428 oneshot
429 keycodes 114 115 116
Sungmin Choi8e134362012-07-10 16:19:28 -0700430
431service qseecomd /system/bin/qseecomd
432 class late_start
433 user system
434 group system
Sungmin Choie31eae82012-09-05 21:07:57 -0700435
Iliyan Malchev605aa512012-09-11 14:34:55 -0700436service diag_mdlog /system/bin/logwrapper /system/bin/diag_mdlog -s 100
437 class late_start
438 disabled
439
440# on property:gsm.sim.state=READY
441# start diag_mdlog