X1: Initial Vendor tree and sync with dt changes

Change-Id: I272f0d8cfd5b8718ab650a00496ebbca7907fea4
Signed-off-by: vlxlxlv <fajarslebew31@gmail.com>
This commit is contained in:
2026-06-18 06:59:39 +02:00
commit 130372a2be
960 changed files with 43374 additions and 0 deletions
@@ -0,0 +1,28 @@
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-4 /vendor/bin/hw/android.hardware.drm@1.4-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.hardware.drm@1.3::ICryptoFactory widevine
interface android.hardware.drm@1.3::IDrmFactory widevine
interface android.hardware.drm@1.4::ICryptoFactory widevine
interface android.hardware.drm@1.4::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
@@ -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,7 @@
service vendor.gralloc-4-0 /vendor/bin/hw/android.hardware.graphics.allocator@4.0-service-mediatek
class hal animation
interface android.hardware.graphics.allocator@4.0::IAllocator default
user system
group graphics drmrpc
capabilities SYS_NICE
onrestart restart surfaceflinger
@@ -0,0 +1,10 @@
service android-hardware-media-c2-hal-1-2 /vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b
class hal
user mediacodec
group camera drmrpc mediadrm media_rw sdcard_rw media system audio inet net_bt net_bt_admin net_bw_acct sdcard_r
ioprio rt 4
task_profiles ProcessCapacityHigh HighPerformance
interface android.hardware.media.c2@1.0::IComponentStore default
interface android.hardware.media.c2@1.1::IComponentStore default
interface android.hardware.media.c2@1.2::IComponentStore default
@@ -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
enable neuralnetworks_hal_service_shim_mtk
@@ -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
@@ -0,0 +1,3 @@
service vendor.keymint-trustonic /vendor/bin/hw/android.hardware.security.keymint-service.trustonic
class early_hal
user system
@@ -0,0 +1,13 @@
on boot
chown root system /sys/class/typec/port0/power_role
chown root system /sys/class/typec/port0/data_role
chown root system /sys/class/typec/port0/port_type
chmod 664 /sys/class/typec/port0/power_role
chmod 664 /sys/class/typec/port0/data_role
chmod 664 /sys/class/typec/port0/port_type
service vendor.usb-hal-1-2 /vendor/bin/hw/android.hardware.usb@1.2-service-mediatekv2
class hal
user root
group root system shell mtp
capabilities
+7
View File
@@ -0,0 +1,7 @@
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
+4
View File
@@ -0,0 +1,4 @@
service fuelgauged /vendor/bin/fuelgauged
class core
user system
group system
+6
View File
@@ -0,0 +1,6 @@
service fuelgauged_nvram /vendor/bin/fuelgauged_nvram
class main
user system
group system
oneshot
+7
View File
@@ -0,0 +1,7 @@
service vendor.gsm0710muxd /vendor/bin/gsm0710muxd -s /dev/ttyC0 -f 512 -n 8 -m basic
class main
user radio
group radio cache inet misc
disabled
oneshot
+31
View File
@@ -0,0 +1,31 @@
# This file needs to be executed by vendor_init at boot of the device,
# in normal and FM mode.
# Start the HAL service in all modes (FM, meta, normal)
on post-fs
start nfc_hal_service
# For factory mode, nfcstackp to create the socket as vendor here
on post-fs-data
mkdir /data/vendor/nfc_socket 0770 nfc nfc
# start STFlashTool at boot to ensure a NFC FW is loaded for factory tests
service stflashtool /vendor/bin/STFlashTool
class late_start
user nfc
group nfc
oneshot
service nfcstackp_vendor /vendor/bin/nfcstackp-vendor
class late_start
user nfc
group nfc
disabled
# start nfcstackp_vendor by properties (FM or EM HIDL will set value)
on property:vendor.nfc.nfcstackp.enable=0
stop nfcstackp_vendor
on property:vendor.nfc.nfcstackp.enable=1
start nfcstackp_vendor
+7
View File
@@ -0,0 +1,7 @@
# load bt_drv
on property:vendor.connsys.driver.ready=yes
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
insmod /vendor/lib/modules/bt_drv_${ro.vendor.bt.platform}.ko
chown bluetooth bluetooth /proc/driver/bt_dbg
+45
View File
@@ -0,0 +1,45 @@
#
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
class core
priority -20
ioprio rt 4
oneshot
service ccci3_mdinit /vendor/bin/ccci_mdinit 2
user system
group radio system
disabled
class core
oneshot
+8
View File
@@ -0,0 +1,8 @@
#
service vendor.ccci_rpcd /vendor/bin/ccci_rpcd 0
user radio
group radio system
class core
oneshot
+4
View File
@@ -0,0 +1,4 @@
# load gps_drv
on property:vendor.connsys.driver.ready=yes
insmod /vendor/lib/modules/${ro.vendor.gps.chrdev}.ko
+4
View File
@@ -0,0 +1,4 @@
# load gps_pwr
on property:vendor.connsys.driver.ready=yes
insmod /vendor/lib/modules/gps_pwr.ko
+9
View File
@@ -0,0 +1,9 @@
service thermal_core /vendor/bin/thermal_core
class main
socket thermal_socket stream 660 root system
user root
group system radio
disabled
on property:vendor.thermal.link_ready=1
start thermal_core
+8
View File
@@ -0,0 +1,8 @@
# VTService_hidl .rc configure
service vtservice_hidl /vendor/bin/hw/vtservice_hidl
class hal
socket volte_vt stream 660 root system
user system
group system camera graphics inet net_admin net_raw media sdcard_rw radio sdcard_r media_rw
ioprio rt 4
+6
View File
@@ -0,0 +1,6 @@
# load wifi driver after wmt_loader finish
on property:vendor.connsys.driver.ready=yes
insmod /vendor/lib/modules/${ro.vendor.wlan.chrdev}.ko
insmod /vendor/lib/modules/wlan_drv_${ro.vendor.wlan.gen}.ko
start wlan_assistant
+2
View File
@@ -0,0 +1,2 @@
on boot
insmod /vendor/lib/modules/wmt_drv.ko
+11
View File
@@ -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
View File
@@ -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 sap_uim_socket1 stream 660 bluetooth bluetooth
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
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"
+15
View File
@@ -0,0 +1,15 @@
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
+5
View File
@@ -0,0 +1,5 @@
service nvram_daemon /vendor/bin/nvram_daemon
class core
user root
group system radio wifi audio bluetooth media
oneshot
+36
View File
@@ -0,0 +1,36 @@
on init
#create mountpoint for /mnt/vendor/persist partition
mkdir /mnt/vendor/persist 0771 system system
on post-fs
chown system system /mnt/vendor/persist
chmod 0771 /mnt/vendor/persist
# We restorecon /mnt/vendor/persist to set SEPolicy label.
restorecon /mnt/vendor/persist
# Create mcRegistry to store failure record
mkdir /mnt/vendor/persist/mcRegistry 0771 system system
on post-fs-data
# Create /data/vendor/key_provisioning dir and get proper encryption policy installed
# Key Installation
mkdir /data/vendor/key_provisioning 0771 system system
# For META/FACTORY mode
on property:ro.crypto.state=unencrypted
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (unencrypted)"
mkdir /data/vendor/mcRegistry 0775 system system
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (unencrypted)"
# Normal mode, FBE
on property:ro.crypto.type=file && property:ro.crypto.state=encrypted
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (FBE encrypted)"
mkdir /data/vendor/mcRegistry 0775 system system
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (FBE encrypted)"
# Normal mode, FDE
on property:vold.decrypt=trigger_restart_framework
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (FDE encrypted)"
mkdir /data/vendor/mcRegistry 0775 system system
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (FDE encrypted)"
+9
View File
@@ -0,0 +1,9 @@
service tetheroffloadservice /vendor/bin/hw/tetheroffloadservice
interface android.hardware.tetheroffload.config@1.0::IOffloadConfig default
interface android.hardware.tetheroffload.control@1.0::IOffloadControl default
interface android.hardware.tetheroffload.control@1.1::IOffloadControl default
class hal
user system
group net_admin net_raw system misc
oneshot
disabled
+58
View File
@@ -0,0 +1,58 @@
# Start Daemon (Registry directories should already be present)
service mobicore /vendor/bin/mcDriverDaemon --sfs-reformat --P1 /mnt/vendor/persist/mcRegistry \
-r /vendor/app/mcRegistry/06090000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/020f0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/05120000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/05120000000000000000000000000001.drbin \
-r /vendor/app/mcRegistry/05160000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/020b0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/05070000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/030b0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/03100000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/030c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/031c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/032c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/033c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/034c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/035c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/036c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/037c0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/40188311faf343488db888ad39496f9a.drbin \
-r /vendor/app/mcRegistry/090b0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/0f5eed3c3b5a47afacca69a84bf0efad.drbin \
-r /vendor/app/mcRegistry/07060000000000000000000000007169.drbin \
-r /vendor/app/mcRegistry/4be4f7dc1f2c11e5b5f7727283247c7f.drbin \
-r /vendor/app/mcRegistry/08070000000000000000000000008270.drbin \
-r /vendor/app/mcRegistry/07070000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/07407000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/9073f03a9618383bb1856eb3f990babd.drbin \
-r /vendor/app/mcRegistry/6b3f5fa0f8cf55a7be2582587d62d63a.drbin \
-r /vendor/app/mcRegistry/5020170115e016302017012521300000.drbin
user system
group system
class core
priority -20
# t-Drv naming
# 020f0000000000000000000000000000.drbin : utils
# 05120000000000000000000000000000.drbin : sec
# 070b0000000000000000000000000000.drbin : tplay
# 020b0000000000000000000000000000.drbin : cmdq
# 05070000000000000000000000000000.drbin : goodix_fp
# 030b0000000000000000000000000000.drbin : spi
# 030c0000000000000000000000000000.drbin : spi5
# 07070000000000000000000000000000.drbin : MtkH264Venc
# 07060000000000000000000000007169.drbin : MtkH264Vdec
# 4be4f7dc1f2c11e5b5f7727283247c7f.drbin : MtkH265Vdec
# 08070000000000000000000000008270.drbin : MtkVP9Vdec
# 5020170115e016302017012521300000.drbin : drm_hdcp_common
# 40188311faf343488db888ad39496f9a.drbin : widevine
# 070c0000000000000000000000000000.drbin : IRIS_GPIO
# 070c0000000000000000000000000000.drbin : DrTui
# 090b0000000000000000000000000000.drbin : IRIS_I2C
# 0f5eed3c3b5a47afacca69a84bf0efad.drbin : isp
# 07407000000000000000000000000000.drbin : sensor
# 06090000000000000000000000000000.drbin : drm keyinstall
# 9073f03a9618383bb1856eb3f990babd.drbin : m4u
# 6b3f5fa0f8cf55a7be2582587d62d63a.drbin : hdcp
+4
View File
@@ -0,0 +1,4 @@
service v3avpud /vendor/bin/v3avpud -f
class main
user media
group system media drmrpc
@@ -0,0 +1,7 @@
service keymaster_attestation-1-1 /vendor/bin/hw/vendor.mediatek.hardware.keymaster_attestation@1.1-service
interface vendor.mediatek.hardware.keymaster_attestation@1.0::IKeymasterDevice default
interface vendor.mediatek.hardware.keymaster_attestation@1.1::IKeymasterDevice default
class hal
user system
group system
disabled
@@ -0,0 +1,8 @@
service mmagent-1-1 /vendor/bin/hw/vendor.mediatek.hardware.mmagent@1.1-service
interface vendor.mediatek.hardware.mmagent@1.1::IMMAgent default
interface vendor.mediatek.hardware.mmagent@1.0::IMMAgent default
class main
oneshot
disabled
user system
group system graphics
@@ -0,0 +1,13 @@
service mms-1-6 /vendor/bin/hw/vendor.mediatek.hardware.mms@1.6-service
interface vendor.mediatek.hardware.mms@1.6::IMms default
interface vendor.mediatek.hardware.mms@1.5::IMms default
interface vendor.mediatek.hardware.mms@1.4::IMms default
interface vendor.mediatek.hardware.mms@1.3::IMms default
interface vendor.mediatek.hardware.mms@1.2::IMms default
interface vendor.mediatek.hardware.mms@1.1::IMms default
interface vendor.mediatek.hardware.mms@1.0::IMms default
oneshot
disabled
class main
user system
group system graphics
@@ -0,0 +1,4 @@
service nvram-hidl-1-1 /vendor/bin/hw/vendor.mediatek.hardware.nvram@1.1-service
class hal
user root
group system bluetooth media audio radio
@@ -0,0 +1,5 @@
service pq-2-2 /vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service
class main
user system
group system graphics
capabilities SYS_NICE
@@ -0,0 +1,4 @@
service tee-1-1 /vendor/bin/hw/vendor.trustonic.tee@1.1-service
class hal
user system
group system
+4
View File
@@ -0,0 +1,4 @@
service wlan_assistant /vendor/bin/wlan_assistant
class main
user wifi
group system gps inet