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