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 | c2d40c7 | 2012-08-21 10:35:11 -0700 | [diff] [blame] | 23 | # See storage config details at http://source.android.com/tech/storage/ |
Jeff Sharkey | e5bdf34 | 2012-09-11 23:23:06 -0700 | [diff] [blame] | 24 | mkdir /mnt/shell/emulated 0700 shell shell |
Jeff Sharkey | 2eef2be | 2012-09-30 17:19:18 -0700 | [diff] [blame] | 25 | mkdir /storage/emulated 0555 root root |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 26 | |
Jeff Sharkey | 5221831 | 2012-09-30 12:49:51 -0700 | [diff] [blame] | 27 | export EXTERNAL_STORAGE /storage/emulated/legacy |
Jeff Sharkey | e5bdf34 | 2012-09-11 23:23:06 -0700 | [diff] [blame] | 28 | export EMULATED_STORAGE_SOURCE /mnt/shell/emulated |
| 29 | export EMULATED_STORAGE_TARGET /storage/emulated |
Jeff Sharkey | 5d4c466 | 2012-08-20 13:33:23 -0700 | [diff] [blame] | 30 | |
Jeff Sharkey | c2d40c7 | 2012-08-21 10:35:11 -0700 | [diff] [blame] | 31 | # Support legacy paths |
Jeff Sharkey | 5221831 | 2012-09-30 12:49:51 -0700 | [diff] [blame] | 32 | 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 Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 36 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 37 | on init |
| 38 | # Set permissions for persist partition |
| 39 | mkdir /persist 0771 system system |
Sungmin Choi | e87b04d | 2012-07-12 20:42:14 -0700 | [diff] [blame] | 40 | mkdir /firmware 0771 system system |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 41 | |
| 42 | on fs |
Brian Muramatsu | 482dad7 | 2012-06-18 18:58:21 -0700 | [diff] [blame] | 43 | mount_all ./fstab.mako |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 44 | setprop ro.crypto.fuse_sdcard true |
| 45 | |
| 46 | on early-boot |
| 47 | # set RLIMIT_MEMLOCK to 64MB |
| 48 | setrlimit 8 67108864 67108864 |
| 49 | |
| 50 | on boot |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 51 | #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 Dudani | e114409 | 2012-06-15 21:07:31 -0700 | [diff] [blame] | 58 | mkdir /dev/socket/qmux_gps 0770 gps gps |
| 59 | chmod 2770 /dev/socket/qmux_gps |
| 60 | |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 61 | # Allow QMUX daemon to assign port open wait time |
| 62 | chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 63 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 64 | #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 Choi | 04a53b3 | 2012-07-23 23:14:29 -0700 | [diff] [blame] | 87 | chown system system /sys/devices/virtual/graphics/fb1/hpd |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 88 | |
| 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 Coenen | 6c11a69 | 2012-07-31 13:25:27 -0700 | [diff] [blame] | 117 | # NFC: create data/nfc for nv storage |
| 118 | mkdir /data/nfc 770 nfc nfc |
| 119 | mkdir /data/nfc/param 770 nfc nfc |
wongab.jeon | 65212cc | 2012-07-23 14:04:12 +0900 | [diff] [blame] | 120 | |
jewon.lee | 06d6a3d | 2012-08-01 12:54:31 +0900 | [diff] [blame] | 121 | # 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 Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 126 | # msm specific files that need to be created on /data |
| 127 | on post-fs-data |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 128 | mkdir /data/media 0775 media_rw media_rw |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 129 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 130 | # 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 Johnson | f7e2b9f | 2012-08-30 14:26:13 -0700 | [diff] [blame] | 139 | write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 1 |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 140 | |
| 141 | # Create directory used by audio subsystem |
| 142 | mkdir /data/misc/audio 0770 audio audio |
| 143 | |
Iliyan Malchev | ab24252 | 2012-09-07 15:07:16 -0700 | [diff] [blame] | 144 | # 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 Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 148 | # 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 Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 151 | 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 Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 162 | #Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant |
| 163 | mkdir /data/system 0775 system system |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 164 | #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 165 | |
dongkeun1.lee | 39507ab | 2012-06-21 18:35:51 -0700 | [diff] [blame] | 166 | #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 Choi | 154f0e2 | 2012-07-25 17:34:52 -0700 | [diff] [blame] | 170 | chmod 660 /data/system/sensors/settings |
dongkeun1.lee | 39507ab | 2012-06-21 18:35:51 -0700 | [diff] [blame] | 171 | |
Sungmin Choi | 481c5f3 | 2012-09-16 20:22:35 -0700 | [diff] [blame] | 172 | # AKM setting data |
| 173 | mkdir /data/misc/sensors |
| 174 | chmod 775 /data/misc/sensors |
| 175 | |
eugene.goh | 787e85b | 2012-07-26 19:13:16 +0900 | [diff] [blame] | 176 | mkdir /persist/sensors |
| 177 | chmod 775 /persist/sensors |
dongkeun1.lee | 39507ab | 2012-06-21 18:35:51 -0700 | [diff] [blame] | 178 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 179 | #Provide the access to hostapd.conf only to root and group |
| 180 | chmod 0660 /data/hostapd/hostapd.conf |
| 181 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 182 | # Enable the setgid bit on the directory |
Sungmin Choi | f8b43d8 | 2012-08-31 02:29:30 -0700 | [diff] [blame] | 183 | mkdir /data/audio 0770 media audio |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 184 | chmod 2770 /data/audio |
| 185 | |
Sungmin Choi | f8b43d8 | 2012-08-31 02:29:30 -0700 | [diff] [blame] | 186 | # kickstart |
Iliyan Malchev | 9ec760d | 2012-06-21 17:57:22 -0700 | [diff] [blame] | 187 | mkdir /data/qcks 0770 system system |
Sungmin Choi | 839de6d | 2012-08-30 17:22:25 -0700 | [diff] [blame] | 188 | chown system /dev/block/platform/msm_sdcc.1/by-name |
Sungmin Choi | f8b43d8 | 2012-08-31 02:29:30 -0700 | [diff] [blame] | 189 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 190 | setprop vold.post_fs_data_done 1 |
| 191 | |
Iliyan Malchev | dc9e33c | 2012-09-24 14:38:17 -0700 | [diff] [blame] | 192 | rm /data/local/tmp/adreno_config.txt |
| 193 | |
samin.ryu | 60606b0 | 2012-08-04 10:34:39 +0900 | [diff] [blame] | 194 | # LED On/Off synchronization |
| 195 | chown system system /sys/class/leds/red/device/lock |
| 196 | |
Sungmin Choi | 9003acf | 2012-09-02 18:15:16 -0700 | [diff] [blame] | 197 | # communicate with mpdecision and thermald |
| 198 | mkdir /dev/socket/mpdecision 0770 system system |
| 199 | chmod 2770 /dev/socket/mpdecision |
| 200 | |
Sungmin Choi | a94f9cc | 2012-09-18 12:30:48 -0700 | [diff] [blame] | 201 | # adjust vibrator amplitude |
| 202 | write /sys/class/timed_output/vibrator/amp 70 |
| 203 | |
roy.park | 178cd84 | 2012-07-02 14:09:26 -0700 | [diff] [blame] | 204 | # 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.park | 178cd84 | 2012-07-02 14:09:26 -0700 | [diff] [blame] | 213 | 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 Choi | d6f1747 | 2012-08-30 15:18:28 -0700 | [diff] [blame] | 237 | 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.park | 178cd84 | 2012-07-02 14:09:26 -0700 | [diff] [blame] | 240 | 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 Choi | d6f1747 | 2012-08-30 15:18:28 -0700 | [diff] [blame] | 243 | chown system /sys/devices/system/cpu/cpu0/rq-stats/run_queue_avg |
Omprakash Dhyade | f4cb345 | 2012-09-30 17:04:10 -0700 | [diff] [blame] | 244 | chown system /sys/devices/system/cpu/cpu0/rq-stats/cpu_normalized_load |
Sungmin Choi | d6f1747 | 2012-08-30 15:18:28 -0700 | [diff] [blame] | 245 | 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.park | 178cd84 | 2012-07-02 14:09:26 -0700 | [diff] [blame] | 260 | |
Kim,Do-Yeob | f59d7ae | 2012-08-24 19:10:06 +0900 | [diff] [blame] | 261 | on 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-Yeob | f59d7ae | 2012-08-24 19:10:06 +0900 | [diff] [blame] | 271 | 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 Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 285 | on property:init.svc.wpa_supplicant=stopped |
| 286 | stop dhcpcd |
Sungmin Choi | e31eae8 | 2012-09-05 21:07:57 -0700 | [diff] [blame] | 287 | |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 288 | service rmt_storage /system/bin/rmt_storage |
| 289 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 290 | user root |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 291 | |
jeonghoon.lim | 6a2ca5a | 2012-07-13 13:00:37 -0700 | [diff] [blame] | 292 | service hciattach /system/bin/sh /system/etc/init.mako.bt.sh |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 293 | class late_start |
| 294 | user bluetooth |
| 295 | group qcom_oncrpc bluetooth net_bt_admin system |
| 296 | disabled |
| 297 | oneshot |
| 298 | |
jeonghoon.lim | 6a2ca5a | 2012-07-13 13:00:37 -0700 | [diff] [blame] | 299 | on property:bluetooth.hciattach=true |
| 300 | start hciattach |
| 301 | |
| 302 | on property:bluetooth.hciattach=false |
Jeonghoon lim | 0a3bd80 | 2012-08-14 18:08:24 -0700 | [diff] [blame] | 303 | setprop bluetooth.status off |
jeonghoon.lim | 6a2ca5a | 2012-07-13 13:00:37 -0700 | [diff] [blame] | 304 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 305 | service bridgemgrd /system/bin/bridgemgrd |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 306 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 307 | user radio |
| 308 | group radio |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 309 | |
| 310 | # QMUX must be in multiple groups to support external process connections |
| 311 | service qmuxd /system/bin/qmuxd |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 312 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 313 | user radio |
Ajay Dudani | e114409 | 2012-06-15 21:07:31 -0700 | [diff] [blame] | 314 | group radio audio bluetooth gps |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 315 | |
Sungmin Choi | 39c55a4 | 2012-08-31 17:01:08 -0700 | [diff] [blame] | 316 | service ks_checker /system/bin/sh /system/etc/kickstart_checker.sh |
| 317 | class core |
| 318 | oneshot |
| 319 | |
Sungmin Choi | 94cb93d | 2012-08-20 16:29:11 -0700 | [diff] [blame] | 320 | service kickstart /system/bin/qcks -i /firmware/image/ -r /data/tombstones/mdm/ |
Sungmin Choi | 174a7c4 | 2012-08-25 19:04:29 -0700 | [diff] [blame] | 321 | class core |
Sungmin Choi | 839de6d | 2012-08-30 17:22:25 -0700 | [diff] [blame] | 322 | user system |
| 323 | group system |
Sungmin Choi | 39c55a4 | 2012-08-31 17:01:08 -0700 | [diff] [blame] | 324 | disabled |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 325 | oneshot |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 326 | |
Sungmin Choi | 39c55a4 | 2012-08-31 17:01:08 -0700 | [diff] [blame] | 327 | on property:persist.radio.kickstart=on |
| 328 | start kickstart |
| 329 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 330 | service netmgrd /system/bin/netmgrd |
Abhishek Adappa | d0e5753 | 2012-06-15 19:32:55 -0700 | [diff] [blame] | 331 | class main |
| 332 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 333 | |
| 334 | service sensors /system/bin/sensors.qcom |
| 335 | class late_start |
| 336 | user root |
| 337 | group root |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 338 | |
Mekala Natarajan | cdea6b0 | 2012-06-26 18:59:03 -0700 | [diff] [blame] | 339 | service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \ |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 340 | -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 Natarajan | cdea6b0 | 2012-06-26 18:59:03 -0700 | [diff] [blame] | 346 | class main |
Mekala Natarajan | cdea6b0 | 2012-06-26 18:59:03 -0700 | [diff] [blame] | 347 | socket wpa_wlan0 dgram 660 wifi wifi |
| 348 | disabled |
| 349 | oneshot |
| 350 | |
| 351 | service p2p_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \ |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 352 | -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 Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 359 | class main |
Iliyan Malchev | e011ca2 | 2012-06-14 14:58:24 -0700 | [diff] [blame] | 360 | socket wpa_wlan0 dgram 660 wifi wifi |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 361 | disabled |
| 362 | oneshot |
| 363 | |
Dmitry Shmidt | 6438bfc | 2012-09-20 13:00:35 -0700 | [diff] [blame] | 364 | service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 365 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 366 | disabled |
| 367 | oneshot |
| 368 | |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 369 | service dhcpcd_p2p /system/bin/dhcpcd -aABKL |
| 370 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 371 | disabled |
| 372 | oneshot |
| 373 | |
| 374 | service iprenew_wlan0 /system/bin/dhcpcd -n |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 375 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 376 | disabled |
| 377 | oneshot |
| 378 | |
Jeff Johnson | 8c3bee8 | 2012-08-14 07:36:06 -0700 | [diff] [blame] | 379 | service iprenew_p2p /system/bin/dhcpcd -n |
| 380 | class main |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 381 | disabled |
| 382 | oneshot |
| 383 | |
| 384 | service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG |
| 385 | disabled |
| 386 | oneshot |
| 387 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 388 | on 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 Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 392 | service charger /charger |
| 393 | class charger |
| 394 | |
Jeff Sharkey | 3fc7e00 | 2012-08-16 14:05:42 -0700 | [diff] [blame] | 395 | # virtual sdcard daemon running as media_rw (1023) |
Jeff Sharkey | e5bdf34 | 2012-09-11 23:23:06 -0700 | [diff] [blame] | 396 | service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023 |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 397 | class late_start |
Devin Kim | 693f9b1 | 2012-06-15 09:56:58 -0700 | [diff] [blame] | 398 | |
Ajay Dudani | 652bfde | 2012-07-08 13:31:43 -0700 | [diff] [blame] | 399 | service thermald /system/bin/thermald |
| 400 | class main |
| 401 | |
| 402 | service mpdecision /system/bin/mpdecision --no_sleep --avg_comp |
| 403 | class main |
Sungmin Choi | d6f1747 | 2012-08-30 15:18:28 -0700 | [diff] [blame] | 404 | user system |
| 405 | group system |
Ajay Dudani | b3f2b96 | 2012-07-08 17:02:10 -0700 | [diff] [blame] | 406 | |
| 407 | service qcamerasvr /system/bin/mm-qcamera-daemon |
| 408 | class late_start |
| 409 | user camera |
| 410 | group camera system inet input |
| 411 | |
Sungmin Choi | 5fd819d | 2012-07-18 01:49:40 -0700 | [diff] [blame] | 412 | service conn_init /system/bin/logwrapper /system/bin/conn_init |
Iliyan Malchev | cec30db | 2012-09-16 12:19:06 -0700 | [diff] [blame] | 413 | class late_start |
Sungmin Choi | 5fd819d | 2012-07-18 01:49:40 -0700 | [diff] [blame] | 414 | user system |
| 415 | group system wifi |
| 416 | oneshot |
Sungmin Choi | c7c04c6 | 2012-07-25 10:51:27 -0700 | [diff] [blame] | 417 | |
jeonghoon.lim | 668b0cc | 2012-08-23 13:10:57 +0900 | [diff] [blame] | 418 | service bdAddrLoader /system/bin/bdAddrLoader -f /persist/bluetooth/.bdaddr -h -x |
Sungmin Choi | f8d0dbf | 2012-08-19 14:33:45 -0700 | [diff] [blame] | 419 | class main |
| 420 | user bluetooth |
| 421 | group system bluetooth |
| 422 | oneshot |
| 423 | |
Sungmin Choi | c7c04c6 | 2012-07-25 10:51:27 -0700 | [diff] [blame] | 424 | # bugreport is triggered by holding down volume down, volume up and power |
| 425 | service bugreport /system/bin/bugmailer.sh -v |
| 426 | class main |
| 427 | disabled |
| 428 | oneshot |
| 429 | keycodes 114 115 116 |
Sungmin Choi | 8e13436 | 2012-07-10 16:19:28 -0700 | [diff] [blame] | 430 | |
| 431 | service qseecomd /system/bin/qseecomd |
| 432 | class late_start |
| 433 | user system |
| 434 | group system |
Sungmin Choi | e31eae8 | 2012-09-05 21:07:57 -0700 | [diff] [blame] | 435 | |
Iliyan Malchev | 605aa51 | 2012-09-11 14:34:55 -0700 | [diff] [blame] | 436 | service 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 |