blob: c25469fbaaab220fb00c12b8379a8a21abd43216 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
import /vendor/etc/init/hw/init.mtkgki.rc
# MTK project .rc configure
on early-init
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules trace_mmstat.ko
on init
mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw
mkdir /storage/usbotg 0700 root root
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
#[umi] Add by renfei for 4678
chown system system /sys/class/leds/aw22xxx_led/brightness
chmod 0666 /sys/class/leds/aw22xxx_led/brightness
chown system system /sys/class/leds/aw22xxx_led/fw
chmod 0666 /sys/class/leds/aw22xxx_led/fw
chown system system /sys/class/leds/aw22xxx_led/effect
chmod 0666 /sys/class/leds/aw22xxx_led/effect
chown system system /sys/class/leds/aw22xxx_led/cfg
chmod 0666 /sys/class/leds/aw22xxx_led/cfg
chown system system /sys/class/leds/aw22xxx_led/imax
chmod 0666 /sys/class/leds/aw22xxx_led/imax
chown system system /sys/class/leds/aw22xxx_led/rgb
chmod 0666 /sys/class/leds/aw22xxx_led/rgb
#[umi] End
#[umi]add by hetian for double click wakeup 20250509 start
chmod 6666 /sys/devices/platform/soc/14014000.dsi/14014000.dsi.0/drm_panel_gesture_support
chown system system /sys/devices/platform/soc/14014000.dsi/14014000.dsi.0/drm_panel_gesture_support
chmod 6666 /sys/devices/platform/1100a000.spi0/spi_master/spi0/spi0.0/fts_gesture_mode
chown system system /sys/devices/platform/1100a000.spi0/spi_master/spi0/spi0.0/fts_gesture_mode
#[umi]add by hetian for double click wakeup 20250509 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
|