Init sm8650-common vendor

This commit is contained in:
SaschaNes
2025-08-03 10:24:58 +02:00
commit 62d4151397
580 changed files with 29848 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
service vendor.bluetooth-1-1-qti /vendor/bin/hw/android.hardware.bluetooth@1.1-service-qti
class hal
user bluetooth
group bluetooth system wakelock oem_2901 net_raw oem_2912
capabilities BLOCK_SUSPEND NET_ADMIN

View File

@@ -0,0 +1,7 @@
service vendor.gatekeeper-default /vendor/bin/hw/android.hardware.gatekeeper-service
class hal
user system
group system 5678
on post-fs-data
mkdir /data/vendor/gatekeeper 0770 system system

View File

@@ -0,0 +1,6 @@
service gnss_service /vendor/bin/hw/android.hardware.gnss-aidl-service-qti
interface aidl android.hardware.gnss.IGnss/default
interface aidl vendor.qti.gnss.ILocAidlGnss/default
class hal
user gps
group system gps radio vendor_qti_diag vendor_ssgtzd

View File

@@ -0,0 +1,13 @@
service vendor.keymint-default /vendor/bin/hw/android.hardware.security.keymint-service-qti
class early_hal
user system
group system drmrpc
on post-fs
mkdir /mnt/vendor/efs/DAK 0775 system system
restorecon --recursive --force /mnt/vendor/efs/DAK
chown system system /mnt/vendor/efs/DAK/gakkeybox
chmod 0644 /mnt/vendor/efs/DAK/gakkeybox
on post-fs-data
mkdir /data/vendor/keymaster 0775 system system

View File

@@ -0,0 +1,11 @@
# Copyright (c) 2021 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
on init && property:ro.boot.product.vendor.sku=pineapple
start vendor.keymint-spu-qti
service vendor.keymint-spu-qti /vendor/bin/hw/android.hardware.security.keymint-service-spu-qti
class early_hal
user system
group system drmrpc

13
proprietary/vendor/etc/init/dataadpl.rc vendored Normal file
View File

@@ -0,0 +1,13 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# Create the directories used by DPM subsystem
#start dataadpl service
service vendor.dataadpl /system/vendor/bin/adpl
class main
user radio
socket adpl_cmd_uds_file dgram 660 radio radio
group radio oem_2901 diag usb inet
disabled

19
proprietary/vendor/etc/init/dataqti.rc vendored Normal file
View File

@@ -0,0 +1,19 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# Create the directories used by DPM subsystem
# msm specific files that need to be created on /data
on post-fs-data
#Create DATAQTI dir for logs
mkdir /data/vendor/dataqti 0770 radio radio
chmod 0770 /data/vendor/dataqti
#start dataqti service
service vendor.dataqti /system/vendor/bin/qti
class main
user radio
socket qti_dpm_uds_file dgram 660 radio radio
group radio oem_2901 diag usb inet
disabled

15
proprietary/vendor/etc/init/hermesd.rc vendored Normal file
View File

@@ -0,0 +1,15 @@
service hermesd /vendor/bin/hermesd /data/vendor/gatekeeper
class hal
user system
socket hermes_secnvm stream 660 system system
group system 5678
capabilities WAKE_ALARM
on early-fs
chown system system /dev/k250a
chmod 0660 /dev/k250a
chown system system /dev/ssp
chmod 0660 /dev/ssp
on post-fs-data
mkdir /data/vendor/gatekeeper 0770 system system

View File

