merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 1 | # Copyright (c) 2009-2012, 2014-2021, The Linux Foundation. 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 The Linux Foundation 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 | |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 28 | import /vendor/etc/init/hw/init.qcom.usb.rc |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 29 | import /vendor/etc/init/hw/init.target.rc |
merothh | f81fec6 | 2022-01-03 03:22:01 +0530 | [diff] [blame] | 30 | import /vendor/etc/init/hw/init.stnfc.rc |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 31 | |
| 32 | on early-init |
| 33 | mount debugfs debugfs /sys/kernel/debug |
| 34 | chmod 0755 /sys/kernel/debug |
| 35 | mount tracefs tracefs /sys/kernel/tracing |
| 36 | chmod 0755 /sys/kernel/tracing |
| 37 | |
| 38 | # create symlink for vendor mount points |
| 39 | symlink /vendor/firmware_mnt /firmware |
| 40 | symlink /vendor/bt_firmware /bt_firmware |
| 41 | symlink /vendor/dsp /dsp |
| 42 | |
| 43 | # Change ownership of hw_recovery related nodes |
| 44 | chown system graphics /sys/kernel/debug/dri/0/debug/dump |
| 45 | chown system graphics /sys/kernel/debug/dri/0/debug/recovery_reg |
| 46 | chown system graphics /sys/kernel/debug/dri/0/debug/recovery_dbgbus |
| 47 | chown system graphics /sys/kernel/debug/dri/0/debug/recovery_vbif_dbgbus |
| 48 | chown system graphics /sys/kernel/debug/dri/0/debug/recovery_dsi_dbgbus |
| 49 | |
| 50 | # Change ownership of sysfs power control node |
| 51 | chown system graphics /sys/class/drm/card0/device/power/control |
| 52 | |
| 53 | # Change ownership of sw_sync node |
| 54 | chown system graphics /sys/kernel/debug/sync/sw_sync |
| 55 | chmod 0666 /sys/kernel/debug/sync/sw_sync |
| 56 | |
| 57 | #Disable UFS clock scaling |
| 58 | write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 0 |
| 59 | |
| 60 | chown root system /dev/kmsg |
| 61 | chmod 0620 /dev/kmsg |
| 62 | # Load WIGIG platform driver |
| 63 | exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules msm_11ad_proxy |
| 64 | |
| 65 | on init |
| 66 | |
| 67 | # Support legacy paths |
| 68 | symlink /sdcard /mnt/sdcard |
| 69 | symlink /sdcard /storage/sdcard0 |
| 70 | |
| 71 | # Create cgroup mount point for memory |
| 72 | mkdir /sys/fs/cgroup/memory/bg 0750 root system |
| 73 | write /sys/fs/cgroup/memory/bg/memory.swappiness 140 |
| 74 | write /sys/fs/cgroup/memory/bg/memory.move_charge_at_immigrate 1 |
| 75 | chown root system /sys/fs/cgroup/memory/bg/tasks |
| 76 | write /sys/kernel/icnss/wpss_boot 1 |
| 77 | chmod 0660 /sys/fs/cgroup/memory/bg/tasks |
| 78 | |
| 79 | on post-fs |
| 80 | chmod 0755 /sys/kernel/debug/tracing |
| 81 | |
| 82 | on early-boot |
| 83 | # set RLIMIT_MEMLOCK to 64MB |
| 84 | setrlimit 8 67108864 67108864 |
| 85 | # Allow subsystem (modem etc) debugging |
| 86 | write /sys/kernel/boot_adsp/boot 1 |
| 87 | write /sys/kernel/boot_cdsp/boot 1 |
| 88 | write /sys/devices/virtual/npu/msm_npu/boot 1 |
| 89 | write /sys/devices/virtual/cvp/cvp/boot 1 |
| 90 | exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qcom.early_boot.sh |
| 91 | exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qti.can.sh |
| 92 | setprop ro.sf.lcd_density ${vendor.display.lcd_density} |
| 93 | |
| 94 | chown system system /mnt/vendor/persist/data/pfm/licenses |
| 95 | chmod 0775 /mnt/vendor/persist/data/pfm/licenses |
| 96 | chown system system /mnt/vendor/persist/data/pfm/licenses/store_0 |
| 97 | chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_0 |
| 98 | chown system system /mnt/vendor/persist/data/pfm/licenses/store_1 |
| 99 | chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_1 |
| 100 | chown system system /mnt/vendor/persist/data/pfm/licenses/store_2 |
| 101 | chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_2 |
| 102 | chown system system /mnt/vendor/persist/data/pfm/licenses/store_3 |
| 103 | chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_3 |
| 104 | chown system system /mnt/vendor/persist/data/pfm/licenses/store_4 |
| 105 | chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_4 |
| 106 | |
| 107 | on boot |
| 108 | chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power |
| 109 | chown bluetooth net_bt /sys/class/rfkill/rfkill0/type |
| 110 | chown bluetooth net_bt /sys/class/rfkill/rfkill0/state |
| 111 | chown bluetooth bluetooth /proc/bluetooth/sleep/proto |
| 112 | chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_lpm |
| 113 | chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite |
| 114 | chown system system /sys/module/sco/parameters/disable_esco |
| 115 | chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set |
| 116 | chown system system /sys/module/msm_core/parameters/polling_interval |
| 117 | chown system system /sys/module/msm_core/parameters/disabled |
| 118 | chown system system /sys/kernel/debug/msm_core/enable |
| 119 | chown system system /sys/kernel/debug/msm_core/ptable |
| 120 | chown system system /sys/kernel/boot_slpi/ssr |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 121 | chmod 0660 /sys/module/bluetooth_power/parameters/power |
| 122 | chmod 0660 /sys/module/hci_smd/parameters/hcismd_set |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 123 | chmod 0660 /sys/class/rfkill/rfkill0/state |
| 124 | chmod 0660 /proc/bluetooth/sleep/proto |
| 125 | chown bluetooth net_bt /dev/ttyHS0 |
| 126 | chmod 0660 /sys/module/hci_uart/parameters/ath_lpm |
| 127 | chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite |
| 128 | chmod 0660 /dev/ttyHS0 |
| 129 | chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock |
| 130 | chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock |
| 131 | |
| 132 | chmod 0660 /dev/ttyHS2 |
| 133 | chown bluetooth bluetooth /dev/ttyHS2 |
| 134 | |
| 135 | chown bluetooth net_bt /sys/class/rfkill/rfkill0/device/extldo |
| 136 | chmod 0660 /sys/class/rfkill/rfkill0/device/extldo |
| 137 | |
| 138 | # This location is used by QCRIL to host UNIX domain |
| 139 | # socket files used for internal IPC within QCRIL |
| 140 | # modules |
| 141 | mkdir /dev/socket/qmux_radio 0770 radio radio |
| 142 | chmod 2770 /dev/socket/qmux_radio |
| 143 | |
| 144 | mkdir /persist/drm 0770 system system |
| 145 | mkdir /persist/bluetooth 0770 bluetooth bluetooth |
| 146 | mkdir /persist/misc 0770 system system |
| 147 | mkdir /persist/alarm 0770 system system |
| 148 | mkdir /mnt/vendor/persist/time 0770 system system |
| 149 | mkdir /mnt/vendor/persist/secnvm 0770 system system |
| 150 | mkdir /mnt/vendor/persist/iar_db 0770 system system |
| 151 | mkdir /mnt/vendor/spunvm 0770 system system |
| 152 | |
| 153 | #Create WIGIG socket area |
| 154 | mkdir /dev/socket/wigig 0770 wifi wifi |
| 155 | |
| 156 | setprop wifi.interface wlan0 |
| 157 | |
| 158 | setprop ro.telephony.call_ring.multiple false |
| 159 | |
| 160 | #Remove SUID bit for iproute2 ip tool |
| 161 | chmod 0755 /system/bin/ip |
| 162 | |
| 163 | |
| 164 | chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state |
| 165 | |
| 166 | setprop net.tcp.2g_init_rwnd 10 |
| 167 | |
| 168 | # To prevent out of order acknowledgements from making |
| 169 | # connection tracking to treat them as not belonging to |
| 170 | # the connection they belong to. |
| 171 | # Otherwise, a weird issue happens in which some long |
| 172 | # connections on high-throughput links get dropped when |
| 173 | # an ack packet comes out of order |
| 174 | write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 |
| 175 | |
| 176 | # Set the console loglevel to < KERN_WARN |
| 177 | # Set the default message loglevel to KERN_INFO |
| 178 | write /proc/sys/kernel/printk "4 6 1 7" |
| 179 | |
| 180 | # Allow access for CCID command/response timeout configuration |
| 181 | chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout |
| 182 | |
| 183 | # bond0 used by FST Manager |
| 184 | chown wifi wifi /sys/class/net/bond0/bonding/queue_id |
| 185 | |
| 186 | # Allow access to emmc rawdump block partition and dload sysfs node |
| 187 | chown root system /dev/block/bootdevice/by-name/rawdump |
| 188 | chmod 0660 /dev/block/bootdevice/by-name/rawdump |
| 189 | chown root system /sys/kernel/dload/emmc_dload |
| 190 | chmod 0660 /sys/kernel/dload/emmc_dload |
| 191 | chown root system /dev/block/bootdevice/by-name/ramdump |
| 192 | chmod 0660 /dev/block/bootdevice/by-name/ramdump |
| 193 | chown root system /sys/kernel/dload/dload_mode |
| 194 | chmod 0660 /sys/kernel/dload/dload_mode |
| 195 | |
| 196 | chown system system /sys/class/backlight/panel0-backlight/brightness |
| 197 | chown system system /sys/class/backlight/panel0-backlight/max_brightness |
| 198 | chown system system /sys/class/backlight/panel1-backlight/brightness |
| 199 | chown system system /sys/class/backlight/panel1-backlight/max_brightness |
| 200 | |
| 201 | # Allow access to sensors device attributes |
| 202 | chown system system /sys/class/sensors/MPU6050-accel/enable |
| 203 | chown system system /sys/class/sensors/MPU6050-accel/poll_delay |
| 204 | chown system system /sys/class/sensors/MPU6050-gyro/enable |
| 205 | chown system system /sys/class/sensors/MPU6050-gyro/poll_delay |
| 206 | chown system system /sys/class/sensors/apds9930-light/enable |
| 207 | chown system system /sys/class/sensors/apds9930-light/poll_delay |
| 208 | chown system system /sys/class/sensors/apds9930-proximity/enable |
| 209 | chown system system /sys/class/sensors/apds9930-proximity/poll_delay |
| 210 | |
| 211 | # Create directory used for display |
| 212 | # for backward compatibility |
| 213 | mkdir /persist/display 0770 system graphics |
| 214 | mkdir /mnt/vendor/persist/display 0770 system graphics |
| 215 | |
| 216 | # Create vpp directory |
| 217 | mkdir /mnt/vendor/persist/vpp 0770 media media |
| 218 | |
| 219 | |
| 220 | # Create hvdcp_opti directory |
| 221 | mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system |
| 222 | |
| 223 | # limit discard size to 128MB in order to avoid long IO latency |
| 224 | write /sys/block/sda/queue/discard_max_bytes 134217728 |
| 225 | |
| 226 | # msm specific files that need to be created on /data |
| 227 | on post-fs-data |
| 228 | mkdir /data/vendor/misc 01771 system system |
| 229 | |
| 230 | # Create directory used for dump collection |
| 231 | mkdir /data/vendor/ssrdump 0770 root system |
| 232 | |
| 233 | # Create directory used by display clients |
| 234 | mkdir /data/vendor/display 0770 system graphics |
| 235 | |
| 236 | # Change lm related dirs |
| 237 | mkdir /data/vendor/lm 0700 root root |
| 238 | |
| 239 | # Create directory used by powermodule |
| 240 | mkdir /data/vendor/pwr 0700 root root |
| 241 | |
| 242 | # Create directory used by media clients |
| 243 | mkdir /data/vendor/media 0770 mediacodec media |
| 244 | |
| 245 | # Create /data/vendor/tzstorage directory for SFS listener |
| 246 | mkdir /data/vendor/tzstorage 0770 system system |
| 247 | |
| 248 | # Create directory for apps access via QTEEConnector |
| 249 | mkdir /data/vendor/qtee 0770 system system |
| 250 | |
| 251 | #Create folder of camera |
| 252 | mkdir /data/vendor/camera 0770 camera camera |
| 253 | |
| 254 | |
| 255 | #Create directory for tftp |
| 256 | mkdir /data/vendor/tombstones 0771 system system |
| 257 | mkdir /data/vendor/tombstones/rfs 0771 system system |
| 258 | |
| 259 | mkdir /data/vendor/ramdump 0771 root system |
| 260 | mkdir /data/vendor/bluetooth 0770 bluetooth bluetooth |
| 261 | mkdir /data/vendor/ramdump/bluetooth 0770 bluetooth bluetooth |
| 262 | |
| 263 | # Create the directories used by the Wireless subsystem |
| 264 | mkdir /data/vendor/wifi 0770 wifi wifi |
| 265 | mkdir /data/vendor/wifi/sockets 0770 wifi wifi |
| 266 | mkdir /data/vendor/wifi/hostapd 0770 wifi wifi |
| 267 | mkdir /data/vendor/wifi/hostapd/ctrl 0770 wifi wifi |
| 268 | mkdir /data/vendor/wifi/wpa_supplicant 0770 wifi wifi |
| 269 | mkdir /data/vendor/wifi/wigig_hostapd 0770 wifi wifi |
| 270 | mkdir /data/vendor/wifi/wpa 0770 wifi wifi |
| 271 | mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi |
| 272 | |
| 273 | # Create the directories used by WiGig Sensing |
| 274 | mkdir /data/vendor/sensing 0770 system wifi |
| 275 | |
| 276 | # Create the directories used by CnE subsystem |
| 277 | mkdir /data/vendor/connectivity 0771 radio radio |
| 278 | chown radio radio /data/vendor/connectivity |
| 279 | |
| 280 | # Create directory used by audio subsystem |
| 281 | mkdir /data/vendor/audio 0770 audio audio |
| 282 | |
| 283 | # Create directory for audio delta files |
| 284 | mkdir /data/vendor/audio/acdbdata 0770 media audio |
| 285 | mkdir /data/vendor/audio/acdbdata/delta 0770 media audio |
| 286 | |
| 287 | # Create directory for radio |
| 288 | mkdir /data/vendor/radio 0770 system radio |
| 289 | rm /data/vendor/radio/shmbus |
| 290 | |
| 291 | # Create directory for modem_config |
| 292 | mkdir /data/vendor/modem_config 0570 radio root |
| 293 | |
| 294 | # Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections |
| 295 | # We chown/chmod /persist again so because mount is run as root + defaults |
| 296 | chown root system /persist |
| 297 | chmod 0771 /persist |
| 298 | chown system system /persist/WCNSS_qcom_wlan_nv.bin |
| 299 | chmod 0664 /sys/devices/platform/msm_sdcc.1/polling |
| 300 | chmod 0664 /sys/devices/platform/msm_sdcc.2/polling |
| 301 | chmod 0664 /sys/devices/platform/msm_sdcc.3/polling |
| 302 | chmod 0664 /sys/devices/platform/msm_sdcc.4/polling |
| 303 | |
| 304 | # Chown polling nodes as needed from UI running on system server |
| 305 | chown system system /sys/devices/platform/msm_sdcc.1/polling |
| 306 | chown system system /sys/devices/platform/msm_sdcc.2/polling |
| 307 | chown system system /sys/devices/platform/msm_sdcc.3/polling |
| 308 | chown system system /sys/devices/platform/msm_sdcc.4/polling |
| 309 | |
| 310 | #Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant |
| 311 | #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant |
| 312 | |
| 313 | #Create directories for Location services |
| 314 | mkdir /data/vendor/location 0770 gps gps |
| 315 | mkdir /data/vendor/location/mq 0770 gps gps |
| 316 | mkdir /data/vendor/location/xtwifi 0770 gps gps |
| 317 | mkdir /dev/socket/location 0770 gps gps |
| 318 | mkdir /dev/socket/location/mq 0770 gps gps |
| 319 | mkdir /dev/socket/location/xtra 0770 gps gps |
| 320 | mkdir /dev/socket/location/dgnss 0770 gps gps |
| 321 | |
| 322 | #Create directories for wifihal services |
| 323 | mkdir /dev/socket/wifihal 0770 wifi wifi |
| 324 | chmod 2770 /dev/socket/wifihal |
| 325 | |
| 326 | # Create /data/time folder for time-services |
| 327 | mkdir /data/vendor/time/ 0700 system system |
| 328 | |
| 329 | setprop vold.post_fs_data_done 1 |
| 330 | |
| 331 | #Create a folder for SRS to be able to create a usercfg file |
| 332 | #mkdir /data/data/media 0770 media media |
| 333 | |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 334 | #Create PERFD deamon related dirs |
| 335 | mkdir /data/vendor/perfd 0770 root system |
| 336 | chmod 2770 /data/vendor/perfd |
| 337 | rm /data/vendor/perfd/default_values |
| 338 | |
| 339 | mkdir /data/vendor/secure_element 0777 system system |
| 340 | |
| 341 | #Create IOP deamon related dirs |
| 342 | mkdir /data/vendor/iop 0700 root system |
| 343 | |
| 344 | # Mark the copy complete flag to not completed |
| 345 | write /data/vendor/radio/copy_complete 0 |
| 346 | chown radio radio /data/vendor/radio/copy_complete |
| 347 | chmod 0660 /data/vendor/radio/copy_complete |
| 348 | |
| 349 | # copy prebuilt qcril.db files always |
| 350 | copy /vendor/radio/qcril_database/qcril.db /data/vendor/radio/qcril_prebuilt.db |
| 351 | chown radio radio /data/vendor/radio/qcril_prebuilt.db |
| 352 | chmod 0660 /data/vendor/radio/qcril_prebuilt.db |
| 353 | copy /vendor/radio/qcril_database/qcrilNr.db /data/vendor/radio/qcrilNr_prebuilt.db |
| 354 | copy /vendor/etc/qcril_database/qcrilNr.db /data/vendor/radio/qcrilNr_prebuilt.db |
| 355 | chown radio radio /data/vendor/radio/qcrilNr_prebuilt.db |
| 356 | chmod 0660 /data/vendor/radio/qcrilNr_prebuilt.db |
| 357 | |
| 358 | # File flags for prebuilt ril db file |
| 359 | write /data/vendor/radio/prebuilt_db_support 1 |
| 360 | chown radio radio /data/vendor/radio/prebuilt_db_support |
| 361 | chmod 0400 /data/vendor/radio/prebuilt_db_support |
| 362 | write /data/vendor/radio/db_check_done 0 |
| 363 | chown radio radio /data/vendor/radio/db_check_done |
| 364 | chmod 0660 /data/vendor/radio/db_check_done |
| 365 | |
| 366 | # qti-logkit data |
| 367 | mkdir /data/vendor/qti-logkit/ 0771 system system |
| 368 | mkdir /data/vendor/qti-logkit/shared-privileged/ 2770 system system |
| 369 | mkdir /data/vendor/qti-logkit/shared-public/ 2770 system diag |
| 370 | mkdir /data/vendor/qti-logkit/socket-privileged/ 2770 system system |
| 371 | mkdir /data/vendor/qti-logkit/socket-public/ 2750 system diag |
| 372 | mkdir /data/vendor/qti-logkit/logdata/ 2750 system shell |
| 373 | |
| 374 | #Create SWAP related dirs |
| 375 | mkdir /data/vendor/swap 0770 root system |
| 376 | chmod 2770 /data/vendor/swap |
| 377 | |
| 378 | # set aggressive read ahead for dm-0 and dm-1 during boot up |
| 379 | write /sys/block/dm-0/queue/read_ahead_kb 2048 |
| 380 | write /sys/block/dm-1/queue/read_ahead_kb 2048 |
| 381 | write /sys/block/dm-2/queue/read_ahead_kb 2048 |
| 382 | |
| 383 | # Create vpp directory |
| 384 | mkdir /data/vendor/vpp 0770 media media |
| 385 | |
| 386 | #Create dir for TUI |
| 387 | mkdir /data/vendor/tui 0700 system drmrpc |
| 388 | |
| 389 | service nqnfcinfo /system/vendor/bin/nqnfcinfo |
| 390 | class late_start |
| 391 | group nfc |
| 392 | user system |
| 393 | oneshot |
| 394 | |
| 395 | service iop /system/vendor/bin/iop |
| 396 | class main |
| 397 | user root |
| 398 | group root |
| 399 | disabled |
| 400 | socket iop seqpacket 0666 root system |
| 401 | |
| 402 | service qcomsysd /system/vendor/bin/qcom-system-daemon |
| 403 | class main |
| 404 | user root |
| 405 | group root diag oem_2901 |
| 406 | disabled |
| 407 | |
| 408 | on property:persist.vendor.qcomsysd.enabled=1 |
| 409 | enable qcomsysd |
| 410 | |
| 411 | on property:persist.vendor.qcomsysd.enabled=0 |
| 412 | stop qcomsysd |
| 413 | |
| 414 | service vendor.ssr_setup /system/vendor/bin/ssr_setup |
| 415 | oneshot |
| 416 | disabled |
| 417 | |
| 418 | service vendor.ss_ramdump /system/vendor/bin/subsystem_ramdump |
| 419 | class main |
| 420 | user system |
| 421 | group system |
| 422 | ioprio rt 4 |
| 423 | disabled |
| 424 | |
| 425 | on property:ro.vendor.iocgrp.config=1 |
| 426 | mkdir /dev/blkio |
| 427 | mount cgroup none /dev/blkio blkio |
| 428 | chown system system /dev/blkio |
| 429 | chown system system /dev/blkio/tasks |
| 430 | chmod 0664 /dev/blkio/tasks |
| 431 | mkdir /dev/blkio/bg 0755 system system |
| 432 | chown system system /dev/blkio/bg/tasks |
| 433 | chmod 0664 /dev/blkio/bg/tasks |
| 434 | write /dev/blkio/blkio.weight 1000 |
| 435 | write /dev/blkio/bg/blkio.weight 100 |
| 436 | |
| 437 | on property:persist.sys.ssr.enable_debug=* |
| 438 | write /sys/module/subsystem_restart/parameters/enable_debug ${persist.sys.ssr.enable_debug} |
| 439 | |
| 440 | on property:persist.sys.mba_boot_timeout=* |
| 441 | write /sys/module/pil_msa/parameters/pbl_mba_boot_timeout_ms ${persist.sys.mba_boot_timeout} |
| 442 | |
| 443 | on property:persist.sys.modem_auth_timeout=* |
| 444 | write /sys/module/pil_msa/parameters/modem_auth_timeout_ms ${persist.sys.modem_auth_timeout} |
| 445 | |
| 446 | on property:persist.sys.pil_proxy_timeout=* |
| 447 | write /sys/module/peripheral_loader/parameters/proxy_timeout_ms ${persist.sys.pil_proxy_timeout} |
| 448 | |
| 449 | on property:persist.vendor.ssr.restart_level=* |
| 450 | start vendor.ssr_setup |
| 451 | |
| 452 | on property:persist.vendor.ssr.enable_ramdumps=1 |
| 453 | write /sys/module/subsystem_restart/parameters/enable_ramdumps 1 |
| 454 | mkdir /data/vendor/ramdump_ssr 770 system system |
| 455 | start vendor.ss_ramdump |
| 456 | |
| 457 | on property:persist.vendor.ssr.enable_ramdumps=0 |
| 458 | write /sys/module/subsystem_restart/parameters/enable_ramdumps 0 |
| 459 | |
| 460 | on property:persist.vendor.sys.rawdump_copy=1 |
| 461 | write /sys/kernel/dload/emmc_dload 1 |
| 462 | |
| 463 | on property:persist.vendor.sys.rawdump_copy=0 |
| 464 | write /sys/kernel/dload/emmc_dload 0 |
| 465 | |
| 466 | on property:sys.boot_completed=1 |
| 467 | write /dev/kmsg "Boot completed " |
| 468 | #Enable UFS clock scaling back |
| 469 | write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 1 |
| 470 | #Reset read ahead for dm-0 and dm-1 to 512kb |
| 471 | write /sys/block/dm-0/queue/read_ahead_kb 512 |
| 472 | write /sys/block/dm-1/queue/read_ahead_kb 512 |
| 473 | #WDSP FW boot sysfs node used by STHAL |
| 474 | chown media audio /sys/kernel/wdsp0/boot |
| 475 | chown media audio /sys/kernel/wcd_cpe0/fw_name |
| 476 | #Reinit lmkd to reconfigure lmkd properties |
| 477 | setprop lmkd.reinit 1 |
| 478 | |
| 479 | on property:persist.vendor.radio.atfwd.start=false |
| 480 | stop vendor.atfwd |
| 481 | |
| 482 | on property:vendor.radio.atfwd.start=false |
| 483 | stop vendor.atfwd |
| 484 | |
| 485 | # corefile limit |
| 486 | on property:persist.debug.trace=1 |
| 487 | mkdir /data/core 0777 root root |
| 488 | write /proc/sys/kernel/core_pattern "/data/core/%E.%p.%e" |
| 489 | |
| 490 | on property:vendor.media.target.version=* |
| 491 | setprop vendor.sys.media.target.version ${vendor.media.target.version} |
| 492 | |
| 493 | on property:vendor.netflix.bsp_rev=* |
| 494 | setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev} |
| 495 | |
| 496 | on property:vendor.media.target_variant=* |
| 497 | setprop ro.media.xml_variant.codecs ${vendor.media.target_variant} |
| 498 | setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant} |
| 499 | |
| 500 | service qcom-c_core-sh /vendor/bin/init.qcom.class_core.sh |
| 501 | class core |
| 502 | user root |
| 503 | oneshot |
| 504 | |
| 505 | service qcom-c_main-sh /vendor/bin/init.class_main.sh |
| 506 | class main |
| 507 | user root |
| 508 | group root system |
| 509 | oneshot |
| 510 | |
| 511 | on property:vold.decrypt=trigger_restart_framework |
| 512 | start qcom-c_main-sh |
| 513 | start wcnss-service |
| 514 | |
| 515 | service vendor.qrtr-ns /vendor/bin/qrtr-ns -f |
| 516 | class core |
| 517 | user vendor_qrtr |
| 518 | group vendor_qrtr |
| 519 | capabilities NET_BIND_SERVICE |
| 520 | |
| 521 | service irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config" |
| 522 | class core |
| 523 | user root |
| 524 | oneshot |
| 525 | |
| 526 | service qmiproxy /system/bin/qmiproxy |
| 527 | class main |
| 528 | user radio |
| 529 | group radio diag |
| 530 | disabled |
| 531 | |
| 532 | service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ |
| 533 | -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 -dd \ |
| 534 | -g@android:vendor_wpa_wlan0 |
| 535 | # we will start as root and wpa_supplicant will switch to user wifi |
| 536 | # after setting up the capabilities required for WEXT |
| 537 | # user wifi |
| 538 | # group wifi inet keystore |
| 539 | interface android.hardware.wifi.supplicant@1.0::ISupplicant default |
| 540 | interface android.hardware.wifi.supplicant@1.1::ISupplicant default |
| 541 | interface android.hardware.wifi.supplicant@1.2::ISupplicant default |
| 542 | interface android.hardware.wifi.supplicant@1.3::ISupplicant default |
| 543 | interface vendor.qti.hardware.wifi.supplicant@2.0::ISupplicantVendor default |
| 544 | interface vendor.qti.hardware.wifi.supplicant@2.1::ISupplicantVendor default |
| 545 | interface vendor.qti.hardware.wifi.supplicant@2.2::ISupplicantVendor default |
| 546 | class main |
| 547 | socket vendor_wpa_wlan0 dgram 660 wifi wifi |
| 548 | disabled |
| 549 | oneshot |
| 550 | |
| 551 | service vendor.wigig_supplicant /vendor/bin/hw/wpa_supplicant \ |
| 552 | -iwigig0 -Dnl80211 -c/data/vendor/wifi/wigig_supplicant.conf \ |
| 553 | -m/data/vendor/wifi/wigig_p2p_supplicant.conf \ |
| 554 | -O/data/vendor/wifi/wigig_sockets -dd \ |
| 555 | -e/data/vendor/wifi/wigig_entropy.bin -g@android:wigig/wpa_wigig0 \ |
| 556 | -S wigigsvc |
| 557 | # we will start as root and wpa_supplicant will switch to user wifi |
| 558 | # after setting up the capabilities required for WEXT |
| 559 | # user wifi |
| 560 | # group wifi inet keystore |
| 561 | class main |
| 562 | socket wigig/wpa_wigig0 dgram 660 wifi wifi |
| 563 | disabled |
| 564 | oneshot |
| 565 | |
| 566 | # Data Migration |
| 567 | service vendor.move_wifi_data /system/bin/move_wifi_data.sh |
| 568 | class main |
| 569 | user wifi |
| 570 | group wifi |
| 571 | disabled |
| 572 | oneshot |
| 573 | |
| 574 | service wigignpt /vendor/bin/wigignpt |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 575 | class hal |
| 576 | socket wigig/wigignpt stream 660 system wifi |
| 577 | user system |
| 578 | group wifi |
| 579 | capabilities NET_ADMIN |
| 580 | disabled |
| 581 | |
| 582 | on property:persist.vendor.wigig.npt.enable=1 |
| 583 | start wigignpt |
| 584 | |
| 585 | service vendor.sensingdaemon /vendor/bin/sensingdaemon |
| 586 | class hal |
| 587 | socket wigig/sensingdaemon stream 660 system wifi |
| 588 | user system |
| 589 | group wifi |
| 590 | disabled |
| 591 | |
| 592 | service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG |
| 593 | class late_start |
| 594 | disabled |
| 595 | oneshot |
| 596 | |
| 597 | service dhcpcd_bond0 /system/bin/dhcpcd -ABKLG |
| 598 | class late_start |
| 599 | disabled |
| 600 | oneshot |
| 601 | |
| 602 | service dhcpcd_p2p /system/bin/dhcpcd -ABKLG |
| 603 | class late_start |
| 604 | disabled |
| 605 | oneshot |
| 606 | |
| 607 | service dhcpcd_wigig0 /system/bin/dhcpcd -ABKLG |
| 608 | class late_start |
| 609 | disabled |
| 610 | oneshot |
| 611 | |
| 612 | service iprenew_wlan0 /system/bin/dhcpcd -n |
| 613 | class late_start |
| 614 | disabled |
| 615 | oneshot |
| 616 | |
| 617 | service iprenew_bond0 /system/bin/dhcpcd -n |
| 618 | class late_start |
| 619 | disabled |
| 620 | oneshot |
| 621 | |
| 622 | service iprenew_p2p /system/bin/dhcpcd -n |
| 623 | class late_start |
| 624 | disabled |
| 625 | oneshot |
| 626 | |
| 627 | service iprenew_wigig0 /system/bin/dhcpcd -n |
| 628 | class late_start |
| 629 | disabled |
| 630 | oneshot |
| 631 | |
| 632 | service ptt_socket_app /system/vendor/bin/ptt_socket_app -d |
| 633 | class main |
| 634 | user wifi |
| 635 | group wifi system inet net_admin |
| 636 | capabilities NET_ADMIN |
| 637 | oneshot |
| 638 | |
| 639 | service ptt_ffbm /system/vendor/bin/ptt_socket_app -f -d |
| 640 | user root |
| 641 | group root |
| 642 | disabled |
| 643 | oneshot |
| 644 | |
| 645 | service wifi_ftmd /system/vendor/bin/wifi_ftmd |
| 646 | user system |
| 647 | group system inet net_admin |
| 648 | socket wififtmd_server dgram 0660 system system |
| 649 | disabled |
| 650 | oneshot |
| 651 | |
| 652 | on property:vendor.wifi.ftmd.load=true |
| 653 | insmod /system/lib/modules/pronto/pronto_wlan.ko con_mode=5 |
| 654 | |
| 655 | service cnss-daemon /system/vendor/bin/cnss-daemon -n -l |
| 656 | class late_start |
| 657 | user system |
| 658 | group system inet net_admin wifi |
| 659 | capabilities NET_ADMIN |
| 660 | |
| 661 | on property:sys.shutdown.requested=* |
| 662 | write /sys/kernel/shutdown_wlan/shutdown 1 |
| 663 | stop cnss-daemon |
| 664 | |
| 665 | service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG |
| 666 | class late_start |
| 667 | disabled |
| 668 | oneshot |
| 669 | |
| 670 | service iprenew_bt-pan /system/bin/dhcpcd -n |
| 671 | class late_start |
| 672 | disabled |
| 673 | oneshot |
| 674 | |
| 675 | service ssgqmigd /vendor/bin/ssgqmigd |
| 676 | class late_start |
| 677 | user radio |
| 678 | group radio gps system |
| 679 | socket ssgqmig seqpacket 0660 radio inet |
| 680 | |
| 681 | service mlid /vendor/bin/mlid |
| 682 | class late_start |
| 683 | user gps |
| 684 | group gps |
| 685 | socket mlid stream 0666 gps gps |
| 686 | |
| 687 | service loc_launcher /system/vendor/bin/loc_launcher |
| 688 | class late_start |
| 689 | user gps |
| 690 | group gps |
| 691 | |
| 692 | service qcom-sh /vendor/bin/init.qcom.sh |
| 693 | class late_start |
| 694 | user root |
| 695 | group root system radio |
| 696 | oneshot |
| 697 | # Remove since is deprecated but throws AVC denial. |
| 698 | # service crashdata-sh /vendor/bin/init.qcom.crashdata.sh |
| 699 | # class late_start |
| 700 | # user root |
| 701 | # oneshot |
| 702 | |
| 703 | service qcom-post-boot /vendor/bin/init.qcom.post_boot.sh |
| 704 | class late_start |
| 705 | user root |
| 706 | group root system wakelock graphics |
| 707 | disabled |
| 708 | oneshot |
| 709 | |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 710 | on property:sys.boot_completed=1 |
| 711 | start qcom-post-boot |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 712 | |
| 713 | on property:ro.vendor.ril.mbn_copy_completed=1 |
| 714 | write /data/vendor/radio/copy_complete 1 |
| 715 | |
| 716 | service qvop-daemon /vendor/bin/qvop-daemon |
| 717 | class late_start |
| 718 | user system |
| 719 | group system drmrpc |
| 720 | |
| 721 | service vendor.atfwd /vendor/bin/ATFWD-daemon |
| 722 | class late_start |
| 723 | user system |
| 724 | group system radio |
| 725 | |
| 726 | service hostapd_fst /vendor/bin/hw/hostapd -dd -g /data/vendor/wifi/hostapd/global |
| 727 | class main |
| 728 | capabilities NET_ADMIN NET_RAW |
| 729 | user wifi |
| 730 | group wifi |
| 731 | disabled |
| 732 | oneshot |
| 733 | |
| 734 | service battery_monitor /system/bin/battery_monitor |
| 735 | user system |
| 736 | group system |
| 737 | disabled |
| 738 | |
| 739 | service vendor.ril-daemon2 /vendor/bin/hw/rild -c 2 |
| 740 | class main |
| 741 | user radio |
| 742 | disabled |
| 743 | group radio cache inet misc audio sdcard_r sdcard_rw diag oem_2901 log |
| 744 | capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW |
| 745 | |
| 746 | service vendor.ril-daemon3 /vendor/bin/hw/rild -c 3 |
| 747 | class main |
| 748 | user radio |
| 749 | disabled |
| 750 | group radio cache inet misc audio sdcard_r sdcard_rw diag oem_2901 log |
| 751 | capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW |
| 752 | |
| 753 | service profiler_daemon /system/bin/profiler_daemon |
| 754 | class late_start |
| 755 | user root |
| 756 | group root |
| 757 | disabled |
| 758 | |
| 759 | service charger /system/bin/charger |
| 760 | class charger |
| 761 | user system |
| 762 | group system graphics input |
| 763 | capabilities SYS_BOOT |
| 764 | seclabel u:r:charger:s0 |
| 765 | |
| 766 | service vendor.ssr_diag /system/vendor/bin/ssr_diag |
| 767 | class late_start |
| 768 | user system |
| 769 | group system |
| 770 | disabled |
| 771 | |
| 772 | service diag_mdlog_start /system/vendor/bin/diag_mdlog |
| 773 | class late_start |
| 774 | user shell |
| 775 | group system oem_2901 sdcard_rw sdcard_r media_rw |
| 776 | disabled |
| 777 | oneshot |
| 778 | |
| 779 | service diag_mdlog_stop /system/vendor/bin/diag_mdlog -k |
| 780 | class late_start |
| 781 | user shell |
| 782 | group system oem_2901 sdcard_rw sdcard_r media_rw |
| 783 | disabled |
| 784 | oneshot |
| 785 | |
| 786 | service qlogd /system/xbin/qlogd |
| 787 | socket qlogd stream 0662 system system |
| 788 | class main |
| 789 | disabled |
| 790 | on property:persist.sys.qlogd=1 |
| 791 | start qlogd |
| 792 | on property:persist.sys.qlogd=0 |
| 793 | stop qlogd |
| 794 | |
| 795 | service vm_bms /vendor/bin/vm_bms |
| 796 | class main |
| 797 | user root |
| 798 | group system wakelock |
| 799 | |
| 800 | service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf |
| 801 | class core |
| 802 | user root |
| 803 | group root |
| 804 | disabled |
| 805 | |
| 806 | service vendor.msm_irqbal_lb /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance_little_big.conf |
| 807 | class core |
| 808 | user root |
| 809 | group root |
| 810 | disabled |
| 811 | |
| 812 | service vendor.msm_irqbl_sdm630 /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance_sdm630.conf |
| 813 | class core |
| 814 | user root |
| 815 | group root |
| 816 | disabled |
| 817 | |
| 818 | # service for USERDEBUG |
| 819 | service vendor.LKCore-dbg /vendor/bin/LKCore |
| 820 | class late_start |
| 821 | oneshot |
| 822 | disabled |
| 823 | user root |
| 824 | group root system log diag net_raw |
| 825 | |
| 826 | # service for USER |
| 827 | service vendor.LKCore-rel /vendor/bin/LKCore |
| 828 | class late_start |
| 829 | oneshot |
| 830 | disabled |
| 831 | user system |
| 832 | group system log diag |
| 833 | |
| 834 | service qseeproxydaemon /system/vendor/bin/qseeproxydaemon |
| 835 | class late_start |
| 836 | user system |
| 837 | group system |
| 838 | |
| 839 | service esepmdaemon /system/vendor/bin/esepmdaemon |
| 840 | class core |
| 841 | user system |
| 842 | group nfc |
| 843 | |
| 844 | on charger |
| 845 | setprop persist.sys.usb.config mass_storage |
| 846 | start qcom-post-boot |
| 847 | |
| 848 | #add poweroffhandler |
| 849 | service poweroffhandler /system/vendor/bin/poweroffhandler |
| 850 | class core |
| 851 | user media |
| 852 | group graphics audio |
| 853 | disabled |
| 854 | oneshot |
| 855 | |
| 856 | service time_daemon /vendor/bin/time_daemon |
| 857 | class main |
| 858 | user system |
| 859 | group system |
| 860 | capabilities SYS_TIME |
| 861 | |
| 862 | # Set vendor-ril lib path based on Meta version |
| 863 | on property:vendor.rild.libpath=* |
| 864 | setprop rild.libpath ${vendor.rild.libpath} |
| 865 | |
| 866 | on property:ro.vendor.radio.noril=* |
| 867 | setprop ro.radio.noril ${ro.vendor.radio.noril} |
| 868 | |
| 869 | service vendor.power_off_alarm /vendor/bin/power_off_alarm |
| 870 | class core |
| 871 | group system |
| 872 | disabled |
| 873 | oneshot |
| 874 | |
| 875 | service vendor.hbtp /vendor/bin/hbtp_daemon |
| 876 | class main |
| 877 | user system |
| 878 | group system |
| 879 | capabilities SYS_NICE |
| 880 | disabled |
| 881 | |
| 882 | service chre /vendor/bin/chre |
| 883 | class late_start |
| 884 | user system |
| 885 | group system |
| 886 | socket chre seqpacket 0660 root system |
| 887 | shutdown critical |
| 888 | |
| 889 | on property:vendor.chre.enabled=0 |
| 890 | stop chre |
| 891 | |
| 892 | service bugreport /system/bin/dumpstate -d -p -B -z -o /data/user_de/0/com.android.shell/files/bugreports/bugreport |
| 893 | class main |
| 894 | disabled |
| 895 | oneshot |
| 896 | keycodes 114 115 116 |
| 897 | |
| 898 | #Set GPU Opengles version |
| 899 | on property:vendor.opengles.version=* |
| 900 | setprop ro.opengles.version ${vendor.opengles.version} |
| 901 | |
| 902 | #Set gpu available frequencies property |
| 903 | on property:vendor.gpu.available_frequencies=* |
| 904 | setprop ro.vendor.gpu.available_frequencies ${vendor.gpu.available_frequencies} |
| 905 | |
| 906 | service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service |
| 907 | override |
| 908 | class hal |
| 909 | user audioserver |
Michael Bestas | 0a0f54b | 2021-01-01 02:16:24 +0200 | [diff] [blame^] | 910 | # media gid needed for /data/misc/media (tee) |
merothh | 32be688 | 2022-01-03 01:54:57 +0530 | [diff] [blame] | 911 | group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock |
| 912 | capabilities BLOCK_SUSPEND |
| 913 | ioprio rt 4 |
| 914 | writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks |
| 915 | onrestart restart audioserver |