blob: 917117f45d2bc578ad152e640cc8e296941e9420 (
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
|
#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
# To enable samsung remosaic
service remosaic_daemon /system/vendor/bin/remosaic_daemon
class late_start
user camera
group camera
#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
#@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 xiechenggang add for VIVO_CUSTOM_SIMPLE begin
mkdir /data/custom 0777 system system
mkdir /cache/custom 0777 system system
mkdir /persist/custom 0777 system system
#vivo xiechenggang add for VIVO_CUSTOM_SIMPLE end
#vivo huqingsong add for BIGDATA begin
mkdir /data/vlog 0777
#vivo huqingsong add for BIGDATA end
#vivo zhuhequan add for bbklog begin
mkdir /data/bbklog 0777
chown system system /data/bbklog
#vivo zhuhequan add for bbklog end
#vivo huqingsong add for cloud diagnosis begin
mkdir /data/logData 0777
#vivo huqingsong add for cloud diagnosis end
#vivo zhangxinwei add for surfaceflinger log begin
mkdir /data/sflog 0777
#vivo zhangxinwei add for surfaceflinger log 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
#vivo zhoujie add for TIMEZONE_MONITER begin
mkdir /data/offlinetz 0770
chown system system /data/offlinetz
#vivo zhoujie add for TIMEZONE_MONITER end
#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
user root
group root system wifi
disabled
on property:sys.wifi.sniffer=1
stop wifi_sniffer
start wifi_sniffer
on property:sys.wifi.sniffer=0
stop wifi_sniffer
# 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
chmod 0664 /sys/bus/msm_subsys/devices/subsys1/restart_level
chmod 0664 /sys/kernel/debug/vivo_msm_subsys/adsp
chown root system /sys/bus/msm_subsys/devices/subsys1/restart_level
chown root system /sys/kernel/debug/vivo_msm_subsys/adsp
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
chown system system /sys/kernel/debug/fg/sram/address
chmod 0644 /sys/kernel/debug/fg/sram/address
chown system system /sys/kernel/debug/fg/sram/count
chmod 0644 /sys/kernel/debug/fg/sram/count
chown system system /sys/kernel/debug/fg/sram/data
chmod 0644 /sys/kernel/debug/fg/sram/data
#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 muyongxing add for camera diming
chown system /sys/lcm/lcm_diming
chmod 0644 /sys/lcm/lcm_diming
#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
mkdir /mnt/vendor/persist/camera 0777
chown cameraserver cameraserver /mnt/vendor/persist/camera
chmod 0664 /mnt/vendor/persist/camera/ir_id_sub
# vivo chenweibin add for face detect end
# hope add for TMS8801 laser module start
mkdir /mnt/vendor/persist/firmware 0771 system system
# hope add for TMS8801 laser module 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:shell:s0 -- /system/bin/cp -rf /data/data/com.tencent.mm/files/xlog /storage/emulated/0/wechatLog
exec u:r:shell: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
# end
# JuPengfei CopyLog add
on property:sys.bbklog.copy=1
exec u:r:shell:s0 -- /system/bin/cp -r --preserve=timestamps /data/vendor/audiohal/audio_dump /sdcard/audio_dump
setprop sys.bbklog.copy 0
on property:sys.bbklog.copy=2
exec u:r:shell:s0 -- /system/bin/cp -r --preserve=timestamps /data/vendor/mtklog/aee_exp /sdcard/vendor_aee
exec u:r:shell:s0 -- /system/bin/cp -r --preserve=timestamps /data/vendor/aee_exp /sdcard/vendor_aee
exec u:r:shell:s0 -- /system/bin/cp -r --preserve=timestamps /data/aee_exp /sdcard/data_aee
setprop sys.bbklog.copy 0
on property:sys.bbklog.copy=3
exec u:r:shell:s0 root system -- /system/bin/cp -r /data/vendor/tombstones/SDX50M /sdcard/SDX50M
setprop sys.bbklog.copy 0
on property:sys.bbklog.copy=4
exec u:r:shell:s0 root system -- /system/bin/cp -r /data/vendor/tombstones/SDX50M/OCIMEM.BIN /sdcard/OCIMEM.BIN
on property:sys.bbklog.copy=5
exec u:r:shell:s0 root system -- /system/bin/rm -r /data/vendor/tombstones/SDX50M/
on property:sys.bbklog.copy=6
exec u:r:system_server:s0 system root -- /system/bin/cp -rf --preserve=timestamps /data/system/dropbox /data/dropbox_tmp
setprop sys.bbklog.copy 0
on property:sys.bbklog.copy=7
exec u:r:system_server:s0 system root -- /system/bin/rm -rf /data/dropbox_tmp
setprop sys.bbklog.copy 0
# end
# fuxi add for vivo super FlashCharge
on property:sys.battery.SocDecimal=*
write /sys/class/power_supply/battery/soc_decimal ${sys.battery.SocDecimal}
#end
# vivo wangjiewen add for vdtf service begin
service vdtf /system/bin/vdtf
class main
socket vdtf dgram 666 system system
# vivo wangjiewen add for vdtf service end
# JuPengfei NetdDump add
on property:sys.bbklog.dumpsys=netd
exec u:r:dumpstate:s0 -- /system/bin/sh -c "/system/bin/dumpsys netd trafficcontroller > /data/bbkcore/ipinfos"
setprop sys.bbklog.dumpsys done
# end
# vivo dongzhixiang add for set otp.status begin
on property:vendor.camera.otp.status=*
setprop sys.camera.otp.status ${vendor.camera.otp.status}
# vivo dongzhixiang add for set otp.status end
# vivo xuxiaokun add for nfc feature storage
mkdir /vendor/etc/nfc/ 0755 system system
# vivo pengzuo add for camera persist/camera begin
mkdir persist/camera 0777
chown cameraserver cameraserver persist/camera
# vivo pengzuo add for camera persist/camera end
# JuPengfei add WDSP {
on property:sys.bbklog.wdsp=1
write /sys/kernel/debug/wdsp0/ramdump_enable Y
write /sys/kernel/debug/wdsp_mgr/panic_on_error Y
on property:sys.bbklog.wdsp=0
write /sys/kernel/debug/wdsp0/ramdump_enable N
write /sys/kernel/debug/wdsp_mgr/panic_on_error N
# }
on property:sys.prop_flash_light_cali_flag=1
chmod 0777 /data/vendor/camera/dual_led_calib_result
chmod 0777 /data/vendor/camera/prop_rear_calib_result0
chmod 0777 /data/vendor/camera/prop_rear_calib_result1
chmod 0777 /data/vendor/camera/prop_rear_calib_result2
chmod 0777 /data/vendor/camera/prop_rear_calib_result3
chmod 0777 /data/vendor/camera/led2_result
chmod 0777 /data/vendor/camera/prop_front_calib_result
chmod 0777 /data/vendor/camera/prop_calib_result
chmod 0777 /data/vendor/camera/prop_calib_result2
#vivo linyikai add for engineermode to read camera files begin
on property:sys.engineermode.operate_camera_file=1
chmod 0777 persist/camera/sn_data_front_main
chmod 0777 persist/camera/sn_data_front_aux
chmod 0777 persist/camera/sn_data_rear_main
chmod 0777 persist/camera/sn_data_rear_aux
chmod 0777 persist/camera/sn_data_rear_tele
chmod 0777 persist/camera/sn_data_rear_wide
chmod 0777 persist/camera/ir_id_sub
chmod 0777 persist/camera/rear_camera_main_sn
chmod 0777 persist/camera/rear_camera_wide_sn
chmod 0777 persist/camera/rear_camera_rtb_sn
chmod 0777 persist/camera/rear_camera_tele_sn
chmod 0777 persist/camera/rear_camera_periscope_sn
chmod 0777 persist/camera/rear_camera_macro_sn
chmod 0777 persist/camera/front_camera_main_sn
chmod 0777 persist/camera/front_camera_rtb_sn
chmod 0777 persist/camera/front_camera_wide_sn
chmod 0777 persist/camera/front_camera_periscope_sn
#vivo linyikai add for engineermode to read camera files end
|