Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2015 The Android Open Source Project |
| 3 | # |
| 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. |
| 15 | # |
| 16 | |
| 17 | import init.angler.usb.rc |
| 18 | import init.angler.diag.rc |
Patrick Tjin | d18dd24 | 2015-05-21 23:43:58 -0700 | [diff] [blame] | 19 | import init.angler.sensorhub.rc |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 20 | |
| 21 | on early-init |
| 22 | mount debugfs debugfs /sys/kernel/debug |
| 23 | chown system system /sys/kernel/debug/kgsl/proc |
| 24 | |
| 25 | on init |
Patrick Tjin | 435a3eb | 2015-06-10 11:37:52 -0700 | [diff] [blame] | 26 | # Load persistent dm-verity state |
| 27 | verity_load_state |
| 28 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 29 | # Set permissions for persist partition |
| 30 | mkdir /persist 0771 system system |
| 31 | mkdir /firmware 0771 system system |
| 32 | |
| 33 | # Support legacy paths |
| 34 | symlink /sdcard /mnt/sdcard |
| 35 | symlink /sdcard /storage/sdcard0 |
| 36 | |
Tim Murray | 882bedb | 2015-09-13 13:17:34 -0700 | [diff] [blame] | 37 | # Setup zram options |
| 38 | write /sys/block/zram0/comp_algorithm lz4 |
| 39 | write /sys/block/zram0/max_comp_streams 4 |
| 40 | |
Patrick Tjin | a7464c2 | 2015-09-15 15:18:27 -0700 | [diff] [blame] | 41 | write /proc/sys/vm/page-cluster 0 |
| 42 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 43 | on fs |
| 44 | mount_all ./fstab.angler |
Tim Murray | 882bedb | 2015-09-13 13:17:34 -0700 | [diff] [blame] | 45 | swapon_all ./fstab.angler |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 46 | |
dcashman | 73d9670 | 2015-08-10 13:20:55 -0700 | [diff] [blame] | 47 | restorecon_recursive /persist |
dcashman | 66ac804 | 2015-08-31 15:21:24 -0700 | [diff] [blame] | 48 | mkdir /persist/data/sfs 0700 system system |
| 49 | mkdir /persist/data/tz 0700 system system |
dcashman | 73d9670 | 2015-08-10 13:20:55 -0700 | [diff] [blame] | 50 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 51 | # Enable rmnet data and aggregation |
| 52 | setprop persist.rmnet.mux enabled |
| 53 | setprop persist.rmnet.data.enable true |
| 54 | setprop persist.data.wda.enable true |
| 55 | setprop persist.data.df.agg.dl_pkt 10 |
| 56 | setprop persist.data.df.agg.dl_size 4096 |
| 57 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 58 | on early-boot |
| 59 | # set RLIMIT_MEMLOCK to 64MB |
| 60 | setrlimit 8 67108864 67108864 |
| 61 | |
Patrick Tjin | 435a3eb | 2015-06-10 11:37:52 -0700 | [diff] [blame] | 62 | # Adjust parameters for dm-verity device |
| 63 | write /sys/block/dm-0/queue/read_ahead_kb 2048 |
| 64 | |
| 65 | # Update dm-verity state and set partition.*.verified properties |
| 66 | verity_update_state |
| 67 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 68 | on boot |
Tim Murray | 6abb5fd | 2015-06-15 19:45:47 -0700 | [diff] [blame] | 69 | # execute script to set initial CPU settings |
| 70 | # don't run as a service to avoid race conditions |
dcashman | 1bca35b | 2015-08-26 10:16:51 -0700 | [diff] [blame] | 71 | exec - root system -- /system/bin/init.angler.power.sh |
Zhihui Wu | 7d7b98c | 2015-04-24 00:40:19 -0700 | [diff] [blame] | 72 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 73 | # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAKEUP |
| 74 | write /sys/module/wakelock/parameters/debug_mask 7 |
| 75 | |
Tim Murray | 4e53f23 | 2015-06-04 16:18:03 -0700 | [diff] [blame] | 76 | # update foreground cpuset now that processors are up |
Tim Murray | f1d9434 | 2016-01-25 14:18:08 -0800 | [diff] [blame] | 77 | # reserve CPU 3 for the top app |
| 78 | write /dev/cpuset/foreground/cpus 0-2,4-7 |
Tim Murray | 12a8806 | 2015-09-01 14:24:18 -0700 | [diff] [blame] | 79 | write /dev/cpuset/foreground/boost/cpus 4-7 |
Tim Murray | 4e53f23 | 2015-06-04 16:18:03 -0700 | [diff] [blame] | 80 | write /dev/cpuset/background/cpus 0 |
Tim Murray | f1d9434 | 2016-01-25 14:18:08 -0800 | [diff] [blame] | 81 | write /dev/cpuset/system-background/cpus 0-2 |
| 82 | write /dev/cpuset/top-app/cpus 0-7 |
Tim Murray | 4e53f23 | 2015-06-04 16:18:03 -0700 | [diff] [blame] | 83 | |
lijianzhao | ad20315 | 2015-09-15 04:01:18 -0700 | [diff] [blame] | 84 | # setup permissions for fb0 related nodes |
cunfei | cfdaafb | 2015-09-21 23:58:22 +0800 | [diff] [blame] | 85 | chown radio radio /sys/class/graphics/fb0/dynamic_dsitiming |
lijianzhao | ad20315 | 2015-09-15 04:01:18 -0700 | [diff] [blame] | 86 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 87 | # create symlink for fb1 as HDMI |
| 88 | symlink /dev/graphics/fb1 /dev/graphics/hdmi |
| 89 | |
| 90 | # setup permissions for fb1 related nodes |
| 91 | chown system graphics /sys/class/graphics/fb1/hpd |
| 92 | chown system graphics /sys/class/graphics/fb1/vendor_name |
| 93 | chown system graphics /sys/class/graphics/fb1/product_description |
| 94 | chmod 0664 /sys/devices/virtual/graphics/fb1/hpd |
| 95 | chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name |
| 96 | chmod 0664 /sys/devices/virtual/graphics/fb1/product_description |
| 97 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 98 | #Create QMUX deamon socket |
| 99 | mkdir /dev/socket/qmux_radio 0770 radio radio |
| 100 | chmod 2770 /dev/socket/qmux_radio |
| 101 | mkdir /dev/socket/qmux_audio 0770 media audio |
| 102 | chmod 2770 /dev/socket/qmux_audio |
| 103 | mkdir /dev/socket/qmux_gps 0770 gps gps |
| 104 | chmod 2770 /dev/socket/qmux_gps |
| 105 | |
wang ping | d69321a | 2015-05-13 00:11:24 +0800 | [diff] [blame] | 106 | setprop wifi.interface wlan0 |
| 107 | |
wang ping | 123e095 | 2015-07-27 21:24:03 -0700 | [diff] [blame] | 108 | #wifi sar |
| 109 | chown radio radio /sys/module/wifi_sar/parameters/wifi_tx_power_limit |
| 110 | |
lijianzhao | eed67ea | 2015-08-18 10:12:16 -0700 | [diff] [blame] | 111 | #compass compensation |
| 112 | chown root system /sys/class/power_supply/battery/compass_compensation |
| 113 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 114 | write /sys/bus/platform/drivers/xhci_msm_hsic/unbind msm_hsic_host |
| 115 | write /sys/module/rmnet_usb/parameters/mux_enabled 1 |
| 116 | write /sys/module/rmnet_usb/parameters/no_fwd_rmnet_links 8 |
| 117 | write /sys/module/rmnet_usb/parameters/no_rmnet_insts_per_dev 17 |
| 118 | write /sys/module/rmnet_usb/parameters/rmnet_data_init 1 |
| 119 | chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait |
| 120 | |
Patrick Tjin | cd0180c | 2015-09-10 11:35:13 -0700 | [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 8388608 |
| 124 | write /proc/sys/net/core/wmem_max 8388608 |
| 125 | |
Patrick Tjin | aec8675 | 2015-08-25 00:15:08 -0700 | [diff] [blame] | 126 | # Leds |
| 127 | chown system system /sys/class/leds/red/on_off_ms |
| 128 | chown system system /sys/class/leds/green/on_off_ms |
| 129 | chown system system /sys/class/leds/blue/on_off_ms |
| 130 | chown system system /sys/class/leds/red/rgb_start |
| 131 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 132 | on property:init.svc.per_mgr=running |
| 133 | start per_proxy |
| 134 | |
| 135 | on property:sys.shutdown.requested=* |
| 136 | stop per_proxy |
| 137 | |
Paul Lawrence | 58b2103 | 2016-01-05 15:16:08 -0800 | [diff] [blame] | 138 | on post-fs |
| 139 | symlink /dev/block/platform/soc.0/f9824900.sdhci /dev/block/bootdevice |
| 140 | |
| 141 | start qseecomd |
| 142 | exec - root root system -- /system/bin/init.angler.qseecomd.sh |
| 143 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 144 | on post-fs-data |
| 145 | write /sys/kernel/boot_adsp/boot 1 |
| 146 | |
| 147 | # Ecc_Handler qcril.db |
Sooraj Sasindran | afa352f | 2015-06-19 11:12:19 -0700 | [diff] [blame] | 148 | mkdir /data/misc/radio 0770 system radio |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 149 | |
| 150 | setprop vold.post_fs_data_done 1 |
| 151 | |
Mekala Natarajan | eb9c2a3 | 2015-04-27 11:01:22 -0700 | [diff] [blame] | 152 | mkdir /data/misc/qsee 0770 system system |
dcashman | 73d9670 | 2015-08-10 13:20:55 -0700 | [diff] [blame] | 153 | mkdir /data/fpc 0700 system system |
Mekala Natarajan | eb9c2a3 | 2015-04-27 11:01:22 -0700 | [diff] [blame] | 154 | |
Zhihui Wu | 7055b3e | 2015-05-13 18:14:46 -0700 | [diff] [blame] | 155 | #Create folder for mm-qcamera-daemon |
| 156 | mkdir /data/misc/camera 0770 camera camera |
| 157 | |
Naseer Ahmed | 1b0f56a | 2015-07-09 16:46:40 -0400 | [diff] [blame] | 158 | #Create folder for display calibration data |
| 159 | mkdir /data/misc/display 0770 system graphics |
| 160 | |
Naveen Ramaraj | 4517b04 | 2015-07-29 20:02:42 -0700 | [diff] [blame] | 161 | # Create /data/time folder for time-services |
| 162 | mkdir /data/time/ 0700 system system |
| 163 | mkdir /data/audio/ 0770 media audio |
| 164 | |
| 165 | # Create folder for perf daemon |
| 166 | mkdir /data/misc/perfd 0755 root system |
| 167 | chmod 2755 /data/misc/perfd |
| 168 | mkdir /data/system/perfd 0770 root system |
| 169 | rm /data/system/perfd/default_values |
| 170 | chmod 2770 /data/system/perfd |
| 171 | setprop ro.min_freq_0 384000 |
| 172 | setprop ro.min_freq_4 384000 |
| 173 | |
Zhihui Wu | 5dd2b47 | 2015-05-20 16:31:35 -0700 | [diff] [blame] | 174 | # Create the directories used by CnE subsystem |
| 175 | mkdir /data/connectivity 0771 system system |
| 176 | chown system system /data/connectivity |
| 177 | |
| 178 | #Create directory from IMS services |
| 179 | mkdir /data/shared 0755 |
| 180 | chown system system /data/shared |
| 181 | |
Naveen Ramaraj | 4517b04 | 2015-07-29 20:02:42 -0700 | [diff] [blame] | 182 | # Mark the copy complete flag to not completed |
| 183 | write /data/misc/radio/copy_complete 0 |
| 184 | chown radio radio /data/misc/radio/copy_complete |
| 185 | chmod 0660 /data/misc/radio/copy_complete |
Zhenhua Ma | 786d29b | 2015-06-04 13:22:50 +0800 | [diff] [blame] | 186 | |
wang ping | dc7ea96 | 2015-05-09 00:37:27 +0800 | [diff] [blame] | 187 | # Configure bluetooth |
| 188 | chmod 0660 /proc/bluetooth/sleep/lpm |
| 189 | chmod 0660 /proc/bluetooth/sleep/btwrite |
| 190 | chmod 0660 /sys/class/rfkill/rfkill0/state |
| 191 | chmod 0660 /dev/ttyHS0 |
| 192 | chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm |
| 193 | chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite |
| 194 | chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state |
| 195 | chown bluetooth net_bt_stack /dev/ttyHS0 |
| 196 | |
wang ping | 0684e52 | 2015-05-20 22:58:34 +0800 | [diff] [blame] | 197 | # Create nfc local data |
| 198 | mkdir /data/nfc 0770 nfc nfc |
| 199 | |
zhaoyang yin | 2928a3c | 2015-06-04 20:00:12 +0800 | [diff] [blame] | 200 | #modify access for speaker calibdata |
| 201 | chown system system /persist/audio/speaker_calibdata.bin |
| 202 | chmod 0444 /persist/audio/speaker_calibdata.bin |
| 203 | |
zhihui wu | 8158003 | 2015-07-27 17:19:25 -0700 | [diff] [blame] | 204 | #modify access for laser calibration data |
| 205 | chmod 0710 /persist/data |
| 206 | chmod 0440 /persist/data/st_offset |
| 207 | chmod 0440 /persist/data/st_xtalk |
| 208 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 209 | on charger |
zhen yuan | da5e00b | 2015-08-25 12:07:05 +0800 | [diff] [blame] | 210 | #set cpu4,5 online first, or they can't get into low power consumption mode |
| 211 | write /sys/devices/system/cpu/cpu4/online 1 |
| 212 | write /sys/devices/system/cpu/cpu5/online 1 |
Zhihui Wu | 13d03c6 | 2015-04-23 22:06:27 -0700 | [diff] [blame] | 213 | #low power governing |
zhen yuan | f33b642 | 2015-08-11 04:35:35 +0800 | [diff] [blame] | 214 | write /sys/devices/soc.0/qcom,bcl.60/mode disable |
| 215 | write /sys/devices/soc.0/qcom,bcl.60/hotplug_mask 0 |
| 216 | write /sys/devices/soc.0/qcom,bcl.60/hotplug_soc_mask 0 |
Zhihui Wu | 13d03c6 | 2015-04-23 22:06:27 -0700 | [diff] [blame] | 217 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive |
| 218 | write /sys/devices/system/cpu/cpu1/online 0 |
| 219 | write /sys/devices/system/cpu/cpu2/online 0 |
| 220 | write /sys/devices/system/cpu/cpu3/online 0 |
| 221 | write /sys/devices/system/cpu/cpu4/online 0 |
| 222 | write /sys/devices/system/cpu/cpu5/online 0 |
| 223 | write /sys/devices/system/cpu/cpu6/online 0 |
| 224 | write /sys/devices/system/cpu/cpu7/online 0 |
| 225 | |
Mekala Natarajan | 4f29963 | 2015-07-17 00:21:29 -0700 | [diff] [blame] | 226 | on property:sys.boot_completed=1 |
| 227 | #allow CPUs to go in deeper idle state than C0 |
| 228 | write /sys/module/lpm_levels/parameters/sleep_disabled 0 |
| 229 | |
hongfengluo | 0110962 | 2015-08-26 23:42:39 +0800 | [diff] [blame] | 230 | # Search the laser device under /dev/input, then create symlink |
Yin-Chia Yeh | 86a5895 | 2015-10-23 17:31:05 -0700 | [diff] [blame] | 231 | service InputEventFind /vendor/bin/InputEventFind |
hongfengluo | 0110962 | 2015-08-26 23:42:39 +0800 | [diff] [blame] | 232 | class main |
| 233 | oneshot |
| 234 | |
Zhenhua Ma | 739e45e | 2015-07-01 13:36:39 +0800 | [diff] [blame] | 235 | service ssr_setup /system/bin/ssr_setup |
| 236 | oneshot |
| 237 | disabled |
| 238 | |
| 239 | service ss_ramdump /system/bin/subsystem_ramdump |
| 240 | class main |
| 241 | user system |
| 242 | group system |
| 243 | disabled |
| 244 | |
| 245 | on property:persist.sys.ssr.restart_level=* |
| 246 | start ssr_setup |
| 247 | |
| 248 | on property:persist.sys.ssr.enable_ramdumps=1 |
| 249 | write /sys/module/subsystem_restart/parameters/enable_ramdumps 1 |
| 250 | start ss_ramdump |
| 251 | |
| 252 | on property:persist.sys.ssr.enable_ramdumps=0 |
| 253 | write /sys/module/subsystem_restart/parameters/enable_ramdumps 0 |
| 254 | |
Zhihui Wu | 13d03c6 | 2015-04-23 22:06:27 -0700 | [diff] [blame] | 255 | service charger /sbin/healthd -c |
| 256 | class charger |
| 257 | group log |
| 258 | seclabel u:r:healthd:s0 |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 259 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 260 | service per_mgr /system/bin/pm-service |
| 261 | class core |
| 262 | user root |
| 263 | group system net_raw |
| 264 | |
| 265 | service per_proxy /system/bin/pm-proxy |
| 266 | class core |
| 267 | user root |
| 268 | group system net_raw |
| 269 | disabled |
| 270 | |
| 271 | service rmt_storage /system/bin/rmt_storage |
| 272 | class core |
| 273 | user root |
Pavlin Radoslavov | 326d91d | 2015-11-23 17:35:30 -0800 | [diff] [blame] | 274 | group system wakelock |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 275 | |
Paul Lawrence | dcda89a | 2015-10-01 07:54:07 -0700 | [diff] [blame] | 276 | service qseecomd /vendor/bin/qseecomd |
Mekala Natarajan | eb9c2a3 | 2015-04-27 11:01:22 -0700 | [diff] [blame] | 277 | class core |
| 278 | user root |
| 279 | group root |
| 280 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 281 | service irsc_util /system/bin/irsc_util "/etc/sec_config" |
| 282 | class main |
| 283 | user root |
| 284 | oneshot |
| 285 | |
Naveen Ramaraj | 910680c | 2015-05-04 10:45:49 -0700 | [diff] [blame] | 286 | service thermal-engine /system/bin/thermal-engine |
| 287 | class main |
| 288 | user root |
| 289 | socket thermal-send-client stream 0660 system system |
| 290 | socket thermal-recv-client stream 0660 system system |
| 291 | socket thermal-recv-passive-client stream 0660 system system |
dcashman | a170fa3 | 2015-08-14 15:09:25 -0700 | [diff] [blame] | 292 | group root radio |
Naveen Ramaraj | 910680c | 2015-05-04 10:45:49 -0700 | [diff] [blame] | 293 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 294 | # QMUX must be in multiple groups to support external process connections |
| 295 | service qmuxd /system/bin/qmuxd |
| 296 | class main |
Tom Cherry | 858f631 | 2015-06-05 11:07:58 -0700 | [diff] [blame] | 297 | user radio |
Pavlin Radoslavov | 326d91d | 2015-11-23 17:35:30 -0800 | [diff] [blame] | 298 | group radio audio bluetooth wakelock gps |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 299 | |
Naveen Ramaraj | 84aa57d | 2015-06-11 18:37:03 -0700 | [diff] [blame] | 300 | service perfd /system/bin/perfd |
| 301 | class main |
| 302 | user root |
Naveen Ramaraj | f60ac5b | 2015-09-14 18:34:11 -0700 | [diff] [blame] | 303 | group system |
Tim Murray | 4fe466d | 2015-09-18 13:28:30 -0700 | [diff] [blame] | 304 | writepid /dev/cpuset/system-background/tasks |
Naveen Ramaraj | 84aa57d | 2015-06-11 18:37:03 -0700 | [diff] [blame] | 305 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 306 | service netmgrd /system/bin/netmgrd |
Ajay Dudani | 1faa3d3 | 2015-06-22 11:12:09 -0700 | [diff] [blame] | 307 | class main |
Pavlin Radoslavov | 326d91d | 2015-11-23 17:35:30 -0800 | [diff] [blame] | 308 | group radio system wakelock |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 309 | |
Zhihui Wu | 384b222 | 2015-05-19 13:42:18 -0700 | [diff] [blame] | 310 | service qti /system/vendor/bin/qti |
| 311 | class main |
| 312 | user radio |
| 313 | group radio net_raw usb net_admin |
Zhihui Wu | 384b222 | 2015-05-19 13:42:18 -0700 | [diff] [blame] | 314 | |
Naveen Ramaraj | 8701898 | 2015-04-24 21:10:40 -0700 | [diff] [blame] | 315 | service time_daemon /system/bin/time_daemon |
| 316 | class late_start |
| 317 | user root |
| 318 | group root |
| 319 | |
Mekala Natarajan | 1992559 | 2015-05-04 10:19:48 -0700 | [diff] [blame] | 320 | service loc_launcher /system/bin/loc_launcher |
| 321 | class late_start |
| 322 | group gps inet net_raw net_admin wifi |
| 323 | |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 324 | # bugreport is triggered by holding down volume down, volume up and power |
Felipe Leme | af6169a | 2015-11-16 14:22:10 -0800 | [diff] [blame] | 325 | service bugreport /system/bin/dumpstate -d -p -B -z \ |
Jeff Sharkey | 49a6a59 | 2016-02-07 13:15:50 -0700 | [diff] [blame^] | 326 | -o /data/user_de/0/com.android.shell/files/bugreports/bugreport |
Patrick Tjin | ea3b3cd | 2015-03-31 10:38:39 -0700 | [diff] [blame] | 327 | class main |
| 328 | disabled |
| 329 | oneshot |
| 330 | keycodes 114 115 116 |
Zhihui Wu | 7055b3e | 2015-05-13 18:14:46 -0700 | [diff] [blame] | 331 | |
| 332 | # start camera server as daemon |
Yin-Chia Yeh | 54558b9 | 2015-10-09 14:41:36 -0700 | [diff] [blame] | 333 | service qcamerasvr /vendor/bin/mm-qcamera-daemon |
Zhihui Wu | 7055b3e | 2015-05-13 18:14:46 -0700 | [diff] [blame] | 334 | class late_start |
| 335 | user camera |
| 336 | group camera system inet input graphics |
Tim Murray | 7bafe33 | 2015-10-05 13:31:51 -0700 | [diff] [blame] | 337 | writepid /dev/cpuset/system-background/tasks |
Vineeta Srivastava | f6ab59a | 2015-05-20 17:29:44 -0700 | [diff] [blame] | 338 | |
| 339 | service fingerprintd /system/bin/fingerprintd |
| 340 | class late_start |
| 341 | user system |
lijianzhao | 72688d4 | 2015-06-26 22:12:13 -0700 | [diff] [blame] | 342 | group input |
wang ping | d69321a | 2015-05-13 00:11:24 +0800 | [diff] [blame] | 343 | |
| 344 | service p2p_supplicant /system/bin/wpa_supplicant \ |
| 345 | -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ |
| 346 | -I/system/etc/wifi/p2p_supplicant_overlay.conf \ |
| 347 | -O/data/misc/wifi/sockets \ |
| 348 | -m/data/misc/wifi/p2p_supplicant.conf \ |
| 349 | -puse_p2p_group_interface=1p2p_device=1 \ |
| 350 | -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 |
| 351 | class main |
| 352 | socket wpa_wlan0 dgram 660 wifi wifi |
| 353 | disabled |
| 354 | oneshot |
| 355 | |
| 356 | service wpa_supplicant /system/bin/wpa_supplicant \ |
| 357 | -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ |
| 358 | -I/system/etc/wifi/wpa_supplicant_overlay.conf \ |
| 359 | -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 |
| 360 | class main |
| 361 | socket wpa_wlan0 dgram 660 wifi wifi |
| 362 | disabled |
| 363 | oneshot |
| 364 | |
| 365 | service dhcpcd_wlan0 /system/bin/dhcpcd -aABKL |
| 366 | class main |
| 367 | disabled |
| 368 | oneshot |
| 369 | |
| 370 | service dhcpcd_p2p /system/bin/dhcpcd -aABKL |
| 371 | class main |
| 372 | disabled |
| 373 | oneshot |
| 374 | |
| 375 | service iprenew_wlan0 /system/bin/dhcpcd -n |
| 376 | class main |
| 377 | disabled |
| 378 | oneshot |
| 379 | |
| 380 | service iprenew_p2p /system/bin/dhcpcd -n |
| 381 | class main |
| 382 | disabled |
| 383 | oneshot |
Zhihui Wu | 5dd2b47 | 2015-05-20 16:31:35 -0700 | [diff] [blame] | 384 | |
wang | 1f7df76 | 2015-06-19 18:14:47 +0800 | [diff] [blame] | 385 | service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG |
| 386 | class main |
| 387 | disabled |
| 388 | oneshot |
| 389 | |
| 390 | service iprenew_bt-pan /system/bin/dhcpcd -n |
| 391 | class main |
| 392 | disabled |
| 393 | oneshot |
| 394 | |
Erik Kline | 6e9ca84 | 2015-09-15 11:53:53 +0900 | [diff] [blame] | 395 | service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL |
| 396 | class late_start |
| 397 | disabled |
| 398 | oneshot |
| 399 | |
| 400 | service iprenew_eth0 /system/bin/dhcpcd -n |
| 401 | class late_start |
| 402 | disabled |
| 403 | oneshot |
| 404 | |
Zhihui Wu | 5dd2b47 | 2015-05-20 16:31:35 -0700 | [diff] [blame] | 405 | service imsqmidaemon /system/bin/imsqmidaemon |
| 406 | class main |
| 407 | user system |
| 408 | socket ims_qmid stream 0660 system radio |
| 409 | group radio net_raw log diag |
| 410 | |
| 411 | service imsdatadaemon /system/bin/imsdatadaemon |
| 412 | class main |
| 413 | user system |
| 414 | socket ims_datad stream 0660 system radio |
| 415 | group system wifi radio inet net_raw log diag net_admin |
| 416 | disabled |
| 417 | |
| 418 | on property:sys.ims.QMI_DAEMON_STATUS=1 |
| 419 | start imsdatadaemon |
| 420 | |
Zhihui Wu | 5dd2b47 | 2015-05-20 16:31:35 -0700 | [diff] [blame] | 421 | service imscmservice /system/bin/imscmservice |
| 422 | class main |
| 423 | user system |
| 424 | group radio net_raw diag diag log |
| 425 | |
| 426 | service cnd /system/bin/cnd |
| 427 | class late_start |
| 428 | socket cnd stream 660 root inet |
Pavlin Radoslavov | 326d91d | 2015-11-23 17:35:30 -0800 | [diff] [blame] | 429 | group root wakelock |
Patrick Tjin | 435a3eb | 2015-06-10 11:37:52 -0700 | [diff] [blame] | 430 | |
wang ping | 04252d8 | 2015-06-10 22:55:51 -0700 | [diff] [blame] | 431 | on property:ro.boot.hardware.revision=ANGLER-V1 |
| 432 | write /sys/module/bcmdhd/parameters/nvram_path \ |
| 433 | /system/etc/wifi/bcmdhd-pme.cal |
| 434 | |
| 435 | on property:ro.boot.hardware.revision=ANGLER-V2 |
| 436 | write /sys/module/bcmdhd/parameters/nvram_path \ |
| 437 | /system/etc/wifi/bcmdhd-pme.cal |
Zhenhua Ma | 786d29b | 2015-06-04 13:22:50 +0800 | [diff] [blame] | 438 | |
wang ping | 9ee9020 | 2015-08-17 21:06:16 -0700 | [diff] [blame] | 439 | on property:ro.boot.wifi_cal=2 |
| 440 | write /sys/module/bcmdhd/parameters/nvram_path \ |
| 441 | /system/etc/wifi/bcmdhd-low.cal |
| 442 | |
| 443 | on property:ro.boot.wifi_cal=3 |
| 444 | write /sys/module/bcmdhd/parameters/nvram_path \ |
| 445 | /system/etc/wifi/bcmdhd-high.cal |
| 446 | |
Patrick Tjin | 299a3b8 | 2015-09-08 12:38:21 -0700 | [diff] [blame] | 447 | on property:ro.boot.hardware.sku=H1511 |
| 448 | setprop ro.boot.wificountrycode US |
| 449 | |
dcashman | 717b6b6 | 2015-08-12 15:01:22 -0700 | [diff] [blame] | 450 | service mcfg-sh /system/bin/init.mcfg.sh |
Zhenhua Ma | 786d29b | 2015-06-04 13:22:50 +0800 | [diff] [blame] | 451 | class late_start |
dcashman | 717b6b6 | 2015-08-12 15:01:22 -0700 | [diff] [blame] | 452 | user radio |
| 453 | group radio system |
Zhenhua Ma | 786d29b | 2015-06-04 13:22:50 +0800 | [diff] [blame] | 454 | oneshot |
renjie zhao | 0de3758 | 2015-06-05 14:22:37 +0800 | [diff] [blame] | 455 | |
| 456 | service oem_qmi_server /vendor/bin/oem_qmi_server |
renjie zhao | b56cfa9 | 2015-07-23 11:17:05 +0800 | [diff] [blame] | 457 | class main |
renjie zhao | 0de3758 | 2015-06-05 14:22:37 +0800 | [diff] [blame] | 458 | user root |
renjie zhao | 56c6268 | 2015-08-26 14:17:19 -0400 | [diff] [blame] | 459 | group system radio |
Riley Andrews | a139972 | 2015-06-22 15:53:18 -0700 | [diff] [blame] | 460 | |
| 461 | service msm_irqbalance /system/bin/msm_irqbalance -f /system/etc/msm_irqbalance.conf |
| 462 | socket msm_irqbalance seqpacket 660 root system |
| 463 | class core |
| 464 | user root |
| 465 | group root |
Tim Murray | 4fe466d | 2015-09-18 13:28:30 -0700 | [diff] [blame] | 466 | writepid /dev/cpuset/system-background/tasks |
zhangmingzhen | ff53d44 | 2015-07-06 17:54:11 +0800 | [diff] [blame] | 467 | |
| 468 | #start atfwd as daemon |
| 469 | service atfwd /system/bin/ATFWD-daemon |
| 470 | class late_start |
| 471 | user system |
| 472 | group system radio |
| 473 | |
Naseer Ahmed | 1b0f56a | 2015-07-09 16:46:40 -0400 | [diff] [blame] | 474 | service ppd /system/bin/mm-pp-daemon |
| 475 | class late_start |
| 476 | user system |
| 477 | socket pps stream 0660 system system |
| 478 | group system graphics |
| 479 | |
| 480 | on property:init.svc.surfaceflinger=stopped |
| 481 | stop ppd |
renjie zhao | 5779756 | 2015-07-18 11:58:58 +0800 | [diff] [blame] | 482 | |
| 483 | service diag_test_server /vendor/bin/diag_test_server |
| 484 | class core |
| 485 | user root |
| 486 | disabled |
| 487 | |
| 488 | on property:ro.boot.mode=hw-factory |
| 489 | start diag_test_server |
| 490 | |