blob: c65e89ec48af11314f556f8bf29b1b6889cefcd7 (
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
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
|
#init.rc for vivo
import /init.${ro.vivo.project}.rc
#vivo_daemon added by zhangmingkai
service vivo_daemon /system/bin/vivo_daemon
class main
#vivo EncodeService added by hupengxiang begin
service EncodeService /vendor/bin/EncodeService
class main
#vivo hupengxiagn add end
#settings_team added start
service firewall /data/data/com.iqoo.secure.datausage/app_bin/droidwall.sh
disabled
user root
oneshot
on property:sys.firewall=0
start firewall
service reset_phone /system/bin/sh /system/etc/reset_phone.sh
disabled
oneshot
#settings_team added end
#settings_team add by liuzhaohui
service backuprestore /system/bin/br_app_data_service
class main
socket backuprestore stream 0660 root sdcard_rw
user root
#end settings_team by liuzhaohui
on property:sys.qmitest.opt=1
start qmitest
on property:sys.qmitest.opt=0
stop qmitest
service qmitest /system/bin/qmitest
socket qmitest stream 660 radio system
class core
user root
group system
oneshot
#settings_team end
#add by qiuguifu for MTK FLASHLIGHT
chmod 0777 /dev/iqoo_flashlight_platform
#@hankecai add for bbk_log begin {
on property:persist.sys.ssr_ramdump=1
write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
on property:persist.sys.ssr_ramdump=0
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
#add bbk_log end
on post-fs-data
#add theme/font start by liuquancai
mkdir /data/bbkcore 0777
chmod 0777 /data/bbkcore
mkdir /data/bbkcore/theme 0777
chmod 0777 /data/bbkcore/theme
chmod 0777 /data/fonts
#add theme/font end by liuquancai
#vivo huqingsong add for BIGDATA begin
mkdir /data/vlog 0777
#vivo huqingsong add for BIGDATA end
#vivo huqingsong add for cloud diagnosis begin
mkdir /data/logData 0777
#vivo huqingsong add for cloud diagnosis end
#vivo huqingsong add for pre install brush prevention begin
#mkdir /data/yzfswj 0777
chmod 0777 /data/yzfswj/com.sankuai.meituan
chmod 0777 /data/yzfswj/com.sankuai.meituan/mtconfig.ini
chmod 0444 /data/yzfswj/another/vivo_alipay_antibrush
#vivo huqingsong add for pre install brush prevention end
# add by liyangjie for vivo_abe begin
mkdir /data/system/abe 0770
chown system system /data/system/abe
# add by liyangjie for vivo_abe end
# vivo zhengguobing add for audio begin
mkdir /persist/audio 0777
chown system system /persist/audio
chown system system /persist/audio/smartamp.bin
chown system system /persist/audio/spkr_calibration.bin
chmod 0664 /persist/audio/smartamp.bin
chmod 0664 /persist/audio/spkr_calibration.bin
mkdir /mnt/vendor/persist/audio 0777
chown system system /mnt/vendor/persist/audio
chown system system /mnt/vendor/persist/audio/smartamp.bin
chown system system /mnt/vendor/persist/audio/spkr_calibration.bin
chmod 0664 /mnt/vendor/persist/audio/smartamp.bin
chmod 0664 /mnt/vendor/persist/audio/spkr_calibration.bin
# vivo zhengguobing add for audio end
#vivo zhaoxiaowen add for log_tag begin
# vivo zhangshuanglong add begin for face_detect
mkdir /data/facecache 0777
chown system system /data/facecache
# vivo zhangshuanglong add begin for face_detect
#on property:ro.build.type=user
# copy /data/log/tagfilter /dev/log_tag
#vivo zhaoxiaowen add for log_tag end
# vivo luoguizhao add for wifi sniffer begin
service wifi_sniffer /system/bin/wifi_sniffer
class core
disabled
on property:sys.wifi.sniffer=1
stop wifi_sniffer
write /sys/module/wlan/parameters/con_mode 4
start wifi_sniffer
on property:sys.wifi.sniffer=0
stop wifi_sniffer
write /sys/module/wlan/parameters/con_mode 0
# vivo luoguizhao add for wifi sniffer end
#vivo-sensor add for gsensor switch and light ,algo-prox start
on boot
chown system system /sys/class/switch/gsensor/state
chmod 0644 /sys/class/switch/gsensor/state
chown system system /sys/class/leds/green/blink
chmod 0644 /sys/class/leds/green/blink
chown system system /sys/class/leds/red/blink
chmod 0644 /sys/class/leds/red/blink
chmod 0775 /persist/sensors
chown system system /persist/sensors
chmod 664 /persist/sensors/maglib_para
chown system system /persist/sensors/maglib_para
chmod 664 /sys/kernel/boot_adsp/rebootadsp
chown system system /sys/kernel/boot_adsp/rebootadsp
chown system system /sys/class/sarpower/sar-power/enable
chmod 0664 /sys/class/sarpower/sar-power/enable
chown system system /sys/class/sarpower/sar-power/state
chmod 0664 /sys/class/sarpower/sar-power/state
chown system system /sys/devices/virtual/sarpower/sar-power/enable
chmod 0664 /sys/devices/virtual/sarpower/sar-power/enable
chown system system /sys/devices/virtual/sarpower/sar-power/state
chmod 0664 /sys/devices/virtual/sarpower/sar-power/state
chown system system /sys/class/sensors/algo-prox/enable
chown system system /sys/class/sensors/algo-prox/name
chown system system /sys/class/sensors/algo-prox/poll_delay
chown system system /sys/class/sensors/algo-prox/flags
chmod 0644 /sys/class/sensors/algo-prox/enable
chmod 0644 /sys/class/sensors/algo-prox/name
chmod 0644 /sys/class/sensors/algo-prox/poll_delay
chmod 0644 /sys/class/sensors/algo-prox/flags
chown system system /sys/devices/virtual/sensors/algo-prox/enable
chown system system /sys/devices/virtual/sensors/algo-prox/name
chown system system /sys/devices/virtual/sensors/algo-prox/poll_delay
chown system system /sys/devices/virtual/sensors/algo-prox/flags
chmod 0644 /sys/devices/virtual/sensors/algo-prox/enable
chmod 0644 /sys/devices/virtual/sensors/algo-prox/name
chmod 0644 /sys/devices/virtual/sensors/algo-prox/poll_delay
chmod 0644 /sys/devices/virtual/sensors/algo-prox/flags
#vivo-sensor add for gsensor switch and light,algo-prox end
# vivo fuxi modify for FuelSummary
chown system system /sys/kernel/debug/fuelsummary/config
chown system system /sys/kernel/debug/fuelsummary/custom_input
chown system system /sys/kernel/debug/fuelsummary/custom_ibat
chown system system /sys/kernel/debug/fuelsummary/custom_volt
chown system system /sys/kernel/debug/fuelsummary/user_custom
#vivo chenkairjyb add for led-blink start
chown system system /sys/class/leds/red/blink
chown system system /sys/class/leds/green/blink
#vivo chenkairjyb add for led-blink end
#vivo linear motor add by yangjianhua begin
chown system system /sys/class/timed_output/qti_haptics/vmax
chown system system /sys/class/timed_output/qti_haptics/f0_cont
chown system system /sys/class/timed_output/qti_haptics/enable
chown system system /sys/class/timed_output/qti_haptics/activate
chown system system /sys/class/timed_output/qti_haptics/playRoll
chmod 0644 /sys/class/timed_output/qti_haptics/vmax
chmod 0644 /sys/class/timed_output/qti_haptics/f0_cont
chmod 0644 /sys/class/timed_output/qti_haptics/enable
chmod 0644 /sys/class/timed_output/qti_haptics/activate
chmod 0644 /sys/class/timed_output/qti_haptics/playRoll
#vivo linear motor add by yangjianhua end
#vivo liubiao add for nightpearl start
chown system /sys/lcm/oled_alpmmode
chmod 0644 /sys/lcm/oled_alpmmode
chown system /sys/lcm/oled_hlpmmode
chmod 0644 /sys/lcm/oled_hlpmmode
chown system /sys/lcm/oled_hbm
chmod 0644 /sys/lcm/oled_hbm
chown system /sys/lcm/oled_acl
chmod 0644 /sys/lcm/oled_acl
#vivo liubiao add for nightpearl end
# vivo caichangshui added for RMS begin
chown root system /sys/module/lowmemorykiller/parameters/vmpressure_file_min
chmod 0664 /sys/module/lowmemorykiller/parameters/vmpressure_file_min
chown root system /sys/module/lowmemorykiller/parameters/adj_max_shift
chmod 0664 /sys/module/lowmemorykiller/parameters/adj_max_shift
# vivo caichangshui added for RMS end
# vivo chenweibin add for face detect begin
chmod 0776 /persist/camera
chmod 0664 /persist/camera/ir_id_sub
# vivo chenweibin add for face detect end
# vivo zhangjianping add begin for face_detect
on property:sys.face.detect=1
start face_detect
on property:sys.face.detect=0
stop face_detect
service face_detect /system/bin/face_detect
user system
group system sdcard_rw
#class late_start
disabled
# vivo zhangjianping add end for face_detect
# vivo yanghanqiu add begin for alipay_service
service alipay_service /system/bin/alipay_service
user system
group system sdcard_r
class late_start
# vivo yanghanqiu add end for alipay_service
# vivo xushenghua add for UNIFIED_CONFIG begin
service getuk /system/bin/getuk
class main
user system
group system
# vivo xushenghua add for UNIFIED_CONFIG end
# vivo zhaofeihua add begin for vivo_attest_service
service vivo_attest_service /system/bin/vivo_attest_service
user system
group system sdcard_r
class late_start
# vivo zhaofeihua add end for vivo_attest_service
#vivo yujingjiang add for bbklog to get 3rd APP logs begin
on property:sys.bbklog.cp.wechatlog=1
exec u:r:dumpstate:s0 -- /system/bin/cp -rf /data/data/com.tencent.mm/files/xlog /storage/emulated/0/wechatLog
exec u:r:dumpstate:s0 -- /system/bin/cp -rf /data/data/com.tencent.mm/files/crash /storage/emulated/0/wechatLog
setprop sys.bbklog.cp.wechatlog 0
#vivo yujingjiang add for bbklog to get 3rd APP logs end
# vivo yanghanqiu add begin for simauth_service
service simauth_service /system/bin/simauth_service
user system
group system sdcard_r
class late_start
# vivo yanghanqiu add end for simauth_service
# vivo guomin add for fdcheck begin
on property:epm.fd.check.leak=1
start check_fdleak
service check_fdleak /system/bin/check_fdleak.sh
disabled
user root
oneshot
seclabel u:r:dumpstate:s0
# vivo guomin add for fdcheck end
# vivo zhuangyan add begin for google news
on property:vold.post_fs_data_done=1
start check_ex_att
service check_ex_att /system/bin/check_ex_att.sh
disabled
oneshot
seclabel u:r:vivo_check:s0
# vivo zhuangyan add end for google news
# JuPengfei clearDumpLog add
service clear_dump_log /system/bin/sh -c "rm -rf /data/vendor/audiohal/audio_dump/*"
disabled
user root
group root system
seclabel u:r:shell:s0
oneshot
# add
|