Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 1 | # Copyright (c) 2009-2012, Code Aurora Forum. All rights reserved. |
| 2 | # |
| 3 | # Redistribution and use in source and binary forms, with or without |
| 4 | # modification, are permitted provided that the following conditions are met: |
| 5 | # * Redistributions of source code must retain the above copyright |
| 6 | # notice, this list of conditions and the following disclaimer. |
| 7 | # * Redistributions in binary form must reproduce the above copyright |
| 8 | # notice, this list of conditions and the following disclaimer in the |
| 9 | # documentation and/or other materials provided with the distribution. |
| 10 | # * Neither the name of Code Aurora nor |
| 11 | # the names of its contributors may be used to endorse or promote |
| 12 | # products derived from this software without specific prior written |
| 13 | # permission. |
| 14 | # |
| 15 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 16 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 17 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 18 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
| 19 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 20 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 22 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | # |
| 27 | |
| 28 | import init.mako.usb.rc |
| 29 | |
| 30 | on early-init |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 31 | # for backwards compatibility |
Brian Muramatsu | 80018b2 | 2012-06-18 15:08:34 -0700 | [diff] [blame] | 32 | export EXTERNAL_STORAGE /storage/sdcard0 |
| 33 | mkdir /storage 0050 system sdcard_r |
| 34 | mkdir /storage/sdcard0 0000 system system |
| 35 | symlink /storage/sdcard0 /sdcard |
| 36 | symlink /storage/sdcard0 /mnt/sdcard |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 37 | |
| 38 | on init |
| 39 | # Set permissions for persist partition |
| 40 | mkdir /persist 0771 system system |
| 41 | |
| 42 | on fs |
Brian Muramatsu | 482dad7 | 2012-06-18 18:58:21 -0700 | [diff] [blame] | 43 | |
| 44 | mount_all ./fstab.mako |
| 45 | |
| 46 | # TODO: Move the following mount commands into the fstab. /system has |
| 47 | # been moved to the fstab but is probably missing some options |
| 48 | # to run a fsck. |
| 49 | # wait /dev/block/platform/msm_sdcc.1/by-name/system |
| 50 | # chmod 0777 /sbin/e2fsck_static |
| 51 | # exec /sbin/e2fsck_static -y /dev/block/platform/msm_sdcc.1/by-name/system |
| 52 | # mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 53 | |
| 54 | #userdata |
| 55 | wait /dev/block/platform/msm_sdcc.1/by-name/userdata |
| 56 | exec /system/bin/e2fsck -y /dev/block/platform/msm_sdcc.1/by-name/userdata |
| 57 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata /data nosuid nodev barrier=1 data=ordered noauto_da_alloc |
| 58 | |
| 59 | #persist |
| 60 | mkdir /persist 0771 system system |
| 61 | wait /dev/block/platform/msm_sdcc.1/by-name/persist |
| 62 | exec /system/bin/e2fsck -y /dev/block/platform/msm_sdcc.1/by-name/persist |
| 63 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persist /persist nosuid nodev barrier=1 data=ordered nodelalloc |
| 64 | |
| 65 | #modem firmware files |
| 66 | mkdir /firmware 0771 system system |
| 67 | wait /dev/block/platform/msm_sdcc.1/by-name/modem |
Ajay Dudani | 1cecc8d | 2012-06-17 12:31:08 -0700 | [diff] [blame] | 68 | mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro dmask=177 fmask=177 |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 69 | |
| 70 | #cache |
| 71 | wait /dev/block/platform/msm_sdcc.1/by-name/cache |
| 72 | exec /system/bin/e2fsck -y /dev/block/platform/msm_sdcc.1/by-name/cache |
| 73 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1 data=ordered |
| 74 | |
| 75 | #persist-lg |
| 76 | mkdir /persist-lg 0771 system system |
| 77 | wait /dev/block/platform/msm_sdcc.1/by-name/drm |
| 78 | exec /system/bin/e2fsck -y /dev/block/platform/msm_sdcc.1/by-name/drm |
| 79 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/drm /persist-lg nosuid nodev barrier=1 data=ordered |
| 80 | |
| 81 | #mpt |
| 82 | mkdir /mpt 0775 system system |
| 83 | wait /dev/block/platform/msm_sdcc.1/by-name/mpt |
| 84 | exec /system/bin/e2fsck -y /dev/block/platform/msm_sdcc.1/by-name/mpt |
| 85 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/mpt /mpt nosuid nodev barrier=1 data=ordered |
| 86 | |
| 87 | #factory |
| 88 | mkdir /factory 0775 system system |
| 89 | wait /dev/block/platform/msm_sdcc.1/by-name/factory |
| 90 | exec /system/bin/e2fsck -y /dev/block/platform/msm_sdcc.1/by-name/factory |
| 91 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/factory /factory nosuid nodev barrier=1 data=ordered |
| 92 | chmod 0775 /factory |
| 93 | chown system system /factory |
| 94 | |
| 95 | #sns |
| 96 | mkdir /sns 0775 system system |
| 97 | wait /dev/block/platform/msm_sdcc.1/by-name/sns |
| 98 | exec /system/bin/e2fsck -y /dev/block/platform/msm_sdcc.1/by-name/sns |
| 99 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/sns /sns nosuid nodev barrier=1 data=ordered |
| 100 | mkdir /sns/cal 0771 system system |
| 101 | |
| 102 | setprop ro.crypto.fuse_sdcard true |
| 103 | |
| 104 | on early-boot |
| 105 | # set RLIMIT_MEMLOCK to 64MB |
| 106 | setrlimit 8 67108864 67108864 |
| 107 | |
| 108 | on boot |
| 109 | chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power |
| 110 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type |
| 111 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state |
| 112 | chown bluetooth bluetooth /proc/bluetooth/sleep/proto |
| 113 | chown system system /sys/module/sco/parameters/disable_esco |
| 114 | chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set |
| 115 | chmod 0660 /sys/module/bluetooth_power/parameters/power |
| 116 | chmod 0666 /sys/module/hci_smd/parameters/hcismd_set |
| 117 | chmod 0660 /sys/class/rfkill/rfkill0/state |
| 118 | chmod 0660 /proc/bluetooth/sleep/proto |
| 119 | chown bluetooth bluetooth /dev/ttyHS0 |
| 120 | chmod 0660 /dev/ttyHS0 |
| 121 | chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock |
| 122 | chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock |
| 123 | |
| 124 | #Create QMUX deamon socket area |
| 125 | mkdir /dev/socket/qmux_radio 0770 radio radio |
| 126 | chmod 2770 /dev/socket/qmux_radio |
| 127 | mkdir /dev/socket/qmux_audio 0770 media audio |
| 128 | chmod 2770 /dev/socket/qmux_audio |
| 129 | mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth |
| 130 | chmod 2770 /dev/socket/qmux_bluetooth |
| 131 | |
| 132 | setprop wifi.interface wlan0 |
| 133 | |
| 134 | # Enable Bluetooth 802.11 PAL when Bluetooth is turned on |
| 135 | setprop ro.config.bt.amp no |
| 136 | |
| 137 | #Set SUID bit for usbhub |
| 138 | chmod 4755 /system/bin/usbhub |
| 139 | chmod 755 /system/bin/usbhub_init |
| 140 | |
| 141 | #Remove SUID bit for iproute2 ip tool |
| 142 | chmod 0755 /system/bin/ip |
| 143 | |
| 144 | #port-bridge |
| 145 | chmod 0660 /dev/smd0 |
| 146 | chown system system /dev/smd0 |
| 147 | |
| 148 | #BT DUN port-bridge |
| 149 | chmod 0660 /dev/smd7 |
| 150 | chown bluetooth bluetooth /dev/smd7 |
| 151 | |
| 152 | chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state |
| 153 | |
| 154 | # create symlink for fb1 as HDMI |
| 155 | symlink /dev/graphics/fb1 /dev/graphics/hdmi |
| 156 | |
| 157 | # Remove write permissions to video related nodes |
| 158 | chmod 0664 /sys/devices/virtual/graphics/fb1/hpd |
| 159 | chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode |
| 160 | chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d |
| 161 | |
| 162 | # Change owner and group for media server and surface flinger |
| 163 | chown system system /sys/devices/virtual/graphics/fb1/format_3d |
| 164 | |
| 165 | #For bridgemgr daemon to inform the USB driver of the correct transport |
| 166 | chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport |
| 167 | |
| 168 | chmod 660 /dev/rtc0 |
| 169 | chown system system /dev/rtc0 |
| 170 | |
| 171 | chown root system /proc/net/ip_conntrack |
| 172 | |
| 173 | |
| 174 | #To allow interfaces to get v6 address when tethering is enabled |
| 175 | write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 |
| 176 | write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 |
| 177 | write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 |
| 178 | write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 |
| 179 | write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 |
| 180 | write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 |
| 181 | write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 |
| 182 | write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 |
| 183 | write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2 |
| 184 | write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2 |
| 185 | write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2 |
| 186 | write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2 |
| 187 | write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2 |
| 188 | write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2 |
| 189 | write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2 |
| 190 | write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2 |
| 191 | |
| 192 | |
| 193 | insmod /system/lib/modules/texfat.ko |
| 194 | |
| 195 | |
| 196 | |
| 197 | # import cne init file |
| 198 | on post-fs |
| 199 | export_rc /persist/init.cne.rc |
| 200 | |
| 201 | # msm specific files that need to be created on /data |
| 202 | on post-fs-data |
| 203 | # we will remap this as /mnt/sdcard with the sdcard fuse tool |
| 204 | mkdir /data/media 0775 media_rw media_rw |
| 205 | chown media_rw media_rw /data/media |
| 206 | |
| 207 | mkdir /data/misc/bluetooth 0770 bluetooth bluetooth |
| 208 | |
| 209 | # Create the directories used by the Wireless subsystem |
| 210 | mkdir /data/misc/wifi 0770 wifi wifi |
| 211 | mkdir /data/misc/wifi/sockets 0770 wifi wifi |
| 212 | mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi |
| 213 | mkdir /data/misc/dhcp 0770 dhcp dhcp |
| 214 | # to observe dnsmasq.leases file for dhcp information of soft ap. |
| 215 | chown dhcp system /data/misc/dhcp |
| 216 | |
| 217 | write /dev/wcnss_wlan 1 |
| 218 | |
| 219 | # Create directory used by audio subsystem |
| 220 | mkdir /data/misc/audio 0770 audio audio |
| 221 | |
| 222 | # Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections |
| 223 | # We chown/chmod /persist again so because mount is run as root + defaults |
| 224 | chown system system /persist |
| 225 | chmod 0771 /persist |
| 226 | chmod 0664 /sys/devices/platform/msm_sdcc.1/polling |
| 227 | chmod 0664 /sys/devices/platform/msm_sdcc.2/polling |
| 228 | chmod 0664 /sys/devices/platform/msm_sdcc.3/polling |
| 229 | chmod 0664 /sys/devices/platform/msm_sdcc.4/polling |
| 230 | |
| 231 | # Chown polling nodes as needed from UI running on system server |
| 232 | chown system system /sys/devices/platform/msm_sdcc.1/polling |
| 233 | chown system system /sys/devices/platform/msm_sdcc.2/polling |
| 234 | chown system system /sys/devices/platform/msm_sdcc.3/polling |
| 235 | chown system system /sys/devices/platform/msm_sdcc.4/polling |
| 236 | |
| 237 | # Mobile DM Router |
| 238 | chmod 0660 /dev/lge_dm_tty0 |
| 239 | chown system system /dev/lge_dm_tty0 |
| 240 | |
| 241 | #Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant |
| 242 | mkdir /data/system 0775 system system |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 243 | #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 244 | |
| 245 | #Create directories for wiper services |
| 246 | mkdir /data/wpstiles/ 0755 shell |
| 247 | mkdir /data/wiper 0755 location qcom_oncrpc |
| 248 | |
| 249 | #Create directories for gpsone_daemon services |
| 250 | mkdir /data/misc/gpsone_d 0770 system gps |
| 251 | |
| 252 | #Create directories for QuIPS |
| 253 | mkdir /data/misc/quipc 0770 gps system |
| 254 | |
| 255 | #Create directories for Location services |
| 256 | mkdir /data/misc/location 0770 gps gps |
| 257 | mkdir /data/misc/location/mq 0770 gps gps |
| 258 | |
| 259 | #Create directory from IMS services |
| 260 | mkdir /data/shared 0755 |
| 261 | chown system system /data/shared |
| 262 | |
| 263 | #Create directory for FOTA |
| 264 | mkdir /data/fota 0771 |
| 265 | chown system system /data/fota |
| 266 | |
| 267 | #Provide the access to hostapd.conf only to root and group |
| 268 | chmod 0660 /data/hostapd/hostapd.conf |
| 269 | |
| 270 | # Create /data/time folder for time-services |
| 271 | mkdir /data/time/ 0700 system system |
| 272 | |
| 273 | mkdir /data/audio 0770 media audio |
| 274 | # Enable the setgid bit on the directory |
| 275 | chmod 2770 /data/audio |
| 276 | |
| 277 | mkdir /data/bluetooth 0770 bluetooth bluetooth |
| 278 | # Enable the setgid bit on the directory |
| 279 | chmod 2770 /data/bluetooth |
| 280 | |
| 281 | mkdir /data/logger 0775 system system |
| 282 | exec /system/bin/smpl_count |
| 283 | |
| 284 | setprop vold.post_fs_data_done 1 |
| 285 | |
| 286 | # Export GPIO56 for fusion targets to enable/disable hub |
| 287 | service usbhub_init /system/bin/usbhub_init |
| 288 | class late_start |
| 289 | user root |
| 290 | disabled |
| 291 | oneshot |
| 292 | |
| 293 | on property:ro.board.platform=msm7630_fusion |
| 294 | start usbhub_init |
| 295 | |
| 296 | on property:init.svc.wpa_supplicant=stopped |
| 297 | stop dhcpcd |
| 298 | |
| 299 | on property:bluetooth.isEnabled=true |
| 300 | start btwlancoex |
| 301 | start amp_load |
| 302 | write /sys/class/bluetooth/hci0/idle_timeout 7000 |
| 303 | |
| 304 | on property:bluetooth.isEnabled=false |
| 305 | start amp_unload |
| 306 | stop btwlancoex |
| 307 | |
| 308 | service cnd /system/bin/cnd |
| 309 | class late_start |
| 310 | socket cnd stream 666 root radio |
| 311 | |
| 312 | service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11 /dev/block/mmcblk0p17 |
| 313 | class late_start |
| 314 | user root |
| 315 | disabled |
| 316 | |
| 317 | on property:ro.emmc=1 |
| 318 | start rmt_storage |
| 319 | |
| 320 | service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh |
| 321 | class late_start |
| 322 | user bluetooth |
| 323 | group qcom_oncrpc bluetooth net_bt_admin system |
| 324 | disabled |
| 325 | oneshot |
| 326 | |
| 327 | service bridgemgrd /system/bin/bridgemgrd |
| 328 | class late_start |
| 329 | user radio |
| 330 | group radio |
| 331 | disabled |
| 332 | |
| 333 | service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0 |
| 334 | class late_start |
| 335 | user system |
| 336 | group system inet |
| 337 | disabled |
| 338 | |
| 339 | on property:ro.baseband="msm" |
| 340 | # Enable BT-DUN only for all msms |
| 341 | setprop ro.qualcomm.bluetooth.dun false |
| 342 | |
| 343 | service qmiproxy /system/bin/qmiproxy |
| 344 | class late_start |
| 345 | user radio |
| 346 | group radio |
| 347 | disabled |
| 348 | |
| 349 | # QMUX must be in multiple groups to support external process connections |
| 350 | service qmuxd /system/bin/qmuxd |
| 351 | class late_start |
| 352 | user radio |
| 353 | group radio audio bluetooth |
| 354 | disabled |
| 355 | |
| 356 | service netmgrd /system/bin/netmgrd |
| 357 | class late_start |
| 358 | disabled |
| 359 | |
| 360 | service sensors /system/bin/sensors.qcom |
| 361 | class late_start |
| 362 | user root |
| 363 | group root |
| 364 | disabled |
| 365 | |
| 366 | on property:ro.use_data_netmgrd=false |
| 367 | # netmgr not supported on specific target |
| 368 | stop netmgrd |
| 369 | |
| 370 | # Adjust socket buffer to enlarge TCP receive window for high bandwidth |
| 371 | # but only if ro.data.large_tcp_window_size property is set. |
| 372 | on property:ro.data.large_tcp_window_size=true |
| 373 | write /proc/sys/net/ipv4/tcp_adv_win_scale 1 |
| 374 | |
| 375 | service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh |
| 376 | class late_start |
| 377 | user bluetooth |
| 378 | group bluetooth net_bt_admin inet net_admin net_raw |
| 379 | disabled |
| 380 | oneshot |
| 381 | |
| 382 | service amp_init /system/bin/amploader -i |
| 383 | class late_start |
| 384 | user root |
| 385 | disabled |
| 386 | oneshot |
| 387 | |
| 388 | service amp_load /system/bin/amploader -l 7000 |
| 389 | class late_start |
| 390 | user root |
| 391 | disabled |
| 392 | oneshot |
| 393 | |
| 394 | service amp_unload /system/bin/amploader -u |
| 395 | class late_start |
| 396 | user root |
| 397 | disabled |
| 398 | oneshot |
| 399 | |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 400 | service wpa_supplicant /system/bin/wpa_supplicant \ |
| 401 | -Dnl80211 -iwlan0 -c/system/etc/wifi/wpa_supplicant.conf \ |
| 402 | -C/data/misc/wifi/sockets -ddd |
| 403 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 404 | group wifi inet |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 405 | socket wpa_wlan0 dgram 660 wifi wifi |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 406 | disabled |
| 407 | oneshot |
| 408 | |
| 409 | service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG |
| 410 | class late_start |
| 411 | disabled |
| 412 | oneshot |
| 413 | |
| 414 | service dhcpcd_p2p /system/bin/dhcpcd -ABKLG |
| 415 | class late_start |
| 416 | disabled |
| 417 | oneshot |
| 418 | |
| 419 | service iprenew_wlan0 /system/bin/dhcpcd -n |
| 420 | class late_start |
| 421 | disabled |
| 422 | oneshot |
| 423 | |
| 424 | service iprenew_p2p /system/bin/dhcpcd -n p2p |
| 425 | class late_start |
| 426 | disabled |
| 427 | oneshot |
| 428 | |
| 429 | service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG |
| 430 | disabled |
| 431 | oneshot |
| 432 | |
| 433 | service wiperiface /system/bin/wiperiface |
| 434 | user location |
| 435 | group qcom_oncrpc |
| 436 | oneshot |
| 437 | |
| 438 | service gpsone_daemon /system/bin/gpsone_daemon |
| 439 | class late_start |
| 440 | user gps |
| 441 | group gps qcom_oncrpc inet |
| 442 | disabled |
| 443 | |
| 444 | service quipc_igsn /system/bin/quipc_igsn |
| 445 | class late_start |
| 446 | user gps |
| 447 | group inet gps |
| 448 | disabled |
| 449 | |
| 450 | service quipc_main /system/bin/quipc_main |
| 451 | class late_start |
| 452 | user gps |
| 453 | group net_admin wifi inet gps |
| 454 | disabled |
| 455 | |
| 456 | service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh |
| 457 | class late_start |
| 458 | user root |
| 459 | group system qcom_oncrpc |
| 460 | disabled |
| 461 | oneshot |
| 462 | |
| 463 | on property:crypto.driver.load=1 |
| 464 | insmod /system/lib/modules/qce.ko |
| 465 | insmod /system/lib/modules/qcedev.ko |
| 466 | |
| 467 | on property:crypto.driver.load=0 |
| 468 | exec /system/bin/rmmod qcedev.ko |
| 469 | exec /system/bin/rmmod qce.ko |
| 470 | |
| 471 | service drmdiag /system/bin/drmdiagapp |
| 472 | class late_start |
| 473 | user root |
| 474 | disabled |
| 475 | oneshot |
| 476 | |
| 477 | on property:drmdiag.load=1 |
| 478 | start drmdiag |
| 479 | |
| 480 | on property:drmdiag.load=0 |
| 481 | stop drmdiag |
| 482 | |
| 483 | service qcom-sh /system/bin/sh /init.qcom.sh |
| 484 | class late_start |
| 485 | user root |
| 486 | oneshot |
| 487 | |
| 488 | service qcom-post-boot /system/bin/sh /system/etc/init.qcom.post_boot.sh |
| 489 | class late_start |
| 490 | user root |
| 491 | disabled |
| 492 | oneshot |
| 493 | |
| 494 | service qcom-wifi /system/bin/sh /system/etc/init.qcom.wifi.sh |
| 495 | class late_start |
| 496 | oneshot |
| 497 | |
| 498 | on property:sys.boot_completed=1 |
| 499 | start qcom-post-boot |
| 500 | |
| 501 | service atfwd /system/bin/ATFWD-daemon |
| 502 | class late_start |
| 503 | user system |
| 504 | group system radio |
| 505 | onrestart /system/bin/log -t RIL-ATFWD -p w "ATFWD daemon restarted" |
| 506 | |
| 507 | service hdmid /system/bin/hdmid |
| 508 | class late_start |
| 509 | socket hdmid stream 0660 root system graphics |
| 510 | disabled |
| 511 | |
| 512 | service ppd /system/bin/mm-pp-daemon |
| 513 | class late_start |
| 514 | user system |
| 515 | socket pps stream 0660 system system graphics |
| 516 | group system graphics |
| 517 | |
| 518 | service hostapd /system/bin/hostapd -dddd /data/hostapd/hostapd.conf |
| 519 | class late_start |
| 520 | user root |
| 521 | group root |
| 522 | oneshot |
| 523 | disabled |
| 524 | |
| 525 | service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D |
| 526 | class late_start |
| 527 | group radio wifi inet |
| 528 | disabled |
| 529 | oneshot |
| 530 | |
| 531 | on property:persist.data.ds_fmc_app.mode=1 |
| 532 | start ds_fmc_appd |
| 533 | |
| 534 | service ims_regmanager /system/bin/exe-ims-regmanagerprocessnative |
| 535 | class late_start |
| 536 | user system |
| 537 | group qcom_oncrpc net_bt_admin inet radio wifi |
| 538 | disabled |
| 539 | |
| 540 | on property:persist.ims.regmanager.mode=1 |
| 541 | start ims_regmanager |
| 542 | |
| 543 | on property:ro.data.large_tcp_window_size=true |
| 544 | # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB) |
| 545 | write /proc/sys/net/ipv4/tcp_adv_win_scale 1 |
| 546 | |
| 547 | service time_daemon /system/bin/time_daemon |
| 548 | class late_start |
| 549 | user root |
| 550 | group root |
| 551 | oneshot |
| 552 | disabled |
| 553 | |
| 554 | on property:persist.timed.enable=true |
| 555 | start time_daemon |
| 556 | |
| 557 | service battery_monitor /system/bin/battery_monitor |
| 558 | user system |
| 559 | group system |
| 560 | disabled |
| 561 | |
| 562 | service ril-daemon1 /system/bin/rild -c 1 |
| 563 | class late_start |
| 564 | socket rild1 stream 660 root radio |
| 565 | socket rild-debug1 stream 660 radio system |
| 566 | user root |
| 567 | disabled |
| 568 | group radio cache inet misc audio sdcard_rw qcom_oncrpc diag |
| 569 | |
| 570 | service profiler_daemon /system/bin/profiler_daemon |
| 571 | class late_start |
| 572 | user root |
| 573 | group root |
| 574 | disabled |
| 575 | |
| 576 | service hcidump /system/bin/sh /system/etc/hcidump.sh |
| 577 | user bluetooth |
| 578 | group bluetooth system net_bt_admin net_admin |
| 579 | disabled |
| 580 | oneshot |
| 581 | |
| 582 | service charger /charger |
| 583 | class charger |
| 584 | |
| 585 | service wlan-on-off /system/bin/sh /system/etc/init.wlan-on-off.sh |
| 586 | class late_start |
| 587 | user root |
| 588 | disabled |
| 589 | oneshot |
| 590 | |
| 591 | # Workaround to resolve WCNSS power problem in Kernel Mode booting |
| 592 | on property:init.svc.qcom-wifi=stopped |
| 593 | start wlan-on-off |
| 594 | |
| 595 | on property:persist.service.fakebatt=1 |
| 596 | write /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8921-charger/power_supply/battery/pseudo_batt "1 1 100 40 4100 80 1" |
| 597 | |
| 598 | on property:persist.service.fakebatt=0 |
| 599 | write /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8921-charger/power_supply/battery/pseudo_batt "0 1 100 40 4100 80 1" |
| 600 | |
| 601 | # TouchSense Player Service |
| 602 | service immvibed /system/bin/immvibed |
| 603 | class main |
| 604 | user root |
| 605 | group root |
| 606 | oneshot |
| 607 | |
Brian Muramatsu | 80018b2 | 2012-06-18 15:08:34 -0700 | [diff] [blame] | 608 | # create virtual SD card at /storage/sdcard0, based on the /data/media directory |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 609 | # daemon will drop to user/group system/media_rw after initializing |
| 610 | # underlying files in /data/media will be created with user and group media_rw (1023) |
| 611 | service sdcard /system/bin/sdcard /data/media 1023 1023 |
| 612 | class late_start |
Devin Kim | 693f9b1 | 2012-06-15 09:56:58 -0700 | [diff] [blame] | 613 | |
| 614 | # Create ext4 filesystems when the partitions are empty or corrupted. |
| 615 | service setup_fs /system/bin/setup_fs \ |
| 616 | /dev/block/platform/msm_sdcc.1/by-name/userdata \ |
| 617 | /dev/block/platform/msm_sdcc.1/by-name/cache |
| 618 | class core |
| 619 | user root |
| 620 | group root |
| 621 | oneshot |