Commit e1d08612 authored by Adithya R's avatar Adithya R
Browse files

trinket-common: Move all vendor init rc's to device tree

parent 1b5e54bf
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
capabilities BLOCK_SUSPEND NET_ADMIN
# 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
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-2 /vendor/bin/hw/android.hardware.drm@1.2-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.hidl.base@1.0::IBase widevine
class hal
user media
group media mediadrm drmrpc system
ioprio rt 4
writepid /dev/cpuset/foreground/tasks
writepid /d/ktrace/sched/drm_pid
service gatekeeper-1-0 /vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti
class early_hal
user system
group system
on init
start keymaster-4-0
service keymaster-4-0 /vendor/bin/hw/android.hardware.keymaster@4.0-service-qti
class early_hal
user system
group system drmrpc
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service neuralnetworks_hal_service /vendor/bin/hw/android.hardware.neuralnetworks@1.2-service-qti
class hal
user system
group system
#Below changes moved from init.target.rc as part of go/FR53051
on post-fs-data
mkdir /data/vendor/nnhal 0700 system system
service vendor.cnd /system/vendor/bin/cnd
class main
user system
group system wifi inet radio wakelock net_admin
\ No newline at end of file
#
# 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
# 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
\ No newline at end of file
# 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
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#start dpmQmiMgr service
service dpmQmiMgr /system/vendor/bin/dpmQmiMgr
class main
user system
group system
# 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
\ No newline at end of file
# 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
# 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
# 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
on property:ro.board.platform=msmnile && property:ro.baseband=msm && property:ro.vendor.qti.va_aosp.support=1
setprop ro.telephony.iwlan_operation_mode "legacy"
service vendor.fm /vendor/bin/init.qti.fm.sh
class late_start
user system
group system
disabled
oneshot
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
on post-fs
write /dev/ipa 1
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# msm specific files that need to be created on /data
on post-fs-data
#create ipacm-diag log dir
mkdir /data/vendor/ipa 0770 radio radio
chmod 0770 /data/vendor/ipa
service vendor.ipacm-diag /system/vendor/bin/ipacm-diag
class main
user radio
socket ipacm_log_file dgram 660 radio radio
group radio diag oem_2901
on post-fs
start vendor.ipacm-diag
# Copyright (c) 2019 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
# 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: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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment