sync vendor
This commit is contained in:
commit
fe7cf66a53
1217 changed files with 65569 additions and 0 deletions
15
proprietary/vendor/etc/init/android.hardware.bluetooth@1.1-service-mediatek.rc
vendored
Normal file
15
proprietary/vendor/etc/init/android.hardware.bluetooth@1.1-service-mediatek.rc
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
service bluetooth-1-1 /vendor/bin/hw/android.hardware.bluetooth@1.1-service-mediatek
|
||||
class hal
|
||||
user bluetooth
|
||||
group bluetooth
|
||||
writepid /dev/stune/foreground/tasks
|
||||
capabilities SYS_NICE
|
||||
|
||||
on property:vts.native_server.on=1 && property:ro.build.type=userdebug
|
||||
stop bluetooth-1-1
|
||||
on property:vts.native_server.on=1 && property:ro.build.type=eng
|
||||
stop bluetooth-1-1
|
||||
on property:vts.native_server.on=0 && property:ro.build.type=userdebug
|
||||
start bluetooth-1-1
|
||||
on property:vts.native_server.on=0 && property:ro.build.type=eng
|
||||
start bluetooth-1-1
|
||||
10
proprietary/vendor/etc/init/android.hardware.drm-service.widevine.rc
vendored
Normal file
10
proprietary/vendor/etc/init/android.hardware.drm-service.widevine.rc
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
on property:init.svc.mediadrm=running
|
||||
mkdir /data/vendor/mediadrm 0770 media mediadrm
|
||||
|
||||
service vendor.drm-widevine-hal /vendor/bin/hw/android.hardware.drm-service.widevine
|
||||
interface aidl android.hardware.drm::IDrmFactory/widevine
|
||||
class hal
|
||||
user media
|
||||
group media mediadrm drmrpc system
|
||||
ioprio rt 4
|
||||
writepid /dev/cpuset/foreground/tasks
|
||||
5
proprietary/vendor/etc/init/android.hardware.gnss-service.mediatek.rc
vendored
Normal file
5
proprietary/vendor/etc/init/android.hardware.gnss-service.mediatek.rc
vendored
Normal file
|
|
@ -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
|
||||
7
proprietary/vendor/etc/init/android.hardware.graphics.allocator@4.0-service-mediatek.rc
vendored
Normal file
7
proprietary/vendor/etc/init/android.hardware.graphics.allocator@4.0-service-mediatek.rc
vendored
Normal file
|
|
@ -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
|
||||
7
proprietary/vendor/etc/init/android.hardware.graphics.composer@3.1-service.rc
vendored
Normal file
7
proprietary/vendor/etc/init/android.hardware.graphics.composer@3.1-service.rc
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
service vendor.hwcomposer-3-1 /vendor/bin/hw/android.hardware.graphics.composer@3.1-service
|
||||
class hal animation
|
||||
user system
|
||||
group graphics drmrpc
|
||||
capabilities SYS_NICE
|
||||
onrestart restart surfaceflinger
|
||||
task_profiles ServiceCapacityLow
|
||||
7
proprietary/vendor/etc/init/android.hardware.media.c2@1.2-mediatek-64b.rc
vendored
Normal file
7
proprietary/vendor/etc/init/android.hardware.media.c2@1.2-mediatek-64b.rc
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
|
||||
4
proprietary/vendor/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc
vendored
Normal file
4
proprietary/vendor/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc
vendored
Normal file
|
|
@ -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
|
||||
4
proprietary/vendor/etc/init/android.hardware.security.keymint@2.0-service.trustonic.rc
vendored
Normal file
4
proprietary/vendor/etc/init/android.hardware.security.keymint@2.0-service.trustonic.rc
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
service vendor.keymint-trustonic /vendor/bin/hw/android.hardware.security.keymint@2.0-service.trustonic
|
||||
class early_hal
|
||||
user system
|
||||
group system
|
||||
7
proprietary/vendor/etc/init/android.hardware.thermal@2.0-service.mtk.rc
vendored
Normal file
7
proprietary/vendor/etc/init/android.hardware.thermal@2.0-service.mtk.rc
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
service vendor.thermal-hal-2-0.mtk /vendor/bin/hw/android.hardware.thermal@2.0-service.mtk
|
||||
interface android.hardware.thermal@1.0::IThermal default
|
||||
interface android.hardware.thermal@2.0::IThermal default
|
||||
socket thermal_hal_socket stream 660 root system
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
17
proprietary/vendor/etc/init/android.hardware.usb-aidl-service.mediatek.rc
vendored
Normal file
17
proprietary/vendor/etc/init/android.hardware.usb-aidl-service.mediatek.rc
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
on boot
|
||||
chown system system /sys/class/typec/port0/power_role
|
||||
chown system system /sys/class/typec/port0/data_role
|
||||
chown system 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
|
||||
chown root system /config/usb_gadget/
|
||||
chown root system /config/usb_gadget/g1
|
||||
chown root system /config/usb_gadget/g1/UDC
|
||||
chmod 664 /config/usb_gadget/g1/UDC
|
||||
chown system system /sys/devices/platform/soc/${sys.usb.controller}/mode
|
||||
|
||||
service vendor.usb_default /vendor/bin/hw/android.hardware.usb-aidl-service.mediatekv1.0
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
5
proprietary/vendor/etc/init/android.hardware.usb.gadget-service.mediatek.rc
vendored
Normal file
5
proprietary/vendor/etc/init/android.hardware.usb.gadget-service.mediatek.rc
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
service vendor.usb-hal-gadget-1-1 /vendor/bin/hw/android.hardware.usb.gadget-service.mediatekv1.1
|
||||
class hal
|
||||
user root
|
||||
group root system shell mtp
|
||||
capabilities
|
||||
12
proprietary/vendor/etc/init/android.hardware.wifi.supplicant-service.rc
vendored
Normal file
12
proprietary/vendor/etc/init/android.hardware.wifi.supplicant-service.rc
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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 aidl android.hardware.wifi.supplicant.ISupplicant/default
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
oneshot
|
||||
14
proprietary/vendor/etc/init/android.hardware.wifi@1.0-service-lazy.rc
vendored
Normal file
14
proprietary/vendor/etc/init/android.hardware.wifi@1.0-service-lazy.rc
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
service vendor.wifi_hal_legacy /vendor/bin/hw/android.hardware.wifi@1.0-service-lazy
|
||||
interface android.hardware.wifi@1.0::IWifi default
|
||||
interface android.hardware.wifi@1.1::IWifi default
|
||||
interface android.hardware.wifi@1.2::IWifi default
|
||||
interface android.hardware.wifi@1.3::IWifi default
|
||||
interface android.hardware.wifi@1.4::IWifi default
|
||||
interface android.hardware.wifi@1.5::IWifi default
|
||||
interface android.hardware.wifi@1.6::IWifi default
|
||||
oneshot
|
||||
disabled
|
||||
class hal
|
||||
capabilities NET_ADMIN NET_RAW SYS_MODULE
|
||||
user wifi
|
||||
group wifi gps
|
||||
95
proprietary/vendor/etc/init/bootperf.rc
vendored
Normal file
95
proprietary/vendor/etc/init/bootperf.rc
vendored
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
#====== Capture Boot Systrace ======
|
||||
on early-init && property:ro.boot.boot_trace=1
|
||||
# Configuare ftrace
|
||||
write /sys/kernel/tracing/buffer_size_kb "24576"
|
||||
write /sys/kernel/tracing/trace_options "nooverwrite"
|
||||
|
||||
write /sys/kernel/tracing/events/sched/sched_stat_iowait/enable 1
|
||||
write /sys/kernel/tracing/events/sched/sched_wakeup_new/enable 1
|
||||
write /sys/kernel/tracing/events/sched/sched_blocked_reason/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/power/cpu_frequency_limits/enable 1
|
||||
|
||||
# enable mtk events for Legacy kernel
|
||||
write /sys/devices/system/cpu/perf/enable 1
|
||||
write /sys/kernel/tracing/events/mtk_events/perf_index_l/enable 1
|
||||
write /sys/kernel/tracing/events/mtk_events/perf_index_s/enable 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"
|
||||
|
||||
# try to enable mtk events early
|
||||
on late-fs && property:ro.boot.boot_trace=1
|
||||
write /sys/devices/system/cpu/perf/enable 1
|
||||
write /sys/devices/system/cpu/perf/mcupm_freq_enable 1
|
||||
write /sys/devices/system/cpu/cpuqos/cpuqos_trace_enable 1
|
||||
|
||||
write /sys/kernel/tracing/events/perf_tracker/enable 1
|
||||
write /sys/kernel/tracing/events/scheduler/sched_frequency_limits/enable 1
|
||||
write /sys/kernel/tracing/events/cpuqos_v3/cpuqos_debug_info/enable 1
|
||||
|
||||
# enable mtk events
|
||||
on post-fs-data && property:ro.boot.boot_trace=1
|
||||
write /sys/devices/system/cpu/perf/enable 1
|
||||
write /sys/devices/system/cpu/perf/mcupm_freq_enable 1
|
||||
write /sys/devices/system/cpu/cpuqos/cpuqos_trace_enable 1
|
||||
|
||||
write /sys/kernel/tracing/events/perf_tracker/enable 1
|
||||
write /sys/kernel/tracing/events/scheduler/sched_frequency_limits/enable 1
|
||||
write /sys/kernel/tracing/events/cpuqos_v3/cpuqos_debug_info/enable 1
|
||||
|
||||
# atrace.rc disable ftrace on late-init, re-enable ftrace
|
||||
on late-init && property:ro.boot.boot_trace=1
|
||||
write /sys/kernel/tracing/tracing_on 1
|
||||
|
||||
|
||||
#====== Capture Systrace via property ======
|
||||
on property:persist.vendor.boot_trace=1
|
||||
write /proc/bootprof "Persist boot_trace trigger"
|
||||
write /sys/devices/system/cpu/perf/enable 1
|
||||
write /sys/devices/system/cpu/perf/mcupm_freq_enable 1
|
||||
write /sys/devices/system/cpu/cpuqos/cpuqos_trace_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/power/cpu_frequency_limits/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
|
||||
write /sys/kernel/tracing/events/scheduler/sched_frequency_limits/enable 1
|
||||
write /sys/kernel/tracing/events/cpuqos_v3/cpuqos_debug_info/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/devices/system/cpu/perf/mcupm_freq_enable 0
|
||||
write /sys/devices/system/cpu/cpuqos/cpuqos_trace_enable 0
|
||||
write /sys/kernel/tracing/tracing_on 0
|
||||
7
proprietary/vendor/etc/init/camerahalserver.rc
vendored
Normal file
7
proprietary/vendor/etc/init/camerahalserver.rc
vendored
Normal 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
proprietary/vendor/etc/init/fuelgauged_init.rc
vendored
Normal file
4
proprietary/vendor/etc/init/fuelgauged_init.rc
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
service fuelgauged /vendor/bin/fuelgauged
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
6
proprietary/vendor/etc/init/fuelgauged_nvram_init.rc
vendored
Normal file
6
proprietary/vendor/etc/init/fuelgauged_nvram_init.rc
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
service fuelgauged_nvram /vendor/bin/fuelgauged_nvram
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
|
||||
7
proprietary/vendor/etc/init/gsm0710muxd.rc
vendored
Normal file
7
proprietary/vendor/etc/init/gsm0710muxd.rc
vendored
Normal 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
|
||||
|
||||
21
proprietary/vendor/etc/init/hostapd.android.rc
vendored
Normal file
21
proprietary/vendor/etc/init/hostapd.android.rc
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# init.rc fragment for hostapd on Android
|
||||
# Copyright (c) 2002-2016, Jouni Malinen <j@w1.fi>
|
||||
#
|
||||
# This software may be distributed under the terms of the BSD license.
|
||||
# See README for more details.
|
||||
#
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/wifi 0770 wifi wifi
|
||||
mkdir /data/vendor/wifi/hostapd 0770 wifi wifi
|
||||
mkdir /data/vendor/wifi/hostapd/sockets 0770 wifi wifi
|
||||
|
||||
service hostapd /vendor/bin/hw/hostapd
|
||||
interface aidl android.hardware.wifi.hostapd.IHostapd/default
|
||||
class main
|
||||
capabilities NET_ADMIN NET_RAW
|
||||
user wifi
|
||||
group wifi net_raw net_admin
|
||||
disabled
|
||||
oneshot
|
||||
96
proprietary/vendor/etc/init/hw/factory_init.connectivity.common.rc
vendored
Normal file
96
proprietary/vendor/etc/init/hw/factory_init.connectivity.common.rc
vendored
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
on post-fs-data
|
||||
#
|
||||
# Connectivity related modules and character device nodes (Begin)
|
||||
#
|
||||
|
||||
#/dev/ttyMT2 for Connectivity BT/FM/GPS usage
|
||||
chmod 0660 /dev/ttyMT2
|
||||
chown system system /dev/ttyMT2
|
||||
|
||||
# GPS
|
||||
mkdir /data/vendor/gps 0770 gps system
|
||||
chown gps gps /dev/stpgps
|
||||
chown gps gps /dev/stpgps2
|
||||
chmod 0660 /dev/stpgps
|
||||
chmod 0660 /dev/stpgps2
|
||||
|
||||
# GPS EMI
|
||||
chmod 666 /dev/gps_emi
|
||||
|
||||
# WiFi
|
||||
mkdir /data/misc/wifi 0770 wifi wifi
|
||||
mkdir /data/misc/wifi/sockets 0770 wifi wifi
|
||||
mkdir /data/misc/wpa_supplicant 0770 wifi wifi
|
||||
|
||||
#
|
||||
# Connectivity related device nodes & configuration (end)
|
||||
#
|
||||
|
||||
|
||||
on boot
|
||||
|
||||
#
|
||||
# Connectivity related services (Begin)
|
||||
#
|
||||
|
||||
# GPS
|
||||
#service mnld /vendor/bin/mnld
|
||||
# class main
|
||||
# user gps
|
||||
# group gps inet misc sdcard_rw sdcard_r media_rw system radio
|
||||
# socket mnld stream 660 gps system
|
||||
|
||||
#service BGW /vendor/bin/BGW
|
||||
# user system
|
||||
# group gps system radio
|
||||
# class main
|
||||
|
||||
service wlan_assistant /vendor/bin/wlan_assistant
|
||||
class main
|
||||
user wifi
|
||||
group system gps inet
|
||||
|
||||
# service for uart_launcher
|
||||
service uart_launcher /vendor/bin/uart_launcher -f 1 -p /dev/ttyS3
|
||||
user root
|
||||
group system
|
||||
|
||||
#
|
||||
# Connectivity related services (End)
|
||||
#
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (Begin)
|
||||
#
|
||||
|
||||
# load connfem driver
|
||||
on boot
|
||||
insmod /vendor/lib/modules/connfem.ko
|
||||
|
||||
# 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
|
||||
|
||||
on property:vendor.connsys.driver.ready=yes && property:ro.vendor.bt.connac3=yes
|
||||
insmod /vendor/lib/modules/btmtk_uart_unify.ko
|
||||
start uart_launcher
|
||||
|
||||
|
||||
# load wifi chrdev driver and wlan 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
|
||||
|
||||
# load fmradio_drv
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/fmradio_drv_${ro.vendor.fm.platform}.ko
|
||||
|
||||
# load gps_drv
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/${ro.vendor.gps.chrdev}.ko
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (End)
|
||||
#
|
||||
|
||||
34
proprietary/vendor/etc/init/hw/factory_init.connectivity.rc
vendored
Normal file
34
proprietary/vendor/etc/init/hw/factory_init.connectivity.rc
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import /vendor/etc/init/hw/factory_init.connectivity.common.rc
|
||||
|
||||
on boot
|
||||
|
||||
#
|
||||
# Connectivity related services (Begin)
|
||||
#
|
||||
|
||||
# WMT
|
||||
service wmt_loader /vendor/bin/wmt_loader
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
|
||||
service wmt_launcher /vendor/bin/wmt_launcher -p /vendor/firmware/
|
||||
user system
|
||||
group system
|
||||
|
||||
#
|
||||
# Connectivity related services (End)
|
||||
#
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (Begin)
|
||||
#
|
||||
|
||||
# load wmt_drv
|
||||
on boot
|
||||
insmod /vendor/lib/modules/wmt_drv.ko
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (End)
|
||||
#
|
||||
|
||||
27
proprietary/vendor/etc/init/hw/factory_init.project.rc
vendored
Normal file
27
proprietary/vendor/etc/init/hw/factory_init.project.rc
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import /vendor/etc/init/hw/init.mtkgki.rc
|
||||
|
||||
mkdir /data/misc/sensors 0664 system system
|
||||
|
||||
service msensord /system/bin/msensord
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
|
||||
service akmd8963 /system/bin/akmd8963
|
||||
disabled
|
||||
user system
|
||||
group system
|
||||
|
||||
|
||||
on post-fs
|
||||
# disable HPS
|
||||
write /proc/hps/enabled 0
|
||||
|
||||
|
||||
chmod 0660 /dev/spm
|
||||
chown system system /dev/spm
|
||||
|
||||
service spm_script /vendor/bin/spm_loader
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
892
proprietary/vendor/etc/init/hw/factory_init.rc
vendored
Normal file
892
proprietary/vendor/etc/init/hw/factory_init.rc
vendored
Normal file
|
|
@ -0,0 +1,892 @@
|
|||
# Copyright (C) 2012 The Android Open Source Project
|
||||
#
|
||||
# IMPORTANT: Do not create world writable files or directories.
|
||||
# This is a common source of Android security bugs.
|
||||
#
|
||||
import /system_ext/etc/init/hw/vendor_init_as_system.rc
|
||||
import ${ro.vendor.rc}factory_init.connectivity.rc
|
||||
import ${ro.vendor.rc}factory_init.thp.rc
|
||||
import /init.environ.rc
|
||||
import /vendor/etc/init/trustonic.rc
|
||||
import ${ro.vendor.rc}init.nvdata.rc
|
||||
import /vendor/etc/init/microtrust.rc
|
||||
import /vendor/etc/init/hw/init.aee.rc
|
||||
import /system_ext/etc/init/hw/init.aee.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.boot@1.2-service.rc
|
||||
import /vendor/etc/init/android.hardware.boot@1.2-service-lazy.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.thp@1.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.health-service.example.rc
|
||||
|
||||
#NFC
|
||||
import /vendor/etc/init/hw/init.stnfc.rc
|
||||
|
||||
#copy from system/etc for APEX
|
||||
import /system/etc/init/apexd.rc
|
||||
import /system/etc/init/art_apex_boot_integrity.rc
|
||||
|
||||
import /system/etc/init/vold.rc
|
||||
|
||||
import /vendor/etc/init/hw/factory_init.project.rc
|
||||
import /system/etc/init/servicemanager.rc
|
||||
import /system/etc/init/hwservicemanager.rc
|
||||
import /system/etc/init/android.hidl.allocator@1.0-service.rc
|
||||
|
||||
import ${ro.vendor.rc}multi_init.rc
|
||||
|
||||
on early-init
|
||||
# Set init and its forked children's oom_adj.
|
||||
write /proc/1/oom_score_adj -1000
|
||||
|
||||
# Disable sysrq from keyboard
|
||||
write /proc/sys/kernel/sysrq 0
|
||||
|
||||
# Set the security context of /adb_keys if present.
|
||||
restorecon /adb_keys
|
||||
|
||||
# Set the security context of /postinstall if present.
|
||||
restorecon /postinstall
|
||||
|
||||
|
||||
# Set up linker config subdirectories based on mount namespaces
|
||||
mkdir /linkerconfig/bootstrap 0755
|
||||
mkdir /linkerconfig/default 0755
|
||||
|
||||
# Generate ld.config.txt for early executed processes
|
||||
exec -- /system/bin/bootstrap/linkerconfig --target /linkerconfig/bootstrap
|
||||
|
||||
chmod 644 /linkerconfig/bootstrap/ld.config.txt
|
||||
copy /linkerconfig/bootstrap/ld.config.txt /linkerconfig/default/ld.config.txt
|
||||
chmod 644 /linkerconfig/default/ld.config.txt
|
||||
|
||||
# Mount bootstrap linker configuration as current
|
||||
mount none /linkerconfig/bootstrap /linkerconfig bind rec
|
||||
|
||||
start ueventd
|
||||
|
||||
|
||||
# Run apexd-bootstrap so that APEXes that provide critical libraries
|
||||
# become available. Note that this is executed as exec_start to ensure that
|
||||
# the libraries are available to the processes started after this statement.
|
||||
exec_start apexd-bootstrap
|
||||
|
||||
# Generate linker config based on apex mounted in bootstrap namespace
|
||||
update_linker_config
|
||||
|
||||
#INTERNAL_START
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
chmod 0755 /sys/kernel/debug
|
||||
#INTERNAL_END
|
||||
|
||||
# prize add for google key
|
||||
setprop ro.vendor.serialno ${ro.serialno}
|
||||
setprop sys.serialno ${ro.serialno}
|
||||
setprop vendor.pri.serialno ${ro.serialno}
|
||||
|
||||
# initialize vendor.all.modules.ready to 1 here to prevent NOT GKI project blocked
|
||||
setprop vendor.all.modules.ready 1
|
||||
|
||||
on init
|
||||
|
||||
sysclktz 0
|
||||
|
||||
# Mix device-specific information into the entropy pool
|
||||
copy /proc/cmdline /dev/urandom
|
||||
copy /default.prop /dev/urandom
|
||||
|
||||
write /proc/bootprof "INIT: on init start"
|
||||
|
||||
# Backward compatibility.
|
||||
symlink /system/bin /bin
|
||||
symlink /system/etc /etc
|
||||
|
||||
# Backward compatibility.
|
||||
symlink /sys/kernel/debug /d
|
||||
|
||||
|
||||
# Link /vendor to /system/vendor for devices without a vendor partition.
|
||||
symlink /system/vendor /vendor
|
||||
# Temp Backward compatibility
|
||||
symlink /dev/block/by-name/boot /dev/bootimg
|
||||
symlink /dev/block/by-name/recovery /dev/recovery
|
||||
symlink /dev/block/by-name/secro /dev/sec_ro
|
||||
symlink /dev/block/by-name/kb /dev/kb
|
||||
symlink /dev/block/by-name/dkb /dev/dkb
|
||||
symlink /dev/block/by-name/seccfg /dev/seccfg
|
||||
symlink /dev/block/by-name/proinfo /dev/pro_info
|
||||
symlink /dev/block/by-name/nvram /dev/nvram
|
||||
symlink /dev/block/by-name/para /dev/misc
|
||||
symlink /dev/block/by-name/logo /dev/logo
|
||||
|
||||
|
||||
# Mount cgroup mount point for cpu accounting
|
||||
mount cgroup none /acct cpuacct
|
||||
mkdir /acct/uid
|
||||
|
||||
# Create energy-aware scheduler tuning nodes
|
||||
mkdir /dev/stune
|
||||
mount cgroup none /dev/stune nodev noexec nosuid schedtune
|
||||
mkdir /dev/stune/foreground
|
||||
mkdir /dev/stune/background
|
||||
mkdir /dev/stune/top-app
|
||||
mkdir /dev/stune/rt
|
||||
chown system system /dev/stune
|
||||
chown system system /dev/stune/foreground
|
||||
chown system system /dev/stune/background
|
||||
chown system system /dev/stune/top-app
|
||||
chown system system /dev/stune/rt
|
||||
chown system system /dev/stune/tasks
|
||||
chown system system /dev/stune/foreground/tasks
|
||||
chown system system /dev/stune/background/tasks
|
||||
chown system system /dev/stune/top-app/tasks
|
||||
chown system system /dev/stune/rt/tasks
|
||||
chmod 0664 /dev/stune/tasks
|
||||
chmod 0664 /dev/stune/foreground/tasks
|
||||
chmod 0664 /dev/stune/background/tasks
|
||||
chmod 0664 /dev/stune/top-app/tasks
|
||||
chmod 0664 /dev/stune/rt/tasks
|
||||
|
||||
# Permissions for System Server and daemons.
|
||||
chown system system /sys/power/autosleep
|
||||
chown system system /sys/power/state
|
||||
chown system system /sys/power/wakeup_count
|
||||
chown radio wakelock /sys/power/wake_lock
|
||||
chown radio wakelock /sys/power/wake_unlock
|
||||
chmod 0660 /sys/power/state
|
||||
chmod 0660 /sys/power/wake_lock
|
||||
chmod 0660 /sys/power/wake_unlock
|
||||
chmod 0660 /sys/power/wakeup_count
|
||||
|
||||
restorecon_recursive /mnt
|
||||
# Support legacy paths
|
||||
symlink /sdcard /mnt/sdcard
|
||||
|
||||
mount configfs none /config nodev noexec nosuid
|
||||
chmod 0770 /config/sdcardfs
|
||||
chown system package_info /config/sdcardfs
|
||||
|
||||
# Mount binderfs
|
||||
mkdir /dev/binderfs
|
||||
mount binder binder /dev/binderfs stats=global
|
||||
chmod 0755 /dev/binderfs
|
||||
|
||||
# Mount fusectl
|
||||
mount fusectl none /sys/fs/fuse/connections
|
||||
|
||||
symlink /dev/binderfs/binder /dev/binder
|
||||
symlink /dev/binderfs/hwbinder /dev/hwbinder
|
||||
symlink /dev/binderfs/vndbinder /dev/vndbinder
|
||||
|
||||
chmod 0666 /dev/binderfs/hwbinder
|
||||
chmod 0666 /dev/binderfs/binder
|
||||
chmod 0666 /dev/binderfs/vndbinder
|
||||
|
||||
mkdir /mnt/secure 0700 root root
|
||||
mkdir /mnt/secure/asec 0700 root root
|
||||
mkdir /mnt/asec 0755 root system
|
||||
mkdir /mnt/obb 0755 root system
|
||||
mkdir /mnt/media_rw 0750 root media_rw
|
||||
mkdir /mnt/user 0755 root root
|
||||
mkdir /mnt/user/0 0755 root root
|
||||
mkdir /mnt/expand 0771 system system
|
||||
mkdir /mnt/appfuse 0711 root root
|
||||
|
||||
# Storage views to support runtime permissions
|
||||
mkdir /mnt/runtime 0700 root root
|
||||
mkdir /mnt/runtime/default 0755 root root
|
||||
mkdir /mnt/runtime/default/self 0755 root root
|
||||
mkdir /mnt/runtime/read 0755 root root
|
||||
mkdir /mnt/runtime/read/self 0755 root root
|
||||
mkdir /mnt/runtime/write 0755 root root
|
||||
mkdir /mnt/runtime/write/self 0755 root root
|
||||
|
||||
# Symlink to keep legacy apps working in multi-user world
|
||||
symlink /storage/self/primary /sdcard
|
||||
symlink /storage/self/primary /mnt/sdcard
|
||||
symlink /mnt/user/0/primary /mnt/runtime/default/self/primary
|
||||
|
||||
# root memory control cgroup, used by lmkd
|
||||
mkdir /dev/memcg 0700 root system
|
||||
mount cgroup none /dev/memcg memory
|
||||
# app mem cgroups, used by activity manager, lmkd and zygote
|
||||
mkdir /dev/memcg/apps/ 0755 system system
|
||||
|
||||
write /proc/sys/kernel/panic_on_oops 1
|
||||
write /proc/sys/kernel/hung_task_timeout_secs 0
|
||||
write /proc/cpu/alignment 4
|
||||
|
||||
# scheduler tunables
|
||||
# Disable auto-scaling of scheduler tunables with hotplug. The tunables
|
||||
# will vary across devices in unpredictable ways if allowed to scale with
|
||||
# cpu cores.
|
||||
write /proc/sys/kernel/sched_tunable_scaling 0
|
||||
write /proc/sys/kernel/sched_latency_ns 10000000
|
||||
write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
|
||||
write /proc/sys/kernel/sched_child_runs_first 0
|
||||
|
||||
write /proc/sys/kernel/randomize_va_space 2
|
||||
write /proc/sys/vm/mmap_min_addr 32768
|
||||
write /proc/sys/net/ipv4/ping_group_range "0 2147483647"
|
||||
write /proc/sys/net/unix/max_dgram_qlen 600
|
||||
write /proc/sys/kernel/sched_rt_runtime_us 950000
|
||||
write /proc/sys/kernel/sched_rt_period_us 1000000
|
||||
|
||||
# Assign reasonable ceiling values for socket rcv/snd buffers.
|
||||
# These should almost always be overridden by the target per the
|
||||
# the corresponding technology maximums.
|
||||
write /proc/sys/net/core/rmem_max 262144
|
||||
write /proc/sys/net/core/wmem_max 262144
|
||||
|
||||
# reflect fwmark from incoming packets onto generated replies
|
||||
write /proc/sys/net/ipv4/fwmark_reflect 1
|
||||
write /proc/sys/net/ipv6/fwmark_reflect 1
|
||||
|
||||
# set fwmark on accepted sockets
|
||||
write /proc/sys/net/ipv4/tcp_fwmark_accept 1
|
||||
|
||||
# disable icmp redirects
|
||||
write /proc/sys/net/ipv4/conf/all/accept_redirects 0
|
||||
write /proc/sys/net/ipv6/conf/all/accept_redirects 0
|
||||
|
||||
#INTERNAL_START
|
||||
mkdir /mnt/cd-rom 0000 system system
|
||||
#INTERNAL_END
|
||||
# enable armv8_deprecated instruction hooks
|
||||
write /proc/sys/abi/swp 1
|
||||
# Linux's execveat() syscall may construct paths containing /dev/fd
|
||||
# expecting it to point to /proc/self/fd
|
||||
symlink /proc/self/fd /dev/fd
|
||||
# set RLIMIT_NICE to allow priorities from 19 to -20
|
||||
setrlimit nice 40 40
|
||||
|
||||
start servicemanager
|
||||
start hwservicemanager
|
||||
start hidl_memory
|
||||
|
||||
# Healthd can trigger a full boot from charger mode by signaling this
|
||||
# property when the power button is held.
|
||||
on property:sys.boot_from_charger_mode=1
|
||||
class_stop charger
|
||||
trigger late-init
|
||||
|
||||
# Load properties from /system/ + /factory after fs mount.
|
||||
on load_system_props_action
|
||||
load_system_props
|
||||
|
||||
on load_persist_props_action
|
||||
load_persist_props
|
||||
start logd
|
||||
start logd-reinit
|
||||
|
||||
# Indicate to fw loaders that the relevant mounts are up.
|
||||
on firmware_mounts_complete
|
||||
rm /dev/.booting
|
||||
|
||||
# Mount filesystems and start core system services.
|
||||
on late-init
|
||||
trigger early-fs
|
||||
|
||||
# Mount fstab in init.{$device}.rc by mount_all command. Optional parameter
|
||||
# '--early' can be specified to skip entries with 'latemount'.
|
||||
# /system and /vendor must be mounted by the end of the fs stage,
|
||||
# while /data is optional.
|
||||
trigger fs
|
||||
trigger post-fs
|
||||
|
||||
# Load properties from /system/ + /factory after fs mount. Place
|
||||
# this in another action so that the load will be scheduled after the prior
|
||||
# issued fs triggers have completed.
|
||||
trigger load_system_props_action
|
||||
|
||||
# Mount fstab in init.{$device}.rc by mount_all with '--late' parameter
|
||||
# to only mount entries with 'latemount'. This is needed if '--early' is
|
||||
# specified in the previous mount_all command on the fs stage.
|
||||
# With /system mounted and properties form /system + /factory available,
|
||||
# some services can be started.
|
||||
trigger late-fs
|
||||
|
||||
# Now we can mount /data. File encryption requires keymaster to decrypt
|
||||
# /data, which in turn can only be loaded when system properties are present.
|
||||
trigger post-fs-data
|
||||
|
||||
# Load persist properties and override properties (if enabled) from /data.
|
||||
trigger load_persist_props_action
|
||||
|
||||
# Remove a file to wake up anything waiting for firmware.
|
||||
trigger firmware_mounts_complete
|
||||
|
||||
trigger early-boot
|
||||
trigger boot
|
||||
|
||||
on early-fs
|
||||
# Once metadata has been mounted, we'll need vold to deal with userdata checkpointing
|
||||
start vold
|
||||
|
||||
# mount different fs start
|
||||
on fs
|
||||
#USB configfs
|
||||
mkdir /dev/usb-ffs 0770 shell shell
|
||||
mkdir /dev/usb-ffs/adb 0770 shell shell
|
||||
mkdir /config/usb_gadget/g1 0770 shell shell
|
||||
write /config/usb_gadget/g1/idVendor 0x0E8D
|
||||
write /config/usb_gadget/g1/bcdDevice 0xFFFF
|
||||
write /config/usb_gadget/g1/bcdUSB 0x0200
|
||||
mkdir /config/usb_gadget/g1/strings/0x409 0770
|
||||
write /config/usb_gadget/g1/strings/0x409/manufacturer "Android"
|
||||
write /config/usb_gadget/g1/strings/0x409/product "Android"
|
||||
write /config/usb_gadget/g1/bDeviceClass 0
|
||||
write /config/usb_gadget/g1/bDeviceSubClass 0
|
||||
write /config/usb_gadget/g1/bDeviceProtocol 0
|
||||
mkdir /config/usb_gadget/g1/functions/mass_storage.usb0
|
||||
mkdir /config/usb_gadget/g1/functions/ffs.adb
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs0
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs1
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs2
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs3
|
||||
mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell
|
||||
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
|
||||
write /config/usb_gadget/g1/configs/b.1/MaxPower 500
|
||||
symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1
|
||||
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
|
||||
|
||||
#INTERNAL_START
|
||||
write /proc/bootprof "INIT:Mount_START"
|
||||
start vendor.boot-hal-1-2
|
||||
mount_all --early
|
||||
write /proc/bootprof "INIT:Mount_END"
|
||||
#INTERNAL_END
|
||||
# mount different fs end
|
||||
|
||||
on post-fs
|
||||
start logd
|
||||
start light-default
|
||||
start system_suspend
|
||||
start merged_hal_service
|
||||
start capi-2-0
|
||||
start vendor.health-default
|
||||
# Once everything is setup, no need to modify /.
|
||||
# The bind+ro combination avoids modifying any other mount flags.
|
||||
# mount rootfs rootfs / remount bind ro
|
||||
# Mount shared so changes propagate into child namespaces
|
||||
mount rootfs rootfs / shared rec
|
||||
# Mount default storage into root namespace
|
||||
mount none /mnt/runtime/default /storage bind rec
|
||||
mount none none /storage slave rec
|
||||
|
||||
# Make sure /sys/kernel/debug (if present) is labeled properly
|
||||
# Note that tracefs may be mounted under debug, so we need to cross filesystems
|
||||
restorecon --recursive --cross-filesystems /sys/kernel/debug
|
||||
|
||||
# Support legacy paths
|
||||
symlink /sdcard /storage/sdcard0
|
||||
|
||||
chown system system /system/data
|
||||
mkdir /system/cache 0770 system cache
|
||||
# We restorecon /cache in case the cache partition has been reset.
|
||||
restorecon_recursive /cache
|
||||
|
||||
# Same reason as /data above
|
||||
chown system cache /cache
|
||||
chmod 0770 /cache
|
||||
|
||||
# This may have been created by the recovery system with odd permissions
|
||||
chown system cache /cache/recovery
|
||||
chmod 0770 /cache/recovery
|
||||
|
||||
#change permissions on vmallocinfo so we can grab it from bugreports
|
||||
chown root log /proc/vmallocinfo
|
||||
chmod 0440 /proc/vmallocinfo
|
||||
|
||||
#change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
|
||||
chown root system /proc/kmsg
|
||||
chmod 0440 /proc/kmsg
|
||||
chown root system /proc/sysrq-trigger
|
||||
chmod 0220 /proc/sysrq-trigger
|
||||
chown system log /proc/last_kmsg
|
||||
chmod 0440 /proc/last_kmsg
|
||||
|
||||
# make the selinux kernel policy world-readable
|
||||
chmod 0444 /sys/fs/selinux/policy
|
||||
|
||||
# create the lost+found directories, so as to enforce our permissions
|
||||
mkdir /cache/lost+found 0770 root root
|
||||
|
||||
#INTERNAL_START
|
||||
mkdir /cache/recovery 0770 system system
|
||||
chown system system /mnt/vendor/protect_f
|
||||
chmod 0770 /mnt/vendor/protect_f
|
||||
|
||||
chown system system /mnt/vendor/protect_s
|
||||
chmod 0770 /mnt/vendor/protect_s
|
||||
|
||||
chown system system /mnt/vendor/nvcfg
|
||||
chmod 0771 /mnt/vendor/nvcfg
|
||||
restorecon_recursive /mnt/vendor/nvcfg
|
||||
|
||||
chown root system /mnt/vendor/nvdata
|
||||
chmod 0771 /mnt/vendor/nvdata
|
||||
mkdir /mnt/vendor/nvdata/media 0771 media audio
|
||||
restorecon_recursive /mnt/vendor/nvdata
|
||||
|
||||
#INTERNAL_END
|
||||
|
||||
on late-fs
|
||||
|
||||
# HALs required before storage encryption can get unlocked (FBE/FDE)
|
||||
class_start early_hal
|
||||
wait_for_prop hwservicemanager.ready "true"
|
||||
start vendor.keymaster-3-0
|
||||
start vendor.keymaster-3-0-trustonic
|
||||
start vendor.keymaster-4-0
|
||||
start vendor.keymaster-4-0-trustonic
|
||||
start vendor.keymaster-4-0-beanpod
|
||||
start vendor.keymaster-4-1-beanpod
|
||||
start vendor.keymint-default
|
||||
start keymaster_attestation-1-1
|
||||
exec_start wait_for_keymaster
|
||||
mount_all --late
|
||||
|
||||
on post-fs-data
|
||||
write /proc/bootprof "INIT:post-fs-data"
|
||||
wait_for_prop vendor.all.modules.ready 1
|
||||
write /proc/bootprof "modprobe: Load_Module_DONE"
|
||||
|
||||
#Thermal
|
||||
mkdir /data/.tp/ 0775 system system
|
||||
|
||||
# symlink to bugreport storage location
|
||||
rm /data/bugreports
|
||||
symlink /data/user_de/0/com.android.shell/files/bugreports /data/bugreports
|
||||
|
||||
# VIA flashlessd service
|
||||
mkdir /data/flashless 0770 radio nvram
|
||||
mkdir /mnt/vendor/nvdata/md_via 0770 root nvram
|
||||
chmod 0660 /dev/ttyMT4
|
||||
chown radio radio /dev/ttyMT4
|
||||
chmod 0660 /dev/vmodem
|
||||
chown radio radio /dev/vmodem
|
||||
|
||||
#VIA pppd service
|
||||
mkdir /data/pppd_via 0770 radio system
|
||||
|
||||
# md32 boot
|
||||
chown root system /dev/md32
|
||||
chmod 0440 /dev/md32
|
||||
chown root system /sys/class/misc/md32/md32_mobile_log
|
||||
chmod 0660 /sys/class/misc/md32/md32_mobile_log
|
||||
write /sys/class/misc/md32/md32_boot 1
|
||||
|
||||
# dhcp server
|
||||
mkdir /data/misc/dhcp 0770 dhcp dhcp
|
||||
chown dhcp dhcp /data/misc/dhcp
|
||||
|
||||
# device info interface
|
||||
chmod 0440 /dev/devmap
|
||||
chown root system /dev/devmap
|
||||
|
||||
|
||||
|
||||
#change partition permission
|
||||
exec /vendor/etc/partition_permission.sh
|
||||
#INTERNAL_START
|
||||
#SeLinux
|
||||
mkdir /data/ccci_cfg 0770 system radio
|
||||
restorecon /data/ccci_cfg
|
||||
restorecon_recursive /mnt/vendor/protect_f
|
||||
restorecon_recursive /mnt/vendor/protect_s
|
||||
|
||||
## Custom pos-fs area (START)
|
||||
# Please add custom fs operation below
|
||||
|
||||
# Touch Panel
|
||||
chown root diag /sys/module/tpd_setting/parameters/tpd_calmat
|
||||
chown root diag /sys/module/tpd_setting/parameters/tpd_em_debounce_time
|
||||
chown root diag /sys/module/tpd_debug/parameters/tpd_em_log
|
||||
chown root diag /sys/module/tpd_debug/parameters/tpd_em_log_to_fs
|
||||
|
||||
# RTC
|
||||
mkdir /data/misc/rtc 0770 system system
|
||||
|
||||
# Modem related device nodes
|
||||
mkdir /mnt/vendor/nvdata/md 0770 root system
|
||||
mkdir /mnt/vendor/nvdata/md2 0770 root system
|
||||
mkdir /mnt/vendor/nvdata/md3 0770 root system
|
||||
mkdir /data/md3 0770 root system
|
||||
|
||||
chown radio radio /sys/kernel/ccci/boot
|
||||
|
||||
#set mlock limit to infinate (for m4u operation)
|
||||
setrlimit 8 -1 -1
|
||||
|
||||
|
||||
#VideoCodec
|
||||
chmod 0666 /dev/Vcodec
|
||||
|
||||
|
||||
mkdir /data/amit/
|
||||
|
||||
# GPIO
|
||||
chmod 0666 /dev/mtgpio
|
||||
|
||||
chmod 0666 /dev/exm0
|
||||
|
||||
#NFC
|
||||
rm /data/mtknfc_server
|
||||
|
||||
## Custom pos_fs area (END)
|
||||
#INTERNAL_END
|
||||
|
||||
# Separate location for storing security policy files on data
|
||||
mkdir /data/security 0711 system system
|
||||
|
||||
# It is recommended to put unnecessary data/ initialization from post-fs-data
|
||||
# to start-zygote in device's init.rc to unblock zygote start.
|
||||
on zygote-start && property:ro.crypto.state=unencrypted
|
||||
# A/B update verifier that marks a successful boot.
|
||||
exec_start update_verifier_nonencrypted
|
||||
start netd
|
||||
start zygote
|
||||
start zygote_secondary
|
||||
|
||||
on zygote-start && property:ro.crypto.state=unsupported
|
||||
# A/B update verifier that marks a successful boot.
|
||||
exec_start update_verifier_nonencrypted
|
||||
start netd
|
||||
start zygote
|
||||
start zygote_secondary
|
||||
|
||||
on zygote-start && property:ro.crypto.state=encrypted && property:ro.crypto.type=file
|
||||
# A/B update verifier that marks a successful boot.
|
||||
exec_start update_verifier_nonencrypted
|
||||
start netd
|
||||
start zygote
|
||||
start zygote_secondary
|
||||
|
||||
on boot
|
||||
setprop sys.usb.configfs 1
|
||||
setprop sys.usb.controller "11201000.usb0"
|
||||
setprop vendor.usb.clear boot
|
||||
|
||||
# force on usb
|
||||
# write /sys/class/udc/${sys.usb.controller}/device/mode 3
|
||||
|
||||
# TTY
|
||||
chmod 0660 /dev/ttyGS0
|
||||
chown system radio /dev/ttyGS0
|
||||
chmod 0660 /dev/ttyGS1
|
||||
chown system radio /dev/ttyGS1
|
||||
# For BT relayer
|
||||
chown bluetooth radio /dev/ttyGS2
|
||||
chmod 0660 /dev/ttyGS2
|
||||
# For MD Logger
|
||||
chown system radio /dev/ttyGS3
|
||||
chmod 0660 /dev/ttyGS3
|
||||
|
||||
#VIA device property
|
||||
setprop viatel.device.asci uart.4.ttyMT
|
||||
setprop viatel.device.fls sdio.3.ttySDIO
|
||||
setprop viatel.device.at sdio.4.ttySDIO
|
||||
setprop viatel.device.data sdio.1.ttySDIO
|
||||
|
||||
# For backlight
|
||||
chmod 0664 /sys/class/leds/lcd-backlight/brightness
|
||||
chown system system /sys/class/leds/lcd-backlight/brightness
|
||||
|
||||
# Power Manager
|
||||
write /sys/power/pm_freeze_timeout 2000
|
||||
|
||||
# basic network init
|
||||
ifup lo
|
||||
hostname localhost
|
||||
domainname localdomain
|
||||
|
||||
#INTERNAL_START
|
||||
# Start default class, this line is very important!!
|
||||
class_start default
|
||||
#INTERNAL_END
|
||||
|
||||
# Start standard binderized HAL daemons
|
||||
class_start hal
|
||||
|
||||
class_start core
|
||||
|
||||
on nonencrypted
|
||||
class_start main
|
||||
class_start late_start
|
||||
|
||||
on property:vold.decrypt=trigger_default_encryption
|
||||
start defaultcrypto
|
||||
|
||||
on property:vold.decrypt=trigger_encryption
|
||||
start surfaceflinger
|
||||
start encrypt
|
||||
|
||||
on property:vold.decrypt=trigger_reset_main
|
||||
class_reset main
|
||||
|
||||
on property:vold.decrypt=trigger_load_persist_props
|
||||
load_persist_props
|
||||
start logd
|
||||
start logd-reinit
|
||||
|
||||
on property:vold.decrypt=trigger_post_fs_data
|
||||
trigger post-fs-data
|
||||
trigger zygote-start
|
||||
|
||||
on property:vold.decrypt=trigger_restart_min_framework
|
||||
# A/B update verifier that marks a successful boot.
|
||||
exec_start update_verifier
|
||||
class_start main
|
||||
|
||||
on property:vold.decrypt=trigger_restart_framework
|
||||
stop surfaceflinger
|
||||
start surfaceflinger
|
||||
# A/B update verifier that marks a successful boot.
|
||||
exec_start update_verifier
|
||||
class_start main
|
||||
class_start late_start
|
||||
|
||||
on property:vold.decrypt=trigger_shutdown_framework
|
||||
class_reset late_start
|
||||
class_reset main
|
||||
|
||||
# One shot invocation to deal with encrypted volume.
|
||||
on defaultcrypto
|
||||
exec - root -- /system/bin/vdc --wait cryptfs mountdefaultencrypted
|
||||
# vold will set vold.decrypt to trigger_restart_framework (default
|
||||
# encryption) or trigger_restart_min_framework (other encryption)
|
||||
|
||||
# One shot invocation to encrypt unencrypted volumes
|
||||
# mtk modification:
|
||||
# To speed up the booting in meta/factory mode, we don't encrypt the device.
|
||||
# And then handle it as 'unencrypted' state.
|
||||
on encrypt
|
||||
mount ext4 /dev/block/by-name/userdata /data noatime nosuid nodev noauto_da_alloc discard wait
|
||||
setprop vendor.crypto.fake_encrypt 1
|
||||
setprop vold.post_fs_data_done 0
|
||||
trigger post-fs-data
|
||||
on property:vendor.crypto.fake_encrypt=1 && property:vold.post_fs_data_done=1
|
||||
trigger load_persist_props_action
|
||||
# setprop ro.crypto.state unencrypted
|
||||
setprop vendor.soter.teei.crypto.state unencrypted
|
||||
exec_start update_verifier
|
||||
class_start main
|
||||
class_start late_start
|
||||
start mount_all_storages
|
||||
|
||||
service ueventd /system/bin/ueventd
|
||||
class core
|
||||
critical
|
||||
seclabel u:r:ueventd:s0
|
||||
|
||||
service console /system/bin/sh
|
||||
class core
|
||||
console
|
||||
disabled
|
||||
user shell
|
||||
group shell log readproc
|
||||
seclabel u:r:shell:s0
|
||||
|
||||
on property:sys.powerctl=*
|
||||
powerctl ${sys.powerctl}
|
||||
|
||||
#Log too much setting
|
||||
on property:ro.vendor.mtklog_internal=1
|
||||
setprop vendor.logmuch.value 10000
|
||||
|
||||
on property:ro.debuggable=1
|
||||
# Give writes to anyone for the trace folder on debug builds.
|
||||
# The folder is used to store method traces.
|
||||
chmod 0773 /data/misc/trace
|
||||
start console
|
||||
|
||||
# adbd is controlled via property triggers in init.<platform>.usb.rc
|
||||
service adbd /apex/com.android.adbd/bin/adbd --root_seclabel=u:r:su:s0
|
||||
class core
|
||||
socket adbd seqpacket 660 system system
|
||||
disabled
|
||||
override
|
||||
seclabel u:r:adbd:s0
|
||||
|
||||
#INTERNAL_START
|
||||
## Custom service area (START)
|
||||
# Please add custom service below
|
||||
|
||||
service thermal_manager /vendor/bin/thermal_manager
|
||||
user root
|
||||
group system
|
||||
oneshot
|
||||
|
||||
service permission_check /vendor/bin/permission_check
|
||||
user root
|
||||
group system radio
|
||||
oneshot
|
||||
|
||||
service ccci_mdinit /vendor/bin/ccci_mdinit 0
|
||||
user system
|
||||
group radio system
|
||||
oneshot
|
||||
|
||||
service ccci_rpcd /vendor/bin/ccci_rpcd 0
|
||||
user radio
|
||||
group radio system
|
||||
oneshot
|
||||
|
||||
|
||||
service fuelgauged /vendor/bin/fuelgauged
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
|
||||
service mdlogger /system/bin/mdlogger
|
||||
class main
|
||||
user shell
|
||||
group shell system radio sdcard_rw inet
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dualmdlogger /system/bin/dualmdlogger
|
||||
class main
|
||||
user shell
|
||||
group shell system radio sdcard_rw inet
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service factory_no_image /vendor/bin/factory
|
||||
user root
|
||||
group radio system wifi media gps audio bluetooth wakelock nfc
|
||||
capabilities BLOCK_SUSPEND NET_RAW NET_ADMIN SYS_ADMIN SYS_BOOT
|
||||
|
||||
service emdlogger1 /system/system_ext/bin/emdlogger1
|
||||
class main
|
||||
user shell
|
||||
group system shell radio sdcard_rw inet sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service emdlogger2 /system/bin/emdlogger2
|
||||
class main
|
||||
user shell
|
||||
group system shell radio sdcard_rw inet sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service emdlogger3 /system/bin/emdlogger3
|
||||
class main
|
||||
user shell
|
||||
group system shell radio sdcard_rw inet sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service emdlogger5 /system/bin/emdlogger5
|
||||
class main
|
||||
user shell
|
||||
group system shell radio sdcard_rw inet sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service emdlogger6 /system/bin/emdlogger6
|
||||
class main
|
||||
user shell
|
||||
group system shell radio sdcard_rw inet sdcard_r media_rw
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
## Custom service area (END)
|
||||
on property:vendor.usb.clear=1 && property:sys.usb.configfs=1
|
||||
stop adbd
|
||||
setprop sys.usb.ffs.ready 0
|
||||
write /config/usb_gadget/g1/UDC "none"
|
||||
write /config/usb_gadget/g1/bDeviceClass 0
|
||||
write /config/usb_gadget/g1/bDeviceSubClass 0
|
||||
write /config/usb_gadget/g1/bDeviceProtocol 0
|
||||
rm /config/usb_gadget/g1/configs/b.1/f1
|
||||
rm /config/usb_gadget/g1/configs/b.1/f2
|
||||
rm /config/usb_gadget/g1/configs/b.1/f3
|
||||
rm /config/usb_gadget/g1/configs/b.1/f4
|
||||
write /sys/devices/platform/mt_usb/saving 0
|
||||
setprop vendor.usb.clear 2
|
||||
start adbd
|
||||
|
||||
#mass_storage,adb,acm
|
||||
on property:ro.boot.usbconfig=0 && property:sys.usb.configfs=1 && property:vendor.usb.clear=boot
|
||||
start adbd
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:ro.boot.usbconfig=0 && \
|
||||
property:sys.usb.configfs=1 && property:vendor.usb.clear=boot
|
||||
write /config/usb_gadget/g1/UDC "none"
|
||||
write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb_acm"
|
||||
write /config/usb_gadget/g1/idProduct 0x2006
|
||||
symlink /config/usb_gadget/g1/functions/mass_storage.usb0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f3
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop vendor.usb.acm_idx "1"
|
||||
|
||||
#acm (does not set serialnumber)
|
||||
on property:ro.boot.usbconfig=1 && property:sys.usb.configfs=1 && property:vendor.usb.clear=boot
|
||||
write /config/usb_gadget/g1/UDC "none"
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "acm"
|
||||
write /config/usb_gadget/g1/idProduct 0x2007
|
||||
write /config/usb_gadget/g1/bDeviceClass 02
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop vendor.usb.acm_idx "1"
|
||||
|
||||
#singloe modem comport for factory mode
|
||||
on property:sys.usb.config=gs3,dual_acm && property:sys.usb.configfs=1
|
||||
setprop vendor.usb.clear 1
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=gs3,dual_acm && \
|
||||
property:vendor.usb.clear=2 && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "gs3_dual_acm"
|
||||
write /config/usb_gadget/g1/idProduct 0x202E
|
||||
write /sys/devices/platform/mt_usb/saving 1
|
||||
symlink /config/usb_gadget/g1/functions/mass_storage.usb0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f3
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs3 /config/usb_gadget/g1/configs/b.1/f4
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
setprop vendor.usb.clear 0
|
||||
setprop vendor.usb.acm_idx "1,4"
|
||||
|
||||
on property:sys.usb.config=gs1gs3,dual_acm && property:sys.usb.configfs=1
|
||||
setprop vendor.usb.clear 1
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=gs1gs3,dual_acm && \
|
||||
property:vendor.usb.clear=2 && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "gs1gs3_dual_acm"
|
||||
write /config/usb_gadget/g1/idProduct 0x202F
|
||||
write /sys/devices/platform/mt_usb/saving 1
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f2
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs1 /config/usb_gadget/g1/configs/b.1/f3
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs3 /config/usb_gadget/g1/configs/b.1/f4
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
setprop vendor.usb.clear 0
|
||||
setprop vendor.usb.acm_idx "1,2,4"
|
||||
|
||||
on property:sys.usb.config=gs1gs3 && property:sys.usb.configfs=1
|
||||
setprop vendor.usb.clear 1
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=gs1gs3 && \
|
||||
property:vendor.usb.clear=2 && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "gs1gs3"
|
||||
write /config/usb_gadget/g1/idProduct 0x2029
|
||||
write /sys/devices/platform/mt_usb/saving 1
|
||||
symlink /config/usb_gadget/g1/functions/mass_storage.usb0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs1 /config/usb_gadget/g1/configs/b.1/f3
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs3 /config/usb_gadget/g1/configs/b.1/f4
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop vendor.usb.clear 0
|
||||
setprop vendor.usb.acm_idx "1,4"
|
||||
|
||||
# MTK fast charging support
|
||||
on property:persist.vendor.mediatek.fast_charging.support=*
|
||||
write /sys/devices/platform/charger/fast_chg_indicator ${persist.vendor.mediatek.fast_charging.support}
|
||||
|
||||
#INTERNAL_END
|
||||
96
proprietary/vendor/etc/init/hw/meta_init.connectivity.common.rc
vendored
Normal file
96
proprietary/vendor/etc/init/hw/meta_init.connectivity.common.rc
vendored
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
#INTERNAL_START
|
||||
on post-fs-data
|
||||
#
|
||||
# Connectivity related modules and character device nodes (Begin)
|
||||
#
|
||||
|
||||
#/dev/ttyMT2 for Connectivity BT/FM/GPS usage
|
||||
chmod 0660 /dev/ttyMT2
|
||||
chown system system /dev/ttyMT2
|
||||
|
||||
# GPS
|
||||
mkdir /data/vendor/gps 0770 gps system
|
||||
mkdir /data/vendor/log 0770 gps system
|
||||
mkdir /data/vendor/log/gps 0770 gps system
|
||||
|
||||
# GPS EMI
|
||||
chmod 666 /dev/gps_emi
|
||||
|
||||
# WiFi
|
||||
mkdir /data/misc/wifi 0770 wifi wifi
|
||||
mkdir /data/misc/wifi/sockets 0770 wifi wifi
|
||||
mkdir /data/misc/wpa_supplicant 0770 wifi wifi
|
||||
|
||||
#
|
||||
# Connectivity related device nodes & configuration (end)
|
||||
#
|
||||
|
||||
|
||||
on boot
|
||||
|
||||
#
|
||||
# Connectivity related services (Begin)
|
||||
#
|
||||
|
||||
# GPS
|
||||
service mnld /vendor/bin/mnld 1Hz=y meta log_ctrl
|
||||
class main
|
||||
user gps
|
||||
group gps inet misc sdcard_rw sdcard_r media_rw system radio wakelock
|
||||
socket mnld stream 660 gps system
|
||||
|
||||
#service BGW /vendor/bin/BGW
|
||||
# user system
|
||||
# group gps system radio
|
||||
# class main
|
||||
# service for uart_launcher
|
||||
service uart_launcher /vendor/bin/uart_launcher -f 1 -p /dev/ttyS3
|
||||
user root
|
||||
group system
|
||||
|
||||
service wlan_assistant /vendor/bin/wlan_assistant
|
||||
class main
|
||||
user wifi
|
||||
group system gps inet
|
||||
oneshot
|
||||
|
||||
#
|
||||
# Connectivity related services (End)
|
||||
#
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (Begin)
|
||||
#
|
||||
|
||||
# load connfem driver
|
||||
on boot
|
||||
insmod /vendor/lib/modules/connfem.ko
|
||||
|
||||
# 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
|
||||
|
||||
on property:vendor.connsys.driver.ready=yes && property:ro.vendor.bt.connac3=yes
|
||||
insmod /vendor/lib/modules/btmtk_uart_unify.ko
|
||||
start uart_launcher
|
||||
|
||||
|
||||
# load wifi chrdev driver and wlan 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
|
||||
|
||||
# load fmradio_drv
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/fmradio_drv_${ro.vendor.fm.platform}.ko
|
||||
|
||||
# load gps_drv
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/${ro.vendor.gps.chrdev}.ko
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (End)
|
||||
#
|
||||
|
||||
#INTERNAL_END
|
||||
37
proprietary/vendor/etc/init/hw/meta_init.connectivity.rc
vendored
Normal file
37
proprietary/vendor/etc/init/hw/meta_init.connectivity.rc
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import /vendor/etc/init/hw/meta_init.connectivity.common.rc
|
||||
|
||||
#INTERNAL_START
|
||||
|
||||
on boot
|
||||
|
||||
#
|
||||
# Connectivity related services (Begin)
|
||||
#
|
||||
|
||||
# WMT
|
||||
service wmt_loader /vendor/bin/wmt_loader
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
|
||||
service wmt_launcher /vendor/bin/wmt_launcher -p /vendor/firmware/
|
||||
user system
|
||||
group system
|
||||
|
||||
#
|
||||
# Connectivity related services (End)
|
||||
#
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (Begin)
|
||||
#
|
||||
|
||||
# load wmt_drv
|
||||
on boot
|
||||
insmod /vendor/lib/modules/wmt_drv.ko
|
||||
|
||||
#
|
||||
# Connectivity related kernel objects (End)
|
||||
#
|
||||
|
||||
#INTERNAL_END
|
||||
39
proprietary/vendor/etc/init/hw/meta_init.modem.rc
vendored
Normal file
39
proprietary/vendor/etc/init/hw/meta_init.modem.rc
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright (C) 2012 The Android Open Source Project
|
||||
#
|
||||
# IMPORTANT: Do not create world writable files or directories.
|
||||
# This is a common source of Android security bugs.
|
||||
#
|
||||
|
||||
on post-fs-data
|
||||
|
||||
write /proc/bootprof "post-fs-data: on meta modem start"
|
||||
|
||||
# Modem related device nodes
|
||||
mkdir /mnt/vendor/nvdata/md 0770 root system
|
||||
mkdir /mnt/vendor/nvdata/md3 0770 root system
|
||||
mkdir /data/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/kernel/ccci/boot
|
||||
|
||||
#SeLinux
|
||||
mkdir /data/ccci_cfg 0770 system radio
|
||||
restorecon /data/ccci_cfg
|
||||
restorecon_recursive /mnt/vendor/protect_f
|
||||
restorecon_recursive /mnt/vendor/protect_s
|
||||
|
||||
# Encrypt phone function
|
||||
setprop vold.post_fs_data_done 1
|
||||
|
||||
service ccci_mdinit /vendor/bin/ccci_mdinit 0
|
||||
user system
|
||||
group radio system
|
||||
oneshot
|
||||
|
||||
service ccci_rpcd /vendor/bin/ccci_rpcd 0
|
||||
user radio
|
||||
group radio system
|
||||
oneshot
|
||||
15
proprietary/vendor/etc/init/hw/meta_init.project.rc
vendored
Normal file
15
proprietary/vendor/etc/init/hw/meta_init.project.rc
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import /vendor/etc/init/hw/init.mtkgki.rc
|
||||
|
||||
#INTERNAL_START
|
||||
on post-fs
|
||||
|
||||
chmod 0660 /dev/spm
|
||||
chown system system /dev/spm
|
||||
|
||||
|
||||
service spm_script /vendor/bin/spm_loader
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
#INTERNAL_END
|
||||
|
||||
440
proprietary/vendor/etc/init/hw/meta_init.rc
vendored
Normal file
440
proprietary/vendor/etc/init/hw/meta_init.rc
vendored
Normal file
|
|
@ -0,0 +1,440 @@
|
|||
# Copyright (C) 2012 The Android Open Source Project
|
||||
#
|
||||
# IMPORTANT: Do not create world writable files or directories.
|
||||
# This is a common source of Android security bugs.
|
||||
#
|
||||
|
||||
# I am S vendor meta_init.rc
|
||||
|
||||
import /vendor/etc/init/hw/init.aee.rc
|
||||
import /vendor/etc/init/trustonic.rc
|
||||
import ${ro.vendor.rc}meta_init.connectivity.rc
|
||||
import /vendor/etc/init/hw/meta_init.project.rc
|
||||
import /vendor/etc/init/microtrust.rc
|
||||
import /vendor/etc/init/android.hardware.boot@1.2-service.rc
|
||||
import /vendor/etc/init/android.hardware.boot@1.2-service-lazy.rc
|
||||
import /vendor/etc/init/android.hardware.health-service.example.rc
|
||||
|
||||
# drv modify for ata goodix finger start
|
||||
import /vendor/bin/hw/vendor.fp.hardware.fingerprint@2.1-service
|
||||
# drv modify for ata goodix finger end
|
||||
|
||||
#import ${ro.vendor.rc}multi_init.rc
|
||||
#phase out multi_init.rc, move related vendor rc to here.
|
||||
#start
|
||||
import /vendor/etc/init/aee_aedv.rc
|
||||
import /vendor/etc/init/aee_aedv64.rc
|
||||
import /vendor/etc/init/storageproxyd.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@3.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@3.0-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.beanpod.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.beanpod.lite.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.trustkernel.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.mtee.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.beanpod.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.beanpod.lite.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.trustkernel.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint-service.rc
|
||||
#import /vendor/etc/init/vendor.mediatek.hardware.keyinstall@1.0-service.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.keymanage@1.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.audio.service.mediatek.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.keymaster_attestation@1.1-service.rc
|
||||
import /vendor/etc/init/android.hardware.nfc@1.2-service-st.rc
|
||||
import /vendor/etc/init/tee.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.nvram@1.1-sevice.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.nvram@1.1-sevice-lazy.rc
|
||||
import /vendor/etc/init/android.hardware.light@2.0-service-mediatek.rc
|
||||
import /vendor/etc/init/android.hardware.light@2.0-service-mediatek-lazy.rc
|
||||
import /vendor/etc/init/lights-mtk-default.rc
|
||||
import /vendor/etc/init/lights-mtk-lazy.rc
|
||||
import /vendor/etc/init/merged_hal_service.rc
|
||||
import /vendor/etc/init/spm_script.rc
|
||||
import /vendor/etc/init/nvram_daemon.rc
|
||||
import /vendor/etc/init/microtrust.bp_kmsetkey_ca.rc
|
||||
import /vendor/etc/init/vendor.microtrust.hardware.thh@2.0-service.rc
|
||||
import /vendor/etc/init/microtrust.init_thh.rc
|
||||
#end
|
||||
|
||||
#Make sure meta_init.modem.rc is the last rc file.
|
||||
import ${ro.vendor.rc}meta_init.modem.rc
|
||||
|
||||
|
||||
on early-init
|
||||
write /proc/bootprof "INIT:early-init"
|
||||
# Set init and its forked children's oom_adj.
|
||||
write /proc/1/oom_score_adj -1000
|
||||
|
||||
#INTERNAL_START
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
chmod 0755 /sys/kernel/debug
|
||||
#INTERNAL_END
|
||||
|
||||
# prize add for google key
|
||||
setprop ro.vendor.serialno ${ro.serialno}
|
||||
setprop sys.serialno ${ro.serialno}
|
||||
setprop vendor.pri.serialno ${ro.serialno}
|
||||
|
||||
# initialize vendor.all.modules.ready to 1 here to prevent NOT GKI project blocked
|
||||
setprop vendor.all.modules.ready 1
|
||||
|
||||
on init
|
||||
write /proc/bootprof "INIT:init"
|
||||
write /proc/bootprof "INIT: on init mt6835 start"
|
||||
|
||||
# Backward compatibility.
|
||||
symlink /system/bin /bin
|
||||
symlink /system/etc /etc
|
||||
|
||||
# Backward compatibility.
|
||||
symlink /sys/kernel/debug /d
|
||||
|
||||
# Link /vendor to /system/vendor for devices without a vendor partition.
|
||||
symlink /system/vendor /vendor
|
||||
|
||||
# Temp Backward compatibility
|
||||
symlink /dev/block/by-name/boot /dev/bootimg
|
||||
symlink /dev/block/by-name/recovery /dev/recovery
|
||||
symlink /dev/block/by-name/secro /dev/sec_ro
|
||||
symlink /dev/block/by-name/kb /dev/kb
|
||||
symlink /dev/block/by-name/dkb /dev/dkb
|
||||
symlink /dev/block/by-name/seccfg /dev/seccfg
|
||||
symlink /dev/block/by-name/proinfo /dev/pro_info
|
||||
symlink /dev/block/by-name/nvram /dev/nvram
|
||||
symlink /dev/block/by-name/para /dev/misc
|
||||
symlink /dev/block/by-name/logo /dev/logo
|
||||
|
||||
# Support legacy paths
|
||||
symlink /sdcard /mnt/sdcard
|
||||
|
||||
|
||||
#INTERNAL_START
|
||||
symlink /sdcard /mnt/sdcard
|
||||
|
||||
mkdir /mnt/cd-rom 0000 system system
|
||||
#INTERNAL_END
|
||||
|
||||
start hidl_memory
|
||||
|
||||
|
||||
# Load properties from /system/ + /factory after fs mount.
|
||||
on load_system_props_action
|
||||
load_system_props
|
||||
|
||||
|
||||
# avoid no log in meta mode due to logd-reinit
|
||||
# stop keyinstall-1-0
|
||||
# start keyinstall-1-0
|
||||
|
||||
|
||||
on fs
|
||||
## USB configfs
|
||||
mkdir /dev/usb-ffs 0770 shell shell
|
||||
mkdir /dev/usb-ffs/adb 0770 shell shell
|
||||
mkdir /config/usb_gadget/g1 0770 shell shell
|
||||
write /config/usb_gadget/g1/idVendor 0x0E8D
|
||||
write /config/usb_gadget/g1/bcdDevice 0xFFFF
|
||||
write /config/usb_gadget/g1/bcdUSB 0x0200
|
||||
mkdir /config/usb_gadget/g1/strings/0x409 0770
|
||||
write /config/usb_gadget/g1/strings/0x409/manufacturer "Android"
|
||||
write /config/usb_gadget/g1/strings/0x409/product "Android"
|
||||
write /config/usb_gadget/g1/bDeviceClass 0
|
||||
write /config/usb_gadget/g1/bDeviceSubClass 0
|
||||
write /config/usb_gadget/g1/bDeviceProtocol 0
|
||||
mkdir /config/usb_gadget/g1/functions/mass_storage.usb0
|
||||
mkdir /config/usb_gadget/g1/functions/ffs.adb
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs0
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs1
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs2
|
||||
mkdir /config/usb_gadget/g1/functions/acm.gs3
|
||||
mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell
|
||||
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
|
||||
write /config/usb_gadget/g1/configs/b.1/MaxPower 500
|
||||
symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1
|
||||
|
||||
#INTERNAL_START
|
||||
write /proc/bootprof "INIT:Mount_START"
|
||||
|
||||
start vendor.boot-hal-1-2
|
||||
|
||||
rm /metadata/logcat
|
||||
start earlylog
|
||||
wait /toto 5
|
||||
|
||||
mount_all --early
|
||||
write /proc/bootprof "INIT:Mount_END"
|
||||
#INTERNAL_END
|
||||
|
||||
on post-fs
|
||||
# start keyinstall-1-0
|
||||
start vendor.light-default
|
||||
start merged_hal_service
|
||||
start vendor.health-default
|
||||
|
||||
# Support legacy paths
|
||||
symlink /sdcard /storage/sdcard0
|
||||
|
||||
|
||||
#INTERNAL_START
|
||||
chown system system /mnt/vendor/protect_f
|
||||
chmod 0770 /mnt/vendor/protect_f
|
||||
|
||||
chown system system /mnt/vendor/protect_s
|
||||
chmod 0770 /mnt/vendor/protect_s
|
||||
|
||||
chown system system /mnt/vendor/nvcfg
|
||||
chmod 0771 /mnt/vendor/nvcfg
|
||||
restorecon_recursive /mnt/vendor/nvcfg
|
||||
|
||||
chown root system /mnt/vendor/nvdata
|
||||
chmod 0771 /mnt/vendor/nvdata
|
||||
mkdir /mnt/vendor/nvdata/media 0771 media audio
|
||||
restorecon_recursive /mnt/vendor/nvdata
|
||||
|
||||
#INTERNAL_END
|
||||
|
||||
on late-fs
|
||||
start keystore2
|
||||
start vendor.keymaster-3-0
|
||||
start vendor.keymaster-3-0-trustonic
|
||||
start vendor.keymaster-4-0
|
||||
start vendor.keymaster-4-0-trustonic
|
||||
start vendor.keymaster-4-0-beanpod
|
||||
start vendor.keymaster-4-1
|
||||
start vendor.keymaster-4-1-trustonic
|
||||
start vendor.keymaster-4-1-beanpod
|
||||
start vendor.keymint-default
|
||||
start vendor.keymint-trustonic
|
||||
start vendor.keymint-beanpod
|
||||
start keymaster_attestation-1-1
|
||||
exec_start wait_for_keymaster
|
||||
mount_all --late
|
||||
|
||||
on post-fs-data
|
||||
write /proc/bootprof "INIT:post-fs-data"
|
||||
wait_for_prop vendor.all.modules.ready 1
|
||||
write /proc/bootprof "modprobe: Load_Module_DONE"
|
||||
|
||||
#Thermal
|
||||
mkdir /data/.tp/ 0775 system system
|
||||
|
||||
#INTERNAL_START
|
||||
# WiFi
|
||||
mkdir /data/misc/wifi 0770 system wifi
|
||||
mkdir /data/misc/wifi/sockets 0770 system wifi
|
||||
mkdir /data/misc/dhcp 0770 dhcp dhcp
|
||||
chown dhcp dhcp /data/misc/dhcp
|
||||
#give system access to rfkill device node
|
||||
chmod 0660 /dev/rfkill
|
||||
|
||||
# RTC
|
||||
mkdir /data/misc/rtc 0770 system system
|
||||
|
||||
# Android SEC related device nodes
|
||||
chmod 0660 /dev/sec
|
||||
chown root system /dev/sec
|
||||
|
||||
#change partition permission
|
||||
exec /vendor/etc/partition_permission.sh
|
||||
|
||||
chmod 0666 /dev/exm0
|
||||
#INTERNAL_END
|
||||
|
||||
# drv modify FINGERPRINT_START
|
||||
chmod 0666 /dev/goodix_fp
|
||||
mkdir /data/vendor/goodix 0770 system system
|
||||
mkdir /mnt/vendor/persist/goodix 0770 system system
|
||||
# drv modify FINGERPRINT_END
|
||||
|
||||
on boot
|
||||
# For backlight
|
||||
chmod 0664 /sys/class/leds/lcd-backlight/brightness
|
||||
chown system system /sys/class/leds/lcd-backlight/brightness
|
||||
write /sys/class/leds/vibrator/trigger "transient"
|
||||
|
||||
|
||||
#INTERNAL_START
|
||||
class_start default
|
||||
#INTERNAL_END
|
||||
|
||||
#USB configfs
|
||||
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
|
||||
chown system radio /dev/ttyGS3
|
||||
chmod 0660 /dev/ttyGS3
|
||||
setprop sys.usb.configfs 1
|
||||
setprop sys.usb.controller "11201000.usb0"
|
||||
|
||||
# force on usb
|
||||
# write /sys/class/udc/${sys.usb.controller}/device/mode 3
|
||||
|
||||
|
||||
# One shot invocation to encrypt unencrypted volumes
|
||||
# mtk modification:
|
||||
# To speed up the booting in meta/factory mode, we don't encrypt the device.
|
||||
# And then handle it as 'unencrypted' state.
|
||||
on encrypt
|
||||
mount ext4 /dev/block/by-name/userdata /data noatime nosuid nodev noauto_da_alloc discard wait
|
||||
setprop vendor.crypto.fake_encrypt 1
|
||||
setprop vold.post_fs_data_done 0
|
||||
trigger post-fs-data
|
||||
on property:vendor.crypto.fake_encrypt=1 && property:vold.post_fs_data_done=1
|
||||
trigger load_persist_props_action
|
||||
# setprop ro.crypto.state unencrypted
|
||||
setprop vendor.soter.teei.crypto.state unencrypted
|
||||
exec_start update_verifier
|
||||
class_start main
|
||||
class_start late_start
|
||||
start mount_all_storages
|
||||
|
||||
#drv add by xudongfang for rkp, 20230307 start
|
||||
on property:sys.rkpchmod=1
|
||||
copy /data/misc/credstore/prod_build_csr.json /data/vendor_de/meta/prod_build_csr.json
|
||||
chmod 0644 /data/vendor_de/meta/prod_build_csr.json
|
||||
chown credstore root /data/vendor_de/meta/prod_build_csr.json
|
||||
#drv add by xudongfang for rkp, 20230307 end
|
||||
|
||||
#Log too much setting
|
||||
on property:ro.vendor.mtklog_internal=1
|
||||
setprop vendor.logmuch.value 10000
|
||||
|
||||
# adbd is controlled via property triggers in init.<platform>.usb.rc
|
||||
service adbd /apex/com.android.adbd/bin/adbd --root_seclabel=u:r:su:s0
|
||||
class core
|
||||
socket adbd seqpacket 660 system system
|
||||
disabled
|
||||
override
|
||||
seclabel u:r:adbd:s0
|
||||
|
||||
#INTERNAL_START
|
||||
|
||||
service thermal_manager /vendor/bin/thermal_manager
|
||||
user root
|
||||
group system
|
||||
oneshot
|
||||
|
||||
service loghidlvendorservice /vendor/bin/loghidlvendorservice
|
||||
class main
|
||||
user shell
|
||||
group system shell radio
|
||||
|
||||
service meta_tst /vendor/bin/meta_tst
|
||||
user root
|
||||
group radio system wifi audio bluetooth media gps
|
||||
socket meta-atci stream 660 radio system
|
||||
|
||||
service factory_no_image /vendor/bin/factory
|
||||
user root
|
||||
group radio system wifi media gps audio bluetooth wakelock nfc
|
||||
capabilities BLOCK_SUSPEND NET_RAW NET_ADMIN SYS_ADMIN SYS_BOOT
|
||||
socket factory-atci stream 660 radio system
|
||||
|
||||
service atcid-daemon-u /vendor/bin/atcid
|
||||
interface vendor.mediatek.hardware.atci@1.0::IAtcid default
|
||||
class hal
|
||||
class core
|
||||
socket adb_atci_socket stream 660 radio system
|
||||
user root
|
||||
group radio system
|
||||
oneshot
|
||||
|
||||
service fuelgauged /vendor/bin/fuelgauged
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
|
||||
# drv add by liaoxingen for fingerprint-chip_id,202301102
|
||||
on load_persist_props_action
|
||||
setprop persist.vendor.overlay.fp_model 0
|
||||
service vendor.fingerprint_hal /vendor/bin/hw/vendor.fp.hardware.fingerprint@2.1-service
|
||||
# "class hal" causes a race condition on some devices due to files created
|
||||
# in /data. As a workaround, postpone startup until later in boot once
|
||||
# /data is mounted.
|
||||
class core
|
||||
user system
|
||||
group system input uhid
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
#prize add by durunshen for fingerprint, X9LAVA-451 start
|
||||
disabled
|
||||
#prize add by durunshen for fingerprint, X9LAVA-451 end
|
||||
# drv add by liaoxingen for fingerprint-chip_id,20231102
|
||||
|
||||
on property:vendor.mtk.factory.start=1
|
||||
stop factory_no_image
|
||||
start factory_no_image
|
||||
|
||||
#META+ADB
|
||||
on property:ro.boot.usbconfig=0 && property:sys.usb.configfs=1
|
||||
write /proc/bootprof "INIT:start adbd"
|
||||
start adbd
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:ro.boot.usbconfig=0 && property:sys.usb.configfs=1
|
||||
write /proc/bootprof "INIT:on property:ro.boot.usbconfig=0"
|
||||
write /config/usb_gadget/g1/UDC "none"
|
||||
write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb_acm"
|
||||
write /config/usb_gadget/g1/idProduct 0x200E
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f2
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
|
||||
#META, move this to kernel driver
|
||||
on property:ro.boot.usbconfig=1 && property:sys.usb.configfs=1
|
||||
write /proc/bootprof "INIT:on property:ro.boot.usbconfig 1"
|
||||
#write /config/usb_gadget/g1/UDC "none"
|
||||
#write /config/usb_gadget/g1/strings/0x409/serialnumber ""
|
||||
#write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "acm"
|
||||
#write /config/usb_gadget/g1/idProduct 0x2007
|
||||
#write /config/usb_gadget/g1/bDeviceClass 02
|
||||
#symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
#write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
|
||||
#META+ELT, move this to kernel driver
|
||||
on property:ro.boot.usbconfig=2 && property:sys.usb.configfs=1
|
||||
write /proc/bootprof "INIT:on property:ro.boot.usbconfig 2"
|
||||
setprop vendor.usb.acm_idx 1,4
|
||||
#write /config/usb_gadget/g1/UDC "none"
|
||||
#write /config/usb_gadget/g1/strings/0x409/serialnumber $ro.serialno
|
||||
#write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "meta_elt"
|
||||
#write /config/usb_gadget/g1/idProduct 0x202d
|
||||
#symlink /config/usb_gadget/g1/functions/mass_storage.usb0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
#symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f2
|
||||
#symlink /config/usb_gadget/g1/functions/acm.gs3 /config/usb_gadget/g1/configs/b.1/f3
|
||||
#write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
|
||||
#META+ELT+ADB
|
||||
on property:ro.boot.usbconfig=3 && property:sys.usb.configfs=1
|
||||
write /proc/bootprof "INIT:start adbd"
|
||||
start adbd
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:ro.boot.usbconfig=3 && property:sys.usb.configfs=1
|
||||
write /proc/bootprof "INIT:on property:ro.boot.usbconfig 3"
|
||||
write /config/usb_gadget/g1/UDC "none"
|
||||
write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "meta_elt_adb"
|
||||
write /config/usb_gadget/g1/idProduct 0x2040
|
||||
write /sys/devices/platform/mt_usb/saving 1
|
||||
symlink /config/usb_gadget/g1/functions/mass_storage.usb0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f3
|
||||
symlink /config/usb_gadget/g1/functions/acm.gs3 /config/usb_gadget/g1/configs/b.1/f4
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop vendor.usb.acm_idx 1,4
|
||||
|
||||
# MTK fast charging support
|
||||
on property:persist.vendor.mediatek.fast_charging.support=*
|
||||
write /sys/devices/platform/charger/fast_chg_indicator ${persist.vendor.mediatek.fast_charging.support}
|
||||
|
||||
# MTK meta mode enable charging current limit
|
||||
on property:persist.vendor.mediatek.enable_meta_current_limit=*
|
||||
write /sys/devices/platform/charger/enable_meta_current_limit ${persist.vendor.mediatek.enable_meta_current_limit}
|
||||
|
||||
#INTERNAL_END
|
||||
|
||||
service earlylog /system/bin/logcat -b all -f /metadata/logcat
|
||||
class core
|
||||
user root
|
||||
disabled
|
||||
oneshot
|
||||
12
proprietary/vendor/etc/init/hw/meta_init.vendor.rc
vendored
Normal file
12
proprietary/vendor/etc/init/hw/meta_init.vendor.rc
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Copyright (C) 2012 The Android Open Source Project
|
||||
#
|
||||
# IMPORTANT: Do not create world writable files or directories.
|
||||
# This is a common source of Android security bugs.
|
||||
#
|
||||
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.mtee.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint@2.0-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint-service.beanpod.rc
|
||||
|
||||
import /vendor/etc/init/hw/meta_init.rc
|
||||
50
proprietary/vendor/etc/init/hw/multi_init.rc
vendored
Normal file
50
proprietary/vendor/etc/init/hw/multi_init.rc
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# import AOSP service related rc in meta mode and factory mode.
|
||||
#
|
||||
import /system_ext/etc/init/aee_aed.rc
|
||||
import /system_ext/etc/init/aee_aed64.rc
|
||||
import /vendor/etc/init/aee_aedv.rc
|
||||
import /vendor/etc/init/aee_aedv64.rc
|
||||
import /system/etc/init/logd.rc
|
||||
import /system/etc/init/logd_e.rc
|
||||
import /system/etc/init/logcatd.rc
|
||||
import /system/etc/init/storagemanagerd.rc
|
||||
import /system/etc/init/mobile_log_d.rc
|
||||
import /system/etc/init/android.system.suspend@1.0-service.rc
|
||||
import /system/etc/init/wait_for_keymaster.rc
|
||||
import /system/etc/init/keystore2.rc
|
||||
import /vendor/etc/init/storageproxyd.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@3.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@3.0-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.beanpod.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.beanpod.lite.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.trustkernel.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.0-service.mtee.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.beanpod.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.beanpod.lite.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.trustkernel.rc
|
||||
import /vendor/etc/init/android.hardware.keymaster@4.1-service.mtee.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint-service.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint-service.trustonic.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint-service.beanpod.rc
|
||||
import /vendor/etc/init/android.hardware.security.keymint@2.0-service.trustonic.rc
|
||||
#import /vendor/etc/init/vendor.mediatek.hardware.keyinstall@1.0-service.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.keymanage@1.0-service.rc
|
||||
import /vendor/etc/init/android.hardware.audio.service.mediatek.rc
|
||||
import /vendor/etc/init/android.hardware.nfc@1.2-service-st.rc
|
||||
import /vendor/etc/init/tee.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.nvram@1.1-sevice.rc
|
||||
import /vendor/etc/init/vendor.mediatek.hardware.nvram@1.1-sevice-lazy.rc
|
||||
import /vendor/etc/init/android.hardware.light@2.0-service-mediatek.rc
|
||||
import /vendor/etc/init/android.hardware.light@2.0-service-mediatek-lazy.rc
|
||||
import /vendor/etc/init/lights-mtk-default.rc
|
||||
import /vendor/etc/init/lights-mtk-lazy.rc
|
||||
import /vendor/etc/init/merged_hal_service.rc
|
||||
import /vendor/etc/init/spm_script.rc
|
||||
import /vendor/etc/init/nvram_daemon.rc
|
||||
import /vendor/etc/init/microtrust.bp_kmsetkey_ca.rc
|
||||
import /vendor/etc/init/vendor.microtrust.hardware.thh@2.0-service.rc
|
||||
import /vendor/etc/init/microtrust.init_thh.rc
|
||||
7
proprietary/vendor/etc/init/init.bt_drv.rc
vendored
Normal file
7
proprietary/vendor/etc/init/init.bt_drv.rc
vendored
Normal file
|
|
@ -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
|
||||
24
proprietary/vendor/etc/init/init.cccifsd.rc
vendored
Normal file
24
proprietary/vendor/etc/init/init.cccifsd.rc
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
|
||||
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
|
||||
#
|
||||
|
||||
|
||||
|
||||
38
proprietary/vendor/etc/init/init.cccimdinit.rc
vendored
Normal file
38
proprietary/vendor/etc/init/init.cccimdinit.rc
vendored
Normal 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
|
||||
class core
|
||||
priority -20
|
||||
ioprio rt 4
|
||||
oneshot
|
||||
|
||||
8
proprietary/vendor/etc/init/init.cccirpcd.rc
vendored
Normal file
8
proprietary/vendor/etc/init/init.cccirpcd.rc
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
|
||||
service vendor.ccci_rpcd /vendor/bin/ccci_rpcd 0
|
||||
user radio
|
||||
group radio system
|
||||
class core
|
||||
oneshot
|
||||
|
||||
2
proprietary/vendor/etc/init/init.connfem.rc
vendored
Normal file
2
proprietary/vendor/etc/init/init.connfem.rc
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
on boot
|
||||
insmod /vendor/lib/modules/connfem.ko
|
||||
5
proprietary/vendor/etc/init/init.fmradio_drv.rc
vendored
Normal file
5
proprietary/vendor/etc/init/init.fmradio_drv.rc
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
# load fmradio_drv
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/fmradio_drv_${ro.vendor.fm.platform}.ko
|
||||
|
||||
4
proprietary/vendor/etc/init/init.gps_drv.rc
vendored
Normal file
4
proprietary/vendor/etc/init/init.gps_drv.rc
vendored
Normal 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
proprietary/vendor/etc/init/init.gps_pwr.rc
vendored
Normal file
4
proprietary/vendor/etc/init/init.gps_pwr.rc
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
# load gps_pwr
|
||||
on property:vendor.connsys.driver.ready=yes
|
||||
insmod /vendor/lib/modules/gps_pwr.ko
|
||||
9
proprietary/vendor/etc/init/init.thermal_core.rc
vendored
Normal file
9
proprietary/vendor/etc/init/init.thermal_core.rc
vendored
Normal 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:ro.vendor.mtk_thermal_2_0=1
|
||||
start thermal_core
|
||||
8
proprietary/vendor/etc/init/init.vtservice_hidl.rc
vendored
Normal file
8
proprietary/vendor/etc/init/init.vtservice_hidl.rc
vendored
Normal 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
proprietary/vendor/etc/init/init.wlan_drv.rc
vendored
Normal file
6
proprietary/vendor/etc/init/init.wlan_drv.rc
vendored
Normal 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
proprietary/vendor/etc/init/init.wmt_drv.rc
vendored
Normal file
2
proprietary/vendor/etc/init/init.wmt_drv.rc
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
on boot
|
||||
insmod /vendor/lib/modules/wmt_drv.ko
|
||||
11
proprietary/vendor/etc/init/ipsec_mon.rc
vendored
Normal file
11
proprietary/vendor/etc/init/ipsec_mon.rc
vendored
Normal 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)
|
||||
#
|
||||
|
||||
4
proprietary/vendor/etc/init/lbs_hidl_service.rc
vendored
Normal file
4
proprietary/vendor/etc/init/lbs_hidl_service.rc
vendored
Normal 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
|
||||
11
proprietary/vendor/etc/init/mtk_agpsd_p.rc
vendored
Normal file
11
proprietary/vendor/etc/init/mtk_agpsd_p.rc
vendored
Normal 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
|
||||
|
||||
8
proprietary/vendor/etc/init/mtkgnss-batching.rc
vendored
Normal file
8
proprietary/vendor/etc/init/mtkgnss-batching.rc
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
service vendor.mtkgnss-batching /vendor/bin/hw/vendor.mediatek.hardware.gnss.batching-service
|
||||
interface aidl vendor.mediatek.hardware.gnss.batching.IMtkGnssBatching/default
|
||||
class hal
|
||||
disabled
|
||||
oneshot
|
||||
user system
|
||||
capabilities WAKE_ALARM
|
||||
group system gps
|
||||
33
proprietary/vendor/etc/init/mtkrild.rc
vendored
Normal file
33
proprietary/vendor/etc/init/mtkrild.rc
vendored
Normal 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"
|
||||
9
proprietary/vendor/etc/init/muxreport.rc
vendored
Normal file
9
proprietary/vendor/etc/init/muxreport.rc
vendored
Normal 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
|
||||
21
proprietary/vendor/etc/init/netdagent.rc
vendored
Normal file
21
proprietary/vendor/etc/init/netdagent.rc
vendored
Normal file
|
|
@ -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
proprietary/vendor/etc/init/nvram_daemon.rc
vendored
Normal file
5
proprietary/vendor/etc/init/nvram_daemon.rc
vendored
Normal 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
proprietary/vendor/etc/init/tee.rc
vendored
Normal file
36
proprietary/vendor/etc/init/tee.rc
vendored
Normal 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=unsupported
|
||||
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
proprietary/vendor/etc/init/tetheroffloadservice.rc
vendored
Normal file
9
proprietary/vendor/etc/init/tetheroffloadservice.rc
vendored
Normal 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
|
||||
7
proprietary/vendor/etc/init/touch_boost.rc
vendored
Normal file
7
proprietary/vendor/etc/init/touch_boost.rc
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
65
proprietary/vendor/etc/init/trustonic.rc
vendored
Normal file
65
proprietary/vendor/etc/init/trustonic.rc
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
# 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/070c0000000000000000000000000000.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
|
||||
|
||||
#for All mode
|
||||
on load_persist_props_action
|
||||
# drv add udfps fingerprint service, vts_treble_vintf_vendor_test 2024-01-10 start
|
||||
start vendor.fingerprint_hal
|
||||
# drv add udfps fingerprint service, vts_treble_vintf_vendor_test 2024-01-10 end
|
||||
|
||||
14
proprietary/vendor/etc/init/vendor.mediatek.hardware.mms@1.7-service.rc
vendored
Normal file
14
proprietary/vendor/etc/init/vendor.mediatek.hardware.mms@1.7-service.rc
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
service mms-1-7 /vendor/bin/hw/vendor.mediatek.hardware.mms@1.7-service
|
||||
interface vendor.mediatek.hardware.mms@1.7::IMms default
|
||||
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
|
||||
899
proprietary/vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-init.rc
vendored
Normal file
899
proprietary/vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-init.rc
vendored
Normal file
|
|
@ -0,0 +1,899 @@
|
|||
on property:sys.boot_completed=1
|
||||
setprop vendor.powerhal.boot_complete 1
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/powerhal 0775 system system
|
||||
|
||||
# EAS. sched
|
||||
chown system system /dev/stune/schedtune.boost
|
||||
chmod 0664 /dev/stune/schedtune.boost
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_uclamp_min
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_fg_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_fg_uclamp_min
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_bg_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_bg_uclamp_min
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ta_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ta_uclamp_min
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perf_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perf_uclamp_min
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perf_fg_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perf_fg_uclamp_min
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perf_bg_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perf_bg_uclamp_min
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perf_ta_uclamp_min
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perf_ta_uclamp_min
|
||||
chown system system /sys/devices/system/cpu/sched/idle_prefer
|
||||
chmod 0664 /sys/devices/system/cpu/sched/idle_prefer
|
||||
chown system system /dev/stune/top-app/schedtune.prefer_idle
|
||||
chmod 0664 /dev/stune/top-app/schedtune.prefer_idle
|
||||
chown system system /dev/stune/foreground/schedtune.prefer_idle
|
||||
chmod 0664 /dev/stune/foreground/schedtune.prefer_idle
|
||||
chown system system /sys/devices/system/cpu/sched/sched_boost
|
||||
chmod 0664 /sys/devices/system/cpu/sched/sched_boost
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/sched_boost
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/sched_boost
|
||||
chown system system /dev/stune/background/schedtune.boost
|
||||
chmod 0664 /dev/stune/background/schedtune.boost
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_schedplus_down_throttle
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_schedplus_down_throttle
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_schedplus_up_throttle
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_schedplus_up_throttle
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_schedplus_sync_flag
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_schedplus_sync_flag
|
||||
chown system system /sys/devices/system/cpu/sched/cpu_prefer
|
||||
chmod 0664 /sys/devices/system/cpu/sched/cpu_prefer
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/cpu_prefer
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/cpu_prefer
|
||||
chown system system /dev/cpuset/foreground/prefer_cpu
|
||||
chmod 0664 /dev/cpuset/foreground/prefer_cpu
|
||||
chown system system /dev/cpuset/background/prefer_cpu
|
||||
chmod 0664 /dev/cpuset/background/prefer_cpu
|
||||
chown system system /dev/cpuset/top-app/prefer_cpu
|
||||
chmod 0664 /dev/cpuset/top-app/prefer_cpu
|
||||
chown system system /dev/cpuset/system-background/prefer_cpu
|
||||
chmod 0664 /dev/cpuset/system-background/prefer_cpu
|
||||
chown system system /sys/module/cache_ctrl/parameters/enable
|
||||
chmod 0664 /sys/module/cache_ctrl/parameters/enable
|
||||
chown system system /sys/devices/system/cpu/cpu4/core_ctl/offline_throttle_ms
|
||||
chmod 0660 /sys/devices/system/cpu/cpu4/core_ctl/offline_throttle_ms
|
||||
chown system system /sys/devices/system/cpu/cpu7/core_ctl/offline_throttle_ms
|
||||
chmod 0660 /sys/devices/system/cpu/cpu7/core_ctl/offline_throttle_ms
|
||||
chown system system /sys/devices/system/cpu/cpu0/core_ctl/btask_up_thresh
|
||||
chmod 0660 /sys/devices/system/cpu/cpu0/core_ctl/btask_up_thresh
|
||||
chown system system /sys/devices/system/cpu/cpu4/core_ctl/btask_up_thresh
|
||||
chmod 0660 /sys/devices/system/cpu/cpu4/core_ctl/btask_up_thresh
|
||||
chown system system /sys/devices/system/cpu/cpu7/core_ctl/cpu_tj_degree
|
||||
chmod 0660 /sys/devices/system/cpu/cpu7/core_ctl/cpu_tj_degree
|
||||
chown system system /sys/devices/system/cpu/cpu7/core_ctl/cpu_tj_btask_thresh
|
||||
chmod 0660 /sys/devices/system/cpu/cpu7/core_ctl/cpu_tj_btask_thresh
|
||||
chown system system /sys/devices/system/cpu/cpufreq/schedutil/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/schedutil/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/schedutil/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/schedutil/down_rate_limit_us
|
||||
chown system system /dev/stune/foreground/schedtune.uclamp.min
|
||||
chmod 0660 /dev/stune/foreground/schedtune.uclamp.min
|
||||
chown system system /dev/stune/background/schedtune.uclamp.min
|
||||
chmod 0660 /dev/stune/foreground/schedtune.uclamp.max
|
||||
chown system system /dev/stune/foreground/schedtune.uclamp.max
|
||||
chmod 0660 /dev/stune/background/schedtune.uclamp.min
|
||||
chown system system /dev/stune/top-app/schedtune.uclamp.min
|
||||
chmod 0660 /dev/stune/top-app/schedtune.uclamp.min
|
||||
chown system system /dev/cpuctl/foreground/cpu.uclamp.min
|
||||
chmod 0660 /dev/cpuctl/foreground/cpu.uclamp.min
|
||||
chown system system /dev/cpuctl/background/cpu.uclamp.min
|
||||
chmod 0660 /dev/cpuctl/background/cpu.uclamp.min
|
||||
chown system system /dev/cpuctl/top-app/cpu.uclamp.min
|
||||
chmod 0660 /dev/cpuctl/top-app/cpu.uclamp.min
|
||||
chown system system /dev/cpuctl/system/cpu.uclamp.min
|
||||
chmod 0660 /dev/cpuctl/system/cpu.uclamp.min
|
||||
chown system system /dev/cpuctl/system-background/cpu.uclamp.min
|
||||
chmod 0660 /dev/cpuctl/system-background/cpu.uclamp.min
|
||||
chown system system /dev/cpuctl/rt/cpu.uclamp.min
|
||||
chmod 0660 /dev/cpuctl/rt/cpu.uclamp.min
|
||||
chown system system /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive
|
||||
chmod 0660 /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive
|
||||
chown system system /dev/cpuctl/background/cpu.uclamp.latency_sensitive
|
||||
chmod 0660 /dev/cpuctl/background/cpu.uclamp.latency_sensitive
|
||||
chown system system /dev/cpuctl/top-app/cpu.uclamp.latency_sensitive
|
||||
chmod 0660 /dev/cpuctl/top-app/cpu.uclamp.latency_sensitive
|
||||
chown system system /dev/cpuctl/system/cpu.uclamp.latency_sensitive
|
||||
chmod 0660 /dev/cpuctl/system/cpu.uclamp.latency_sensitive
|
||||
chown system system /dev/cpuctl/system-background/cpu.uclamp.latency_sensitive
|
||||
chmod 0660 /dev/cpuctl/system-background/cpu.uclamp.latency_sensitive
|
||||
chown system system /dev/cpuctl/rt/cpu.uclamp.latency_sensitive
|
||||
chmod 0660 /dev/cpuctl/rt/cpu.uclamp.latency_sensitive
|
||||
chown system system /dev/cpuctl/foreground/cpu.uclamp.max
|
||||
chmod 0660 /dev/cpuctl/foreground/cpu.uclamp.max
|
||||
chown system system /dev/cpuctl/background/cpu.uclamp.max
|
||||
chmod 0660 /dev/cpuctl/background/cpu.uclamp.max
|
||||
chown system system /dev/cpuctl/top-app/cpu.uclamp.max
|
||||
chmod 0660 /dev/cpuctl/top-app/cpu.uclamp.max
|
||||
chown system system /dev/cpuctl/rt/cpu.uclamp.max
|
||||
chmod 0660 /dev/cpuctl/rt/cpu.uclamp.max
|
||||
chown system system /dev/cpuctl/system/cpu.uclamp.max
|
||||
chmod 0660 /dev/cpuctl/system/cpu.uclamp.max
|
||||
chown system system /dev/cpuctl/system-background/cpu.uclamp.max
|
||||
chmod 0660 /dev/cpuctl/system-background/cpu.uclamp.max
|
||||
chown system system /dev/cpuset/top-app/cpus
|
||||
chmod 0660 /dev/cpuset/top-app/cpus
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy0/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy0/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy0/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy0/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy4/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy4/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy4/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy4/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy7/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy7/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy7/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy7/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy0/sugov_ext/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy0/sugov_ext/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy4/sugov_ext/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy4/sugov_ext/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy7/sugov_ext/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy7/sugov_ext/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy6/sugov_ext/up_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy6/sugov_ext/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy0/sugov_ext/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy0/sugov_ext/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy4/sugov_ext/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy4/sugov_ext/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy6/sugov_ext/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy6/sugov_ext/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy7/sugov_ext/down_rate_limit_us
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy7/sugov_ext/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpu0/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu0/online
|
||||
chown system system /sys/devices/system/cpu/cpu1/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu1/online
|
||||
chown system system /sys/devices/system/cpu/cpu2/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu2/online
|
||||
chown system system /sys/devices/system/cpu/cpu3/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu3/online
|
||||
chown system system /sys/devices/system/cpu/cpu4/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu4/online
|
||||
chown system system /sys/devices/system/cpu/cpu5/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu5/online
|
||||
chown system system /sys/devices/system/cpu/cpu6/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu6/online
|
||||
chown system system /sys/devices/system/cpu/cpu7/online
|
||||
chmod 0660 /sys/devices/system/cpu/cpu7/online
|
||||
chown system system /sys/module/mtk_core_ctl/parameters/policy_enable
|
||||
chmod 0660 /sys/module/mtk_core_ctl/parameters/policy_enable
|
||||
chown system system /sys/devices/system/cpu/sched_ctl/sched_core_pause_info
|
||||
chmod 0660 /sys/devices/system/cpu/sched_ctl/sched_core_pause_info
|
||||
|
||||
# Task turbo
|
||||
chown system system /sys/module/task_turbo/parameters/feats
|
||||
chmod 0664 /sys/module/task_turbo/parameters/feats
|
||||
|
||||
# BW monitor
|
||||
chown system system /proc/fliperfs/cg_enable
|
||||
chmod 0664 /proc/fliperfs/cg_enable
|
||||
chown system system /proc/fliperfs/cg_threshold
|
||||
chmod 0664 /proc/fliperfs/cg_threshold
|
||||
chown system system /proc/fliperfs/cg_threshold_ddr3
|
||||
chmod 0664 /proc/fliperfs/cg_threshold_ddr3
|
||||
chown system system /proc/fliperfs/perf
|
||||
chmod 0664 /proc/fliperfs/perf
|
||||
chown system system /proc/fliperfs/perf_ddr3
|
||||
chmod 0664 /proc/fliperfs/perf_ddr3
|
||||
chown system system /proc/fliperfs/emi
|
||||
chmod 0664 /proc/fliperfs/emi
|
||||
chown system system /proc/perfmgr/boost_ctrl/dram_ctrl/emi
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/dram_ctrl/emi
|
||||
chown system system /proc/perfmgr/boost_ctrl/dram_ctrl/ddr
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/dram_ctrl/ddr
|
||||
chown system system /proc/perfmgr/boost_ctrl/dram_ctrl/ddr_lp5
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/dram_ctrl/ddr_lp5
|
||||
chown system system /proc/perfmgr/boost_ctrl/dram_ctrl/ddr_lp5_hfr
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/dram_ctrl/ddr_lp5_hfr
|
||||
chown system system /proc/perfmgr/boost_ctrl/dram_ctrl/vcore
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/dram_ctrl/vcore
|
||||
chown system system /proc/perfmgr/boost_ctrl/dram_ctrl/vcore_lp3
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/dram_ctrl/vcore_lp3
|
||||
chown system system /sys/class/devfreq/mtk-dvfsrc-devfreq/userspace/set_freq
|
||||
chmod 0664 /sys/class/devfreq/mtk-dvfsrc-devfreq/userspace/set_freq
|
||||
|
||||
# CPU freq
|
||||
chown system system /proc/cpufreq/cpufreq_cci_mode
|
||||
chmod 0664 /proc/cpufreq/cpufreq_cci_mode
|
||||
chown system system /proc/cpuhvfs/cpufreq_cci_mode
|
||||
chmod 0664 /proc/cpuhvfs/cpufreq_cci_mode
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy7/scaling_min_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy7/scaling_min_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/policy7/scaling_max_freq
|
||||
chmod 0660 /sys/devices/system/cpu/cpufreq/policy7/scaling_max_freq
|
||||
|
||||
# perfmgr
|
||||
chown system system /proc/perfmgr/smart/app_is_sports
|
||||
chmod 0660 /proc/perfmgr/smart/app_is_sports
|
||||
chown system system /proc/perfmgr/legacy/perfserv_core
|
||||
chmod 0664 /proc/perfmgr/legacy/perfserv_core
|
||||
chown system system /proc/perfmgr/legacy/perfserv_freq
|
||||
chmod 0664 /proc/perfmgr/legacy/perfserv_freq
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ta_boost
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ta_boost
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_fg_boost
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_fg_boost
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_bg_boost
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_bg_boost
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_freq
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_freq
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_core
|
||||
chmod 0660 /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_core
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ext_launch_mon
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ext_launch_mon
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/m_sched_migrate_cost_n
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/m_sched_migrate_cost_n
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/sched_big_task_rotation
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/sched_big_task_rotation
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/sched_stune_task_thresh
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/sched_stune_task_thresh
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_prefer_idle
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_prefer_idle
|
||||
chown system system /proc/perfmgr/boost_ctrl/eas_ctrl/perf_prefer_idle
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/eas_ctrl/perf_prefer_idle
|
||||
chown system system /proc/perfmgr/boost_ctrl/topo_ctrl/is_big_little
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/topo_ctrl/is_big_little
|
||||
chown system system /proc/perfmgr/boost_ctrl/topo_ctrl/nr_clusters
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/topo_ctrl/nr_clusters
|
||||
chown system system /proc/perfmgr/boost_ctrl/topo_ctrl/cpus_per_cluster
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/topo_ctrl/cpus_per_cluster
|
||||
chown system system /proc/perfmgr/tchbst/user/usrtch
|
||||
chmod 0664 /proc/perfmgr/tchbst/user/usrtch
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/cfp_onoff
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/cfp_onoff
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_enable
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_enable
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_polling_ms
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_polling_ms
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_up_loading
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_up_loading
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_down_loading
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_down_loading
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_up_time
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_up_time
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_down_time
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_down_time
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_up_opp
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_up_opp
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_down_opp
|
||||
chmod 0664 /proc/perfmgr/boost_ctrl/cpu_ctrl/cfp_down_opp
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_iso_cpu
|
||||
chmod 0660 /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_iso_cpu
|
||||
chown system system /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_all_cpu_deisolated
|
||||
chmod 0660 /proc/perfmgr/boost_ctrl/cpu_ctrl/perfserv_all_cpu_deisolated
|
||||
chown system system /proc/perfmgr/syslimiter/syslimiter_force_disable
|
||||
chmod 0664 /proc/perfmgr/syslimiter/syslimiter_force_disable
|
||||
chown system system /proc/perfmgr/syslimiter/syslimiter_tolerance_percent
|
||||
chmod 0664 /proc/perfmgr/syslimiter/syslimiter_tolerance_percent
|
||||
chown system system /proc/perfmgr/syslimiter/syslimiter_limit_freq
|
||||
chmod 0660 /proc/perfmgr/syslimiter/syslimiter_limit_freq
|
||||
chown system system /proc/powerhal_cpu_ctrl/perfserv_freq
|
||||
chmod 0660 /proc/powerhal_cpu_ctrl/perfserv_freq
|
||||
chown system system /proc/touch_boost/enable
|
||||
chmod 0660 /proc/touch_boost/enable
|
||||
chown system system /proc/touch_boost/boost_opp_cluster_0
|
||||
chmod 0660 /proc/touch_boost/boost_opp_cluster_0
|
||||
chown system system /proc/touch_boost/boost_opp_cluster_1
|
||||
chmod 0660 /proc/touch_boost/boost_opp_cluster_1
|
||||
chown system system /proc/touch_boost/boost_opp_cluster_2
|
||||
chmod 0660 /proc/touch_boost/boost_opp_cluster_2
|
||||
chown system system /proc/touch_boost/boost_duration
|
||||
chmod 0660 /proc/touch_boost/boost_duration
|
||||
chown system system /proc/touch_boost/active_time
|
||||
chmod 0660 /proc/touch_boost/active_time
|
||||
chown system system /proc/touch_boost/boost_ta
|
||||
chmod 0660 /proc/touch_boost/boost_ta
|
||||
chown system system /proc/touch_boost/boost_fg
|
||||
chmod 0660 /proc/touch_boost/boost_fg
|
||||
chown system system /proc/touch_boost/idleprefer_ta
|
||||
chmod 0660 /proc/touch_boost/idleprefer_ta
|
||||
chown system system /proc/touch_boost/idleprefer_fg
|
||||
chmod 0660 /proc/touch_boost/idleprefer_fg
|
||||
chown system system /proc/touch_boost/deboost_when_render
|
||||
chmod 0660 /proc/touch_boost/deboost_when_render
|
||||
chown system system /proc/touch_boost/force_stop_boost
|
||||
chmod 0660 /proc/touch_boost/force_stop_boost
|
||||
|
||||
# GED, GPU
|
||||
chown system system /sys/module/ged/parameters/gx_top_app_pid
|
||||
chmod 0660 /sys/module/ged/parameters/gx_top_app_pid
|
||||
chown system system /sys/module/ged/parameters/gx_force_cpu_boost
|
||||
chmod 0660 /sys/module/ged/parameters/gx_force_cpu_boost
|
||||
chown system system /sys/kernel/ged/hal/timer_base_dvfs_margin
|
||||
chmod 0664 /sys/kernel/ged/hal/timer_base_dvfs_margin
|
||||
chown system system /sys/kernel/ged/hal/loading_base_dvfs_step
|
||||
chmod 0664 /sys/kernel/ged/hal/loading_base_dvfs_step
|
||||
chown system system /sys/kernel/ged/hal/dvfs_margin_value
|
||||
chmod 0664 /sys/kernel/ged/hal/dvfs_margin_value
|
||||
chown system system /sys/kernel/ged/hal/dvfs_cwaitg
|
||||
chmod 0664 /sys/kernel/ged/hal/dvfs_cwaitg
|
||||
chown system system /sys/kernel/ged/hal/dvfs_loading_mode
|
||||
chmod 0664 /sys/kernel/ged/hal/dvfs_loading_mode
|
||||
chown system system /sys/kernel/ged/hal/dvfs_workload_mode
|
||||
chmod 0664 /sys/kernel/ged/hal/dvfs_workload_mode
|
||||
chown system system /sys/class/misc/mali0/device/power_policy
|
||||
chmod 0664 /sys/class/misc/mali0/device/power_policy
|
||||
chown system system /sys/class/misc/mali0/device/pm_poweroff
|
||||
chmod 0660 /sys/class/misc/mali0/device/pm_poweroff
|
||||
chown system system /sys/kernel/ged/hal/total_gpu_freq_level_count
|
||||
chmod 0664 /sys/kernel/ged/hal/total_gpu_freq_level_count
|
||||
chown system system /sys/kernel/ged/hal/custom_boost_gpu_freq
|
||||
chmod 0664 /sys/kernel/ged/hal/custom_boost_gpu_freq
|
||||
chown system system /sys/kernel/ged/hal/custom_upbound_gpu_freq
|
||||
chmod 0664 /sys/kernel/ged/hal/custom_upbound_gpu_freq
|
||||
chown system system /proc/mgq/job_status
|
||||
chmod 0664 /proc/mgq/job_status
|
||||
chown system system /sys/kernel/ged/hal/dcs_mode
|
||||
chmod 0664 /sys/kernel/ged/hal/dcs_mode
|
||||
chown system system /sys/kernel/ged/hal/fw_idle
|
||||
chmod 0664 /sys/kernel/ged/hal/fw_idle
|
||||
chown system system /sys/kernel/ged/hal/gpu_boost_level
|
||||
chmod 0664 /sys/kernel/ged/hal/gpu_boost_level
|
||||
chown system system /sys/kernel/ged/hal/loading_window_size
|
||||
chmod 0664 /sys/kernel/ged/hal/loading_window_size
|
||||
chown system system /sys/kernel/ged/hal/loading_stride_size
|
||||
chmod 0664 /sys/kernel/ged/hal/loading_stride_size
|
||||
chown system system /sys/kernel/ged/hal/fallback_timing
|
||||
chmod 0664 /sys/kernel/ged/hal/fallback_timing
|
||||
chown system system /sys/kernel/ged/hal/fallback_interval
|
||||
chmod 0664 /sys/kernel/ged/hal/fallback_interval
|
||||
chown system system /sys/kernel/ged/hal/fallback_window_size
|
||||
chmod 0664 /sys/kernel/ged/hal/fallback_window_size
|
||||
chown system system /sys/kernel/ged/hal/fallback_frequency_adjust
|
||||
chmod 0664 /sys/kernel/ged/hal/fallback_frequency_adjust
|
||||
chown system system /sys/module/ged/parameters/g_fb_dvfs_threshold
|
||||
chmod 0664 /sys/module/ged/parameters/g_fb_dvfs_threshold
|
||||
chown system system /sys/kernel/ged/hal/reclaim_policy
|
||||
chmod 0664 /sys/kernel/ged/hal/reclaim_policy
|
||||
|
||||
# PPM
|
||||
chown system system /proc/ppm/policy_status
|
||||
chmod 0664 /proc/ppm/policy_status
|
||||
chown system system /proc/ppm/policy/userlimit_boost
|
||||
chmod 0664 /proc/ppm/policy/userlimit_boost
|
||||
chown system system /proc/ppm/policy/hard_userlimit_cpu_freq
|
||||
chmod 0664 /proc/ppm/policy/hard_userlimit_cpu_freq
|
||||
|
||||
# Cache
|
||||
chown system system /sys/module/ca_drv/parameters/enable
|
||||
chmod 0664 /sys/module/ca_drv/parameters/enable
|
||||
chown system system /sys/module/pftch_qos/parameters/enable
|
||||
chmod 0664 /sys/module/pftch_qos/parameters/enable
|
||||
|
||||
# FPSGO
|
||||
chown system system /sys/module/fbt_cpu/parameters/bhr_opp
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/bhr_opp
|
||||
chown system system /sys/module/fbt_cpu/parameters/bhr
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/bhr
|
||||
chown system system /sys/module/fbt_cpu/parameters/floor_bound
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/floor_bound
|
||||
chown system system /sys/module/fbt_cpu/parameters/kmin
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/kmin
|
||||
chown system system /sys/module/fbt_cpu/parameters/variance
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/variance
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/bhr_opp
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/bhr_opp
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/bhr
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/bhr
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/floor_bound
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/floor_bound
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/kmin
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/kmin
|
||||
chown system system /sys/kernel/fpsgo/fstb/fstb_tune_dfps_ceiling
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/fstb_tune_dfps_ceiling
|
||||
chown system system /sys/kernel/fpsgo/fstb/fstb_soft_level
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/fstb_soft_level
|
||||
chown system system /sys/kernel/fpsgo/fstb/fstb_fps_list
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/fstb_fps_list
|
||||
chown system system /proc/cm_mgr/dbg_cm_mgr
|
||||
chmod 0664 /proc/cm_mgr/dbg_cm_mgr
|
||||
chown system system /sys/kernel/cm_mgr/dbg_cm_mgr
|
||||
chmod 0664 /sys/kernel/cm_mgr/dbg_cm_mgr
|
||||
chown system system /sys/kernel/helio-dvfsrc/dvfsrc_qos_mode
|
||||
chmod 0660 /sys/kernel/helio-dvfsrc/dvfsrc_qos_mode
|
||||
chown system system /sys/kernel/fpsgo/minitop/enable
|
||||
chmod 0664 /sys/kernel/fpsgo/minitop/enable
|
||||
chown system system /sys/kernel/fpsgo/minitop/thrs_heavy
|
||||
chmod 0664 /sys/kernel/fpsgo/minitop/thrs_heavy
|
||||
chown system system /sys/kernel/fpsgo/fstb/fstb_fteh_list
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/fstb_fteh_list
|
||||
chown system system /sys/kernel/fpsgo/eara/ai_bench
|
||||
chmod 0664 /sys/kernel/fpsgo/eara/ai_bench
|
||||
chown system system /sys/kernel/fpsgo/common/gpu_block_boost
|
||||
chmod 0664 /sys/kernel/fpsgo/common/gpu_block_boost
|
||||
chown system system /sys/kernel/fpsgo/fbt/boost_ta
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/boost_ta
|
||||
chown system system /sys/kernel/fpsgo/fbt/light_loading_policy_by_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/light_loading_policy_by_pid
|
||||
chown system system /sys/kernel/fpsgo/fbt/llf_task_policy_by_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/llf_task_policy_by_pid
|
||||
chown system system /sys/kernel/fpsgo/fbt/loading_th_by_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/loading_th_by_pid
|
||||
chown system system /sys/kernel/fpsgo/fstb/margin_mode
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/margin_mode
|
||||
chown system system /sys/kernel/fpsgo/fstb/margin_mode_dbnc_a
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/margin_mode_dbnc_a
|
||||
chown system system /sys/kernel/fpsgo/fstb/margin_mode_dbnc_b
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/margin_mode_dbnc_b
|
||||
chown system system /sys/kernel/fpsgo/fstb/fstb_reset_tolerence
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/fstb_reset_tolerence
|
||||
chown system system /sys/kernel/fpsgo/fstb/margin_mode_gpu
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/margin_mode_gpu
|
||||
chown system system /sys/kernel/fpsgo/fstb/margin_mode_gpu_dbnc_a
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/margin_mode_gpu_dbnc_a
|
||||
chown system system /sys/kernel/fpsgo/fstb/margin_mode_gpu_dbnc_b
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/margin_mode_gpu_dbnc_b
|
||||
chown system system /sys/kernel/fpsgo/fstb/jump_check_num
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/jump_check_num
|
||||
chown system system /sys/kernel/fpsgo/fstb/jump_check_q_pct
|
||||
chmod 0664 /sys/kernel/fpsgo/fstb/jump_check_q_pct
|
||||
chown system system /sys/kernel/fpsgo/fstb/set_render_max_fps
|
||||
chown system system /sys/kernel/fpsgo/fstb/set_render_no_ctrl
|
||||
chown system system /sys/kernel/fpsgo/fstb/set_ui_ctrl
|
||||
chown system system /sys/kernel/fpsgo/composer/set_ui_ctrl
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/set_render_max_fps
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/set_render_no_ctrl
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/set_ui_ctrl
|
||||
chmod 0660 /sys/kernel/fpsgo/composer/set_ui_ctrl
|
||||
chown system system /sys/kernel/eara_thermal/enable
|
||||
chmod 0660 /sys/kernel/eara_thermal/enable
|
||||
chown system system /sys/module/fbt_cpu/parameters/rescue_percent
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/rescue_percent
|
||||
chown system system /sys/module/fbt_cpu/parameters/rescue_enhance_f
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/rescue_enhance_f
|
||||
chown system system /sys/module/fbt_cpu/parameters/rescue_opp_c
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/rescue_opp_c
|
||||
chown system system /sys/module/fbt_cpu/parameters/rescue_second_enable
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/rescue_second_enable
|
||||
chown system system /sys/module/fbt_cpu/parameters/rescue_second_time
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/rescue_second_time
|
||||
chown system system /sys/module/fbt_cpu/parameters/rescue_second_group
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/rescue_second_group
|
||||
chown system system /sys/module/fbt_cpu/parameters/rescue_second_enhance_f
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/rescue_second_enhance_f
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_percent
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_percent
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_enhance_f
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_enhance_f
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_opp_c
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_opp_c
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_opp_f
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_opp_f
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_second_enable
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_second_enable
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_second_time
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_second_time
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_second_group
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_second_group
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_second_enhance_f
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_second_enhance_f
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/check_running
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/check_running
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/rescue_second_g_enable
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/rescue_second_g_enable
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/loading_enable
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/loading_enable
|
||||
chown system system /sys/kernel/fpsgo/fbt/ultra_rescue
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/ultra_rescue
|
||||
chown system system /sys/module/fbt_cpu/parameters/deqtime_bound
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/deqtime_bound
|
||||
chown system system /sys/module/fbt_cpu/parameters/short_rescue_ns
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/short_rescue_ns
|
||||
chown system system /sys/module/fbt_cpu/parameters/min_rescue_percent
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/min_rescue_percent
|
||||
chown system system /sys/module/fbt_cpu/parameters/adjust_loading
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/adjust_loading
|
||||
chown system system /sys/module/fbt_cpu/parameters/loading_adj_cnt
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/loading_adj_cnt
|
||||
chown system system /sys/module/fbt_cpu/parameters/loading_debnc_cnt
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/loading_debnc_cnt
|
||||
chown system system /sys/module/fbt_cpu/parameters/loading_time_diff
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/loading_time_diff
|
||||
chown system system /sys/module/fbt_cpu/parameters/loading_th
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/loading_th
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/deqtime_bound
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/deqtime_bound
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/short_rescue_ns
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/short_rescue_ns
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/min_rescue_percent
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/min_rescue_percent
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/adjust_loading
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/adjust_loading
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/adjust_loading_hwui_hint
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/adjust_loading_hwui_hint
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/loading_adj_cnt
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/loading_adj_cnt
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/loading_debnc_cnt
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/loading_debnc_cnt
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/loading_time_diff
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/loading_time_diff
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/loading_th
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/loading_th
|
||||
chown system system /sys/kernel/fpsgo/fbt/llf_task_policy
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/llf_task_policy
|
||||
chown system system /sys/kernel/fpsgo/fbt/light_loading_policy
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/light_loading_policy
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/loading_ignore_enable
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/loading_ignore_enable
|
||||
chown system system /sys/kernel/fpsgo/fbt/thrm_temp_th
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/thrm_temp_th
|
||||
chown system system /sys/kernel/fpsgo/fbt/thrm_limit_cpu
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/thrm_limit_cpu
|
||||
chown system system /sys/kernel/fpsgo/fbt/thrm_sub_cpu
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/thrm_sub_cpu
|
||||
chown system system /sys/kernel/fpsgo/fbt/thrm_activate_fps
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/thrm_activate_fps
|
||||
chown system system /sys/module/fbt_cpu/parameters/cm_big_cap
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/cm_big_cap
|
||||
chown system system /sys/module/fbt_cpu/parameters/cm_tdiff
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/cm_tdiff
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/cm_big_cap
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/cm_big_cap
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/cm_tdiff
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/cm_tdiff
|
||||
chown system system /sys/module/fbt_cpu/parameters/boost_affinity
|
||||
chmod 0664 /sys/module/fbt_cpu/parameters/boost_affinity
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/boost_affinity
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/boost_affinity
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/boost_LR
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/boost_LR
|
||||
chown system system /sys/module/xgf/parameters/xgf_dep_frames
|
||||
chmod 0664 /sys/module/xgf/parameters/xgf_dep_frames
|
||||
chown system system /sys/module/xgf/parameters/xgf_extra_sub
|
||||
chmod 0664 /sys/module/xgf/parameters/xgf_extra_sub
|
||||
chown system system /sys/module/xgf/parameters/xgf_ema_dividend
|
||||
chmod 0664 /sys/module/xgf/parameters/xgf_ema_dividend
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_dep_frames
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_dep_frames
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_extra_sub
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_extra_sub
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_ema_dividend
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_ema_dividend
|
||||
chown system system /sys/kernel/fpsgo/xgf/xgf_spid_list
|
||||
chmod 0664 /sys/kernel/fpsgo/xgf/xgf_spid_list
|
||||
chown system system /sys/kernel/gbe/gbe_enable1
|
||||
chmod 0664 /sys/kernel/gbe/gbe_enable1
|
||||
chown system system /sys/kernel/gbe/gbe_boost_list1
|
||||
chmod 0664 /sys/kernel/gbe/gbe_boost_list1
|
||||
chown system system /sys/kernel/gbe/gbe_enable2
|
||||
chmod 0664 /sys/kernel/gbe/gbe_enable2
|
||||
chown system system /sys/kernel/gbe/gbe2_timer2
|
||||
chmod 0664 /sys/kernel/gbe/gbe2_timer2
|
||||
chown system system /sys/kernel/gbe/gbe2_loading_th
|
||||
chmod 0664 /sys/kernel/gbe/gbe2_loading_th
|
||||
chown system system /sys/kernel/gbe/gbe2_fg_pid
|
||||
chmod 0664 /sys/kernel/gbe/gbe2_fg_pid
|
||||
chown system system /sys/kernel/gbe/gbe2_max_boost_cnt
|
||||
chmod 0664 /sys/kernel/gbe/gbe2_max_boost_cnt
|
||||
chown system system /sys/kernel/gbe/gbe_policy_mask
|
||||
chmod 0664 /sys/kernel/gbe/gbe_policy_mask
|
||||
chown system system /sys/kernel/gbe/gbe2_timer1
|
||||
chmod 0664 /sys/kernel/gbe/gbe2_timer1
|
||||
chown system system /sys/kernel/gbe/gbe_thrm_hdrm_thrs
|
||||
chmod 0664 /sys/kernel/gbe/gbe_thrm_hdrm_thrs
|
||||
chown system system /sys/kernel/gbe/gbe_cpu_1
|
||||
chmod 0664 /sys/kernel/gbe/gbe_cpu_1
|
||||
chown system system /sys/kernel/gbe/gbe_cpu_0
|
||||
chmod 0664 /sys/kernel/gbe/gbe_cpu_0
|
||||
chown system system /sys/kernel/fpsgo/fbt/switch_idleprefer
|
||||
chmod 0664 /sys/kernel/fpsgo/fbt/switch_idleprefer
|
||||
chown system system /sys/module/xgf/parameters/xgf_sp_name_id
|
||||
chmod 0664 /sys/module/xgf/parameters/xgf_sp_name_id
|
||||
chown system system /sys/module/xgf/parameters/xgf_spid_sub
|
||||
chmod 0664 /sys/module/xgf/parameters/xgf_spid_sub
|
||||
chown system system /sys/module/xgf/parameters/xgf_spid_ck_period
|
||||
chmod 0664 /sys/module/xgf/parameters/xgf_spid_ck_period
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_sp_name_id
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_sp_name_id
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_spid_sub
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_spid_sub
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_spid_ck_period
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_spid_ck_period
|
||||
chown system system /sys/kernel/fpsgo/common/fpsgo_enable
|
||||
chmod 0664 /sys/kernel/fpsgo/common/fpsgo_enable
|
||||
chown system system /sys/kernel/fpsgo/common/force_onoff
|
||||
chmod 0660 /sys/kernel/fpsgo/common/force_onoff
|
||||
chown system system /sys/kernel/fpsgo/composer/fpsgo_control
|
||||
chmod 0660 /sys/kernel/fpsgo/composer/fpsgo_control
|
||||
chown system system /sys/kernel/fpsgo/composer/control_api_mask
|
||||
chmod 0660 /sys/kernel/fpsgo/composer/control_api_mask
|
||||
chown system system /sys/kernel/fpsgo/composer/bypass_non_SF
|
||||
chmod 0660 /sys/kernel/fpsgo/composer/bypass_non_SF
|
||||
chown system system /sys/kernel/fpsgo/composer/control_hwui
|
||||
chmod 0660 /sys/kernel/fpsgo/composer/control_hwui
|
||||
chown system system /sys/kernel/fpsgo/common/perfserv_ta
|
||||
chmod 0660 /sys/kernel/fpsgo/common/perfserv_ta
|
||||
chown system system /sys/kernel/fpsgo/common/stop_boost
|
||||
chmod 0664 /sys/kernel/fpsgo/common/stop_boost
|
||||
chown system system /sys/module/xgf/parameters/xgf_stddev_multi
|
||||
chmod 0664 /sys/module/xgf/parameters/xgf_stddev_multi
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_stddev_multi
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_stddev_multi
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_uboost
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/xgf_uboost
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/uboost_enhance_f
|
||||
chmod 0664 /sys/module/mtk_fpsgo/parameters/uboost_enhance_f
|
||||
chown system system /sys/module/fbt_cpu/parameters/qr_enable
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/qr_enable
|
||||
chown system system /sys/module/fbt_cpu/parameters/qr_hwui_hint
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/qr_hwui_hint
|
||||
chown system system /sys/module/fbt_cpu/parameters/qr_t2wnt_x
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/qr_t2wnt_x
|
||||
chown system system /sys/module/fbt_cpu/parameters/qr_t2wnt_y_p
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/qr_t2wnt_y_p
|
||||
chown system system /sys/module/fbt_cpu/parameters/qr_t2wnt_y_n
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/qr_t2wnt_y_n
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_enq_bound_thrs
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_enq_bound_thrs
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_enq_bound_quota
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_enq_bound_quota
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_deq_bound_thrs
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_deq_bound_thrs
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_deq_bound_quota
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_deq_bound_quota
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_fps_margin
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_fps_margin
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_up_sec_pct
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_up_sec_pct
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_down_sec_pct
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_down_sec_pct
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_up_step
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_up_step
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_down_step
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_down_step
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_upper_clamp
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_upper_clamp
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_reserved_up_quota_pct
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_reserved_up_quota_pct
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_reserved_down_quota_pct
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_reserved_down_quota_pct
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/qr_enable
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/qr_enable
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/qr_hwui_hint
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/qr_hwui_hint
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/qr_t2wnt_x
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/qr_t2wnt_x
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/qr_t2wnt_y_p
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/qr_t2wnt_y_p
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/qr_t2wnt_y_n
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/qr_t2wnt_y_n
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_hwui_hint
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_hwui_hint
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_enq_bound_thrs
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_enq_bound_thrs
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_enq_bound_quota
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_enq_bound_quota
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_deq_bound_thrs
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_deq_bound_thrs
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_deq_bound_quota
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_deq_bound_quota
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_fps_margin
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_fps_margin
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_up_sec_pct
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_up_sec_pct
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_down_sec_pct
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_down_sec_pct
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_up_step
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_up_step
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_down_step
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_down_step
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_upper_clamp
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_upper_clamp
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_reserved_up_quota_pct
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_reserved_up_quota_pct
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_reserved_down_quota_pct
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_reserved_down_quota_pct
|
||||
chown system system /sys/module/xgf/parameters/xgf_cfg_spid
|
||||
chmod 0660 /sys/module/xgf/parameters/xgf_cfg_spid
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_cfg_spid
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/xgf_cfg_spid
|
||||
chown system system /sys/module/fbt_cpu/parameters/gcc_positive_clamp
|
||||
chmod 0660 /sys/module/fbt_cpu/parameters/gcc_positive_clamp
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gcc_positive_clamp
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gcc_positive_clamp
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_cfreq
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_cfreq
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_rfreq
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_rfreq
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_cfreq_m
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_cfreq_m
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_rfreq_m
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_rfreq_m
|
||||
chown system system /sys/kernel/fpsgo/fbt/enable_ceiling
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/enable_ceiling
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/L_min_cap_enable
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/L_min_cap_enable
|
||||
chown system system /sys/kernel/fpsgo/fbt/thrm_enable
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/thrm_enable
|
||||
chown system system /sys/kernel/fpsgo/fstb/adopt_low_fps
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/adopt_low_fps
|
||||
chown system system /sys/kernel/fpsgo/fstb/set_cam_active
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/set_cam_active
|
||||
chown system system /sys/kernel/fpsgo/fstb/set_cam_active_fpsgo_off
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/set_cam_active_fpsgo_off
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/xgf_ema2_enable
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/xgf_ema2_enable
|
||||
chown system system /sys/kernel/fpsgo/fstb/fstb_self_ctrl_fps_enable
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/fstb_self_ctrl_fps_enable
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/fstb_consider_deq
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/fstb_consider_deq
|
||||
chown system system /sys/kernel/fpsgo/fstb/tfps_to_powerhal_enable
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/tfps_to_powerhal_enable
|
||||
chown system system /sys/kernel/fpsgo/fstb/set_video_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/set_video_pid
|
||||
chown system system /sys/kernel/fpsgo/fstb/clear_video_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/clear_video_pid
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/sbe_enhance_f
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/sbe_enhance_f
|
||||
chown system system /sys/kernel/fpsgo/composer/fpsgo_control_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/composer/fpsgo_control_pid
|
||||
chown system system /sys/kernel/fpsgo/xgf/xgf_ema2_enable_by_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/xgf/xgf_ema2_enable_by_pid
|
||||
chown system system /sys/kernel/fpsgo/fstb/fstb_self_ctrl_fps_enable_by_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/fstb_self_ctrl_fps_enable_by_pid
|
||||
chown system system /sys/kernel/fpsgo/fbt/fbt_attr_by_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/fbt_attr_by_pid
|
||||
chown system system /sys/kernel/fpsgo/fstb/notify_fstb_target_fps_by_pid
|
||||
chmod 0660 /sys/kernel/fpsgo/fstb/notify_fstb_target_fps_by_pid
|
||||
chown system system /sys/kernel/fpsgo/fbt/enable_separate_aa
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/enable_separate_aa
|
||||
chown system system /sys/kernel/fpsgo/fbt/switch_filter_frame
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/switch_filter_frame
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_uclamp
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_uclamp
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_ruclamp
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_ruclamp
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_uclamp_m
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_uclamp_m
|
||||
chown system system /sys/kernel/fpsgo/fbt/limit_ruclamp_m
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/limit_ruclamp_m
|
||||
chown system system /sys/kernel/fpsgo/fbt/separate_release_sec
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/separate_release_sec
|
||||
chown system system /sys/kernel/fpsgo/fbt/separate_pct_m
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/separate_pct_m
|
||||
chown system system /sys/kernel/fpsgo/fbt/separate_pct_b
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/separate_pct_b
|
||||
chown system system /sys/kernel/fpsgo/fbt/blc_boost
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt/blc_boost
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/qr_filter_outlier
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/qr_filter_outlier
|
||||
chown system system /sys/module/mtk_fpsgo/parameters/gpu_slowdown_check
|
||||
chmod 0660 /sys/module/mtk_fpsgo/parameters/gpu_slowdown_check
|
||||
|
||||
# Camera FPSGO
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_pct_1
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_pct_1
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_pct_2
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_pct_2
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_f_1
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_f_1
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_f_2
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_rescue_f_2
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_history_window
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_history_window
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_std_filter
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_std_filter
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_up_check
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_up_check
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_up_thrs
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_up_thrs
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_up_step
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_up_step
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_down_check
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_down_check
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_down_thrs
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_down_thrs
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_down_step
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_down_step
|
||||
chown system system /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_enable
|
||||
chmod 0660 /sys/kernel/fpsgo/fbt_cam/fbt_cam_gcc_enable
|
||||
|
||||
# IO
|
||||
chown system system /sys/devices/platform/soc/112b0000.ufshci/clkscale/clkscale_control
|
||||
chmod 0664 /sys/devices/platform/soc/112b0000.ufshci/clkscale/clkscale_control
|
||||
|
||||
# NET
|
||||
chown system system /proc/net/wlan/setCAM
|
||||
chmod 0664 /proc/net/wlan/setCAM
|
||||
chown system system /proc/net/wlan/twt_smart_sta
|
||||
chmod 0664 /proc/net/wlan/twt_smart_sta
|
||||
|
||||
# BLKDEV
|
||||
chown system system /sys/block/sdc/queue/read_ahead_kb
|
||||
chmod 0664 /sys/block/sdc/queue/read_ahead_kb
|
||||
chown system system /sys/block/dm-2/queue/read_ahead_kb
|
||||
chmod 0664 /sys/block/dm-2/queue/read_ahead_kb
|
||||
chown system system /sys/block/mmcblk0/queue/read_ahead_kb
|
||||
chmod 0664 /sys/block/mmcblk0/queue/read_ahead_kb
|
||||
|
||||
# TOUCH
|
||||
chown system system /sys/devices/platform/mtk-tpd2.0/change_rate
|
||||
chmod 0664 /sys/devices/platform/mtk-tpd2.0/change_rate
|
||||
|
||||
# DISP
|
||||
chown system system /proc/displowpower/idletime
|
||||
chmod 0660 /proc/displowpower/idletime
|
||||
chown system system /proc/displowpower/hrt_lp
|
||||
chmod 0660 /proc/displowpower/hrt_lp
|
||||
|
||||
# CPUIDLE
|
||||
chown system system /proc/cpuidle/enable
|
||||
chmod 0664 /proc/cpuidle/enable
|
||||
chown system system /proc/mcdi/state
|
||||
chmod 0660 /proc/mcdi/state
|
||||
chown system system /dev/cpu_dma_latency
|
||||
chmod 0660 /dev/cpu_dma_latency
|
||||
|
||||
# APU
|
||||
chown system system /sys/kernel/apusys/mnoc_apu_qos_boost
|
||||
chmod 0664 /sys/kernel/apusys/mnoc_apu_qos_boost
|
||||
|
||||
# CG policy
|
||||
chown system system /sys/kernel/thermal/sports_mode
|
||||
chmod 0664 /sys/kernel/thermal/sports_mode
|
||||
|
||||
# peak power control
|
||||
chown system system /proc/ppc/p_active
|
||||
chmod 0660 /proc/ppc/p_active
|
||||
|
||||
# G/D policy
|
||||
chown system system /proc/mgq/job_status
|
||||
chmod 0664 /proc/mgq/job_status
|
||||
|
||||
# MAGT
|
||||
on property:ro.vendor.magt.mtk_magt_support=1
|
||||
chown system system /proc/perfmgr_magt/magt_ioctl
|
||||
chmod 0440 /proc/perfmgr_magt/magt_ioctl
|
||||
chown system system /sys/kernel/fpsgo/xgf/runtime
|
||||
chmod 0440 /sys/kernel/fpsgo/xgf/runtime
|
||||
chown system system /sys/kernel/fpsgo/minitop/list
|
||||
chmod 0440 /sys/kernel/fpsgo/minitop/list
|
||||
chown system system /sys/kernel/fpsgo/common/render_loading
|
||||
chmod 0440 /sys/kernel/fpsgo/common/render_loading
|
||||
chown system system /sys/module/mtk_perf_ioctl_magt/parameters/thermal_aware_threshold
|
||||
chmod 0660 /sys/module/mtk_perf_ioctl_magt/parameters/thermal_aware_threshold
|
||||
chown system system /sys/module/mtk_perf_ioctl_magt/parameters/fpsdrop_aware_threshold
|
||||
chmod 0660 /sys/module/mtk_perf_ioctl_magt/parameters/fpsdrop_aware_threshold
|
||||
chown system system /sys/module/mtk_perf_ioctl_magt/parameters/advice_bat_avg_current
|
||||
chmod 0660 /sys/module/mtk_perf_ioctl_magt/parameters/advice_bat_avg_current
|
||||
chown system system /sys/module/mtk_perf_ioctl_magt/parameters/advice_bat_max_current
|
||||
chmod 0660 /sys/module/mtk_perf_ioctl_magt/parameters/advice_bat_max_current
|
||||
|
||||
#memory performance
|
||||
on property:sys.sysctl.extra_free_kbytes=*
|
||||
setprop vendor.sys.vm.extrafreekbytes ${sys.sysctl.extra_free_kbytes}
|
||||
|
||||
on property:vendor.sys.vm.swappiness=*
|
||||
write /proc/sys/vm/swappiness ${vendor.sys.vm.swappiness}
|
||||
on property:vendor.sys.vm.dropcaches=*
|
||||
write /proc/sys/vm/drop_caches ${vendor.sys.vm.dropcaches}
|
||||
on property:vendor.sys.vm.extrafreekbytesadj=*
|
||||
write /proc/sys/vm/extra_free_kbytes ${vendor.sys.vm.extrafreekbytesadj}
|
||||
on property:vendor.sys.vm.watermarkscalefactor=*
|
||||
write /proc/sys/vm/watermark_scale_factor ${vendor.sys.vm.watermarkscalefactor}
|
||||
|
||||
on property:vendor.sys.vm.thrashinglimit=*
|
||||
exec_background /system/bin/lmkd --update thrashinglimit ${vendor.sys.vm.thrashinglimit}
|
||||
on property:vendor.sys.vm.swaplow=*
|
||||
exec_background /system/bin/lmkd --update swaplow ${vendor.sys.vm.swaplow}
|
||||
on property:vendor.sys.vm.killtimeout=*
|
||||
exec_background /system/bin/lmkd --update killtimeout ${vendor.sys.vm.killtimeout}
|
||||
|
||||
5
proprietary/vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-service.rc
vendored
Normal file
5
proprietary/vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-service.rc
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
service power-hal-1-0 /vendor/bin/hw/vendor.mediatek.hardware.mtkpower@1.0-service
|
||||
class hal
|
||||
capabilities NET_ADMIN
|
||||
user root
|
||||
group system readproc wifi media media_rw camera audio
|
||||
4
proprietary/vendor/etc/init/vendor.mediatek.hardware.nvram@1.1-sevice.rc
vendored
Normal file
4
proprietary/vendor/etc/init/vendor.mediatek.hardware.nvram@1.1-sevice.rc
vendored
Normal file
|
|
@ -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
|
||||
6
proprietary/vendor/etc/init/vendor.mediatek.hardware.pq_aidl-service.rc
vendored
Normal file
6
proprietary/vendor/etc/init/vendor.mediatek.hardware.pq_aidl-service.rc
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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
proprietary/vendor/etc/init/volte_clientapi_ua.rc
vendored
Normal file
16
proprietary/vendor/etc/init/volte_clientapi_ua.rc
vendored
Normal 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
|
||||
|
||||
4
proprietary/vendor/etc/init/wlan_assistant.rc
vendored
Normal file
4
proprietary/vendor/etc/init/wlan_assistant.rc
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
service wlan_assistant /vendor/bin/wlan_assistant
|
||||
class main
|
||||
user wifi
|
||||
group system gps inet
|
||||
Loading…
Add table
Add a link
Reference in a new issue