sm6150-common: Import from sweet V13.0.15.0.SKFMIXM

This commit is contained in:
Arian
2023-04-11 15:34:08 +02:00
commit 07a6d02331
482 changed files with 20178 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,27 @@
on property:init.svc.mediadrm=running
mkdir /data/vendor/mediadrm 0770 media mediadrm
start vendor.move_data_sh
service vendor.move_data_sh /system/bin/move_widevine_data.sh
class late_start
user media
group media mediadrm system
disabled
oneshot
service vendor.drm-widevine-hal-1-3 /vendor/bin/hw/android.hardware.drm@1.3-service.widevine
interface android.hardware.drm@1.0::ICryptoFactory widevine
interface android.hardware.drm@1.0::IDrmFactory widevine
interface android.hardware.drm@1.1::ICryptoFactory widevine
interface android.hardware.drm@1.1::IDrmFactory widevine
interface android.hardware.drm@1.2::ICryptoFactory widevine
interface android.hardware.drm@1.2::IDrmFactory widevine
interface android.hardware.drm@1.3::ICryptoFactory widevine
interface android.hardware.drm@1.3::IDrmFactory widevine
interface android.hidl.base@1.0::IBase widevine
class hal
user media
group media mediadrm drmrpc system
ioprio rt 4
writepid /dev/cpuset/foreground/tasks
capabilities SYS_NICE

View File

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

View File

@@ -0,0 +1,7 @@
on init
start vendor.keymaster-4-1
service vendor.keymaster-4-1 /vendor/bin/hw/android.hardware.keymaster@4.1-service-qti
class early_hal
user system
group system drmrpc

4
proprietary/vendor/etc/init/cnd.rc vendored Normal file
View File

@@ -0,0 +1,4 @@
service vendor.cnd /system/vendor/bin/cnd
class main
user system
group system wifi inet radio wakelock net_admin

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

View File

@@ -0,0 +1,17 @@
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#start dpmQmiMgr service
service dpmQmiMgr /system/vendor/bin/dpmQmiMgr
interface com.qualcomm.qti.dpm.api@1.0::IdpmQmi dpmQmiService
class main
user system
group system
disabled
on property:persist.vendor.dpmhalservice.enable=*
start dpmQmiMgr
on property:persist.vendor.dpmhalservice.enable=0
stop dpmQmiMgr

View File

@@ -0,0 +1,13 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# imsdatadaemon starts with root and UID will be downgraded to RADIO.
service vendor.ims_rtp_daemon /vendor/bin/ims_rtp_daemon
class main
user radio
group radio vendor_qti_diag inet log
on property:vendor.ims.DATA_DAEMON_STATUS=1
restart vendor.ims_rtp_daemon

View File

@@ -0,0 +1,15 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# imsdatadaemon starts with root and UID will be downgraded to RADIO.
service vendor.imsdatadaemon /vendor/bin/imsdatadaemon
class main
user radio
socket ims_datad stream 0660 system radio
group radio wifi inet vendor_qti_diag log
disabled
on property:vendor.ims.QMI_DAEMON_STATUS=1
start vendor.imsdatadaemon

View File

@@ -0,0 +1,10 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service vendor.imsqmidaemon /vendor/bin/imsqmidaemon
class main
user radio
socket ims_qmid stream 0660 system radio
group radio vendor_qti_diag log

View File

@@ -0,0 +1,9 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service vendor.imsrcsservice /vendor/bin/imsrcsd
class main
user radio
group radio vendor_qti_diag log inet wakelock
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,8 @@
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on early-boot
write /dev/ipa 1

77
proprietary/vendor/etc/init/netmgrd.rc vendored Normal file
View File