@@ -0,0 +1,181 @@
#=============================================================================
# Copyright (c) 2019-2023 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2009-2012, 2014-2019, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#=============================================================================
import /vendor/etc/init/hw/init.qti.kernel.test.rc
on early-init
# Set the console loglevel to < KERN_WARN
# Set the default message loglevel to KERN_INFO
write /proc/sys/kernel/printk "4 6 1 7"
exec_start gki.modprobe
# wait for system modules to be loaded first before loading vendor modules
wait_for_prop odm.system.all.modules.ready 1
start vendor.modprobe
# Mount tracefs in /sys/kernel/tracing as CONFIG_DEBUG_FS might be
# disabled and /sys/kernel/debug/tracing might not be available
mount tracefs tracefs /sys/kernel/tracing
chmod 0755 /sys/kernel/tracing
chown root system /dev/kmsg
chmod 0620 /dev/kmsg
write /proc/sys/kernel/sched_boost 1
write /proc/sys/kernel/firmware_config/force_sysfs_fallback 1
on post-fs
wait_for_prop vendor.all.modules.ready 1
# Create cgroup mount point for memory
mkdir /sys/fs/cgroup/memory/bg 0750 root system
write /sys/fs/cgroup/memory/bg/memory.swappiness 140
write /sys/fs/cgroup/memory/bg/memory.move_charge_at_immigrate 1
chown root system /sys/fs/cgroup/memory/bg/tasks
chmod 0660 /sys/fs/cgroup/memory/bg/tasks
# update scheduler tunables
write /dev/cpuctl/foreground/cpu.uclamp.sched_boost_no_override 1
write /dev/cpuctl/top-app/cpu.uclamp.sched_boost_no_override 1
write /dev/cpuctl/background/cpu.uclamp.colocate 0
write /dev/cpuctl/foreground/cpu.uclamp.colocate 0
write /dev/cpuctl/top-app/cpu.uclamp.colocate 1
# set aggressive read ahead for dm-0 and dm-1 during boot up
write /sys/block/dm-0/queue/read_ahead_kb 2048
write /sys/block/dm-1/queue/read_ahead_kb 2048
write /sys/block/dm-2/queue/read_ahead_kb 2048
on early-boot
# Allow subsystem (modem etc) debugging
exec_background u:r:vendor_qti_init_shell_bg:s0 -- /vendor/bin/init.qti.write.sh /sys/kernel/boot_adsp/boot 1
exec_background u:r:vendor_qti_init_shell_bg:s0 -- /vendor/bin/init.qti.write.sh /sys/kernel/boot_cdsp/boot 1
exec_background u:r:vendor_qti_init_shell_bg:s0 -- /vendor/bin/init.qti.write.sh /sys/devices/virtual/cvp/cvp/boot 1
on boot
# Allow access to dload sysfs node
chown root system /sys/kernel/dload/emmc_dload
chmod 0660 /sys/kernel/dload/emmc_dload
chown root system /dev/block/bootdevice/by-name/ramdump
chmod 0660 /dev/block/bootdevice/by-name/ramdump
chown root system /sys/kernel/dload/dload_mode
chmod 0660 /sys/kernel/dload/dload_mode
# set the io-scheduler to bfq on all eMMC and SD devices
write /sys/class/block/mmcblk0/queue/scheduler bfq
write /sys/class/block/mmcblk1/queue/scheduler bfq
# update io-scheduler tunables
write /sys/class/block/mmcblk0/queue/iosched/slice_idle 0
write /sys/class/block/mmcblk1/queue/iosched/slice_idle 0
# Allow access to memory hotplug device attributes
chown system system /sys/kernel/mem-offline/anon_migrate
on post-fs-data
# Create directory used for dump collection
mkdir /data/vendor/ssrdump 0770 root system
on property:persist.sys.ssr.enable_debug=*
write /sys/module/subsys_pil_tz/parameters/enable_debug ${persist.sys.ssr.enable_debug}
on property:persist.sys.mba_boot_timeout=*
write /sys/module/pil_msa/parameters/pbl_mba_boot_timeout_ms ${persist.sys.mba_boot_timeout}
on property:persist.sys.modem_auth_timeout=*
write /sys/module/pil_msa/parameters/modem_auth_timeout_ms ${persist.sys.modem_auth_timeout}
on property:persist.sys.pil_proxy_timeout=*
write /sys/module/peripheral_loader/parameters/proxy_timeout_ms ${persist.sys.pil_proxy_timeout}
on property:persist.vendor.ssr.enable_ramdumps=1
write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
on property:persist.vendor.ssr.enable_ramdumps=0
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
on property:persist.vendor.sys.rawdump_copy=1
write /sys/kernel/dload/emmc_dload 1
on property:persist.vendor.sys.rawdump_copy=0
write /sys/kernel/dload/emmc_dload 0
service kernel-boot /vendor/bin/sh /vendor/bin/init.qti.kernel.sh
class core
user root
group root
disabled
oneshot
service kernel-post-boot /vendor/bin/sh /vendor/bin/init.kernel.post_boot.sh
class core
user root
group root system wakelock graphics
disabled
oneshot
on property:sys.boot_completed=1
write /dev/kmsg "Boot completed "
#Reset read ahead for dm-0, dm-1 and dm-2 to 512kb
write /sys/block/dm-0/queue/read_ahead_kb 512
write /sys/block/dm-1/queue/read_ahead_kb 512
write /sys/block/dm-2/queue/read_ahead_kb 512
write /proc/sys/vm/page-cluster 0
start kernel-boot
start kernel-post-boot
on charger
start kernel-post-boot
service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf
class core
user root
group root
disabled
service gki.modprobe /vendor/bin/system_dlkm_modprobe.sh
class main
user root
group root system
disabled
stdio_to_kmsg
seclabel u:r:vendor_modprobe:s0
oneshot
service vendor.modprobe /vendor/bin/vendor_modprobe.sh
class main
user root
group root system
disabled
stdio_to_kmsg
seclabel u:r:vendor_modprobe:s0
oneshot

