klee: Initial vendor tree
Change-Id: Id84cbbc84ce32ce0af59e42e797de11ea2244efd Signed-off-by: Ido <dev.xyzuniverse@gmail.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/audiohal 0771 system audio
|
||||
mkdir /data/vendor/audio 0771 system audio
|
||||
|
||||
service vendor.audio-hal-aidl /vendor/bin/hw/android.hardware.audio.service-aidl.mediatek
|
||||
class hal
|
||||
user audioserver
|
||||
# media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
|
||||
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct wakelock context_hub system
|
||||
capabilities BLOCK_SUSPEND SYS_NICE
|
||||
# setting RLIMIT_RTPRIO allows binder RT priority inheritance
|
||||
rlimit rtprio 10 10
|
||||
ioprio rt 4
|
||||
task_profiles ProcessCapacityHigh HighPerformance
|
||||
#Audio-add BEGIN
|
||||
socket audio_hw_socket seqpacket 0666 system system
|
||||
socket vibrator_audio_socket_0 seqpacket 0666 system system
|
||||
#END
|
||||
onrestart restart audioserver
|
||||
@@ -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 /proc/sys/binder_prio/composer_pid /sys/kernel/reserve_pool/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
|
||||
+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}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
service dms-hal /vendor/bin/hw/vendor.dolby.dms.service
|
||||
class hal
|
||||
user media
|
||||
group audio media
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/dolby 0770 media media
|
||||
@@ -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
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
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
|
||||
|
||||
on boot && property:ro.vendor.mtk.gpu.service=1 && property:ro.vendor.mtk.gpu.service.lazy=1
|
||||
stop 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
|
||||
+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
|
||||
+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,10 @@
|
||||
service vendor.secure_element_hal_service /vendor/bin/hw/vendor.xiaomi.hardware.secure_element-service
|
||||
class early_hal
|
||||
user system
|
||||
group system secure_element nfc
|
||||
|
||||
on fs
|
||||
chmod 0660 /dev/p73
|
||||
chown nfc nfc /dev/p73
|
||||
chmod 0666 /sys/nfc/chip_name
|
||||
chown nfc nfc /sys/nfc/chip_name
|
||||
+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,7 @@
|
||||
service vendor-dolby-media-c2-hal /vendor/bin/hw/vendor.dolby.media.c2-default-service-dax
|
||||
class hal
|
||||
user mediacodec
|
||||
group camera mediadrm drmrpc
|
||||
ioprio rt 4
|
||||
task_profiles ProcessCapacityHigh
|
||||
|
||||
@@ -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,20 @@
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/disp_pq 0777 system system
|
||||
chmod 0777 /mnt/vendor/display_dbi
|
||||
chown system system /mnt/vendor/display_dbi
|
||||
chmod 0777 /mnt/vendor/display_dbi/dbi_lifecycle.data
|
||||
chown system system /mnt/vendor/display_dbi/dbi_lifecycle.data
|
||||
chmod 0777 /mnt/vendor/display_dbi/dbi_lifecycle.bak
|
||||
chown system system /mnt/vendor/display_dbi/dbi_lifecycle.bak
|
||||
chmod 0777 /mnt/vendor/display_dbi/panel_msg.txt
|
||||
chown system system /mnt/vendor/display_dbi/panel_msg.txt
|
||||
restorecon_recursive /mnt/vendor/display_dbi/
|
||||
chmod 0777 /sys/class/mi_display/disp-DSI-0/sn_info
|
||||
chown system system /sys/class/mi_display/disp-DSI-0/sn_info
|
||||
|
||||
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