android_device_tecno_LG8n/rootdir/etc/init/hw/init.project.rc
Shirayuki39 5b484cf947 LG8n: Remove Memfusion from init.project.rc
* Let's be real, MemFusion is useless in non-XOS ROMs(Actually it's also useless in XOS ROM but whatever)

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:30:32 +08:00

105 lines
4.6 KiB
Plaintext

import /vendor/etc/init/hw/init.mtkgki.rc
# MTK project .rc configure
on init
mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw
mkdir /storage/usbotg 0700 root root
# Set gesture touch permissions
chown system system /proc/gesture_function
chmod 0660 /proc/gesture_function
on post-fs-data
#Camera
chmod 0660 /dev/MAINAF
chown system camera /dev/MAINAF
chmod 0660 /dev/MAINAF2
chown system camera /dev/MAINAF2
chmod 0660 /dev/SUBAF
chown system camera /dev/SUBAF
chmod 0660 /dev/GAF001AF
chown system camera /dev/GAF001AF
chmod 0660 /dev/DW9714AF
chown system camera /dev/DW9714AF
chmod 0660 /dev/LC898212AF
chown system camera /dev/LC898212AF
chmod 0660 /dev/BU64745GWZAF
chown system camera /dev/BU64745GWZAF
#SMB
chown system system /proc/smb/ScreenComm
chmod 0660 /proc/smb/ScreenComm
chmod 0660 /dev/spm
chown system system /dev/spm
# BSP:modify for LRA XLWYEHLYEL-1 by hongwu.zhan 20221104 start
chown system system /sys/class/leds/vibrator_single/activate
chown system system /sys/class/leds/vibrator_single/activate_mode
chown system system /sys/class/leds/vibrator_single/awrw
chown system system /sys/class/leds/vibrator_single/brightness
chown system system /sys/class/leds/vibrator_single/bullet_nr
chown system system /sys/class/leds/vibrator_single/cali
chown system system /sys/class/leds/vibrator_single/cont
chown system system /sys/class/leds/vibrator_single/cont_brk_time
chown system system /sys/class/leds/vibrator_single/cont_drv_lvl
chown system system /sys/class/leds/vibrator_single/cont_drv_time
chown system system /sys/class/leds/vibrator_single/cont_wait_num
chown system system /sys/class/leds/vibrator_single/duration
chown system system /sys/class/leds/vibrator_single/f0
chown system system /sys/class/leds/vibrator_single/f0_save
chown system system /sys/class/leds/vibrator_single/gain
chown system system /sys/class/leds/vibrator_single/gun_type
chown system system /sys/class/leds/vibrator_single/haptic_audio
chown system system /sys/class/leds/vibrator_single/haptic_audio_time
chown system system /sys/class/leds/vibrator_single/index
chown system system /sys/class/leds/vibrator_single/loop
chown system system /sys/class/leds/vibrator_single/lra_resistance
chown system system /sys/class/leds/vibrator_single/max_brightness
chown system system /sys/class/leds/vibrator_single/osc_cali
chown system system /sys/class/leds/vibrator_single/osc_save
chown system system /sys/class/leds/vibrator_single/prctmode
chown system system /sys/class/leds/vibrator_single/ram_num
chown system system /sys/class/leds/vibrator_single/ram_update
chown system system /sys/class/leds/vibrator_single/ram_vbat_comp
chown system system /sys/class/leds/vibrator_single/reg
chown system system /sys/class/leds/vibrator_single/rtp
chown system system /sys/class/leds/vibrator_single/seq
chown system system /sys/class/leds/vibrator_single/state
chown system system /sys/class/leds/vibrator_single/trig
chown system system /sys/class/leds/vibrator_single/trigger
chown system system /sys/class/leds/vibrator_single/uevent
chown system system /sys/class/leds/vibrator_single/vbat_monitor
# BSP:modify for LRA XLWYEHLYEL-1 by hongwu.zhan 20221104 end
on init
# Refer to http://source.android.com/devices/tech/storage/index.html
# It said, "Starting in Android 4.4, multiple external storage devices are surfaced to developers through
# Context.getExternalFilesDirs(), Context.getExternalCacheDirs(), and Context.getObbDirs().
# External storage devices surfaced through these APIs must be a semi-permanent part of the device (such as an SD card slot in a battery compartment).
# Developers expect data stored in these locations to be available over long periods of time."
# Therefore, if the target doesn't support sd hot-plugging (Ex: the SD card slot in a battery compartment), we need to export SECONDARY_STORAGE in 'boot' section
#
# export SECONDARY_STORAGE /storage/sdcard1
service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbotg /storage/usbotg
class late_start
disabled
# start mmstat
on property:sys.boot_completed=1
mkdir /sys/kernel/tracing/instances/mmstat 711
write /sys/kernel/tracing/instances/mmstat/tracing_on 0
write /sys/kernel/tracing/instances/mmstat/buffer_size_kb 16
write /sys/kernel/tracing/instances/mmstat/events/mmstat/enable 1
write /sys/kernel/tracing/instances/mmstat/tracing_on 1