RM6785: Initial commit

* https://github.com/realme-mt6785-devs/android_device_realme_RM6785-common/tree/a8c9c94a13b8f065e9e2c0a23ce765b225c14fdc

Change-Id: Ic4f255143b586f8618606e38defb7f6f7f5a2601
This commit is contained in:
SamarV-121
2023-11-19 11:34:36 +00:00
commit 7d8d469caa
1855 changed files with 85944 additions and 0 deletions
@@ -0,0 +1,7 @@
service bluetooth-1-0 /vendor/bin/hw/android.hardware.bluetooth@1.0-service-mediatek
class hal
user bluetooth
group bluetooth
writepid /dev/stune/foreground/tasks
capabilities SYS_NICE
@@ -0,0 +1,26 @@
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-3 /vendor/bin/hw/android.hardware.drm@1.3-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.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,4 @@
service gnss_service /vendor/bin/hw/android.hardware.gnss@2.1-service-mediatek
class hal
user system
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,4 @@
service vendor.keymaster-4-0-trustonic /vendor/bin/hw/android.hardware.keymaster@4.0-service.trustonic
class early_hal
user system
group system drmrpc
@@ -0,0 +1,11 @@
service neuralnetworks_hal_service_mtk_neuron /vendor/bin/hw/android.hardware.neuralnetworks@1.3-service-mtk-neuron
class hal
user system
group system readproc
disabled
on property:ro.vendor.mtk_nn_support=1
start neuralnetworks_hal_service_mtk_neuron
on post-fs-data
mkdir /data/vendor/h2o 660 system system
@@ -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,5 @@
service vendor.sensors-hal-2-0 /vendor/bin/hw/android.hardware.sensors@2.0-service-mediatek
class main
user system
group system
rlimit rtprio 10 10
@@ -0,0 +1,20 @@
on boot
chown root system /sys/class/dual_role_usb/dual-role-type_c_port0/mode
chown root system /sys/class/dual_role_usb/dual-role-type_c_port0/power_role
chown root system /sys/class/dual_role_usb/dual-role-type_c_port0/data_role
chmod 664 /sys/class/dual_role_usb/dual-role-type_c_port0/mode
chmod 664 /sys/class/dual_role_usb/dual-role-type_c_port0/power_role
chmod 664 /sys/class/dual_role_usb/dual-role-type_c_port0/data_role
chown root system /sys/class/dual_role_usb/dual-role-usb20/mode
chown root system /sys/class/dual_role_usb/dual-role-usb20/power_role
chown root system /sys/class/dual_role_usb/dual-role-usb20/data_role
chmod 664 /sys/class/dual_role_usb/dual-role-usb20/mode
chmod 664 /sys/class/dual_role_usb/dual-role-usb20/power_role
chmod 664 /sys/class/dual_role_usb/dual-role-usb20/data_role
service vendor.usb-hal-1-1 /vendor/bin/hw/android.hardware.usb@1.1-service-mediatek
class hal
user root
group root system shell mtp
capabilities
@@ -0,0 +1,19 @@
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
-O/data/vendor/wifi/wpa/sockets -dd \
-g@android:wpa_wlan0
# 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 default
interface android.hardware.wifi.supplicant@1.1::ISupplicant default
interface android.hardware.wifi.supplicant@1.2::ISupplicant default
interface android.hardware.wifi.supplicant@1.3::ISupplicant default
interface vendor.mediatek.hardware.wifi.supplicant@2.0::ISupplicant default
#ifdef OPLUS_FEATURE_SUPPLICANT_HIDL
interface vendor.oplus.hardware.wifi.supplicant@2.0::IOplusSupplicant default
#endif /* OPLUS_FEATURE_SUPPLICANT_HIDL */
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
+18
View File
@@ -0,0 +1,18 @@
service atcid-daemon-u /vendor/bin/atcid
interface vendor.mediatek.hardware.atci@1.0::IAtcid default
class hal
class main
socket adb_atci_socket stream 660 radio system
user system
group radio system media bluetooth wifi
disabled
oneshot
on property:persist.vendor.service.atci.autostart=1
start atcid-daemon-u
on property:persist.vendor.service.atci.atm_mode=1
start atcid-daemon-u
on property:sys.boot_completed=1
setprop vendor.mtk.atci.boot_completed 1
+8
View File
@@ -0,0 +1,8 @@
service audio-daemon /vendor/bin/audiocmdservice_atci
class main
socket atci-audio stream 666 system system
user system
group system audio
disabled
oneshot
+47
View File
@@ -0,0 +1,47 @@
# Set enableflags for boot Systrace
on early-init && property:ro.boot.boot_trace=1
setprop debug.atrace.tags.enableflags 0x1fffffe
#Trace SystemUI App for booting
setprop debug.atrace.app_number 1
setprop debug.atrace.app_0 "com.android.systemui"
# re-triger trace after atrace.rc disable tracing_on on late-init
on late-init && property:ro.boot.boot_trace=1
write /sys/kernel/tracing/tracing_on 1
on property:persist.vendor.boot_trace=1
write /proc/bootprof "Persist boot_trace trigger"
write /sys/devices/system/cpu/perf/enable 1
# enable flags for boot Systrace
setprop debug.atrace.tags.enableflags 0x1fffffe
# enable events
write /sys/kernel/tracing/events/power/cpu_frequency/enable 1
write /sys/kernel/tracing/events/sched/sched_wakeup/enable 1
write /sys/kernel/tracing/events/sched/sched_wakeup_new/enable 1
write /sys/kernel/tracing/events/sched/sched_switch/enable 1
write /sys/kernel/tracing/events/sched/sched_blocked_reason/enable 1
write /sys/kernel/tracing/events/mtk_ftrace/enable 1
write /sys/kernel/tracing/events/perf_tracker/enable 1
write /sys/kernel/tracing/events/android_fs/enable 1
write /sys/kernel/tracing/events/block/block_rq_issue/enable 1
write /sys/kernel/tracing/events/block/block_rq_insert/enable 1
write /sys/kernel/tracing/events/block/block_rq_complete/enable 1
write /sys/kernel/tracing/events/workqueue/workqueue_execute_start/enable 1
write /sys/kernel/tracing/events/workqueue/workqueue_execute_end/enable 1
# Configuare ftrace
write /sys/kernel/tracing/buffer_size_kb "24576"
write /sys/kernel/tracing/trace_options "nooverwrite"
write /sys/kernel/tracing/tracing_on 1
#Trace SystemUI App for booting
setprop debug.atrace.app_number 1
setprop debug.atrace.app_0 "com.android.systemui"
on property:sys.boot_completed=* && property:persist.vendor.boot_trace=1
#force to disable boot ftrace after boot complete.
write /sys/devices/system/cpu/perf/enable 0
write /sys/kernel/tracing/tracing_on 0
+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
+10
View File
@@ -0,0 +1,10 @@
service emhidl_user /vendor/bin/em_hidl
interface vendor.mediatek.hardware.engineermode@1.0::IEmd EmHidlServer
interface vendor.mediatek.hardware.engineermode@1.1::IEmd EmHidlServer
interface vendor.mediatek.hardware.engineermode@1.2::IEmd EmHidlServer
interface vendor.mediatek.hardware.engineermode@1.3::IEmd EmHidlServer
class hal
oneshot
disabled
user system
group bluetooth radio gps system nfc
+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
+29
View File
@@ -0,0 +1,29 @@
#
## BIP related services (Begin)
#
on property:vendor.volte_md_status=ready
start vendor.bip
on property:vendor.volte_md_status=reset
stop vendor.bip
on property:vendor.volte_md_status=stop
stop vendor.bip
on property:vendor.volte_md_status=flightmode
stop vendor.bip
on property:vendor.volte_md_status=exception
stop vendor.bip
service vendor.bip /vendor/bin/bip
class core
socket vendor.bip stream 660 root system
user root
group system log inet radio net_admin root
oneshot
disabled
#
## BIP related services (End)
#
+4
View File
@@ -0,0 +1,4 @@
# load bt_drv
on property:vendor.connsys.driver.ready=yes
insmod /vendor/lib/modules/bt_drv.ko
chown bluetooth bluetooth /proc/driver/bt_dbg
+36
View File
@@ -0,0 +1,36 @@
#
on early-init
on post-fs-data
#SeLinux
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
#
# Modem related services
#
service vendor.ccci_fsd /vendor/bin/ccci_fsd 0
user radio
group radio system
class core
priority -20
ioprio rt 4
oneshot
service vendor.ccci3_fsd /vendor/bin/ccci_fsd 2
user radio
group radio system
class core
oneshot
+30
View File
@@ -0,0 +1,30 @@
#
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
#SeLinux
service ccci_mdinit /vendor/bin/ccci_mdinit 0
user system
group radio system
class core
oneshot
service ccci3_mdinit /vendor/bin/ccci_mdinit 2
user system
group radio system
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/gps_drv.ko
+6
View File
@@ -0,0 +1,6 @@
on boot
setprop ro.vendor.md_apps.support 1
setprop ro.vendor.md_apps.load_type user
setprop ro.vendor.md_apps.load_verno "MOLY.LR13.R1.TC16.PR10.SP.V1.P43"
setprop ro.vendor.md_apps.load_gencfg "GEN95_USER"
setprop ro.vendor.md_apps.load_date "2022/04/11 21:58:59 GMT +08:00"
+4
View File
@@ -0,0 +1,4 @@
service thermal /vendor/bin/thermal
class main
user system
group system
+5
View File
@@ -0,0 +1,5 @@
service thermal_manager /vendor/bin/thermal_manager
class main
user root
group system
oneshot
+4
View File
@@ -0,0 +1,4 @@
service thermalloadalgod /vendor/bin/thermalloadalgod
class main
user system
group system
+17
View File
@@ -0,0 +1,17 @@
#copy from device/mediatek/common/init.volte.rc
service vendor.volte_imcb /vendor/bin/volte_imcb
class core
socket volte_imsa1 stream 660 root radio
socket volte_imsa2 stream 660 root radio
# socket volte_imsvt1 stream 660 root radio
# socket volte_imsvt2 stream 660 root radio
socket volte_ut stream 660 root radio
user root
group system log inet radio
oneshot
disabled
#
# VoLTE related services (End)
#
+60
View File
@@ -0,0 +1,60 @@
#
# MAL related services (Begin)
#
on property:vendor.volte_md_status=ready
restart volte_imsm_93
restart vendor.volte_stack
restart vendor.volte_ua
restart vendor.volte_imcb
on property:vendor.volte_md_status=reset
rm /dev/radio/pttyims
rm /dev/radio/ptty2ims
rm /dev/radio/ptty3ims
rm /dev/radio/ptty4ims
stop vendor.volte_imcb
stop vendor.volte_ua
stop vendor.volte_stack
stop volte_imsm_93
on property:vendor.volte_md_status=stop
rm /dev/radio/pttyims
rm /dev/radio/ptty2ims
rm /dev/radio/ptty3ims
rm /dev/radio/ptty4ims
stop vendor.volte_imcb
stop vendor.volte_ua
stop vendor.volte_stack
stop volte_imsm_93
on property:vendor.volte_md_status=flightmode
rm /dev/radio/pttyims
rm /dev/radio/ptty2ims
rm /dev/radio/ptty3ims
rm /dev/radio/ptty4ims
stop vendor.volte_imcb
stop vendor.volte_ua
stop vendor.volte_stack
stop volte_imsm_93
on property:vendor.volte_md_status=exception
rm /dev/radio/pttyims
rm /dev/radio/ptty2ims
rm /dev/radio/ptty3ims
rm /dev/radio/ptty4ims
stop vendor.volte_imcb
stop vendor.volte_ua
stop vendor.volte_stack
stop volte_imsm_93
service volte_imsm_93 /vendor/bin/volte_imsm_93
class core
user root
group radio cache inet misc log system wifi
oneshot
disabled
#
# MAL related services (End)
#
+17
View File
@@ -0,0 +1,17 @@
#
# MAL related services (Begin)
#
on init
restart volte_md_status
service volte_md_status /system/vendor/bin/volte_md_status
class core
user root
group radio log system
oneshot
disabled
#
# MAL related services (End)
#
+10
View File
@@ -0,0 +1,10 @@
#copy from device/mediatek/common/init.volte.rc
service vendor.volte_stack /vendor/bin/volte_stack
class core
socket volte_stack stream 660 root system
user root
group system log inet radio
oneshot
disabled
+10
View File
@@ -0,0 +1,10 @@
#copy from device/mediatek/common/init.volte.rc
service vendor.volte_ua /vendor/bin/volte_ua
class core
socket volte_ua stream 660 root system
user root
group system log inet radio net_admin root
oneshot
disabled
+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
+15
View File
@@ -0,0 +1,15 @@
#
## WFCA related services (Begin)
#
service wfca /vendor/bin/wfca
class core
socket wfca stream 660 root system
socket wfca_rds stream 660 root system
user root
group system log inet radio net_admin root wakelock
#
## WFCA related services (End)
#
+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/wmt_chrdev_wifi.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
+32
View File
@@ -0,0 +1,32 @@
on post-fs-data
mkdir /data/vendor/ipsec 0700 root root
mkdir /data/vendor/ipsec/wo 0700 root root
mkdir /dev/vendor/net/ 0700 root root
on property:vendor.volte_md_status=ready && property:persist.vendor.mtk_wfc_support=1
start vendor.epdg_wod
on property:vendor.volte_md_status=reset
stop vendor.epdg_wod
on property:vendor.volte_md_status=stop
stop vendor.epdg_wod
on property:vendor.volte_md_status=flightmode
stop vendor.epdg_wod
on property:vendor.volte_md_status=exception
stop vendor.epdg_wod
# Trigger TRM when wod restart
on property:ro.vendor.md_apps.load_type=user && property:init.svc.vendor.epdg_wod=restarting
setprop vendor.ril.mux.report.case 2
setprop vendor.ril.muxreport 1
service vendor.epdg_wod /vendor/bin/epdg_wod
class late_start
socket wod_action stream 660 root system
socket wod_sim stream 660 root system
user root
group root system log inet radio net_admin
disabled
+29
View File
@@ -0,0 +1,29 @@
#
## XCAP related services (Begin)
#
on property:vendor.mtk.md1.status=ready
start vendor.xcap
on property:vendor.mtk.md1.status=reset
stop vendor.xcap
on property:vendor.mtk.md1.status=stop
stop vendor.xcap
on property:vendor.mtk.md1.status=flightmode
stop vendor.xcap
on property:vendor.mtk.md1.status=exception
stop vendor.xcap
service vendor.xcap /vendor/bin/xcap
class core
socket vendor.xcap stream 660 root system
user root
group system log inet radio net_admin root
oneshot
disabled
#
## XCAP related services (End)
#
+10
View File
@@ -0,0 +1,10 @@
service ipsec_mon /vendor/bin/ipsec_mon
class main
user system
group net_admin net_raw system misc
capabilities NET_ADMIN NET_RAW
#
# ePDG related services (End)
#
+4
View File
@@ -0,0 +1,4 @@
service lbs_hidl_service /vendor/bin/lbs_hidl_service
class hal
user system
group system gps radio inet sdcard_r sdcard_rw
+21
View File
@@ -0,0 +1,21 @@
on post-fs-data
#mkdir in code is permission denied(not SElinux)
mkdir /data/vendor/md_mon 0770 system radio
restorecon /data/vendor/md_mon
# MTK platform .rc configure
service md_monitor /vendor/bin/md_monitor
interface vendor.mediatek.hardware.mdmonitor@1.0::IMDMonitorService default
class hal
class main
user system
group system radio sdcard_rw inet sdcard_r media_rw
disabled
oneshot
on property:persist.vendor.mdmmonitor=0
stop md_monitor
on property:persist.vendor.mdmmonitor=1
start md_monitor
+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
+27
View File
@@ -0,0 +1,27 @@
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: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"
+9
View File
@@ -0,0 +1,9 @@
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
+13
View File
@@ -0,0 +1,13 @@
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 init
setprop ro.vendor.net.upload.benchmark.default blocking
on property:persist.vendor.operator.optr=OP12
write /proc/sys/net/optr 12
+8
View File
@@ -0,0 +1,8 @@
on early-init
# Change AOSP default tcp congestion control from cubic to bic.
write /proc/sys/net/ipv4/tcp_congestion_control bic
# When ftp is active mode, if nf_conntrack_helper is default value--0,
# ftp download/upload session will fail with usb tethering, because ftp
# response msg doesnot change ip to 192.168.42.xx manually
write /proc/sys/net/netfilter/nf_conntrack_helper 1
+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
+7
View File
@@ -0,0 +1,7 @@
service PPLAgent /vendor/bin/ppl_agent
interface vendor.mediatek.hardware.pplagent@1.0::IPplAgent default
class hal
class main
oneshot
user system
group system cache
+40
View File
@@ -0,0 +1,40 @@
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
#ifdef OPLUS_FEATURE_SECURITY_COMMON
#Meilin.Zhou@BSP.Security.Basic,2020/10/21,Add for set property of Store_1.tf
chown system system /mnt/vendor/persist/mcRegistry/Store_1.tf
#endif /*OPLUS_FEATURE_SECURITY_COMMON*/
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)"
+42
View File
@@ -0,0 +1,42 @@
# Start Daemon (Registry directories should already be present)
service mobicore /vendor/bin/mcDriverDaemon --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/020b0000000000000000000000000000.drbin \
-r /odm/vendor/app/mcRegistry/05070000000000000000000000000000.drbin \
-r /odm/vendor/app/mcRegistry/030b0000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/03100000000000000000000000000000.drbin \
-r /odm/vendor/app/mcRegistry/030c0000000000000000000000000000.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/08070000000000000000000000008270.drbin \
-r /vendor/app/mcRegistry/07407000000000000000000000000000.drbin \
-r /vendor/app/mcRegistry/9073f03a9618383bb1856eb3f990babd.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 : play
# 020b0000000000000000000000000000.drbin : cmdq
# 05070000000000000000000000000000.drbin : goodix_fp
# 030b0000000000000000000000000000.drbin : spi
# 030c0000000000000000000000000000.drbin : spi5
# 07070000000000000000000000000000.drbin : MtkH264Venc
# 07060000000000000000000000007169.drbin : MtkH264Vdec
# 08070000000000000000000000008270.drbin : MtkVP9Vdec
# 5020170115e016302017012521300000.drbin : drm_hdcp_common
# 40188311faf343488db888ad39496f9a.drbin : widevine
# 070c0000000000000000000000000000.drbin : IRIS_GPIO
# 090b0000000000000000000000000000.drbin : IRIS_I2C
# 0f5eed3c3b5a47afacca69a84bf0efad.drbin : isp
# 07407000000000000000000000000000.drbin : sensor
# 06090000000000000000000000000000.drbin : drm keyinstall
@@ -0,0 +1,5 @@
service dfps-1-0 /vendor/bin/hw/vendor.mediatek.hardware.dfps@1.0-service
class hal
user system
group graphics drmrpc
capabilities SYS_NICE
@@ -0,0 +1,19 @@
on post-fs-data
mkdir /data/vendor/doe 0711 root root
mkdir /data/vendor/doe/data 0700 root root
mkdir /data/vendor/doe/testers 0700 root root
mkdir /data/vendor/doe/dexecutor 0700 root root
mkdir /data/vendor/doe/results 0755 root root
service dplanner-2-0 /vendor/bin/hw/vendor.mediatek.hardware.dplanner@2.0-service
interface vendor.mediatek.hardware.dplanner@2.0::IDPlanner default
disabled
class hal
user root
group system
on property:init.svc.zygote=stopping && property:init.svc.dplanner-2-0=running
restart dplanner-2-0
on property:init.svc.zygote=restarting && property:init.svc.dplanner-2-0=running
restart dplanner-2-0
@@ -0,0 +1,4 @@
service gpu-1-0 /vendor/bin/hw/vendor.mediatek.hardware.gpu@1.0-service
class hal
user system
group system graphics
@@ -0,0 +1,4 @@
service keyinstall-1-0 /vendor/bin/hw/vendor.mediatek.hardware.keyinstall@1.0-service
class hal
user system
group system
@@ -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,12 @@
service mms-1-5 /vendor/bin/hw/vendor.mediatek.hardware.mms@1.5-service
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,7 @@
service mtkcodecservice-1-1 /vendor/bin/hw/vendor.mediatek.hardware.mtkcodecservice@1.1-service
interface vendor.mediatek.hardware.mtkcodecservice@1.1::IMtkCodecService default
oneshot
disabled
class hal
user system
group audio media sdcard_r
@@ -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,4 @@
service pq-2-2 /vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service
class main
user system
group system graphics
@@ -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 vpud /vendor/bin/vpud -f
class main
user media
group system media drmrpc
+4
View File
@@ -0,0 +1,4 @@
service wlan_assistant /vendor/bin/wlan_assistant
class main
user wifi
group system gps inet