Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 1 | # |
Sungmin Choi | cb14b4d | 2012-07-05 19:07:56 -0700 | [diff] [blame] | 2 | # Copyright 2012 The Android Open Source Project |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 3 | # |
Sungmin Choi | cb14b4d | 2012-07-05 19:07:56 -0700 | [diff] [blame] | 4 | # 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 Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 15 | # |
| 16 | |
| 17 | import init.mako.usb.rc |
| 18 | |
| 19 | on early-init |
Glenn Kasten | 48d5895 | 2012-08-03 09:40:02 -0700 | [diff] [blame] | 20 | mount debugfs debugfs /sys/kernel/debug |
| 21 | |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 22 | on init |
Jeff Sharkey | 5d4c466 | 2012-08-20 13:33:23 -0700 | [diff] [blame^] | 23 | mkdir /mnt/shell/sdcard0 0700 shell shell |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 24 | |
Jeff Sharkey | 5d4c466 | 2012-08-20 13:33:23 -0700 | [diff] [blame^] | 25 | # External storage path for apps |
Brian Muramatsu | 80018b2 | 2012-06-18 15:08:34 -0700 | [diff] [blame] | 26 | export EXTERNAL_STORAGE /storage/sdcard0 |
Jeff Sharkey | 5d4c466 | 2012-08-20 13:33:23 -0700 | [diff] [blame^] | 27 | # External storage path for adb |
| 28 | export ADB_EXTERNAL_STORAGE /mnt/shell/sdcard0/0 |
| 29 | |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 30 | mkdir /storage 0711 root root |
| 31 | mkdir /storage/sdcard0 0000 root root |
Brian Muramatsu | 80018b2 | 2012-06-18 15:08:34 -0700 | [diff] [blame] | 32 | symlink /storage/sdcard0 /sdcard |
| 33 | symlink /storage/sdcard0 /mnt/sdcard |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 34 | |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 35 | # Save bugreports as owner |
Jeff Sharkey | 5d4c466 | 2012-08-20 13:33:23 -0700 | [diff] [blame^] | 36 | export BUGREPORT_WRITE_PATH /mnt/shell/sdcard0/0 |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 37 | export BUGREPORT_READ_PATH /storage/sdcard0 |
| 38 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 39 | on init |
| 40 | # Set permissions for persist partition |
| 41 | mkdir /persist 0771 system system |
Sungmin Choi | e87b04d | 2012-07-12 20:42:14 -0700 | [diff] [blame] | 42 | mkdir /tombstones 0771 system system |
| 43 | mkdir /firmware 0771 system system |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 44 | |
| 45 | on fs |
Brian Muramatsu | 482dad7 | 2012-06-18 18:58:21 -0700 | [diff] [blame] | 46 | mount_all ./fstab.mako |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 47 | setprop ro.crypto.fuse_sdcard true |
| 48 | |
| 49 | on early-boot |
| 50 | # set RLIMIT_MEMLOCK to 64MB |
| 51 | setrlimit 8 67108864 67108864 |
| 52 | |
| 53 | on boot |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 54 | chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set |
Sungmin Choi | 154f0e2 | 2012-07-25 17:34:52 -0700 | [diff] [blame] | 55 | chmod 0660 /sys/module/hci_smd/parameters/hcismd_set |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 56 | |
| 57 | #Create QMUX deamon socket area |
| 58 | mkdir /dev/socket/qmux_radio 0770 radio radio |
| 59 | chmod 2770 /dev/socket/qmux_radio |
| 60 | mkdir /dev/socket/qmux_audio 0770 media audio |
| 61 | chmod 2770 /dev/socket/qmux_audio |
| 62 | mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth |
| 63 | chmod 2770 /dev/socket/qmux_bluetooth |
Ajay Dudani | e114409 | 2012-06-15 21:07:31 -0700 | [diff] [blame] | 64 | mkdir /dev/socket/qmux_gps 0770 gps gps |
| 65 | chmod 2770 /dev/socket/qmux_gps |
| 66 | |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 67 | # Allow QMUX daemon to assign port open wait time |
| 68 | chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 69 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 70 | #Remove SUID bit for iproute2 ip tool |
| 71 | chmod 0755 /system/bin/ip |
| 72 | |
| 73 | #port-bridge |
| 74 | chmod 0660 /dev/smd0 |
| 75 | chown system system /dev/smd0 |
| 76 | |
| 77 | #BT DUN port-bridge |
| 78 | chmod 0660 /dev/smd7 |
| 79 | chown bluetooth bluetooth /dev/smd7 |
| 80 | |
| 81 | chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state |
| 82 | |
| 83 | # create symlink for fb1 as HDMI |
| 84 | symlink /dev/graphics/fb1 /dev/graphics/hdmi |
| 85 | |
| 86 | # Remove write permissions to video related nodes |
| 87 | chmod 0664 /sys/devices/virtual/graphics/fb1/hpd |
| 88 | chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode |
| 89 | chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d |
| 90 | |
| 91 | # Change owner and group for media server and surface flinger |
| 92 | chown system system /sys/devices/virtual/graphics/fb1/format_3d |
Sungmin Choi | 04a53b3 | 2012-07-23 23:14:29 -0700 | [diff] [blame] | 93 | chown system system /sys/devices/virtual/graphics/fb1/hpd |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 94 | |
| 95 | #For bridgemgr daemon to inform the USB driver of the correct transport |
| 96 | chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport |
| 97 | |
| 98 | chmod 660 /dev/rtc0 |
| 99 | chown system system /dev/rtc0 |
| 100 | |
| 101 | chown root system /proc/net/ip_conntrack |
| 102 | |
| 103 | |
| 104 | #To allow interfaces to get v6 address when tethering is enabled |
| 105 | write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 |
| 106 | write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 |
| 107 | write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 |
| 108 | write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 |
| 109 | write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 |
| 110 | write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 |
| 111 | write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 |
| 112 | write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 |
| 113 | write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2 |
| 114 | write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2 |
| 115 | write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2 |
| 116 | write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2 |
| 117 | write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2 |
| 118 | write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2 |
| 119 | write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2 |
| 120 | write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2 |
| 121 | |
| 122 | |
Martijn Coenen | 6c11a69 | 2012-07-31 13:25:27 -0700 | [diff] [blame] | 123 | # NFC: create data/nfc for nv storage |
| 124 | mkdir /data/nfc 770 nfc nfc |
| 125 | mkdir /data/nfc/param 770 nfc nfc |
wongab.jeon | 65212cc | 2012-07-23 14:04:12 +0900 | [diff] [blame] | 126 | |
jewon.lee | 06d6a3d | 2012-08-01 12:54:31 +0900 | [diff] [blame] | 127 | # Assign TCP buffer thresholds to be ceiling value of technology maximums |
| 128 | # Increased technology maximums should be reflected here. |
| 129 | write /proc/sys/net/core/rmem_max 1220608 |
| 130 | write /proc/sys/net/core/wmem_max 1220608 |
| 131 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 132 | # msm specific files that need to be created on /data |
| 133 | on post-fs-data |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 134 | mkdir /data/media 0775 media_rw media_rw |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 135 | |
| 136 | mkdir /data/misc/bluetooth 0770 bluetooth bluetooth |
| 137 | |
| 138 | # Create the directories used by the Wireless subsystem |
| 139 | mkdir /data/misc/wifi 0770 wifi wifi |
| 140 | mkdir /data/misc/wifi/sockets 0770 wifi wifi |
| 141 | mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi |
| 142 | mkdir /data/misc/dhcp 0770 dhcp dhcp |
| 143 | # to observe dnsmasq.leases file for dhcp information of soft ap. |
| 144 | chown dhcp system /data/misc/dhcp |
| 145 | |
| 146 | write /dev/wcnss_wlan 1 |
| 147 | |
| 148 | # Create directory used by audio subsystem |
| 149 | mkdir /data/misc/audio 0770 audio audio |
| 150 | |
| 151 | # Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections |
| 152 | # We chown/chmod /persist again so because mount is run as root + defaults |
| 153 | chown system system /persist |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 154 | chmod 0664 /sys/devices/platform/msm_sdcc.1/polling |
| 155 | chmod 0664 /sys/devices/platform/msm_sdcc.2/polling |
| 156 | chmod 0664 /sys/devices/platform/msm_sdcc.3/polling |
| 157 | chmod 0664 /sys/devices/platform/msm_sdcc.4/polling |
| 158 | |
| 159 | # Chown polling nodes as needed from UI running on system server |
| 160 | chown system system /sys/devices/platform/msm_sdcc.1/polling |
| 161 | chown system system /sys/devices/platform/msm_sdcc.2/polling |
| 162 | chown system system /sys/devices/platform/msm_sdcc.3/polling |
| 163 | chown system system /sys/devices/platform/msm_sdcc.4/polling |
| 164 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 165 | #Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant |
| 166 | mkdir /data/system 0775 system system |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 167 | #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 168 | |
dongkeun1.lee | 39507ab | 2012-06-21 18:35:51 -0700 | [diff] [blame] | 169 | #Create directory used by sensor subsystem(dsps) |
| 170 | mkdir /data/system/sensors |
| 171 | chmod 665 /data/system/sensors |
| 172 | write /data/system/sensors/settings 1 |
Sungmin Choi | 154f0e2 | 2012-07-25 17:34:52 -0700 | [diff] [blame] | 173 | chmod 660 /data/system/sensors/settings |
dongkeun1.lee | 39507ab | 2012-06-21 18:35:51 -0700 | [diff] [blame] | 174 | |
eugene.goh | 787e85b | 2012-07-26 19:13:16 +0900 | [diff] [blame] | 175 | mkdir /persist/sensors |
| 176 | chmod 775 /persist/sensors |
dongkeun1.lee | 39507ab | 2012-06-21 18:35:51 -0700 | [diff] [blame] | 177 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 178 | #Create directories for gpsone_daemon services |
| 179 | mkdir /data/misc/gpsone_d 0770 system gps |
| 180 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 181 | #Create directories for Location services |
| 182 | mkdir /data/misc/location 0770 gps gps |
| 183 | mkdir /data/misc/location/mq 0770 gps gps |
| 184 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 185 | #Provide the access to hostapd.conf only to root and group |
| 186 | chmod 0660 /data/hostapd/hostapd.conf |
| 187 | |
| 188 | # Create /data/time folder for time-services |
| 189 | mkdir /data/time/ 0700 system system |
| 190 | |
| 191 | mkdir /data/audio 0770 media audio |
| 192 | # Enable the setgid bit on the directory |
| 193 | chmod 2770 /data/audio |
| 194 | |
| 195 | mkdir /data/bluetooth 0770 bluetooth bluetooth |
| 196 | # Enable the setgid bit on the directory |
| 197 | chmod 2770 /data/bluetooth |
| 198 | |
Iliyan Malchev | 9ec760d | 2012-06-21 17:57:22 -0700 | [diff] [blame] | 199 | mkdir /data/qcks 0770 system system |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 200 | setprop vold.post_fs_data_done 1 |
| 201 | |
Iliyan Malchev | 4b2f22f | 2012-08-16 14:38:51 -0700 | [diff] [blame] | 202 | mkdir /data/local 0770 root root |
| 203 | mkdir /data/local/tmp 0770 shell shell |
| 204 | rm /data/local/tmp/adreno_config.txt |
| 205 | write /data/local/tmp/adreno_config.txt "enableRotationShaderPatching=0 |
| 206 | " |
| 207 | chmod 0777 /data/local |
| 208 | chmod 0777 /data/local/tmp |
| 209 | chmod 0444 /data/local/tmp/adreno_config.txt |
| 210 | |
samin.ryu | 60606b0 | 2012-08-04 10:34:39 +0900 | [diff] [blame] | 211 | # LED On/Off synchronization |
| 212 | chown system system /sys/class/leds/red/device/lock |
| 213 | |
roy.park | 178cd84 | 2012-07-02 14:09:26 -0700 | [diff] [blame] | 214 | # Enable Power modes and set the CPU Freq Sampling rates |
| 215 | write /sys/module/rpm_resources/enable_low_power/L2_cache 1 |
| 216 | write /sys/module/rpm_resources/enable_low_power/pxo 1 |
| 217 | write /sys/module/rpm_resources/enable_low_power/vdd_dig 1 |
| 218 | write /sys/module/rpm_resources/enable_low_power/vdd_mem 1 |
| 219 | write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled 1 |
| 220 | write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled 1 |
| 221 | write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled 1 |
| 222 | write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled 1 |
| 223 | write /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled 1 |
| 224 | write /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled 1 |
| 225 | write /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled 1 |
| 226 | write /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled 1 |
| 227 | write /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled 1 |
| 228 | write /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled 1 |
| 229 | write /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled 1 |
| 230 | write /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled 1 |
| 231 | write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled 1 |
| 232 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand" |
| 233 | write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "ondemand" |
| 234 | write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "ondemand" |
| 235 | write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "ondemand" |
| 236 | write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90 |
| 237 | write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000 |
| 238 | write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1 |
| 239 | write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4 |
| 240 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000 |
| 241 | write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000 |
| 242 | write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 384000 |
| 243 | write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 384000 |
| 244 | chown system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
| 245 | chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
| 246 | chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq |
| 247 | chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq |
| 248 | chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq |
| 249 | chown system /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq |
| 250 | chown system /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq |
| 251 | chown system /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq |
| 252 | chown system /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq |
| 253 | chown root.system /sys/devices/system/cpu/mfreq |
| 254 | chmod 220 /sys/devices/system/cpu/mfreq |
| 255 | chown root.system /sys/devices/system/cpu/cpu1/online |
| 256 | chown root.system /sys/devices/system/cpu/cpu2/online |
| 257 | chown root.system /sys/devices/system/cpu/cpu3/online |
| 258 | chmod 664 /sys/devices/system/cpu/cpu1/online |
| 259 | chmod 664 /sys/devices/system/cpu/cpu2/online |
| 260 | chmod 664 /sys/devices/system/cpu/cpu3/online |
| 261 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 262 | on property:init.svc.wpa_supplicant=stopped |
| 263 | stop dhcpcd |
| 264 | |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 265 | service rmt_storage /system/bin/rmt_storage |
| 266 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 267 | user root |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 268 | |
jeonghoon.lim | 6a2ca5a | 2012-07-13 13:00:37 -0700 | [diff] [blame] | 269 | service hciattach /system/bin/sh /system/etc/init.mako.bt.sh |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 270 | class late_start |
| 271 | user bluetooth |
| 272 | group qcom_oncrpc bluetooth net_bt_admin system |
| 273 | disabled |
| 274 | oneshot |
| 275 | |
jeonghoon.lim | 6a2ca5a | 2012-07-13 13:00:37 -0700 | [diff] [blame] | 276 | on property:bluetooth.hciattach=true |
| 277 | start hciattach |
| 278 | |
| 279 | on property:bluetooth.hciattach=false |
Jeonghoon lim | 0a3bd80 | 2012-08-14 18:08:24 -0700 | [diff] [blame] | 280 | setprop bluetooth.status off |
jeonghoon.lim | 6a2ca5a | 2012-07-13 13:00:37 -0700 | [diff] [blame] | 281 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 282 | service bridgemgrd /system/bin/bridgemgrd |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 283 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 284 | user radio |
| 285 | group radio |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 286 | |
| 287 | # QMUX must be in multiple groups to support external process connections |
| 288 | service qmuxd /system/bin/qmuxd |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 289 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 290 | user radio |
Ajay Dudani | e114409 | 2012-06-15 21:07:31 -0700 | [diff] [blame] | 291 | group radio audio bluetooth gps |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 292 | |
| 293 | service kickstart /system/bin/qcks -i /firmware/image/ |
| 294 | class main |
| 295 | oneshot |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 296 | |
| 297 | service netmgrd /system/bin/netmgrd |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 298 | class main |
| 299 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 300 | |
| 301 | service sensors /system/bin/sensors.qcom |
| 302 | class late_start |
| 303 | user root |
| 304 | group root |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 305 | |
Mekala Natarajan | cdea6b0 | 2012-06-26 18:59:03 -0700 | [diff] [blame] | 306 | service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \ |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 307 | -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ |
| 308 | -e/data/misc/wifi/entropy.bin |
| 309 | # we will start as root and wpa_supplicant will switch to user wifi |
| 310 | # after setting up the capabilities required for WEXT |
| 311 | # user wifi |
| 312 | # group wifi inet keystore |
Mekala Natarajan | cdea6b0 | 2012-06-26 18:59:03 -0700 | [diff] [blame] | 313 | class main |
Mekala Natarajan | cdea6b0 | 2012-06-26 18:59:03 -0700 | [diff] [blame] | 314 | socket wpa_wlan0 dgram 660 wifi wifi |
| 315 | disabled |
| 316 | oneshot |
| 317 | |
| 318 | service p2p_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \ |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 319 | -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -N \ |
| 320 | -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ |
| 321 | -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 |
| 322 | # we will start as root and wpa_supplicant will switch to user wifi |
| 323 | # after setting up the capabilities required for WEXT |
| 324 | # user wifi |
| 325 | # group wifi inet keystore |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 326 | class main |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 327 | socket wpa_wlan0 dgram 660 wifi wifi |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 328 | disabled |
| 329 | oneshot |
| 330 | |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 331 | service dhcpcd_wlan0 /system/bin/dhcpcd -aABKL |
| 332 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 333 | disabled |
| 334 | oneshot |
| 335 | |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 336 | service dhcpcd_p2p /system/bin/dhcpcd -aABKL |
| 337 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 338 | disabled |
| 339 | oneshot |
| 340 | |
| 341 | service iprenew_wlan0 /system/bin/dhcpcd -n |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 342 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 343 | disabled |
| 344 | oneshot |
| 345 | |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 346 | service iprenew_p2p /system/bin/dhcpcd -n |
| 347 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 348 | disabled |
| 349 | oneshot |
| 350 | |
| 351 | service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG |
| 352 | disabled |
| 353 | oneshot |
| 354 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 355 | on property:ro.data.large_tcp_window_size=true |
| 356 | # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB) |
| 357 | write /proc/sys/net/ipv4/tcp_adv_win_scale 1 |
| 358 | |
| 359 | service time_daemon /system/bin/time_daemon |
| 360 | class late_start |
| 361 | user root |
| 362 | group root |
| 363 | oneshot |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 364 | |
| 365 | service ril-daemon1 /system/bin/rild -c 1 |
| 366 | class late_start |
| 367 | socket rild1 stream 660 root radio |
| 368 | socket rild-debug1 stream 660 radio system |
| 369 | user root |
| 370 | disabled |
| 371 | group radio cache inet misc audio sdcard_rw qcom_oncrpc diag |
| 372 | |
| 373 | service profiler_daemon /system/bin/profiler_daemon |
| 374 | class late_start |
| 375 | user root |
| 376 | group root |
| 377 | disabled |
| 378 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 379 | service charger /charger |
| 380 | class charger |
| 381 | |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 382 | # virtual sdcard daemon running as media_rw (1023) |
Jeff Sharkey | 5d4c466 | 2012-08-20 13:33:23 -0700 | [diff] [blame^] | 383 | service sdcard /system/bin/sdcard /data/media /mnt/shell/sdcard0 1023 1023 |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 384 | class late_start |
Devin Kim | 693f9b1 | 2012-06-15 09:56:58 -0700 | [diff] [blame] | 385 | |
| 386 | # Create ext4 filesystems when the partitions are empty or corrupted. |
| 387 | service setup_fs /system/bin/setup_fs \ |
| 388 | /dev/block/platform/msm_sdcc.1/by-name/userdata \ |
Devin Kim | d64b846 | 2012-06-25 10:01:04 -0700 | [diff] [blame] | 389 | /dev/block/platform/msm_sdcc.1/by-name/cache \ |
jihyun.lee | ac9202f | 2012-06-27 18:13:10 -0700 | [diff] [blame] | 390 | /dev/block/platform/msm_sdcc.1/by-name/tombstones |
Devin Kim | 693f9b1 | 2012-06-15 09:56:58 -0700 | [diff] [blame] | 391 | class core |
| 392 | user root |
| 393 | group root |
| 394 | oneshot |
Ajay Dudani | 652bfde | 2012-07-08 13:31:43 -0700 | [diff] [blame] | 395 | |
| 396 | service thermald /system/bin/thermald |
| 397 | class main |
| 398 | |
| 399 | service mpdecision /system/bin/mpdecision --no_sleep --avg_comp |
| 400 | class main |
Ajay Dudani | b3f2b96 | 2012-07-08 17:02:10 -0700 | [diff] [blame] | 401 | |
| 402 | service qcamerasvr /system/bin/mm-qcamera-daemon |
| 403 | class late_start |
| 404 | user camera |
| 405 | group camera system inet input |
| 406 | |
Sungmin Choi | 5fd819d | 2012-07-18 01:49:40 -0700 | [diff] [blame] | 407 | service conn_init /system/bin/logwrapper /system/bin/conn_init |
bill.jung | cf53439 | 2012-07-24 20:02:34 +0900 | [diff] [blame] | 408 | class main |
Sungmin Choi | 5fd819d | 2012-07-18 01:49:40 -0700 | [diff] [blame] | 409 | user system |
| 410 | group system wifi |
| 411 | oneshot |
Sungmin Choi | c7c04c6 | 2012-07-25 10:51:27 -0700 | [diff] [blame] | 412 | |
| 413 | # bugreport is triggered by holding down volume down, volume up and power |
| 414 | service bugreport /system/bin/bugmailer.sh -v |
| 415 | class main |
| 416 | disabled |
| 417 | oneshot |
| 418 | keycodes 114 115 116 |
Sungmin Choi | 8e13436 | 2012-07-10 16:19:28 -0700 | [diff] [blame] | 419 | |
| 420 | service qseecomd /system/bin/qseecomd |
| 421 | class late_start |
| 422 | user system |
| 423 | group system |