View File

@@ -0,0 +1,177 @@
# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
on post-fs-data
# Cirrus Amp Calibration
chown system audio /sys/class/cirrus/cirrus_cal/status
chown system audio /sys/class/cirrus/cirrus_cal/rdc
chown system audio /sys/class/cirrus/cirrus_cal/rdc_r
chown system audio /sys/class/cirrus/cirrus_cal/rdc_b
chown system audio /sys/class/cirrus/cirrus_cal/rdc_br
chown system audio /sys/class/cirrus/cirrus_cal/temp
chown system audio /sys/class/cirrus/cirrus_cal/temp_r
chown system audio /sys/class/cirrus/cirrus_cal/temp_b
chown system audio /sys/class/cirrus/cirrus_cal/temp_br
chown system audio /sys/class/cirrus/cirrus_cal/v_status
chown system audio /sys/class/cirrus/cirrus_cal/v_validation
chown system audio /sys/class/cirrus/cirrus_cal/v_validation_r
chown system audio /sys/class/cirrus/cirrus_cal/v_validation_b
chown system audio /sys/class/cirrus/cirrus_cal/v_validation_br
chown system audio /sys/class/cirrus/cirrus_cal/vsc
chown system audio /sys/class/cirrus/cirrus_cal/vsc_r
chown system audio /sys/class/cirrus/cirrus_cal/vsc_b
chown system audio /sys/class/cirrus/cirrus_cal/vsc_br
chown system audio /sys/class/cirrus/cirrus_cal/isc
chown system audio /sys/class/cirrus/cirrus_cal/isc_r
chown system audio /sys/class/cirrus/cirrus_cal/isc_b
chown system audio /sys/class/cirrus/cirrus_cal/isc_br
chown system audio /sys/class/cirrus/cirrus_cal/reinit
mkdir /efs/cirrus 0770 audioserver audio
chown audioserver audio /efs/cirrus/temp_cal
chown audioserver audio /efs/cirrus/rdc_cal
chown audioserver audio /efs/cirrus/rdc_cal_r
chown audioserver audio /efs/cirrus/rdc_cal_b
chown audioserver audio /efs/cirrus/rdc_cal_br
chown audioserver audio /efs/cirrus/vsc_cal
chown audioserver audio /efs/cirrus/vsc_cal_r
chown audioserver audio /efs/cirrus/vsc_cal_b
chown audioserver audio /efs/cirrus/vsc_cal_br
chown audioserver audio /efs/cirrus/isc_cal
chown audioserver audio /efs/cirrus/isc_cal_r
chown audioserver audio /efs/cirrus/isc_cal_b
chown audioserver audio /efs/cirrus/isc_cal_br
chmod 0660 /efs/cirrus/temp_cal
chmod 0660 /efs/cirrus/rdc_cal
chmod 0660 /efs/cirrus/rdc_cal_b
chmod 0660 /efs/cirrus/rdc_cal_r
chmod 0660 /efs/cirrus/rdc_cal_br
chmod 0660 /efs/cirrus/vsc_cal
chmod 0660 /efs/cirrus/vsc_cal_b
chmod 0660 /efs/cirrus/vsc_cal_r
chmod 0660 /efs/cirrus/vsc_cal_br
chmod 0660 /efs/cirrus/isc_cal
chmod 0660 /efs/cirrus/isc_cal_b
chmod 0660 /efs/cirrus/isc_cal_r
chmod 0660 /efs/cirrus/isc_cal_br
# Cirrus Amp power
chown system audio /sys/class/cirrus/cirrus_pwr/status
chown system audio /sys/class/cirrus/cirrus_pwr/value
chown system audio /sys/class/cirrus/cirrus_pwr/value_r
chown system audio /sys/class/cirrus/cirrus_pwr/value_b
chown system audio /sys/class/cirrus/cirrus_pwr/value_br
chown system audio /sys/class/cirrus/cirrus_pwr/spk_t
chown system audio /sys/class/cirrus/cirrus_pwr/spk_t_r
chown system audio /sys/class/cirrus/cirrus_pwr/spk_t_b
chown system audio /sys/class/cirrus/cirrus_pwr/spk_t_br
chown system audio /sys/class/cirrus/cirrus_pwr/env_temp
chown system audio /sys/class/cirrus/cirrus_pwr/env_temp_r
chown system audio /sys/class/cirrus/cirrus_pwr/env_temp_b
chown system audio /sys/class/cirrus/cirrus_pwr/env_temp_br
# Cirrus Amp Bigdata
chown system audio /sys/class/audio/amp/temperature_max_0
chown system audio /sys/class/audio/amp/temperature_keep_max_0
chown system audio /sys/class/audio/amp/temperature_overcount_0
chown system audio /sys/class/audio/amp/excursion_max_0
chown system audio /sys/class/audio/amp/excursion_overcount_0
chown system audio /sys/class/audio/amp/ready_0
chown system audio /sys/class/audio/amp/temperature_max_1
chown system audio /sys/class/audio/amp/temperature_keep_max_1
chown system audio /sys/class/audio/amp/temperature_overcount_1
chown system audio /sys/class/audio/amp/excursion_max_1
chown system audio /sys/class/audio/amp/excursion_overcount_1
chown system audio /sys/class/audio/amp/ready_1
chown system audio /sys/class/audio/amp/temperature_max_2
chown system audio /sys/class/audio/amp/temperature_keep_max_2
chown system audio /sys/class/audio/amp/temperature_overcount_2
chown system audio /sys/class/audio/amp/excursion_max_2
chown system audio /sys/class/audio/amp/excursion_overcount_2
chown system audio /sys/class/audio/amp/ready_2
chown system audio /sys/class/audio/amp/temperature_max_3
chown system audio /sys/class/audio/amp/temperature_keep_max_3
chown system audio /sys/class/audio/amp/temperature_overcount_3
chown system audio /sys/class/audio/amp/excursion_max_3
chown system audio /sys/class/audio/amp/excursion_overcount_3
chown system audio /sys/class/audio/amp/ready_3
# Goodix Amp Calibration/Validation
chown system system /sys/class/tfa/tfa_cal/status
chown system system /sys/class/tfa/tfa_cal/rdc
chown system system /sys/class/tfa/tfa_cal/rdc_r
chown system system /sys/class/tfa/tfa_cal/temp
chown system system /sys/class/tfa/tfa_cal/temp_r
chown system audio /sys/class/tfa/tfa_vval/status
chown system audio /sys/class/tfa/tfa_vval/status_r
chown system audio /sys/class/tfa/tfa_vval/validation
chown system system /sys/class/tfa/tfa_stc/power_state
chown system system /sys/class/tfa/tfa_stc/power_state_r
chown system system /sys/class/tfa/tfa_cal/ref_temp
chown audioserver audio /sys/class/tfa/tfa_cal/config
chmod 0660 /sys/class/tfa/tfa_cal/status
mkdir /efs/tfa_cal 0770 audioserver audio
chown audioserver audio /efs/tfa_cal/status
chown audioserver audio /efs/tfa_cal/rdc
chown audioserver audio /efs/tfa_cal/rdc_r
chown audioserver audio /efs/tfa_cal/temp
chown audioserver audio /efs/tfa_cal/temp_r
chmod 0660 /efs/tfa_cal/status
chmod 0660 /efs/tfa_cal/rdc
chmod 0660 /efs/tfa_cal/rdc_r
chmod 0660 /efs/tfa_cal/temp
chmod 0660 /efs/tfa_cal/temp_r
# TAS Amp
chown audioserver audio /sys/class/tas25xx_dev/cmd/temp
chown audioserver audio /sys/class/tas25xx_dev/cmd/drv_opmode
chown audioserver audio /sys/class/tas25xx_dev/cmd/iv_vbat
chown audioserver audio /sys/class/tas25xx_dev/cmd/calib
mkdir /efs/tas25xx 0770 audioserver audio
chown audioserver audio /efs/tas25xx/calibration
chown audioserver audio /efs/tas25xx/calib_re
chown audioserver audio /efs/tas25xx/amb_temp
chown audioserver audio /efs/tas25xx/calib_re_r
chown audioserver audio /efs/tas25xx/amb_temp_r
chmod 0660 /efs/tas25xx/calibration
chmod 0660 /efs/tas25xx/calib_re
chmod 0660 /efs/tas25xx/amb_temp
chmod 0660 /efs/tas25xx/calib_re_r
chmod 0660 /efs/tas25xx/amb_temp_r
# SSRM Amp temperature
chown system system /sys/class/audio/amp/surface_temperature_0
chown system system /sys/class/audio/amp/surface_temperature_1
# DSP Silent reset count
chown system audio /sys/class/audio/dsp/srcnt
chown system audio /sys/class/audio/dsp/srcnt_keep

