-
Notifications
You must be signed in to change notification settings - Fork 3
/
ueventd.rc
223 lines (186 loc) · 8.9 KB
/
ueventd.rc
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
#change partition permission
/dev/block/mmcblk0 0660 root system
/dev/block/mmcblk0boot0 0660 root system
/dev/block/mmcblk0boot1 0660 root system
/dev/misc-sd 0660 root system
/dev/block/by-name/misc2 0660 root system
/dev/block/by-name/boot 0640 root system
/dev/block/by-name/recovery 0640 root system
/dev/block/by-name/secro 0640 root system
/dev/block/by-name/seccfg 0660 root system
/dev/block/by-name/proinfo 0660 root system
/dev/block/by-name/nvram 0660 root system
/dev/block/by-name/para 0660 root system
/dev/block/by-name/logo 0660 root system
/dev/block/by-name/frp 0660 root system
/dev/block/by-name/md1img 0640 root system
/dev/block/by-name/md1img_1 0640 root system
/dev/block/by-name/md1img_a 0640 root system
/dev/block/by-name/md1img_b 0640 root system
/dev/block/by-name/md1dsp 0660 root system
/dev/block/by-name/boot_para 0640 root system
/dev/block/by-name/misc 0660 root system
# OTP
/dev/otp 0660 system system
/dev/block/by-name/otp 0660 root system
# Connectivity
/dev/stpwmt 0660 system system
/dev/wmtdetect 0660 system system
/dev/fw_log_wmt 0660 system system
/dev/conninfra_dev 0660 system system
# BT
/dev/stpbt 0660 bluetooth bluetooth
/dev/fw_log_bt 0660 bluetooth bluetooth
# GPS
/dev/fw_log_gps 0660 gps gps
/dev/gpsdl0 0660 gps gps
/dev/gpsdl1 0660 gps gps
/dev/stpgps 0660 gps gps
/dev/gps 0660 gps system
/dev/gps_emi 0660 gps gps
/dev/gps2scp 0660 gps gps
/dev/gps_pwr 0660 gps gps
# ANT
/dev/stpant 0660 system system
# WIFI
/dev/wmtWifi 0660 wifi wifi
/dev/fw_log_wifi 0660 wifi wifi
# FMRadio
/dev/fm 0660 media media
# NFC
/dev/st21nfc 0660 nfc radio
/dev/st54spi 0660 secure_element secure_element
# MTK BTIF driver
/dev/btif 0600 system system
# Trusty driver
/dev/trusty-ipc-dev0 0660 system system
/dev/nebula-ipc-dev0 0660 system system
# RPMB (for Trusty)
/dev/block/mmcblk0rpmb 0660 root system
# TrustonicTEE driver
/dev/mobicore 0600 system system
/dev/mobicore-user 0666 system system
/dev/t-base-tui 0666 system system
# add the read write right of ttyUSB*
/dev/bus/usb/* 0660 root usb
/dev/ttyUSB0 0660 radio radio
/dev/ttyUSB1 0660 radio radio
/dev/ttyUSB2 0660 radio radio
/dev/ttyUSB3 0660 radio radio
/dev/ttyUSB4 0660 radio radio
# Anyone can read the logs, but if they're not in the "logs"
# group, then they'll only see log entries for their UID.
/dev/log/ksystem 0600 root log
/dev/ccci* 0660 radio radio
/dev/ttyC* 0660 radio radio
/sys/kernel/ccci modem_info 0644 radio radio
/sys/kernel/ccci md1_postfix 0644 radio radio
/sys/kernel/ccci md2_postfix 0644 radio radio
/dev/eemcs* 0660 radio radio
/dev/emd* 0660 radio radio
/dev/ccci_pcm_rx 0660 audio audio
/dev/ccci_pcm_tx 0660 audio audio
/dev/ccci_aud 0660 audio audio
/dev/ccci2_aud 0660 audio audio
/dev/ccci3_aud 0660 audio audio
/dev/ccci_raw_audio 0660 audio audio
/dev/ccci3_raw_audio 0660 audio audio
/dev/eemcs_aud 0660 audio audio
/dev/audio_ipi 0660 audio audio
/dev/irtx 0660 system system
/dev/lirc* 0660 root system
/dev/ir-learning 0660 system system
# SGX device node
/dev/pvrsrvkm 0666 root root
/dev/pvr_sync 0666 root root
/sys/devices/platform/leds-mt65xx/leds/green delay_on 0664 system system
/sys/devices/platform/leds-mt65xx/leds/green delay_off 0664 system system
/sys/devices/platform/leds-mt65xx/leds/red delay_on 0664 system system
/sys/devices/platform/leds-mt65xx/leds/red delay_off 0664 system system
/sys/devices/platform/leds-mt65xx/leds/blue delay_on 0664 system system
/sys/devices/platform/leds-mt65xx/leds/blue delay_off 0664 system system
/sys/class/leds/green delay_on 0664 system system
/sys/class/leds/green delay_off 0664 system system
/sys/class/leds/red delay_on 0664 system system
/sys/class/leds/red delay_off 0664 system system
/sys/class/leds/blue delay_on 0664 system system
/sys/class/leds/blue delay_off 0664 system system
#GPIO
/dev/mtgpio 0600 radio root
#FOR VIA MODEM
/dev/ttySDIO* 0660 radio sdcard_rw
/dev/ttyRB* 0660 radio radio
# Mali node
/dev/mali0 0666 system graphics
/dev/mali 0666 system graphics
# Change ION driver permission
/dev/ion 0666 system graphics
#touch
/dev/touch 0660 root system
/dev/hotknot 0660 root system
#hang_detect
/dev/RT_Monitor 0660 system system
/dev/kick_powerkey 0660 system system
#MTK In-House TEE
/dev/ttyACM0 0660 radio radio
# Resume-on-Reboot
/dev/access-kregistry 0660 system system
# goodix device node
/dev/goodix_fp 0664 system system
# config egistec fingerprint
/dev/esfp0 0660 system system
# set permission for fpc fingerprint
/sys/class/fingerprint/fpc_spi wakeup_enable 0660 system system
/sys/class/fingerprint/fpc_spi irq 0660 system system
/sys/class/fingerprint/fpc_spi clk_enable 0660 system system
/sys/class/fingerprint/fpc_spi hw_enable 0660 system system
/sys/class/fingerprint/fpc_spi hw_reset 0660 system system
/sys/class/fingerprint/fpc_spi irq_enable 0660 system system
/sys/class/fingerprint/fpc_spi vendor 0660 system system
/sys/class/fingerprint/fpc_spi modalias 0660 system system
# chipone device node
/dev/fpsensor 0666 system system
# ------------------- focal fingerprint begin -------------------
/dev/focaltech_fp 0660 system system
#v4l2 device
/dev/video* 0660 camera system
/dev/media* 0660 camera system
/dev/v4l-subdev* 0660 camera system
/dev/flashlight 0660 camera system
# audio
/dev/adsp 0660 root media
/dev/adsp_0 0440 system media
# Change DMA_HEAP deice permission
# refs: /system/core/rootdir/uevent.rc
# /dev/dma_heap/system 0444 system system
/dev/dma_heap/mtk_mm 0444 system system
/dev/dma_heap/mtk_mm-uncached 0444 system system
/dev/dma_heap/mtk_svp_page-uncached 0444 system system
/dev/dma_heap/mtk_prot_page-uncached 0444 system system
/dev/dma_heap/mtk_svp_region 0444 system system
/dev/dma_heap/mtk_svp_region-aligned 0444 system system
/dev/dma_heap/mtk_prot_region 0444 system system
/dev/dma_heap/mtk_prot_region-aligned 0444 system system
/dev/dma_heap/mtk_2d_fr_region 0444 system system
/dev/dma_heap/mtk_2d_fr_region-aligned 0444 system system
/dev/dma_heap/mtk_wfd_region 0444 system system
/dev/dma_heap/mtk_wfd_region-aligned 0444 system system
/dev/dma_heap/mtk_wfd_page-uncached 0444 system system
/dev/dma_heap/mtk_sapu_data_shm_region 0444 system system
/dev/dma_heap/mtk_sapu_data_shm_region-aligned 0444 system system
/dev/dma_heap/mtk_sapu_engine_shm_region 0444 system system
/dev/dma_heap/mtk_sapu_engine_shm_region-aligned 0444 system system
# Camera
/dev/camera_eeprom* 0660 system camera
/dev/mtk_ccd 0660 system camera
/dev/ccu* 0660 system camera
/dev/mtk_hcp 0660 camera system
/dev/vcu 0660 camera system
# Sensor
/dev/hf_manager 0660 system system
# Display
/dev/mtk_mdp 0660 system system
#pq
/dev/mml_pq 0640 system system
#nfc
/dev/nq-nci 0666 nfc nfc