rodin: Initial vendor tree
Change-Id: I82fdf19168c57722403b81d983505a35d12b9926 Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
service vendor.gatekeeper_mitee /vendor/bin/hw/android.hardware.gatekeeper-service.mitee
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
@@ -0,0 +1,5 @@
|
||||
service vendor.gnss-default /vendor/bin/hw/android.hardware.gnss-service.mediatek
|
||||
class hal
|
||||
user system
|
||||
capabilities WAKE_ALARM
|
||||
group system gps
|
||||
@@ -0,0 +1,8 @@
|
||||
service vendor.hwcomposer /vendor/bin/hw/android.hardware.graphics.composer@3.3-service
|
||||
class hal animation
|
||||
user system
|
||||
group graphics drmrpc
|
||||
capabilities SYS_NICE
|
||||
onrestart restart surfaceflinger
|
||||
task_profiles ServiceCapacityLow
|
||||
writepid /sys/kernel/reserve_pool/pid /proc/sys/binder_prio/composer_pid
|
||||
@@ -0,0 +1,3 @@
|
||||
service vendor.identity-mitee /vendor/bin/hw/android.hardware.identity-service.mitee@5.0
|
||||
class hal
|
||||
user system
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
service neuralnetworks_hal_service_shim_mtk /vendor/bin/hw/android.hardware.neuralnetworks-shim-service-mtk
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
group system readproc
|
||||
task_profiles NNApiHALPerformance
|
||||
disabled
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/nn 0775 system system
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/nn/debug_plus 0775 system system
|
||||
|
||||
on property:ro.vendor.mtk_nn_baseline_support=1
|
||||
start neuralnetworks_hal_service_shim_mtk
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
service mtk_secure_element_hal_service /vendor/bin/hw/android.hardware.secure_element@1.2-service-mediatek
|
||||
class hal
|
||||
user secure_element
|
||||
group secure_element
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
service vendor.keymint-mitee /vendor/bin/hw/android.hardware.security.keymint@3.0-service.mitee
|
||||
class early_hal
|
||||
user system
|
||||
group system drmrpc
|
||||
disabled
|
||||
@@ -0,0 +1,7 @@
|
||||
service tetheroffloadservice /vendor/bin/hw/tetheroffloadservice
|
||||
interface aidl android.hardware.tetheroffload.IOffload/default
|
||||
class hal
|
||||
user system
|
||||
group net_admin net_raw system misc
|
||||
oneshot
|
||||
disabled
|
||||
@@ -0,0 +1,5 @@
|
||||
service vendor.mali_platform-mediatek /vendor/bin/hw/arm.mali.platform-service.mediatek
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
writepid /proc/sys/binder_prio/arm_mali_pid /sys/module/metis/parameters/set_static_vip
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
on post-fs-data
|
||||
chmod 666 /proc/ppb/ppb_camera_power
|
||||
|
||||
service camerahalserver /vendor/bin/hw/camerahalserver
|
||||
class main
|
||||
user cameraserver
|
||||
group audio camera input drmrpc sdcard_rw system media graphics
|
||||
ioprio rt 4
|
||||
capabilities SYS_NICE
|
||||
task_profiles CameraServiceCapacity MaxPerformance
|
||||
@@ -0,0 +1,7 @@
|
||||
on early-init
|
||||
exec_background - system system -- /vendor/bin/chipinfo
|
||||
|
||||
on post-fs-data
|
||||
wait_for_prop ro.vendor.soc.model_ready 1
|
||||
setprop ro.soc.model ${ro.vendor.soc.model}
|
||||
setprop ro.soc.manufacturer ${ro.vendor.soc.manufacturer}
|
||||
@@ -0,0 +1,4 @@
|
||||
service fuelgauged /vendor/bin/fuelgauged
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
@@ -0,0 +1,6 @@
|
||||
service fuelgauged_nvram /vendor/bin/fuelgauged_nvram
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
service vendor.gpuserv-default /vendor/bin/hw/vendor.mediatek.hardware.gpuserv-service
|
||||
disabled
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
|
||||
on boot && property:ro.vendor.mtk.gpu.service=1
|
||||
start vendor.gpuserv-default
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
service insmod_sh /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.${ro.hardware}.cfg
|
||||
class main
|
||||
user root
|
||||
group root system
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on early-init
|
||||
setprop vendor.all.modules.ready 0
|
||||
write /proc/bootprof "modprobe: Load_Module_START"
|
||||
start insmod_sh
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
# load bt_drv
|
||||
on property:vendor.connsys.driver.ready=yes && property:ro.vendor.bt.connac3=no
|
||||
insmod /vendor/lib/modules/bt_drv_${ro.vendor.bt.platform}.ko
|
||||
chown bluetooth bluetooth /proc/driver/bt_dbg
|
||||
on property:vendor.connsys.driver.ready=no && property:ro.vendor.bt.connac3=no
|
||||
insmod /vendor/lib/modules/bt_drv_${ro.vendor.bt.platform}.ko
|
||||
chown bluetooth bluetooth /proc/driver/bt_dbg
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
#
|
||||
on early-init
|
||||
|
||||
on post-fs-data
|
||||
|
||||
# Modem related device nodes
|
||||
mkdir /mnt/vendor/nvdata/md 0770 root system
|
||||
mkdir /mnt/vendor/nvdata/md3 0770 root system
|
||||
mkdir /data/vendor/md3 0770 root system
|
||||
# Build-in Modified - S
|
||||
# insmod /vendor/lib/modules/ccci_plat.ko
|
||||
# insmod /vendor/lib/modules/ccci.ko
|
||||
# Build-in Modified - E
|
||||
# chown radio radio /sys/class/BOOT/BOOT/boot/md
|
||||
chown radio radio /sys/kernel/ccci/boot
|
||||
|
||||
#from ccci_fsd
|
||||
mkdir /data/vendor/mdlpm 0770 system radio
|
||||
restorecon /data/vendor/mdlpm
|
||||
# mkdir /data/vendor/md3 0770 system radio
|
||||
restorecon /data/vendor/md3
|
||||
|
||||
mkdir /data/vendor_de/md 0770 system radio
|
||||
restorecon /data/vendor_de/md
|
||||
|
||||
restorecon_recursive /mnt/vendor/protect_f
|
||||
restorecon_recursive /mnt/vendor/protect_s
|
||||
|
||||
#SeLinux
|
||||
|
||||
service ccci_mdinit /vendor/bin/ccci_mdinit 0
|
||||
user system
|
||||
group radio system wakelock
|
||||
class core
|
||||
priority -20
|
||||
ioprio rt 4
|
||||
oneshot
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#
|
||||
|
||||
service vendor.ccci_rpcd /vendor/bin/ccci_rpcd 0
|
||||
user radio
|
||||
group radio system
|
||||
class core
|
||||
oneshot
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
# load gps_pwr
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/gps_pwr.ko
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
# load gps_drv
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/gps_scp.ko
|
||||
@@ -0,0 +1,7 @@
|
||||
# VTService_hidl .rc configure
|
||||
|
||||
service vtservice_aidl /vendor/bin/hw/vtservice_aidl
|
||||
class hal
|
||||
user system
|
||||
group system camera graphics inet net_admin net_raw media sdcard_rw radio sdcard_r media_rw
|
||||
ioprio rt 4
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
# start wlan assistant on boot
|
||||
on boot
|
||||
start wlan_assistant
|
||||
@@ -0,0 +1,9 @@
|
||||
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
|
||||
|
||||
on property:persist.vendor.radio.close_wenkong=yes
|
||||
stop mi_thermald
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
service miteelog /vendor/bin/miteelog
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
disabled
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/mitee
|
||||
chmod 0755 /data/vendor/mitee
|
||||
chown system system /data/vendor/mitee
|
||||
mkdir /data/vendor/thh
|
||||
chmod 0755 /data/vendor/thh
|
||||
chown system system /data/vendor/thh
|
||||
write /proc/bootprof "init miteelog"
|
||||
start miteelog
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/agps_supl 0771 gps system
|
||||
|
||||
service agpsd /vendor/bin/mtk_agpsd
|
||||
class main
|
||||
socket agpsd stream 660 gps system
|
||||
socket agpsd2 stream 660 gps inet
|
||||
socket agpsd3 stream 660 gps inet
|
||||
user gps
|
||||
group gps radio inet sdcard_r sdcard_rw misc system
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
on post-fs-data
|
||||
# create ims db node
|
||||
mkdir /data/vendor/radio 0771 radio radio
|
||||
|
||||
service vendor.ril-daemon-mtk /vendor/bin/hw/mtkfusionrild -l libmtk-ril.so
|
||||
class main
|
||||
socket rild-oem stream 660 radio system
|
||||
socket volte_imsvt1 stream 660 root radio
|
||||
socket rild-atci stream 660 root radio
|
||||
user radio
|
||||
group radio net_admin net_raw cache inet misc audio log readproc wakelock sdcard_r sdcard_rw system
|
||||
group bluetooth
|
||||
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW WAKE_ALARM
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on property:vendor.ril.mtk=1
|
||||
start vendor.ril-daemon-mtk
|
||||
|
||||
on property:vendor.ril.mtk.restart=1
|
||||
restart vendor.ril-daemon-mtk
|
||||
|
||||
on property:ro.vendor.mtk_mipc_support=1
|
||||
start vendor.ril-daemon-mtk
|
||||
|
||||
on property:vold.decrypt=trigger_restart_framework
|
||||
start vendor.ril-daemon-mtk
|
||||
|
||||
on property:init.svc.zygote=stopped && property:init.svc.vendor.ril-daemon-mtk=running
|
||||
setprop vendor.ril.zygote.state "stopped"
|
||||
|
||||
on property:init.svc.zygote=restarting && property:init.svc.vendor.ril-daemon-mtk=running
|
||||
setprop vendor.ril.zygote.state "restarting"
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
service vendor.muxreport-daemon /vendor/bin/muxreport
|
||||
class core
|
||||
user radio
|
||||
group radio cache inet misc
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:vendor.ril.muxreport=1
|
||||
start vendor.muxreport-daemon
|
||||
chmod 0220 /sys/bus/pci/devices/0001:01:00.0/mtk_device_ctrl
|
||||
chown root radio /sys/bus/pci/devices/0001:01:00.0/mtk_device_ctrl
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
service netdagent /vendor/bin/netdagent
|
||||
class late_start
|
||||
#socket netdagent stream 0660 root system
|
||||
user system
|
||||
group net_admin net_raw system misc
|
||||
capabilities NET_ADMIN NET_RAW
|
||||
|
||||
on property:persist.vendor.operator.optr=OP12
|
||||
write /proc/sys/net/optr 12
|
||||
|
||||
# NTT also need this feature. optr in kernel
|
||||
# only is like a feature option to enable this
|
||||
# feature. No longer operator code meaning again.
|
||||
on property:persist.vendor.operator.optr=OP17
|
||||
write /proc/sys/net/optr 12
|
||||
|
||||
# ATT also need this feature. optr in kernel
|
||||
# only is like a feature option to enable this
|
||||
# feature. No longer operator code meaning again.
|
||||
on property:persist.vendor.operator.optr=OP07
|
||||
write /proc/sys/net/optr 12
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
service nvram_daemon /vendor/bin/nvram_daemon
|
||||
class core
|
||||
user root
|
||||
group system radio wifi audio bluetooth media
|
||||
oneshot
|
||||
@@ -0,0 +1,4 @@
|
||||
service vendor.secure_element_hal_service /vendor/bin/hw/vendor.xiaomi.hardware.secure_element-service
|
||||
class hal
|
||||
user system
|
||||
group system secure_element nfc
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
# For MTK DRM integration:
|
||||
service tee-supplicant /vendor/bin/tee-supplicant
|
||||
class core
|
||||
user system
|
||||
group system secure_element nfc
|
||||
capabilities SYS_RAWIO
|
||||
disabled
|
||||
|
||||
|
||||
on fs
|
||||
write /proc/bootprof "init tee-supplicant"
|
||||
# set SELinux security contexts on upgrade or policy update
|
||||
restorecon_recursive /mnt/vendor/persist
|
||||
chmod 0660 /dev/tee0
|
||||
chmod 0660 /dev/teepriv0
|
||||
chown system system /dev/tee0
|
||||
chown system system /dev/teepriv0
|
||||
chmod 0660 /dev/rpmb0
|
||||
chmod 0660 /dev/mmcblk0rpmb
|
||||
chmod 0660 /dev/0:0:0:49476
|
||||
chmod 0660 /dev/ufs-bsg0
|
||||
chmod 0666 /dev/kmsg
|
||||
chown system system /dev/rpmb0
|
||||
chown system system /dev/mmcblk0rpmb
|
||||
chown system system /dev/0:0:0:49476
|
||||
chown system system /dev/ufs-bsg0
|
||||
# enable vendor.keymaster-4-0-mitee
|
||||
enable vendor.keymint-mitee
|
||||
start tee-supplicant
|
||||
mkdir /mnt/vendor/persist/data 0755 system system
|
||||
mkdir /mnt/vendor/persist/fdsd 0755 system system
|
||||
setprop vendor.teefs_state ready
|
||||
setprop ro.hardware.gatekeeper mitee
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
service touch_boost /vendor/bin/touch_boost
|
||||
class main
|
||||
user system
|
||||
group system readproc wifi media media_rw camera audio
|
||||
|
||||
on boot
|
||||
start touch_boost
|
||||
|
||||
on post-fs-data
|
||||
|
||||
chown system system /proc/perfmgr_touch_boost
|
||||
chown system system /proc/perfmgr_touch_boost/ioctl_touch_boost
|
||||
@@ -0,0 +1,8 @@
|
||||
service vendor.mediatek.hardware.mmagent-default /vendor/bin/hw/vendor.mediatek.hardware.mmagent-service
|
||||
interface aidl vendor.mediatek.hardware.mmagent.IMMAgent/default
|
||||
class main
|
||||
user system
|
||||
oneshot
|
||||
disabled
|
||||
group system graphics
|
||||
capabilities SYS_NICE
|
||||
@@ -0,0 +1,6 @@
|
||||
service vendor.mmlpq-default /vendor/bin/hw/vendor.mediatek.hardware.mmlpq@V1-service
|
||||
class main
|
||||
user system
|
||||
group system graphics
|
||||
capabilities SYS_NICE
|
||||
shutdown critical
|
||||
@@ -0,0 +1,8 @@
|
||||
service vendor.mediatek.hardware.mms-default /vendor/bin/hw/vendor.mediatek.hardware.mms-service
|
||||
interface aidl vendor.mediatek.hardware.mms.IMms/default
|
||||
class main
|
||||
user system
|
||||
oneshot
|
||||
disabled
|
||||
group system graphics
|
||||
capabilities SYS_NICE
|
||||
@@ -0,0 +1,4 @@
|
||||
service nvram-aidl /vendor/bin/hw/vendor.mediatek.hardware.nvram-service
|
||||
class hal
|
||||
user root
|
||||
group system bluetooth media audio radio
|
||||
@@ -0,0 +1,8 @@
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/disp_pq 0777 system system
|
||||
service vender.mediatek.hardware.pq_aidl-default /vendor/bin/hw/vendor.mediatek.hardware.pq_aidl-service
|
||||
interface aidl vendor.mediatek.hardware.pq_aidl-service
|
||||
class main
|
||||
user system
|
||||
group system graphics
|
||||
capabilities SYS_NICE
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
# 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
|
||||
chmod 0666 /sys/kernel/tracing/events/sde/tracing_mark_write/enable
|
||||
|
||||
service displayfeature /vendor/bin/displayfeature
|
||||
class late_start
|
||||
user root
|
||||
group root
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# volte_clientapi_ua specific system properties
|
||||
#
|
||||
on property:sys.boot_completed=1 && property:persist.vendor.clientapi_support=1
|
||||
start volte_clientapi_ua
|
||||
|
||||
#
|
||||
# volte_clientapi_ua specific system service and socket information
|
||||
#
|
||||
service volte_clientapi_ua /vendor/bin/volte_clientapi_ua
|
||||
class hal
|
||||
socket volte_clientapi stream 666 root system
|
||||
user system
|
||||
group system log inet radio
|
||||
disabled
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
service wlan_assistant /vendor/bin/wlan_assistant
|
||||
class main
|
||||
user wifi
|
||||
group system gps inet
|
||||
Reference in New Issue
Block a user