View File

@@ -0,0 +1,20 @@
# Copyright (c) 2022-2023 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on post-fs-data
# create QDMA dropbox
mkdir /data/vendor/qcc 0770 system system
mkdir /data/vendor/qcc/shared 0770 system system
mkdir /data/vendor/qcc/shared/3 0770 system system
mkdir /data/vendor/qcc/shared/1501 0770 system system
mkdir /data/vendor/qcc/shared/1503 0770 system system
mkdir /data/vendor/qcc/shared/qmct 0770 system system
mkdir /dev/socket/qcc_trd 0770 system vendor_qtr
chmod 2770 /dev/socket/qcc_trd
service vendor.qcc-vendor /system/vendor/bin/qcc-vendor
class late_start
user system
group vendor_qtr readproc system radio vendor_rfs_shared sdcard_rw media_rw sdcard_r
interface aidl vendor.qti.qccvndhal_aidl

View File

@@ -0,0 +1,54 @@
#==============================================================================
# init.qti.media.rc
#
# Copyright (c) 2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2020, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#===============================================================================
service qti-media /vendor/bin/init.qti.media.sh
class main
user media
group media
disabled
oneshot
on early-init
setprop vendor.media.system.build_codename ${ro.build.version.release_or_codename}
start qti-media
on post-fs-data
setprop ro.media.xml_variant.codecs ${vendor.media.target_variant}
setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant}
on property:vendor.netflix.bsp_rev=*
setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev}
on property:vendor.mm.target.enable.qcom_parser=*
setprop vendor.mm.enable.qcom_parser ${vendor.mm.target.enable.qcom_parser}

