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