peridot: Import from V816.0.5.0.UNPMIXM
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2018-2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
service wfdhdcphalservice /vendor/bin/wfdhdcphalservice
|
||||
class main
|
||||
user system
|
||||
@@ -0,0 +1,8 @@
|
||||
service vendor.gatekeeper_default /vendor/bin/hw/android.hardware.gatekeeper-service-qti
|
||||
class early_hal
|
||||
user system
|
||||
group system
|
||||
disabled
|
||||
|
||||
on property:vendor.gatekeeper.is_security_level_spu=0
|
||||
enable vendor.gatekeeper_default
|
||||
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
service vendor.identity /vendor/bin/hw/android.hardware.identity-service-qti
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
@@ -0,0 +1,4 @@
|
||||
service vendor.secure_element /vendor/bin/hw/android.hardware.secure_element-service.qti
|
||||
class hal
|
||||
user system
|
||||
group nfc system
|
||||
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2021 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
|
||||
on init
|
||||
start vendor.keymint-qti
|
||||
|
||||
service vendor.keymint-qti /vendor/bin/hw/android.hardware.security.keymint-service-qti
|
||||
class early_hal
|
||||
user system
|
||||
group system drmrpc
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
service vendor.keymint-strongbox /vendor/bin/hw/android.hardware.security.keymint-service.strongbox-nxp
|
||||
class early_hal
|
||||
user vendor_nxp_strongbox
|
||||
group vendor_nxp_strongbox
|
||||
capabilities WAKE_ALARM
|
||||
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
|
||||
service vendor.usb-hal /vendor/bin/hw/android.hardware.usb-service.qti
|
||||
class hal
|
||||
user system
|
||||
group system mtp usb
|
||||
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
|
||||
service vendor.usbgadget-hal /vendor/bin/hw/android.hardware.usb.gadget-service.qti
|
||||
class hal
|
||||
user system
|
||||
group system mtp usb
|
||||
@@ -0,0 +1,4 @@
|
||||
service vendor.weaver_nxp /vendor/bin/hw/android.hardware.weaver-service.nxp-qti
|
||||
class hal
|
||||
user vendor_nxp_weaver
|
||||
group system drmrpc
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
service vendor.cnd /system/vendor/bin/cnd
|
||||
class main
|
||||
user system
|
||||
group system wifi inet radio wakelock net_admin oem_2912
|
||||
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Copyright (c) 2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
service wifidisplayhalservice /vendor/bin/wifidisplayhalservice
|
||||
class main
|
||||
user system
|
||||
group inet input audio media uhid
|
||||
capabilities NET_RAW
|
||||
|
||||
+13
@@ -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
@@ -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
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
service vendor.qsap.dcfd /vendor/bin/qsap_dcfd
|
||||
class main
|
||||
user radio
|
||||
group radio
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2019-2021 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 hal
|
||||
user system
|
||||
group system
|
||||
disabled
|
||||
|
||||
on property:persist.vendor.dpm.vndr.halservice.enable=*
|
||||
start dpmQmiMgr
|
||||
|
||||
on property:persist.vendor.dpm.vndr.halservice.enable=0
|
||||
stop dpmQmiMgr
|
||||
@@ -0,0 +1,55 @@
|
||||
# MIUI ADD: Charger_DebugEnhance
|
||||
on property:sys.boot_completed=1
|
||||
chmod 0664 /sys/class/qcom-battery/pd_verifed
|
||||
chmod 0664 /sys/class/qcom-battery/request_vdm_cmd
|
||||
chmod 0664 /sys/class/qcom-battery/verify_process
|
||||
chmod 0664 /sys/class/qcom-battery/authentic
|
||||
chmod 0664 /sys/class/qcom-battery/verify_slave_flag
|
||||
chmod 0664 /sys/class/qcom-battery/slave_authentic
|
||||
chmod 0664 /sys/class/qcom-battery/is_old_hw
|
||||
|
||||
service batterysecret /vendor/bin/batterysecret
|
||||
class last_start
|
||||
user root
|
||||
group system system wakelock
|
||||
disabled
|
||||
seclabel u:r:batterysecret:s0
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start batterysecret
|
||||
wait /sys/class/qcom-battery/double85 30
|
||||
wait /sys/class/qcom-battery/remove_temp_limit 2
|
||||
chmod 0664 /sys/class/qcom-battery/double85
|
||||
chmod 0664 /sys/class/qcom-battery/remove_temp_limit
|
||||
write /dev/kmsg "<3>init.batterysecret.rc: the double85 and remove_temp_limit node now already exist"
|
||||
write /sys/class/qcom-battery/double85 ${persist.sys.charger.double85}
|
||||
write /sys/class/qcom-battery/remove_temp_limit ${persist.sys.charger.remove_temp_limit}
|
||||
|
||||
#run batterysecret in off-charge mode
|
||||
on charger
|
||||
start batterysecret
|
||||
chmod 0664 /sys/class/qcom-battery/pd_verifed
|
||||
chmod 0664 /sys/class/qcom-battery/request_vdm_cmd
|
||||
chmod 0664 /sys/class/qcom-battery/verify_process
|
||||
chmod 0664 /sys/class/qcom-battery/authentic
|
||||
chmod 0664 /sys/class/qcom-battery/verify_slave_flag
|
||||
chmod 0664 /sys/class/qcom-battery/slave_authentic
|
||||
chmod 0664 /sys/class/qcom-battery/is_old_hw
|
||||
|
||||
on property:persist.sys.charger.double85=1
|
||||
write /dev/kmsg "<3>init.batterysecret.rc: persist.sys.charger.double85 changed: 1"
|
||||
write /sys/class/qcom-battery/double85 1
|
||||
|
||||
on property:persist.sys.charger.double85=0
|
||||
write /dev/kmsg "<3>init.batterysecret.rc: persist.sys.charger.double85 changed: 0"
|
||||
write /sys/class/qcom-battery/double85 0
|
||||
|
||||
on property:persist.sys.charger.remove_temp_limit=1
|
||||
write /dev/kmsg "<3>init.batterysecret.rc: persist.sys.charger.remove_temp_limit changed: 1"
|
||||
write /sys/class/qcom-battery/remove_temp_limit 1
|
||||
|
||||
on property:persist.sys.charger.remove_temp_limit=0
|
||||
write /dev/kmsg "<3>init.batterysecret.rc: persist.sys.charger.remove_temp_limit changed: 0"
|
||||
write /sys/class/qcom-battery/remove_temp_limit 0
|
||||
|
||||
# END Charger_DebugEnhance
|
||||
@@ -0,0 +1,14 @@
|
||||
on charger
|
||||
wait /sys/class/power_supply/usb/type
|
||||
start mi_ambient
|
||||
on boot
|
||||
wait /sys/class/power_supply/usb/type
|
||||
start mi_ambient
|
||||
|
||||
service mi_ambient /system/vendor/bin/mi_ambient
|
||||
class main
|
||||
user root
|
||||
group system
|
||||
oneshot
|
||||
seclabel u:r:mi_ambient:s0
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
on charger
|
||||
wait /sys/class/power_supply/usb/type
|
||||
start mi_thermald
|
||||
on boot
|
||||
wait /sys/class/power_supply/usb/type
|
||||
start mi_thermald
|
||||
|
||||
service mi_thermald /system/vendor/bin/mi_thermald
|
||||
class main
|
||||
user root
|
||||
group system
|
||||
seclabel u:r:mi_thermald:s0
|
||||
+1894
File diff suppressed because it is too large
Load Diff
+223
@@ -0,0 +1,223 @@
|
||||
#=============================================================================
|
||||
# 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 && property:ro.vendor.qti.load_dlkm.service=native
|
||||
start load_dlkm
|
||||
|
||||
on early-init && property:ro.vendor.qti.load_dlkm.service=""
|
||||
exec_start gki.modprobe
|
||||
start vendor.modprobe
|
||||
|
||||
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"
|
||||
|
||||
# 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
|
||||
start vendor.pd_mapper
|
||||
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 && property:ro.boot.ramdump=enable
|
||||
chown root system /dev/block/sda33
|
||||
chmod 0660 /dev/block/sda33
|
||||
|
||||
on boot && property:ro.boot.ramdump=enable && property:ro.build.product=chenfeng
|
||||
chown root system /dev/block/sda31
|
||||
chmod 0660 /dev/block/sda31
|
||||
|
||||
on boot && property:ro.boot.ramdump=enable && property:ro.build.product=peridot
|
||||
chown root system /dev/block/sda31
|
||||
chmod 0660 /dev/block/sda31
|
||||
|
||||
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 boot && property:persist.sys.stability.smartfocusio=on
|
||||
write /sys/block/sda/queue/scheduler cpq
|
||||
on property:persist.sys.stability.smartfocusio=off
|
||||
write /sys/block/sda/queue/scheduler mq-deadline
|
||||
|
||||
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
|
||||
|
||||
on property:sys.sysctl.mi_extra_free_kbytes=*
|
||||
write /sys/kernel/mi_wmark/extra_free_kbytes ${sys.sysctl.mi_extra_free_kbytes}
|
||||
start kernel-extra-free-kbytes
|
||||
|
||||
service kernel-extra-free-kbytes /vendor/bin/sh /vendor/bin/init.kernel.extra_free_kbytes.sh
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:vendor.memory.min_free_kbytes=*
|
||||
write /proc/sys/vm/min_free_kbytes ${vendor.memory.min_free_kbytes}
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
service load_dlkm /vendor/bin/load_dlkm
|
||||
class main
|
||||
user root
|
||||
group root system
|
||||
disabled
|
||||
stdio_to_kmsg
|
||||
seclabel u:r:vendor_modprobe:s0
|
||||
oneshot
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
# Copyright (c) 2022 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
# imsdaemon starts with root and UID will be downgraded to RADIO.
|
||||
service vendor.ims-dataservice-daemon /vendor/bin/ims-dataservice-daemon
|
||||
class main
|
||||
user radio
|
||||
group radio inet vendor_qti_diag log
|
||||
|
||||
on property:vendor.ims.DATA_DAEMON_STATUS=1
|
||||
restart vendor.ims-dataservice-daemon
|
||||
+13
@@ -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 drmrpc
|
||||
|
||||
on property:vendor.ims.DATA_DAEMON_STATUS=1
|
||||
restart vendor.ims_rtp_daemon
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
|
||||
# Copyright (c) 2020-2021 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/imslogs 0770 radio radio
|
||||
chmod 0770 /data/vendor/imslogs
|
||||
|
||||
# imsdaemon starts with root and UID will be downgraded to RADIO.
|
||||
service vendor.imsdaemon /vendor/bin/imsdaemon
|
||||
class main
|
||||
user radio
|
||||
socket ims_datad stream 0660 system radio
|
||||
group radio wifi inet vendor_qti_diag log
|
||||
@@ -0,0 +1,21 @@
|
||||
# add charge_logger service for dump charge message
|
||||
service charge_logger /vendor/bin/charge_logger
|
||||
class last_start
|
||||
user system
|
||||
group system system wakelock
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:charge_logger:s0
|
||||
|
||||
on post-fs-data
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
mkdir /data/vendor/bsplog/charge/charge_logger 0771 system system
|
||||
chmod 0660 /sys/class/power_supply/wireless/reverse_chg_mode
|
||||
start charge_logger
|
||||
|
||||
#run charge_logger in off-charge mode
|
||||
on charger
|
||||
#mkdir /data/vendor/bsplog/charge/charge_logger 0771 system system
|
||||
chmod 0660 /sys/class/power_supply/wireless/reverse_chg_mode
|
||||
start charge_logger
|
||||
@@ -0,0 +1,56 @@
|
||||
service mfp-daemon /vendor/bin/hw/mfp-daemon
|
||||
interface aidl android.hardware.biometrics.fingerprint.IFingerprint/virtual
|
||||
class late_start
|
||||
user system
|
||||
group system drmrpc diag input uhid
|
||||
seclabel u:r:vendor_mfp-daemon:s0
|
||||
capabilities SYS_NICE
|
||||
|
||||
on early-boot
|
||||
chown system graphics /sys/bus/platform/devices/soc:xiaomi_fingerprint/fingerdown
|
||||
chmod 0664 /sys/bus/platform/devices/soc:xiaomi_fingerprint/fingerdown
|
||||
|
||||
on boot
|
||||
chmod 0666 /dev/goodix_fp
|
||||
chown system system /dev/goodix_fp
|
||||
chmod 0666 /dev/xiaomi-fp
|
||||
chown system system /dev/xiaomi-fp
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/irq
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/irq_enable
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/wakeup_enable
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/hw_reset
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/device_prepare
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/fingerdown_wait
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/vendor
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/request_vreg
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/simulate_irq
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/finger_irq
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/power_cfg
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/power_ctrl
|
||||
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/screen
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/irq
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/wakeup_enable
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/hw_reset
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/device_prepare
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/vendor
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/request_vreg
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/simulate_irq
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/finger_irq
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/power_cfg
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/power_ctrl
|
||||
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/screen
|
||||
chmod 0666 /dev/input/event2
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/misc 01771 system system
|
||||
mkdir /data/vendor/misc/mi_fp 0770 system system
|
||||
mkdir /persist/mi_fp 0770 system system
|
||||
mkdir /mnt/vendor/persist/mi_fp 0770 system system
|
||||
mkdir /data/vendor/fpc 0770 system system
|
||||
mkdir /data/vendor/fpdump 0770 system system
|
||||
mkdir /data/vendor/goodix 0770 system system
|
||||
mkdir /data/vendor/fingerprint 0770 system system
|
||||
mkdir /mnt/vendor/persist/goodix 0770 system system
|
||||
|
||||
on property:vendor.fps_hal.restartimes=max
|
||||
stop mfp-daemon
|
||||
@@ -0,0 +1,31 @@
|
||||
#==============================================================================
|
||||
# init.qti.graphics.rc
|
||||
#
|
||||
# Copyright (c) 2023-2024 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#===============================================================================
|
||||
|
||||
service vendor_qti_graphics_boot /vendor/bin/init.qti.graphics.sh
|
||||
class main
|
||||
user shell
|
||||
group shell
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on early-init
|
||||
start vendor_qti_graphics_boot
|
||||
|
||||
on early-fs && property:vendor.display.gpu_rendering=true
|
||||
setprop ro.hardware.vulkan adreno
|
||||
setprop ro.hardware.egl adreno
|
||||
setprop ro.opengles.version 196610
|
||||
setprop vendor.gralloc.disable_ubwc 0
|
||||
setprop ro.hwui.use_vulkan true
|
||||
|
||||
on early-fs && property:vendor.display.gpu_rendering=false
|
||||
setprop ro.hardware.vulkan pastel
|
||||
setprop ro.hardware.egl angle
|
||||
setprop ro.opengles.version 196609
|
||||
setprop vendor.gralloc.disable_ubwc 1
|
||||
setprop ro.hwui.use_vulkan false
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
#==============================================================================
|
||||
# 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}
|
||||
|
||||
on late-fs
|
||||
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}
|
||||
+14
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
on post-fs-data
|
||||
#sensors log dir
|
||||
mkdir /data/vendor/ins 0764 gps system
|
||||
@@ -0,0 +1,51 @@
|
||||
# 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
|
||||
chmod 0644 /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
|
||||
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# Copyright (c) 2021 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
on early-boot
|
||||
write /sys/kernel/icnss/wlan_en_delay 1000
|
||||
write /sys/kernel/icnss/wpss_boot 1
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
on post-fs-data
|
||||
# for at cmd
|
||||
chmod 0777 /dev/smd8
|
||||
chown radio radio /dev/smd8
|
||||
# for modem data file
|
||||
mkdir /data/vendor/modem 0777 radio radio
|
||||
|
||||
service diag_mdlog_auto_start /vendor/bin/diag_mdlog -q 0x2006 -j 1 -u -c -i -n 50
|
||||
class late_start
|
||||
user system
|
||||
group system oem_2902 oem_2905 sdcard_rw sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service diag_mdlog_auto_stop /vendor/bin/diag_mdlog -k
|
||||
class late_start
|
||||
user system
|
||||
group system oem_2902 oem_2905 sdcard_rw sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:persist.vendor.radio.diag_log_trriger=modem
|
||||
setprop debug.offline_log.enable true
|
||||
setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger}
|
||||
start diag_mdlog_auto_start
|
||||
|
||||
on property:persist.vendor.radio.diag_log_trriger=audio
|
||||
setprop debug.offline_log.enable true
|
||||
setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger}
|
||||
start diag_mdlog_auto_start
|
||||
|
||||
on property:persist.vendor.radio.diag_log_trriger=gps
|
||||
setprop debug.offline_log.enable true
|
||||
setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger}
|
||||
start diag_mdlog_auto_start
|
||||
|
||||
on property:persist.vendor.radio.diag_log_trriger=sensor
|
||||
setprop debug.offline_log.enable true
|
||||
setprop debug.offline_log.module ${persist.vendor.radio.diag_log_trriger}
|
||||
start diag_mdlog_auto_start
|
||||
|
||||
on property:persist.vendor.radio.close_wenkong=yes
|
||||
stop mi_thermald
|
||||
|
||||
+54
@@ -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
|
||||
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
# Copyright (c) 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
on boot
|
||||
#Create nicmd daemon socket area
|
||||
mkdir /dev/socket/nicmd 0750 radio radio
|
||||
|
||||
#Assign core socket 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
|
||||
|
||||
on post-fs-data
|
||||
#Create nicmd daemon dir
|
||||
mkdir /data/vendor/nicmd 2750 radio system
|
||||
chmod 2750 /data/vendor/nicmd
|
||||
|
||||
# Create nicmd recovery file
|
||||
write /data/vendor/nicmd/nicm_recovery ""
|
||||
chown radio radio /data/vendor/nicmd/nicm_recovery
|
||||
|
||||
service vendor.nicmd /system/vendor/bin/nicmd
|
||||
class main
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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"
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#MIUI MOD: NFC_TransitConfig
|
||||
service vendor.nfc_hal_service /vendor/bin/hw/android.hardware.nqnfc-service.nxp
|
||||
class hal
|
||||
user nfc
|
||||
group nfc oem_2912
|
||||
|
||||
#END NFC_TransitConfig
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
on boot
|
||||
#Create PORT-BRIDGE daemon socket area
|
||||
mkdir /dev/socket/port-bridge 0750 radio radio
|
||||
|
||||
# msm specific files that need to be created on /data
|
||||
on post-fs-data
|
||||
#Create port-bridge log dir
|
||||
mkdir /data/vendor/port_bridge 0770 radio radio
|
||||
chmod 0770 /data/vendor/port_bridge
|
||||
|
||||
service vendor.port-bridge /system/vendor/bin/port-bridge
|
||||
class main
|
||||
user radio
|
||||
group radio system inet
|
||||
oneshot
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2020, 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
|
||||
service vendor.qconfig /vendor/bin/hw/qconfigservice
|
||||
class hal
|
||||
user mediacodec
|
||||
group camera audio
|
||||
|
||||
# AIDL interfaces
|
||||
interface aidl vendor.qti.hardware.qconfig.IQConfig/default
|
||||
|
||||
# auto restart (uncomment below to disable rebooting automatically)
|
||||
# oneshot
|
||||
|
||||
# start only when requested (uncomment below to disable service at boot)
|
||||
# disabled
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
on boot
|
||||
mkdir /dev/socket/qcrild 0750 radio radio
|
||||
|
||||
service vendor.qcrild /vendor/bin/hw/qcrilNrd
|
||||
class main
|
||||
user radio
|
||||
disabled
|
||||
group radio cache inet misc audio log readproc wakelock oem_2901 oem_2912
|
||||
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
|
||||
|
||||
service vendor.qcrild2 /vendor/bin/hw/qcrilNrd -c 2
|
||||
class main
|
||||
user radio
|
||||
disabled
|
||||
group radio cache inet misc audio log readproc wakelock oem_2901 oem_2912
|
||||
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
|
||||
|
||||
service vendor.qcrild3 /vendor/bin/hw/qcrilNrd -c 3
|
||||
class main
|
||||
user radio
|
||||
disabled
|
||||
group radio cache inet misc audio log readproc wakelock oem_2901 oem_2912
|
||||
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
|
||||
|
||||
on property:persist.radio.multisim.config=ssss && property:ro.baseband=msm && property:ro.vendor.radio.noril=""
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
|
||||
on property:persist.radio.multisim.config=ssss && property:ro.baseband=mdm
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
|
||||
on property:persist.radio.multisim.config=SSSS && property:ro.baseband=msm && property:ro.vendor.radio.noril=""
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
|
||||
on property:persist.radio.multisim.config=SSSS && property:ro.baseband=mdm
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
|
||||
on property:persist.radio.multisim.config=dsds && property:ro.baseband=msm && property:ro.vendor.radio.noril=""
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
start vendor.qcrild2
|
||||
|
||||
on property:persist.radio.multisim.config=dsds && property:ro.baseband=mdm
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
start vendor.qcrild2
|
||||
|
||||
on property:persist.radio.multisim.config=DSDS && property:ro.baseband=msm && property:ro.vendor.radio.noril=""
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
start vendor.qcrild2
|
||||
|
||||
on property:persist.radio.multisim.config=DSDS && property:ro.baseband=mdm
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
start vendor.qcrild2
|
||||
|
||||
# MIUI ADD: Telephony_CallEnhance
|
||||
on property:persist.radio.restart_rild=1
|
||||
stop vendor.qcrild
|
||||
start vendor.qcrild
|
||||
on property:persist.radio.restart_rild=2
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
start vendor.qcrild
|
||||
start vendor.qcrild2
|
||||
# END Telephony_CallEnhance
|
||||
+12
@@ -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
@@ -0,0 +1,13 @@
|
||||
#==============================================================================
|
||||
# qesdk-manager.rc
|
||||
#
|
||||
# Copyright (c) 2021 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#===============================================================================
|
||||
service vendor.qesdk-mgr /vendor/bin/qesdk-manager
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
socket qesd seqpacket 666 root system
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
#==============================================================================
|
||||
# qesdk-secmanager.rc
|
||||
#
|
||||
# Copyright (c) 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#===============================================================================
|
||||
service vendor.qesdk-securitymgr /vendor/bin/qesdk-secmanager
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
socket qesdsec seqpacket 666 root system
|
||||
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2020 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
|
||||
on boot
|
||||
write /data/vendor/qmipriod/log.txt ""
|
||||
chown radio radio /data/vendor/qmipriod/log.txt
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2020 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
|
||||
service vendor.qmipriod /system/vendor/bin/qmipriod
|
||||
class main
|
||||
user radio
|
||||
group radio
|
||||
disabled
|
||||
|
||||
on property:persist.vendor.data.qmipriod_load=1
|
||||
start vendor.qmipriod
|
||||
|
||||
on property:persist.vendor.data.qmipriod_load=0
|
||||
stop vendor.qmipriod
|
||||
|
||||
on post-fs-data
|
||||
#Create logging directory
|
||||
mkdir /data/vendor/qmipriod 0770 radio radio
|
||||
chmod 0770 /data/vendor/qmipriod
|
||||
Vendored
+13
@@ -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
@@ -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
|
||||
Vendored
+16
@@ -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
@@ -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"
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
# 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 wakelock
|
||||
capabilities WAKE_ALARM BLOCK_SUSPEND
|
||||
disabled
|
||||
socket ssgtzd stream 0660 system oem_2912
|
||||
socket ssgtzd_opener stream 0660 system system
|
||||
Vendored
+18
@@ -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 0770 radio radio
|
||||
chmod 0770 /data/vendor/tlpd
|
||||
|
||||
service vendor.tlpd /system/vendor/bin/tlpd boot
|
||||
class main
|
||||
user radio
|
||||
group radio
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
service dms-hal-2-0 /vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service
|
||||
class hal
|
||||
user media
|
||||
group audio media
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/dolby 0770 media media
|
||||
@@ -0,0 +1,7 @@
|
||||
service vendor-dolby-media-c2-hal-1-0 /vendor/bin/hw/vendor.dolby.media.c2@1.0-service
|
||||
class hal
|
||||
user mediacodec
|
||||
group camera mediadrm drmrpc
|
||||
ioprio rt 4
|
||||
writepid /dev/cpuset/foreground/tasks
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# Copyright (c) 2018 - 2021 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
|
||||
# Create the directories used by DPM subsystem
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/dpm_vndr 0771 system system
|
||||
chown system system /data/vendor/dpm_vndr
|
||||
|
||||
#start vendor.dpmd service
|
||||
service vendor.dpmd /vendor/bin/vendor.dpmd
|
||||
class late_start
|
||||
#socket dpmd stream 660 root radio
|
||||
#socket tcm stream 660 root inet
|
||||
#socket dpmwrapper stream 660 root inet
|
||||
group system readproc inet radio wakelock oem_2901
|
||||
disabled
|
||||
|
||||
on property:persist.vendor.dpm.vndr.feature=*
|
||||
start vendor.dpmd
|
||||
on property:persist.vendor.dpm.vndr.feature=0
|
||||
stop vendor.dpmd
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
on post-fs-data
|
||||
# Create directory for mbnconfig
|
||||
mkdir /data/vendor/mbnconfig 0777 system system
|
||||
mkdir /data/vendor/mbnconfig/image 0777 system system
|
||||
mkdir /data/vendor/mbnconfig/image/modem_pr 0777 system system
|
||||
mkdir /data/vendor/mbnconfig/image/modem_pr/mcfg 0777 system system
|
||||
|
||||
service vendor.mbnota /vendor/bin/mbnota
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
@@ -0,0 +1,15 @@
|
||||
# @file locqesdkservice.rc
|
||||
# @brief Definition for Location Qesdk Service
|
||||
#
|
||||
# DESCRIPTION
|
||||
# ---------------------------------------------------------------------------
|
||||
# Copyright (c) 2022 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
service vendor.qsap.location /vendor/bin/qsap_location
|
||||
class main
|
||||
user gps
|
||||
group gps
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# @file qapeservice.rc
|
||||
# @brief Definition for qape client service
|
||||
#
|
||||
# DESCRIPTION
|
||||
# ---------------------------------------------------------------------------
|
||||
# Copyright (c) 2021-2022 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
service vendor.qsap.qapeservice /vendor/bin/qsap_qapeservice
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
@@ -0,0 +1,36 @@
|
||||
# Copyright (c) 2021-2022 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.qsap.sensors /vendor/bin/qsap_sensors
|
||||
class core
|
||||
user system
|
||||
group system wakelock
|
||||
capabilities BLOCK_SUSPEND
|
||||
@@ -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
|
||||
@@ -0,0 +1,38 @@
|
||||
# Copyright (c) 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
|
||||
service vendor.camera-provider /vendor/bin/hw/vendor.qti.camera.provider-service_64
|
||||
interface aidl android.hardware.camera.provider.ICameraProvider/vendor_qti/0
|
||||
interface aidl vendor.qti.hardware.camera.offlinecamera.IOfflineCameraService/default
|
||||
interface aidl vendor.xiaomi.hardware.quickcamera.IQuickCameraService/default
|
||||
interface aidl vendor.qti.hardware.camera.aon.IAONService/default
|
||||
interface vendor.qti.hardware.camera.postproc@1.0::IPostProcService camerapostprocservice
|
||||
interface vendor.qti.hardware.camera.aon@1.0::IAONService aoncameraservice
|
||||
interface vendor.qti.hardware.camera.aon@1.1::IAONService aoncameraservice
|
||||
interface vendor.qti.hardware.camera.aon@1.2::IAONService aoncameraservice
|
||||
interface vendor.qti.hardware.camera.aon@1.3::IAONService aoncameraservice
|
||||
interface vendor.qti.hardware.camera.aon@1.4::IAONService aoncameraservice
|
||||
interface vendor.xiaomi.hardware.bgservice@1.0::IBGService default
|
||||
interface aidl vendor.xiaomi.hardware.aon.IAlwaysOn/miaonservicehal
|
||||
interface aidl vendor.xiaomi.hardware.aidlbgservice.IBGService/default
|
||||
class hal
|
||||
user cameraserver
|
||||
group system audio camera input drmrpc oem_2907 oem_2912 wakelock
|
||||
ioprio rt 4
|
||||
capabilities SYS_NICE BLOCK_SUSPEND IPC_LOCK
|
||||
task_profiles CameraServiceCapacity CameraServicePerformance CameraProcessProviderMemcg
|
||||
# MIUI ADD : Performance_MemoryEnhance
|
||||
writepid /sys/kernel/reserve_pool/pid
|
||||
# END Performance_MemoryEnhance
|
||||
|
||||
on boot
|
||||
chown cameraserver camera /sys/module/camera/parameters/cam_event_inject
|
||||
chmod 0664 /sys/kernel/reserve_pool/config
|
||||
chmod 0666 /sys/power/wake_lock
|
||||
chmod 0666 /sys/power/wake_unlock
|
||||
chmod u+xwr /data/vendor/camera
|
||||
chown camera camera /data/vendor/camera/hook.db
|
||||
chmod u+xwr /data/vendor/camera/hook.db
|
||||
setprop persist.vendor.camera.firstBoot 1
|
||||
setprop persist.vendor.camera.immunesystem.protection.switch true
|
||||
@@ -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
|
||||
@@ -0,0 +1,178 @@
|
||||
#
|
||||
# Copyright (c) 2022 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
on early-init
|
||||
chown system system /sys/devices/soc0/select_image
|
||||
chown system system /sys/devices/soc0/image_version
|
||||
chown system system /sys/devices/soc0/image_variant
|
||||
chown system system /sys/devices/soc0/image_crm_version
|
||||
|
||||
on early-fs
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etf/curr_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etf/enable_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr/curr_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr/enable_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr/out_mode
|
||||
chown system system /sys/bus/coresight/devices/coresight-tpiu/curr_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tpiu/out_mode
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/enable_source
|
||||
chown system system /sys/bus/coresight/devices/coresight-hwevent/enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/hwevent_enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-hwevent/setreg
|
||||
chown system system /sys/bus/coresight/devices/coresight-swao-csr/timestamp
|
||||
chown system system /sys/bus/coresight/devices/coresight-modem-diag/enable_source
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr1/enable_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr1/out_mode
|
||||
|
||||
on early-boot
|
||||
start vendor.diag-router
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/enable_sink
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/enable_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr/enable_sink
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/enable_sink
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/out_mode
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/out_mode
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr/out_mode
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/out_mode
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/block_size
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/block_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr/block_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/block_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/buffer_size
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/buffer_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr/buffer_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/buffer_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/enable_sink
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/enable_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr1/enable_sink
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/enable_sin
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/out_mode
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/out_mode
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr1/out_mode
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/out_mode
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/block_size
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/block_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr1/block_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/block_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/buffer_size
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/buffer_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr1/buffer_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/buffer_size
|
||||
chown system system /sys/bus/coresight/devices/coresight-modem-diag/enable_source
|
||||
chmod 660 /sys/devices/platform/soc/soc:modem_diag/coresight-modem-diag/enable_source
|
||||
chown system system /sys/bus/coresight/devices/coresight-modem-diag
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-modem-diag
|
||||
chown root oem_2902 /sys/bus/coresight/reset_source_sink
|
||||
chmod 660 /sys/bus/coresight/reset_source_sink
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_type
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_type
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_size
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_type
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_type
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_size
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_size
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/enable
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-stm/enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/enable_source
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-stm/enable_source
|
||||
chown system system /sys/bus/coresight/devices/coresight-hwevent/enable
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-hwevent/enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/hwevent_enable
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-stm/hwevent_enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-hwevent/setreg
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-hwevent/setreg
|
||||
chown system system /sys/bus/coresight/devices/coresight-swao-csr/timestamp
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-swao-csr/timestamp
|
||||
write /sys/bus/coresight/devices/coresight-stm/traceid 0x10
|
||||
|
||||
on boot
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/enable_sink
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/enable_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr/enable_sink
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/enable_sink
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/out_mode
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/out_mode
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr/out_mode
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/out_mode
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/block_size
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/block_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr/block_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/block_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/buffer_size
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/buffer_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr/buffer_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr/buffer_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/enable_sink
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/enable_sink
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr1/enable_sink
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/enable_sin
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/out_mode
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/out_mode
|
||||
chown system system /sys/bus/coresight/devices/coresight-tmc-etr1/out_mode
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/out_mode
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/block_size
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/block_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr1/block_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/block_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/buffer_size
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/buffer_size
|
||||
chown root oem_2902 /sys/bus/coresight/devices/coresight-tmc-etr1/buffer_size
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-tmc-etr1/buffer_size
|
||||
chown system system /sys/bus/coresight/devices/coresight-modem-diag/enable_source
|
||||
chmod 660 /sys/devices/platform/soc/soc:modem_diag/coresight-modem-diag/enable_source
|
||||
chown system system /sys/bus/coresight/devices/coresight-modem-diag
|
||||
chmod 664 /sys/bus/coresight/devices/coresight-modem-diag
|
||||
chown root oem_2902 /sys/bus/coresight/reset_source_sink
|
||||
chmod 660 /sys/bus/coresight/reset_source_sink
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_type
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_type
|
||||
chown root oem_2902 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_size
|
||||
chmod 660 /sys/devices/platform/soc/10048000.tmc/coresight-tmc-etr/mem_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_type
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_type
|
||||
chown root oem_2902 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_size
|
||||
chmod 660 /sys/devices/platform/soc/1004f000.tmc/coresight-tmc-etr1/mem_size
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/enable
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-stm/enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/enable_source
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-stm/enable_source
|
||||
chown system system /sys/bus/coresight/devices/coresight-hwevent/enable
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-hwevent/enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-stm/hwevent_enable
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-stm/hwevent_enable
|
||||
chown system system /sys/bus/coresight/devices/coresight-hwevent/setreg
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-hwevent/setreg
|
||||
chown system system /sys/bus/coresight/devices/coresight-swao-csr/timestamp
|
||||
chmod 660 /sys/bus/coresight/devices/coresight-swao-csr/timestamp
|
||||
write /sys/bus/coresight/devices/coresight-stm/traceid 0x10
|
||||
|
||||
#avoid the fifo error
|
||||
on early-boot && property:persist.logd.diag.bootup=* && property:persist.logd.diag.modemlog=*
|
||||
start diag_mdlog_bootup
|
||||
|
||||
service vendor.diag-router /vendor/bin/diag-router -d 7
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
capabilities KILL
|
||||
disabled
|
||||
|
||||
service qti-debug-early-boot-diag /vendor/bin/sh /vendor/bin/vendor.qti.diag.sh
|
||||
class core
|
||||
user root
|
||||
oneshot
|
||||
|
||||
on property:vendor.all.modules.ready=1
|
||||
start qti-debug-early-boot-diag
|
||||
|
||||
service diag_mdlog_bootup /vendor/bin/diag_mdlog -q 0x2006 -j 1 -u -c -i -n 50 -z -o /data/vendor/modem/diag_logs
|
||||
class late_start
|
||||
user shell
|
||||
group system oem_2902 oem_2905 sdcard_rw sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
service vendor.qti.hardware.alarm-service /vendor/bin/hw/vendor.qti.hardware.alarm-service
|
||||
interface aidl vendor.qti.hardware.alarm.IAlarm/default
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
disabled
|
||||
+8
@@ -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
|
||||
@@ -0,0 +1,9 @@
|
||||
service vendor.qti.hardware.display.allocator /vendor/bin/hw/vendor.qti.hardware.display.allocator-service
|
||||
class hal animation
|
||||
user system
|
||||
group graphics drmrpc
|
||||
capabilities SYS_NICE
|
||||
onrestart restart surfaceflinger
|
||||
# MIUI ADD: Performance_MemoryEnhance
|
||||
writepid /sys/kernel/reserve_pool/pid
|
||||
# END Performance_MemoryEnhance
|
||||
@@ -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
|
||||
@@ -0,0 +1,28 @@
|
||||
service vendor.qti.hardware.display.composer /vendor/bin/hw/vendor.qti.hardware.display.composer-service
|
||||
class hal animation
|
||||
user system
|
||||
group graphics drmrpc
|
||||
capabilities SYS_NICE
|
||||
onrestart restart surfaceflinger
|
||||
socket pps stream 0660 system system
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
# MIUI ADD: Performance_MemoryEnhance
|
||||
writepid /sys/kernel/reserve_pool/pid
|
||||
# END Performance_MemoryEnhance
|
||||
|
||||
on post-fs-data
|
||||
# for primary panel
|
||||
chown system system /sys/class/mi_display/disp-DSI-0/wp_info
|
||||
chmod 0444 /sys/class/mi_display/disp-DSI-0/wp_info
|
||||
chown system system /sys/class/mi_display/disp-DSI-0/brightness_clone
|
||||
chmod 0664 /sys/class/mi_display/disp-DSI-0/brightness_clone
|
||||
chown system system /sys/class/mi_display/disp-DSI-0/max_brightness_clone
|
||||
chmod 0664 /sys/class/mi_display/disp-DSI-0/max_brightness_clone
|
||||
# for secondary panel
|
||||
chown system system /sys/class/mi_display/disp-DSI-1/wp_info
|
||||
chmod 0444 /sys/class/mi_display/disp-DSI-1/wp_info
|
||||
chown system system /sys/class/mi_display/disp-DSI-1/brightness_clone
|
||||
chmod 0664 /sys/class/mi_display/disp-DSI-1/brightness_clone
|
||||
chown system system /sys/class/mi_display/disp-DSI-1/max_brightness_clone
|
||||
chmod 0664 /sys/class/mi_display/disp-DSI-1/max_brightness_clone
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
service vendor.qti.hardware.display.demura /vendor/bin/hw/vendor.qti.hardware.display.demura-service
|
||||
interface aidl vendor.qti.hardware.display.demura.IDemuraFileFinder/default
|
||||
class hal
|
||||
oneshot
|
||||
disabled
|
||||
user system
|
||||
group graphics
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
service vendor.qti.hardware.sensorscalibrate-service /vendor/bin/hw/vendor.qti.hardware.sensorscalibrate-service
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
service vendor.soter /vendor/bin/hw/vendor.qti.hardware.soter-service
|
||||
class late_start
|
||||
user system
|
||||
group system drmrpc
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
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
|
||||
@@ -0,0 +1,7 @@
|
||||
service vendor-qti-media-c2audio-hal-1-0 /vendor/bin/hw/vendor.qti.media.c2audio@1.0-service
|
||||
class hal
|
||||
user mediacodec
|
||||
group mediadrm camera drmrpc system
|
||||
ioprio rt 4
|
||||
writepid /dev/cpuset/foreground/tasks
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#==============================================================================
|
||||
# vendor.qti.qspmhal-service.rc
|
||||
#
|
||||
# Copyright (c) 2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#===============================================================================
|
||||
service qspmhal /vendor/bin/vendor.qti.qspmhal-service
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
interface aidl vendor.qti.qspmhal.IQspmhal/default
|
||||
|
||||
on post-fs-data
|
||||
#Create QSPM-hal deamon related dirs
|
||||
mkdir /data/vendor/gaming 0770 root system
|
||||
@@ -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
|
||||
+14
@@ -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
|
||||
@@ -0,0 +1,40 @@
|
||||
# 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.qti /vendor/bin/sensors.qti
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
|
||||
service vendor-sensor-sh /vendor/bin/init.qcom.sensors.sh
|
||||
class late_start
|
||||
user root
|
||||
oneshot
|
||||
@@ -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
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
# Copyright (c) 2017 Xiaomi, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Xiaomi, Inc.
|
||||
#
|
||||
service vendor.displayfeatureaidl-hal /vendor/bin/hw/vendor.xiaomi.hardware.displayfeature_aidl-service
|
||||
class hal
|
||||
user system
|
||||
group system graphics
|
||||
onrestart restart displayfeature
|
||||
|
||||
on early-boot
|
||||
# Display feature sysfs node
|
||||
chown system system /sys/class/mi_display/disp-DSI-0/disp_count
|
||||
chmod 0664 /sys/class/mi_display/disp-DSI-0/disp_count
|
||||
chown system system /sys/class/mi_display/disp-DSI-1/disp_count
|
||||
chmod 0664 /sys/class/mi_display/disp-DSI-1/disp_count
|
||||
|
||||
on boot
|
||||
chown system system /sys/devices/virtual/graphics/fb0/hist_event
|
||||
|
||||
on post-fs-data
|
||||
chown system system /sys/class/drm/card0-DSI-1/mipi_reg
|
||||
chmod 664 /sys/class/drm/card0-DSI-1/mipi_reg
|
||||
|
||||
service displayfeature /vendor/bin/displayfeature
|
||||
class late_start
|
||||
user root
|
||||
group root
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2019-2020, 2023 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
|
||||
service vendor.vppservice /vendor/bin/vppservice
|
||||
class hal
|
||||
user mediacodec
|
||||
group camera system media
|
||||
|
||||
# AIDL interface
|
||||
interface aidl vendor.qti.hardware.vpp.IVppService/default
|
||||
|
||||
# don't auto restart
|
||||
oneshot
|
||||
|
||||
# start only when requested (uncomment below to disable service at boot)
|
||||
# disabled
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
#
|
||||
# Copyright (c) 2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
service wfdvndservice /vendor/bin/wfdvndservice
|
||||
class main
|
||||
user system
|
||||
group inet
|
||||
Reference in New Issue
Block a user