View File

@@ -0,0 +1,13 @@
#! /vendor/etc/init
#=============================================================================
# Copyright (c) 2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#=============================================================================
on early-init
# Set ro.boot.product.vendor.sku to soc_name
exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qti.qcv.sh
setprop ro.boot.product.vendor.sku ${ro.vendor.qti.soc_name}
setprop ro.soc.model ${ro.vendor.qti.soc_model}
setprop ro.odm.build.media_performance_class ${ro.vendor.media_performance_class}

View File

@@ -0,0 +1,22 @@
on fs && property:ro.product.device=pineapple
mkdir /mnt/vendor/persist/spudc 0770 system system
mkdir /mnt/vendor/spunvm 0660 system system
on post-fs && property:ro.boot.product.vendor.sku=pineapple
mkdir /mnt/vendor/persist/iar_db 0770 system system
start vendor.spdaemon
start vendor.sec_nvm
service vendor.spdaemon /vendor/bin/spdaemon
class core
user system
group system
disabled
shutdown critical
service vendor.sec_nvm /vendor/bin/sec_nvm
class core
user system
group system
disabled

View File

@@ -0,0 +1,14 @@
#
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on post-fs-data && property:ro.crypto.state=encrypted && property:ro.crypto.type=file
start time_daemon
service time_daemon /vendor/bin/time_daemon
class main
user system
group system
capabilities SYS_TIME

View File

@@ -0,0 +1,14 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
# service can not be overwritten except SPRINT
# Thus, rilcarrier is imported before common rc, like init.rilchip.rc
on fs
copy /mnt/vendor/efs/factory.prop /efs/imei/factory.prop
chown root root /efs/imei/factory.prop
chmod 0600 /efs/imei/factory.prop

View File

@@ -0,0 +1,35 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
# service can not be overwritten except SPRINT
# Thus, rilcarrier is imported before common rc, like init.rilchip.rc
on post-fs-data
mkdir /data/vendor/secradio 0770 radio radio
on property:vts.native_server.on=*
setprop vendor.vts.native_server.on ${vts.native_server.on}
service network_config /vendor/bin/secril_config_svc NetworkConfig
user radio
group radio
oneshot
disabled
service sim_config /vendor/bin/secril_config_svc SimConfig
user radio
group radio
oneshot
disabled
on fs
chown radio radio /mnt/vendor/efs/factory.prop
chmod 0600 /mnt/vendor/efs/factory.prop
exec_start sim_config
on post-fs-data
exec_start network_config
setprop ro.telephony.default_network ${ro.vendor.radio.default_network}

View File

