gale: Initial push

Change-Id: Id4ba9059501e85019928b93d09cd4ddb1db35537
This commit is contained in:
rexix01 committed 2026-11-08 19:16:15 -05:00
commit c4542310a6
1009 files changed
+49272

No files matched your search

@@ -0,0 +1,15 @@
on post-fs-data
mkdir /data/vendor/audiohal 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
socket audio_hw_socket seqpacket 0666 system system
onrestart restart audioserver
@@ -0,0 +1,4 @@
service vendor.gatekeeper /vendor/bin/hw/android.hardware.gatekeeper-service.beanpod
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.gralloc-v2 /vendor/bin/hw/android.hardware.graphics.allocator-V2-service-mediatek
class hal animation
user system
group graphics drmrpc
capabilities SYS_NICE
onrestart restart surfaceflinger
onrestart restart vendor.hwcomposer
onrestart restart camerahalserver
@@ -0,0 +1,7 @@
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
@@ -0,0 +1,6 @@
service vendor.keymaster-4-1-beanpod /vendor/bin/hw/android.hardware.keymaster@4.1-service.beanpod
interface android.hardware.keymaster@4.0::IKeymasterDevice default
interface android.hardware.keymaster@4.1::IKeymasterDevice default
class early_hal
user system
group system drmrpc
@@ -0,0 +1,7 @@
service android-hardware-media-c2-hal /vendor/bin/hw/android.hardware.media.c2-mediatek
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
@@ -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,4 @@
service vendor.mali_platform-mediatek /vendor/bin/hw/arm.mali.platform-service.mediatek
class hal
user system
group system
+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
+8
View File
@@ -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
+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
+8
View File
@@ -0,0 +1,8 @@
# 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
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
#
service vendor.ccci_rpcd /vendor/bin/ccci_rpcd 0
user radio
group radio system
class core
oneshot
+1
View File
@@ -0,0 +1 @@
# Move "insmod connfem.ko" cmd to ko_order_table.csv
+5
View File
@@ -0,0 +1,5 @@
# TOUCH KO
on init
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d \
/vendor/lib/modules tui-common.ko gt9895.ko ft3518u.ko st61y.ko gt9916.ko nt36672c.ko gt9886.ko synaptics_tcm.ko gt9896s.ko gt1151.ko td4320.ko nt36xxx_no_flash_spi.ko hxchipset_hx83102p.ko nt36672c_i2c.ko nt36672c_144hz.ko nt36672c_120hz.ko legacy_gt9896s.ko ft3518.ko nt36532.ko focaltech_touch.ko
+7
View File
@@ -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
+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
+11
View File
@@ -0,0 +1,11 @@
service ipsec_mon /vendor/bin/ipsec_mon
class main
user system
oneshot
group net_admin net_raw system misc
capabilities NET_ADMIN NET_RAW
#
# ePDG related services (End)
#
@@ -0,0 +1,5 @@
service beanpod_check_keybox_service /vendor/bin/bp_kmsetkey_ca -c
class late_start
user system
group system
oneshot
+5
View File
@@ -0,0 +1,5 @@
service init_thh_service /vendor/bin/init_thh startload
class late_start
user system
group system
oneshot
+241
View File
@@ -0,0 +1,241 @@
# For MTK DRM integration:
service teei_daemon /vendor/bin/teei_daemon \
-r 020b0000000000000000000000000000 \
-r 020f0000000000000000000000000000 \
-r 06090000000000000000000000000000 \
-r 05120000000000000000000000000000 \
-r 40188311faf343488db888ad39496f9a \
-r 07060000000000000000000000007169 \
-r 4be4f7dc1f2c11e5b5f7727283247c7f \
-r 9073f03a9618383bb1856eb3f990babd \
-r 08050000000000000000000000003419 \
-r 5020170115e016302017012521300000 \
-r 0f5eed3c3b5a47afacca69a84bf0efad \
-r 07407000000000000000000000000000 \
-r 05160000000000000000000000000000 \
-r 91dba524a6e24909acc48abd7163121a \
-r 08070000000000000000000000008270 \
-r 09080000000000000000000000009381 \
-t 08030000000000000000000000000000 \
-t 85f630e0f0964c5fa2cc268ce04e3da3 \
-t 98fb95bcb4bf42d26473eae48690d7ea \
-t 7b66512021214487ba710a51d7ea78fe \
-t 09010000000000000000000000000000
class core
user system
group system
disabled
# oneshot
on boot
chown system system /sys/bus/platform/devices/utos/dcih_notify_test
chown system system /sys/bus/platform/devices/utos/dcih_wait_notify_test
chown system system /sys/bus/platform/devices/utos/load_ut_drv
chown system system /sys/bus/platform/devices/utos/unload_ut_drv
chown system system /sys/bus/platform/devices/utos/notify_ree_dci_handler
#for All mode
on load_persist_props_action
write /proc/bootprof "start teei cfg (on load_persist_props_action)"
mkdir /data/vendor/thh
mkdir /data/vendor/thh/system
mkdir /data/vendor/thh/tee_00
mkdir /data/vendor/thh/tee_01
mkdir /data/vendor/thh/tee_02
mkdir /data/vendor/thh/tee_03
mkdir /data/vendor/thh/tee_04
mkdir /data/vendor/thh/tee_05
mkdir /data/vendor/thh/tee_06
mkdir /data/vendor/thh/tee_07
mkdir /data/vendor/thh/tee
mkdir /data/vendor/thh/tee/tas
mkdir /data/vendor/thh/tee_08
mkdir /data/vendor/thh/tee_09
mkdir /data/vendor/thh/tee_0A
mkdir /data/vendor/thh/tee_0B
mkdir /data/vendor/thh/tee_0C
mkdir /data/vendor/thh/tee_0D
mkdir /data/vendor/thh/tee_0E
mkdir /data/vendor/thh/tee_0F
mkdir /data/vendor/thh/ta
mkdir /data/vendor/thh/tee_log
mkdir /data/vendor/key_provisioning
chmod 0755 /data/vendor/thh
chown system system /data/vendor/thh
chmod 0755 /data/vendor/thh/tee_00
chown system system /data/vendor/thh/tee_00
chmod 0755 /data/vendor/thh/tee_01
chown system system /data/vendor/thh/tee_01
chmod 0755 /data/vendor/thh/tee_02
chown system system /data/vendor/thh/tee_02
chmod 0755 /data/vendor/thh/tee_03
chown system system /data/vendor/thh/tee_03
chmod 0755 /data/vendor/thh/tee_04
chown system system /data/vendor/thh/tee_04
chmod 0755 /data/vendor/thh/tee_05
chown system system /data/vendor/thh/tee_05
chmod 0755 /data/vendor/thh/tee_06
chown system system /data/vendor/thh/tee_06
chmod 0755 /data/vendor/thh/tee_07
chown system system /data/vendor/thh/tee_07
chmod 0755 /data/vendor/thh/tee
chown system system /data/vendor/thh/tee
chmod 0755 /data/vendor/thh/tee/tas
chown system system /data/vendor/thh/tee/tas
chmod 0755 /data/vendor/thh/tee_08
chown system system /data/vendor/thh/tee_08
chmod 0755 /data/vendor/thh/tee_09
chown system system /data/vendor/thh/tee_09
chmod 0755 /data/vendor/thh/tee_0A
chown system system /data/vendor/thh/tee_0A
chmod 0755 /data/vendor/thh/tee_0B
chown system system /data/vendor/thh/tee_0B
chmod 0755 /data/vendor/thh/tee_0C
chown system system /data/vendor/thh/tee_0C
chmod 0755 /data/vendor/thh/tee_0D
chown system system /data/vendor/thh/tee_0D
chmod 0755 /data/vendor/thh/tee_0E
chown system system /data/vendor/thh/tee_0E
chmod 0755 /data/vendor/thh/tee_0F
chown system system /data/vendor/thh/tee_0F
chmod 0755 /data/vendor/thh/tee_log
chown system system /data/vendor/thh/tee_log
chmod 0755 /data/vendor/thh/ta
chown system system /data/vendor/thh/ta
chmod 0755 /data/vendor/thh/system
chown system system /data/vendor/thh/system
restorecon_recursive /data/vendor/thh
chmod 0771 /data/vendor/key_provisioning
chown system system /data/vendor/key_provisioning
write /proc/bootprof "start teei cfg end (on load_persist_props_action)"
on property:vold.decrypt=trigger_restart_framework
write /proc/bootprof "start teei cfg (on trigger_restart_framework)"
mkdir /data/vendor/thh
mkdir /data/vendor/thh/system
mkdir /data/vendor/thh/tee_00
mkdir /data/vendor/thh/tee_01
mkdir /data/vendor/thh/tee_02
mkdir /data/vendor/thh/tee_03
mkdir /data/vendor/thh/tee_04
mkdir /data/vendor/thh/tee_05
mkdir /data/vendor/thh/tee_06
mkdir /data/vendor/thh/tee_07
mkdir /data/vendor/thh/tee
mkdir /data/vendor/thh/tee/tas
mkdir /data/vendor/thh/tee_08
mkdir /data/vendor/thh/tee_09
mkdir /data/vendor/thh/tee_0A
mkdir /data/vendor/thh/tee_0B
mkdir /data/vendor/thh/tee_0C
mkdir /data/vendor/thh/tee_0D
mkdir /data/vendor/thh/tee_0E
mkdir /data/vendor/thh/tee_0F
mkdir /data/vendor/thh/ta
mkdir /data/vendor/key_provisioning
mkdir /data/vendor/thh/tee_log
chmod 0755 /data/vendor/thh
chown system system /data/vendor/thh
chmod 0755 /data/vendor/thh/tee_00
chown system system /data/vendor/thh/tee_00
chmod 0755 /data/vendor/thh/tee_01
chown system system /data/vendor/thh/tee_01
chmod 0755 /data/vendor/thh/tee_02
chown system system /data/vendor/thh/tee_02
chmod 0755 /data/vendor/thh/tee_03
chown system system /data/vendor/thh/tee_03
chmod 0755 /data/vendor/thh/tee_04
chown system system /data/vendor/thh/tee_04
chmod 0755 /data/vendor/thh/tee_05
chown system system /data/vendor/thh/tee_05
chmod 0755 /data/vendor/thh/tee_06
chown system system /data/vendor/thh/tee_06
chmod 0755 /data/vendor/thh/tee_07
chown system system /data/vendor/thh/tee_07
chmod 0755 /data/vendor/thh/tee
chown system system /data/vendor/thh/tee
chmod 0755 /data/vendor/thh/tee/tas
chown system system /data/vendor/thh/tee/tas
chmod 0755 /data/vendor/thh/tee_08
chown system system /data/vendor/thh/tee_08
chmod 0755 /data/vendor/thh/tee_09
chown system system /data/vendor/thh/tee_09
chmod 0755 /data/vendor/thh/tee_0A
chown system system /data/vendor/thh/tee_0A
chmod 0755 /data/vendor/thh/tee_0B
chown system system /data/vendor/thh/tee_0B
chmod 0755 /data/vendor/thh/tee_0C
chown system system /data/vendor/thh/tee_0C
chmod 0755 /data/vendor/thh/tee_0D
chown system system /data/vendor/thh/tee_0D
chmod 0755 /data/vendor/thh/tee_0E
chown system system /data/vendor/thh/tee_0E
chmod 0755 /data/vendor/thh/tee_0F
chown system system /data/vendor/thh/tee_0F
chmod 0755 /data/vendor/thh/tee_log
chown system system /data/vendor/thh/tee_log
chmod 0755 /data/vendor/thh/ta
chown system system /data/vendor/thh/ta
chmod 0755 /data/vendor/thh/system
chown system system /data/vendor/thh/system
chmod 0771 /data/vendor/key_provisioning
chown system system /data/vendor/key_provisioning
restorecon_recursive /data/vendor/thh
write /proc/bootprof "start teei cfg end (on trigger_restart_framework)"
on post-fs
# Set /mnt/vendor/persist/rpmb
chown system system /mnt/vendor/persist
chmod 0771 /mnt/vendor/persist
restorecon_recursive /mnt/vendor/persist
mkdir /mnt/vendor/persist/rpmb
chown system system /mnt/vendor/persist/rpmb
chmod 0771 /mnt/vendor/persist/rpmb
restorecon_recursive /mnt/vendor/persist/rpmb
# Set other rpmb
mkdir /persist/rpmb
mkdir /vendor/persist/rpmb
chmod 0771 /persist/rpmb
chmod 0771 /vendor/persist/rpmb
chown system system /persist/rpmb
chown system system /vendor/persist/rpmb
restorecon_recursive /persist
restorecon_recursive /vendor/persist
on fs
chmod 0660 /dev/teei_client
chown system system /dev/teei_client
chmod 0660 /dev/teei_config
chown system system /dev/teei_config
# 666 for SVP
chmod 0666 /dev/isee_tee0
chown system drmrpc /dev/isee_tee0
chmod 0660 /dev/tz_vfs
chown system system /dev/tz_vfs
chmod 0660 /dev/teei_fp
chown system /dev/teei_fp
chown system drmrpc /dev/ut_keymaster
chmod 0660 /dev/ut_keymaster
# rpmb device
chmod 0660 /dev/rpmb0
chown system system /dev/rpmb0
chmod 0660 /dev/mmcblk0rpmb
chown root system /dev/mmcblk0rpmb
# legacy rpmb device for cross-platform compatibility
chmod 0660 /dev/emmcrpmb0
chown system system /dev/emmcrpmb0
chown system system /dev/utr_tui
chmod 0660 /dev/utr_tui
write /proc/bootprof "start teei_daemon (on fs)"
start teei_daemon
write /proc/bootprof "start teei_daemon end (on fs)"
on property:vendor.crypto.fake_encrypt=1 && property:vold.post_fs_data_done=1
setprop vendor.soter.teei.crypto.state unencrypted
on post-fs-data
setprop vendor.soter.teei.logini "start"
+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
+4
View File
@@ -0,0 +1,4 @@
service mtk_lbs_service /vendor/bin/mtk_lbs_service
class hal
user system
group system gps radio inet
+32
View File
@@ -0,0 +1,32 @@
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
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"
+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
+4
View File
@@ -0,0 +1,4 @@
service v3avpud-64b /vendor/bin/v3avpud-64b -f
class main
user media
group system media drmrpc
@@ -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,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
+16
View File
@@ -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