@@ -0,0 +1,77 @@
# Copyright (c) 2019-2021 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on boot
#Create NETMGR daemon socket area
mkdir /dev/socket/netmgr 0750 radio radio
#Assign TCP buffer thresholds to be ceiling value of technology maximums
#Increased technology maximums should be reflected here.
write /proc/sys/net/core/rmem_max 16777216
write /proc/sys/net/core/wmem_max 8388608
#Load rmnet_core driver
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules rmnet_ctl
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules rmnet_core
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki rmnet_ctl
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki rmnet_core
# msm specific files that need to be created on /data
on post-fs-data
#Create NETMGR daemon log dir
mkdir /data/vendor/netmgr 0770 radio radio
chmod 0770 /data/vendor/netmgr
# Create netmgr recovery folder
mkdir /data/vendor/netmgr/recovery 0700 radio radio
chmod 0770 /data/vendor/netmgr/recovery
write /data/vendor/netmgr/recovery/recovery_info ""
chown radio radio /data/vendor/netmgr/recovery/recovery_info
# Manage netmgrd based on value of property
on property:persist.vendor.data.mode=disabled
stop vendor.netmgrd
service vendor.netmgrd /system/vendor/bin/netmgrd
class main
on property:ro.vendor.use_data_netmgrd=false
# netmgr not supported on specific target
stop vendor.netmgrd
on property:ro.baseband=apq
stop vendor.netmgrd
on property:persist.vendor.data.shs_ko_load=1
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules rmnet_shs
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki rmnet_shs
on property:persist.vendor.data.shs_ko_load=0
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules rmnet_shs
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules/5.4-gki rmnet_shs
on property:persist.vendor.data.perf_ko_load=3
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules rmnet_perf rmnet_perf_ingress_deag=N
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules/5.4-gki rmnet_perf rmnet_perf_ingress_deag=N
on property:persist.vendor.data.perf_ko_load=2
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules rmnet_perf rmnet_perf_opt_mode="udp"
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules/5.4-gki rmnet_perf rmnet_perf_opt_mode="udp"
on property:persist.vendor.data.perf_ko_load=1
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules rmnet_perf
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki rmnet_perf
on property:persist.vendor.data.perf_ko_load=0
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules rmnet_perf
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules/5.4-gki rmnet_perf
on property:persist.vendor.data.offload_ko_load=1
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules rmnet_offload
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki rmnet_offload
on property:persist.vendor.data.offload_ko_load=0
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules rmnet_offload
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules/5.4-gki rmnet_offload

20
proprietary/vendor/etc/init/qcrild.rc vendored Normal file
View File

@@ -0,0 +1,20 @@
service vendor.qcrild /vendor/bin/hw/qcrild
class main
user radio
disabled
group radio cache inet misc audio log readproc wakelock oem_2901 net_raw system sdcard_rw sdcard_r
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
service vendor.qcrild2 /vendor/bin/hw/qcrild -c 2
class main
user radio
disabled
group radio cache inet misc audio log readproc wakelock oem_2901 net_raw system sdcard_rw sdcard_r
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
service vendor.qcrild3 /vendor/bin/hw/qcrild -c 3
class main
user radio
disabled
group radio cache inet misc audio log readproc wakelock oem_2901
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW

13
proprietary/vendor/etc/init/qseecomd.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.
on init
wait /dev/qseecom
start vendor.qseecomd
service vendor.qseecomd /vendor/bin/qseecomd
class core
user root
group root
shutdown critical

View File

@@ -0,0 +1,50 @@
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
#
# Copyright (c) 2013-2018, 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
service vendor.adsprpcd_audiopd /vendor/bin/adsprpcd audiopd
class main
user media
group media
service vendor.adsprpcd_sensorspd /vendor/bin/adsprpcd sensorspd
class core
user system
group system
on property:vendor.fastrpc.disable.adsprpcd_sensorspd.daemon=1
stop vendor.adsprpcd_sensorspd

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,11 @@
# Copyright (c) 2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service alarm-hal-1-0 /vendor/bin/hw/vendor.qti.hardware.alarm@1.0-service
interface vendor.qti.hardware.alarm@1.0::IAlarm default
class hal
user system
group system
oneshot
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,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,8 @@
# Copyright (c) 2018 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service soter-1-0 /vendor/bin/hw/vendor.qti.hardware.soter@1.0-service
class hal
user system
group system drmrpc

View File

@@ -0,0 +1,7 @@
service vendor-qti-media-c2-hal-1-0 /vendor/bin/hw/vendor.qti.media.c2@1.0-service
class hal
user mediacodec
group mediadrm camera drmrpc system
ioprio rt 4
writepid /dev/cpuset/foreground/tasks

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,13 @@
#
# 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

View File

@@ -0,0 +1,19 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
service vendor.vppservice /vendor/bin/vppservice
class hal
user media
group camera
# HIDL interfaces
interface vendor.qti.hardware.vpp@1.1::IHidlVppService vppService
interface vendor.qti.hardware.vpp@1.2::IHidlVppService vppService
interface vendor.qti.hardware.vpp@1.3::IHidlVppService vppService
# don't auto restart
oneshot
# start only when requested (uncomment below to disable service at boot)
# disabled