@@ -0,0 +1,50 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2009-2012, 2014-2019, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# # Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# # Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# # Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
on early-boot
chown system system /mnt/vendor/persist/sensors
chown system system /mnt/vendor/persist/sensors/sns.reg
chown system system /mnt/vendor/persist/sensors/sensors_list.txt
chown system system /mnt/vendor/persist/sensors/registry
chown system system /mnt/vendor/persist/sensors/registry/registry
chown system system /mnt/vendor/persist/sensors/registry/registry/sensors_registry
chown system system /mnt/vendor/persist/sensors/sensors_settings
chown system system /mnt/vendor/persist/sensors/registry/sns_reg_config
chown system system /mnt/vendor/persist/sensors/registry/sns_reg_version
chown system system /mnt/vendor/persist/sensors/registry/config
chmod 0664 /mnt/vendor/persist/sensors/sensors_settings
chown system system /sys/kernel/boot_adsp/ssr
on post-fs-data && property:ro.build.type=userdebug
#sensors log dir
mkdir /data/vendor/sensors 0777 system system
mkdir /data/vendor/sensors/scripts 0777 system system

View File

@@ -0,0 +1,54 @@
# Copyright (c) 2021-2022 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# # Copyright (c) 2009-2012, 2014-2021, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
service loc_launcher /vendor/bin/loc_launcher
class late_start
user gps
group gps
on post-fs-data
#Create directories for Location services
mkdir /data/vendor/location 0770 gps gps
mkdir /data/vendor/location/mq 0770 gps gps
mkdir /data/vendor/location/xtwifi 0770 gps gps
mkdir /data/vendor/location/hmac 0770 gps gps
mkdir /dev/socket/location 0770 gps gps
mkdir /dev/socket/location/mq 0770 gps gps
mkdir /dev/socket/location/xtra 0770 gps gps
mkdir /dev/socket/location/ehub 0770 gps gps
mkdir /dev/socket/location/dgnss 0770 gps gps
mkdir /dev/socket/qsap_location 0770 gps gps
mkdir /data/vendor/location-partner 0770 gps gps
mkdir /data/vendor/location-partner/dre 0770 gps gps
mkdir /data/vendor/location-partner/ppe 0770 gps gps

12
proprietary/vendor/etc/init/qdcmss.rc vendored Normal file
View File

@@ -0,0 +1,12 @@
service qdcmss /vendor/bin/qdcmss
class late_start
user system
group system graphics
socket qdcmsocket stream 0660 system adb
disabled
on property:vendor.display.qdcm_socket_service=1
start qdcmss
on property:vendor.display.qdcm_socket_service=0
stop qdcmss

13
proprietary/vendor/etc/init/qms.rc vendored Normal file
View File

@@ -0,0 +1,13 @@
on post-fs-data
mkdir /data/vendor/qms 0700 radio radio
mkdir /data/vendor/qms_logs 0700 radio radio
mkdir /data/vendor/qms_logs/main 0700 radio radio
mkdir /data/vendor/qms_logs/other 0700 radio radio
mkdir /data/vendor/qms_logs/config 0700 radio radio
service vendor.qms /vendor/bin/qms
class main
user radio
group radio wakelock wifi inet net_admin
capabilities BLOCK_SUSPEND NET_ADMIN

12
proprietary/vendor/etc/init/qseecomd.rc vendored Normal file
View File

@@ -0,0 +1,12 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
on init
start vendor.qseecomd
service vendor.qseecomd /vendor/bin/qseecomd
socket notify-topology stream 660 system drmrpc
class core
user root
group root drmrpc

16
proprietary/vendor/etc/init/qwesd.rc vendored Normal file
View File

@@ -0,0 +1,16 @@
# Copyright (c) 2019, 2022 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# Start daemon
on boot
start vendor.qwesd
# Used 'disabled' flag, so daemon won't be started until explicit start
service vendor.qwesd /vendor/bin/qwesd
class late_start
user system
group system inet
disabled

43
proprietary/vendor/etc/init/shsusrd.rc vendored Normal file
View File

@@ -0,0 +1,43 @@
# Copyright (c) 2019-2022 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on boot
write /data/vendor/shsusr/shsusr_log.txt ""
chown radio radio /data/vendor/shsusr/shsusr_log.txt
# shsc socket
mkdir /dev/socket/shsusrd 0750 radio radio
# msm specific files that need to be created on /data
on post-fs-data
#Create SHSUSR daemon log dir
mkdir /data/vendor/shsusr 0770 radio radio
chmod 0770 /data/vendor/shsusr
service vendor.shsusrd /system/vendor/bin/shsusrd 0x22819000 0x0A
class main
user radio
group radio
capabilities NET_ADMIN NET_RAW
disabled
on property:persist.vendor.data.shsusr_load=1
start vendor.shsusrd
on property:persist.vendor.data.shsusr_load=0
stop vendor.shsusrd
on property:persist.vendor.data.shsusr_ipa=02
write /sys/class/net/rmnet_ipa0/queues/rx-0/rps_cpus "02"
on property:persist.vendor.data.shsusr_ipa=10
write /sys/class/net/rmnet_ipa0/queues/rx-0/rps_cpus "10"
on property:persist.vendor.data.shsusr_ipa=20
write /sys/class/net/rmnet_ipa0/queues/rx-0/rps_cpus "20"
on property:persist.vendor.data.shsusr_ipa=40
write /sys/class/net/rmnet_ipa0/queues/rx-0/rps_cpus "40"

