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
# 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
service vendor.qcrild /vendor/bin/hw/qcrild
class main
user radio
disabled
group radio cache inet misc audio log readproc wakelock oem_2901
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
service vendor.qcrild2 /vendor/bin/hw/qcrild -c 2
class main
user radio
disabled
group radio cache inet misc audio log readproc wakelock oem_2901
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
service vendor.qcrild3 /vendor/bin/hw/qcrild -c 3
class main
user radio
disabled
group radio cache inet misc audio log readproc wakelock oem_2901
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
# 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
class core
user root
group root
service display-color-hal-1-0 /vendor/bin/hw/vendor.display.color@1.0-service
class hal
user system
group system
service qti_esepowermanager_service /vendor/bin/hw/vendor.qti.esepowermanager@1.0-service
class hal
user system
group nfc system
# Copyright (c) 2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service alarm-hal-1-0 /vendor/bin/hw/vendor.qti.hardware.alarm@1.0-service
interface vendor.qti.hardware.alarm@1.0::IAlarm default
class hal
user system
group system
oneshot
disabled
\ No newline at end of file
# 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
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
#
service vendor.hvdcp_opti /vendor/bin/hvdcp_opti
class main
user system
group system wakelock
capabilities BLOCK_SUSPEND WAKE_ALARM
disabled
service vendor.qti-chg-policy-sh /vendor/bin/init.qti.chg_policy.sh
class core
user root
oneshot
disabled
on boot
enable vendor.qti-chg-policy-sh
start vendor.qti-chg-policy-sh
on charger
chown radio wakelock /sys/power/wake_lock
chmod 0660 /sys/power/wake_lock
chown radio wakelock /sys/power/wake_unlock
chmod 0660 /sys/power/wake_unlock
mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
mount_all /vendor/etc/charger_fstab.qti --early
enable vendor.qti-chg-policy-sh
start vendor.qti-chg-policy-sh
on property:persist.vendor.hvdcp_opti.start=1
mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
enable vendor.hvdcp_opti
start vendor.hvdcp_opti
setprop persist.vendor.hvdcp_opti.start 0
# @file io-p.c
# @brief Defination for iop service
#
# DESCRIPTION
# ---------------------------------------------------------------------------
# Copyright (c) 2011-2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
# ---------------------------------------------------------------------------
service iop-hal-2-0 /vendor/bin/hw/vendor.qti.hardware.iop@2.0-service
class hal
user root
group root readproc
service perf-hal-2-0 /vendor/bin/hw/vendor.qti.hardware.perf@2.0-service
class hal
user root
group root readproc oem_2907
service qdutils_disp-1-0 /vendor/bin/hw/vendor.qti.hardware.qdutils_disp@1.0-service-qti
class hal
user system
group system drmrpc
#
# 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
service qteeconnector-hal-1-0 /vendor/bin/hw/vendor.qti.hardware.qteeconnector@1.0-service
class hal
user system
group system
service objectTracker /vendor/bin/hw/vendor.qti.hardware.scve.objecttracker@1.0-service
class hal
user system
group camera system
\ No newline at end of file
service panorama /vendor/bin/hw/vendor.qti.hardware.scve.panorama@1.0-service
class hal
user system
group camera system
\ No newline at end of file
service vendor.servicetracker-1-1 /vendor/bin/hw/vendor.qti.hardware.servicetracker@1.1-service
class hal
user system
group system
# Copyright (c) 2018 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service soter-1-0 /vendor/bin/hw/vendor.qti.hardware.soter@1.0-service
class hal
user system
group system drmrpc
service tui_comm-1-0 /vendor/bin/hw/vendor.qti.hardware.tui_comm@1.0-service-qti
class hal
user system
group system drmrpc
#
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service vendor.wifilearner /system/vendor/bin/wifilearner
class main
user wifi
group wifi
# HIDL interfaces
interface vendor.qti.hardware.wifi.wifilearner@1.0::IWifiStats wifiStats
# don't auto restart
oneshot
# start only when requested
disabled
#
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service wigighalsvc /vendor/bin/wigighalsvc
interface vendor.qti.hardware.wigig.supptunnel@1.0::ISuppTunnelProvider default
class hal
user wifi
group wifi
disabled
# wpa_supplicant instance for running WIGIG P2P under WIFI
service wigig_p2p_supplicant /vendor/bin/hw/wpa_supplicant \
-O/data/vendor/wifi/wigig_sockets -dd \
-g@android:wigig/wpa_wigig0 -Swigigp2p
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
interface android.hardware.wifi.supplicant@1.0::ISupplicant wigigp2p
interface android.hardware.wifi.supplicant@1.1::ISupplicant wigigp2p
class main
socket wigig/wpa_wigig0 dgram 660 wifi wifi
disabled
oneshot
on property:vendor.wigig.driver=on
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules wil6210 alt_ifname=1
setprop vendor.wigig.driver.probed 1
on property:vendor.wigig.driver=on,ipa
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules wil6210 alt_ifname=1 ipa_offload=1
setprop vendor.wigig.driver.probed 1
on property:vendor.wigig.driver=on,sensing
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules wil6210 alt_ifname=1 support_sensing_over_spi=1
setprop vendor.wigig.driver.probed 1
on property:vendor.wigig.driver=on,ipa,sensing
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -d /vendor/lib/modules wil6210 alt_ifname=1 ipa_offload=1 support_sensing_over_spi=1
setprop vendor.wigig.driver.probed 1
on property:vendor.wigig.driver=off
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules wil6210
setprop vendor.wigig.driver.probed 0
on property:vendor.wigig.driver.probed=1
# fix owner/permission of wigig files, workaround for ueventd bug
chmod 0660 /sys/class/net/wigig0/device/wil6210/fst_link_loss
chown system wifi /sys/class/net/wigig0/device/wil6210/fst_link_loss
chmod 0660 /sys/class/net/wigig0/device/wil6210/thermal_throttling
chown system wifi /sys/class/net/wigig0/device/wil6210/thermal_throttling
chmod 0660 /sys/class/net/wigig0/device/wil6210/snr_thresh
chown system wifi /sys/class/net/wigig0/device/wil6210/snr_thresh
chmod 0660 /sys/class/net/wigig0/queues/rx-0/rps_cpus
chown system wifi /sys/class/net/wigig0/queues/rx-0/rps_cpus
chmod 0660 /sys/class/net/wigig0/gro_flush_timeout
chown system wifi /sys/class/net/wigig0/gro_flush_timeout
chmod 0660 /sys/class/net/wigig0/device/wil6210/fst_config
chown system wifi /sys/class/net/wigig0/device/wil6210/fst_config
Supports Markdown
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