-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathinit.mt6592.rc
More file actions
227 lines (184 loc) · 7.16 KB
/
init.mt6592.rc
File metadata and controls
227 lines (184 loc) · 7.16 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
on init
export LD_PRELOAD /system/lib/libxlog.so
export EXTERNAL_STORAGE /storage/sdcard0
mkdir /storage/sdcard0 0000 system system
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
chown system graphics /dev/ion
chmod 0644 /dev/ion
# TODO: fix system apps run with unknown user resume 0660
chmod 0666 /dev/mali
chown system graphics /dev/mali
chmod 0660 /dev/graphics/fb0
chown system graphics /dev/graphics/fb0
chmod 0660 /dev/mtkfb_vsync
chown system graphics /dev/mtkfb_vsync
chmod 0660 /dev/sw_sync
chown system graphics /dev/sw_sync
chown system system /dev/rtc0
chmod 0660 /dev/rtc0
chown system system /dev/hwmsensor
chmod 0660 /dev/hwmsensor
chown system system /dev/msensor
chmod 0660 /dev/msensor
chown system system /dev/gsensor
chmod 0660 /dev/gsensor
chown radio system /dev/als_ps
chmod 0660 /dev/als_ps
chown system media /dev/MJC
chmod 0660 /dev/MJC
chown root system /dev/devmap
chmod 0440 /dev/devmap
chown bluetooth radio /dev/ttyGS2
chmod 0660 /dev/ttyGS2
chown system radio /dev/ttyGS3
chmod 0660 /dev/ttyGS3
chown system /dev/ttyGS0
chmod 660 /dev/ttyGS0
chown system /dev/ttyGS1
chmod 660 /dev/ttyGS1
chown bluetooth bluetooth /dev/hid-keyboard
chmod 0660 /dev/hid-keyboard
chown system media /dev/uibc
chmod 0660 /dev/uibc
chown system camera /dev/mtk_jpeg
chmod 0440 /dev/mtk_jpeg
chmod 0440 /dev/mtk_almk
chown system system /dev/mtk_disp
chmod 0440 /dev/mtk_disp
chown system camera /dev/camera-sysram
chown system camera /dev/camera-isp
chown system camera /dev/camera-pipemgr
chown system camera /dev/kd_camera_hw
chmod 0660 /dev/kd_camera_hw
chown system camera /dev/kd_camera_flashlight
chmod 0660 /dev/kd_camera_flashlight
chown system camera /dev/kd_camera_hw_bus2
chmod 0660 /dev/kd_camera_hw_bus2
chown system camera /dev/FM50AF
chmod 0660 /dev/FM50AF
chown system system /dev/RT_Monitor
chmod 0600 /dev/RT_Monitor
chown root radio /dev/mt_otg_test
chmod 0660 /dev/mt_otg_test
chown system media /dev/MTK_SMI
chmod 0660 /dev/MTK_SMI
chown system media /dev/mtk_sched
chmod 0660 /dev/mtk_sched
chown system media /dev/ebc
chmod 0660 /dev/ebc
chmod 0660 /sys/devices/platform/msensor/driver/cpsopmode
chmod 0660 /sys/devices/platform/msensor/driver/cpsreptxy
chmod 0660 /sys/devices/platform/msensor/driver/cpsreptz
chmod 0660 /sys/devices/platform/gsensor/driver/cpsopmode
chmod 0660 /sys/devices/platform/gsensor/driver/cpsrange
chmod 0660 /sys/devices/platform/gsensor/driver/cpsbandwidth
chmod 0664 /sys/devices/platform/mt-pmic/pmic_access_bank0
chmod 0664 /sys/devices/platform/mt-pmic/pmic_access_bank1
chmod 0664 /sys/devices/platform/mt6333-user/mt6333_access
chmod 0664 /sys/devices/platform/mt-pmic/pmic_access
chmod 0664 /sys/bus/platform/drivers/mem_bw_ctrl/concurrency_scenario
chmod 0664 /sys/module/lowmemorykiller/parameters/adj
chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
chmod 0660 /sys/power/autosleep
chmod 0660 /sys/power/state
chmod 0660 /sys/power/sb_state
chmod 0660 /sys/power/wake_lock
chmod 0660 /sys/power/wake_unlock
chmod 0664 /sys/class/leds/lcd-backlight/brightness
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
chmod 0660 /sys/devices/system/cpu/cpufreq/hotplug/cpu_num_base
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 0664 /sys/class/leds/lcd-backlight/brightness
chmod 0770 /sys/power/tuxonice
chmod 0220 /sys/power/tuxonice/do_hibernate
on post-fs-data
# Create the directories used by the Wireless subsystem
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
on post-fs
exec /system/xbin/mknod /dev/wmtWifi c 153 0
chmod 0660 /dev/wmtWifi
chown system system /dev/wmtWifi
exec /system/xbin/mknod /dev/stpwmt c 190 0
exec /system/xbin/mknod /dev/stpgps c 191 0
exec /system/xbin/mknod /dev/stpbt c 192 0
chmod 0660 /dev/stpwmt
chown system system /dev/stpwmt
chmod 0660 /dev/wmtdetect
chown system system /dev/wmtdetect
service wmtLoader /system/bin/logwrapper /system/bin/wmt_loader
user root
group root
class main
oneshot
service conn_launcher /system/bin/logwrapper /system/bin/6620_launcher -p /system/etc/firmware/
user system
group system
class core
on fs
write /proc/bootprof "INIT:eMMC:Mount_START"
mount_all /fstab.mt6592
write /proc/bootprof "INIT:NAND:Mount_END"
on property:wlan.driver.status=ok
write /dev/wmtWifi "1"
on property:wlan.driver.status=unloaded
write /dev/wmtWifi "0"
service p2p_supplicant /system/bin/wpa_supplicant -dd \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-O/data/misc/wifi/sockets -N \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
-puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
-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
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service wpa_supplicant /system/bin/wpa_supplicant -dd \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -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
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
class late_start
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class late_start
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class late_start
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class late_start
disabled
oneshot