21
proprietary/vendor/etc/init/ssgtzd.rc vendored Normal file
View File

@@ -0,0 +1,21 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# Create the directories used by qwes
on post-fs-data
mkdir /data/vendor/qwes 0755 system system
# Start daemon on early-init
on early-boot
start vendor.ssgtzd
# Used 'disabled' flag, so daemon won't be started until explicit start
service vendor.ssgtzd /vendor/bin/ssgtzd
class late_start
user system
group system oem_2912
disabled
socket ssgtzd stream 0660 system oem_2912
socket ssgtzd_opener stream 0660 system system

18
proprietary/vendor/etc/init/tlpd.rc vendored Normal file
View File

@@ -0,0 +1,18 @@
# Copyright (c) 2021-2023 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on boot
#Create Throughput Latency Processing Daemon socket area
mkdir /dev/socket/tlpd 0750 radio radio
on post-fs-data
#Create TLPD daemon dir
mkdir /data/vendor/tlpd 2750 radio system
chmod 2750 /data/vendor/tlpd
service vendor.tlpd /system/vendor/bin/tlpd boot
class main
user radio
group radio

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
service vendor.trusteduilistener /vendor/bin/trusteduilistener
class late_start
user system
group system

View File

@@ -0,0 +1,37 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
#
# Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
service vendor.adsprpcd /vendor/bin/adsprpcd
class main
user system
group media

View File

@@ -0,0 +1,40 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
#
# Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
service vendor.cdsprpcd /vendor/bin/cdsprpcd
class main
user system
group system
on property:vendor.fastrpc.disable.cdsprpcd.daemon=1
stop vendor.cdsprpcd

View File

@@ -0,0 +1,17 @@
#
# Copyright (c) 2022 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on early-boot
start vendor.diag-router
service vendor.diag-router /vendor/bin/diag-router
class hal
user system
group system
capabilities KILL
disabled

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service vendor.capabilityconfigstore /vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service
class hal
user system
group system

View File

@@ -0,0 +1,12 @@
# Copyright (c) 2023 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
service vendor.qti.hardware.display.color-service /vendor/bin/hw/vendor.qti.hardware.display.color-service
interface aidl vendor.qti.hardware.display.color.IDisplayColor/default
interface aidl vendor.qti.hardware.display.postproc.IDisplayPostproc/default
class hal
user system
group system
oneshot
disabled

View File

@@ -0,0 +1,13 @@
# Copyright (c) 2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
service vendor.dspservice /vendor/bin/dspservice
class hal
user system
group system wakelock oem_2908
capabilities BLOCK_SUSPEND
interface vendor.qti.hardware.dsp@1.0::IDspService dspservice
# uncomment below to disable service at boot
# disabled

View File

@@ -0,0 +1,15 @@
# @file io-p.c
# @brief Defination for iop service
#
# DESCRIPTION
# ---------------------------------------------------------------------------
# Copyright (c) 2011-2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# ---------------------------------------------------------------------------
service iop-hal-2-0 /vendor/bin/hw/vendor.qti.hardware.iop@2.0-service
class hal
user root
disabled
group root readproc

View File

@@ -0,0 +1,31 @@
# @file vendor.qti.hardware.perf2-hal-service.rc
# @brief Defination perf service
#
# DESCRIPTION
# ---------------------------------------------------------------------------
# Copyright (c) 2019-2021 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# ---------------------------------------------------------------------------
service perf2-hal-1-0 /vendor/bin/hw/vendor.qti.hardware.perf2-hal-service
class hal
user root
group root system readproc oem_2907
interface aidl vendor.qti.hardware.perf2
on property:vendor.change.cgroup=fg && property:vendor.change.cgroup.for.pid=*
write /dev/cpuset/foreground/tasks ${vendor.change.cgroup.for.pid}
write /dev/cpuctl/foreground/tasks ${vendor.change.cgroup.for.pid}
write /proc/${vendor.change.cgroup.for.pid}/timerslack_ns 50000
on property:vendor.change.cgroup=bg && property:vendor.change.cgroup.for.pid=*
write /dev/blkio/background/tasks ${vendor.change.cgroup.for.pid}
write /dev/cpuctl/background/tasks ${vendor.change.cgroup.for.pid}
write /proc/${vendor.change.cgroup.for.pid}/timerslack_ns 40000000
on property:vendor.change.cgroup=def && property:vendor.change.cgroup.for.pid=*
write /dev/blkio/tasks ${vendor.change.cgroup.for.pid}
write /dev/cpuctl/tasks ${vendor.change.cgroup.for.pid}
write /dev/cpuset/tasks ${vendor.change.cgroup.for.pid}
write /proc/${vendor.change.cgroup.for.pid}/timerslack_ns 50000

