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