View File

@@ -0,0 +1,15 @@
#
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
#
on init
start qseecom-service
service qseecom-service /vendor/bin/hw/vendor.qti.hardware.qseecom@1.0-service
class hal
user system
group system drmrpc
interface aidl vendor.qti.hardware.qseecom

View File

@@ -0,0 +1,5 @@
service secureprocessor-1-0 /vendor/bin/hw/vendor.qti.hardware.secureprocessor@1.0
class hal
user system
group system
disabled

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2023 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
service vendor.trustedui /vendor/bin/hw/vendor.qti.hardware.trustedui-aidl-service-qti
class hal
user system
group system

View File

@@ -0,0 +1,4 @@
service vendor.trustedui-1-0 /vendor/bin/hw/vendor.qti.hardware.trustedui@1.0-service-qti
class hal
user system
group system

View File

@@ -0,0 +1,11 @@
#
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service vendor.rmt_storage /vendor/bin/rmt_storage
class core
user root
shutdown critical
ioprio rt 0

View File

@@ -0,0 +1,10 @@
#
# Copyright (c) 2023 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on early-boot
write /sys/devices/platform/soc/soc:qcom,smp2p-adsp/power/wakeup "enabled"
write /sys/devices/platform/soc/soc:qcom,smp2p-modem/power/wakeup "enabled"
write /sys/devices/platform/soc/soc:qcom,smp2p-cdsp/power/wakeup "enabled"

View File

@@ -0,0 +1,14 @@
#
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Create pddump directory
on post-fs-data
mkdir /data/vendor/pddump 0770 oem_2903 oem_2903
service vendor.tftp_server /vendor/bin/tftp_server
class core
user root
ioprio rt 4

View File

@@ -0,0 +1,34 @@
service irsc_util_oem /vendor/bin/irsc_util "/vendor/etc/sec_config_oem"
class core
user root
oneshot
# Avoid running ril-daemon services on qualcomm model
service vendor.ril-daemon /vendor/bin/hw/rild-dummy
override
service vendor.ril-daemon1 /vendor/bin/hw/rild-dummy
override
service vendor.ril-daemon2 /vendor/bin/hw/rild-dummy
override
service vendor.ril-daemon3 /vendor/bin/hw/rild-dummy
override
# Disable vendor.embmsslServer to fix VTS failure
# as vendor.embmsslServer is not running even though it has interface
service vendor.embmsslServer /vendor/bin/embmsslServer
override
on property:init.svc.vendor.netmgrd=running && property:ro.vendor.use_data_netmgrd=false
stop vendor.netmgrd
# To enable QMS logs
on post-fs-data
mkdir /data/vendor/qms_logs 0775 radio system
mkdir /data/vendor/qms_logs/main 0775 radio system
mkdir /data/vendor/qms_logs/other 0775 radio system
mkdir /data/vendor/qms_logs/config 0775 radio system
copy /vendor/etc/qms_log_config /data/vendor/qms_logs/config/qms_log_config
chmod 0666 /data/vendor/qms_logs/config/qms_log_config

View File

@@ -0,0 +1,14 @@
# Increase the number of service supplementary group (NR_SVC_SUPP_GIDS) from 12 to 32 from V os
# AID_VENDOR_QTI_DIAG(oem_2901), drmrpc for Qcom
# restart cpboot-daemon, DIAG-daemon for LSI
# restart cpboot-daemon5g for LSI beyondx, d1x, d2x, it could be removed.
service ril-daemon /vendor/bin/hw/rild
class main
user radio
group radio cache inet misc audio log oem_2901 system drmrpc vpn readproc wakelock net_admin
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW SYS_ADMIN CHOWN SYS_TIME
onrestart restart cpboot-daemon
onrestart restart cpboot-daemon5g
onrestart restart DIAG-daemon
override

View File

@@ -0,0 +1,37 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2009-2012, 2014-2019, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# # Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# # Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# # Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
service vendor.sensors /vendor/bin/sscrpcd sensorspd
class early_hal
user system
group system wakelock
capabilities BLOCK_SUSPEND
shutdown critical