summaryrefstree
path: root/system/init.oppo.debug.rc
blob: e1d6c5ad1f71c10d37e1a1fb03cfb77ebf15652e (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
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
##################################################################################
### VENDOR_EDIT, OPPO All rights reserved.
###
### File: - init.oppo.debug.nosd.rc
### Author: Jason.Lee@OnlineRd.Framework
###
### ------------------------------- Revision History: ----------------------------
### <author>                        <data>       <version>   <desc>
### ------------------------------------------------------------------------------
### Jason.Lee@OnlineRd.Framework   2014-03-18               Create this file
##################################################################################

#ifdef VENDOR_EDIT
#yanbin@OnlineRd.framework.oppo_debug, 2015/03/07, add

# There are some duplicate codes

on property:persist.sys.dump=1
    start dumpon

on property:persist.sys.dump=0
    start dumpoff

#JianRong.Zheng@Swdp.Android.Log, 2016/10/07, remove 0x840 0x841, default value set by kernel or driver, no need to modify here
on property:persist.sys.powerkeydump=0
    start pwkdumpoff

#JianRong.Zheng@Swdp.Android.Log, 2016/10/07, modify 0x840 from 0x0c to 0x0F, 0x841 from 0x07 to 0x05 avoid cause into dump by mistake(5.5s change to 10.7s)
on property:persist.sys.powerkeydump=1
    start pwkdumpon

#Canjie.Zheng@Swdp.Android.OppoDebug.LogKit,2016/11/25,disable console log default
on property:ro.build.release_type=false
    write /proc/sys/kernel/printk "1 6 1 7"


service pwkdumpon /system/bin/autochmod.sh "pwkdumpon"
    class core
    user root
    disabled
    oneshot

service pwkdumpoff /system/bin/autochmod.sh "pwkdumpoff"
    class core
    user root
    disabled
    oneshot

service dumpon /system/bin/autochmod.sh "dumpon"
    class core
    user root
    disabled
    oneshot

service dumpoff /system/bin/autochmod.sh "dumpoff"
    class core
    user root
    disabled
    oneshot

service packupminidump /system/bin/autochmod.sh "packupminidump"
    class core
    user root
    disabled
    oneshot

#ifdef VENDOR_EDIT
#Bin.Yan@Swdp.Android.OppoDebug.AssertTip, 2015/12/30, add for AssertTip.
service oppoasserttip /system/bin/asserttip
    class core
    user system
    disabled

service ps /system/bin/autochmod.sh "ps"
    class core
    user root
    disabled
    oneshot
service top /system/bin/autochmod.sh "top"
    class core
    user root
    disabled
    oneshot
service server_list /system/bin/autochmod.sh "server"
    class core
    user root
    disabled
    oneshot
service dump_sys /system/bin/autochmod.sh "dump"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
service dump_state /system/bin/autochmod.sh "dumpstate"
    class core
    user root
    disabled
    oneshot
service tranfer /system/bin/autochmod.sh "tranfer"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
service tranfer_tomb /system/bin/autochmod.sh "tranfer_tombstone"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
service tranfer_anr /system/bin/autochmod.sh "tranfer_anr"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
service logcatsdcard /system/bin/autochmod.sh "main"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled

service logcatradio /system/bin/autochmod.sh "radio"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled

service logcatevent /system/bin/autochmod.sh "event"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled

#Jianping.Zheng@Swdp.Android.Stability.Crash,2017/04/04,add for record performance
service perf_record /system/bin/autochmod.sh "perf_record"
    class core
    user root
    disabled
    seclabel u:r:perf_record:s0

#Jianping.Zheng@PSW.Android.Stability.Crash,2017/05/08,add for systemserver futex_wait block check
service checkfutexwait /system/bin/autochmod.sh "checkfutexwait"
    class core
    user root
    disabled
#end, add for systemserver futex_wait block check

#Fei.Mo@PSW.BSP.Sensor, 2017/09/01 ,Add for power monitor top info
service thermal_top /system/bin/autochmod.sh "thermal_top"
    class core
    user root
    disabled
    oneshot

service dumpenvironment /system/bin/autochmod.sh "dumpenvironment"
    class core
    user root
    disabled
    oneshot
#ifdef VENDOR_EDIT
#Li.Liu@PSW.AD.OppoDebug.Feedback.1050853,2017/12/20, Add for Feedback can not get some files
    seclabel u:r:rutilsdaemon:s0
#endif

service logcatkernel /system/bin/autochmod.sh "kernel"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service cleanlog /system/bin/autochmod.sh "clean"
    class core
    user root
    disabled
    oneshot
service  tcpdumplog /system/bin/autochmod.sh "tcpdump"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
service fingerprintlog /system/bin/autochmod.sh "fingerprint"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service fplogqess /system/bin/autochmod.sh "fpqess"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

#ifdef VENDOR_EDIT
#Horn@Swdp.Android.Boot, 2015/03/27, Modify for remove suid of tcpdump . suid bit will be set only when  sys.debug = 1
service enabletcpdump /system/bin/autochmod.sh "enabletcpdump"
    class core
    user root
    disabled
    oneshot
#endif

#ifdef VENDOR_EDIT
#Qianyou.Chen@PSW.Android.OppoDebug.LogKit, 2017/04/12, add for wifi packet log
#ifdef VENDOR_EDIT
#Xiao.Liang@PSW.CN.WiFi.Basic.Log.1072015, 2018/10/21, Modify for collecting wifi driver log
#service prepacketlog /system/bin/autochmod.sh "prepacketlog"
#    class core
#    user root
#    disabled
#    oneshot
#
#service wifipktlogtransf /system/bin/autochmod.sh "wifipktlogtransf"
#    class core
#    user root
#   disabled
#    oneshot
#else /* VENDOR_EDIT */

service prepacketlog /vendor/bin/vendor.autochmod.sh "prepacketlog"
    class core
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot

service wifipktlogtransf /vendor/bin/vendor.autochmod.sh "wifipktlogtransf"
    class core
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot
service wifidriverlog /vendor/bin/vendor.autochmod.sh "wifidriverlog"
    class core
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot
service setiwprivpkt0 /system/bin/autochmod.sh "setiwprivpkt0"
    class core
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot

service setiwprivpkt1 /system/bin/autochmod.sh "setiwprivpkt1"
    class core
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot

service setiwprivpkt4 /system/bin/autochmod.sh "setiwprivpkt4"
    class core
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot

on property:oppo.wifi.ftm=1
    stop wifidriverlog

#endif /*VENDOR_EDIT*/

service pktcheck /system/bin/autochmod.sh "pktcheck"
    class core
    user root
    oneshot
#endif /*VENDOR_EDIT*/

##ifdef VENDOR_EDIT
#Boning.Li@Swdp.Android.OppoDebug.LogKit, 2016/08/06, add screen record for oppo log.
service screen_record /system/bin/autochmod.sh "screen_record"
    class core
    user root
    disabled
    oneshot
#endif /*VENDOR_EDIT*/

#ifdef VENDOR_EDIT
#RunSheng.Pei@Swdp.Android.OppoDebug.LogKit, 2016/11/20, add screen record for oppo log.
service backupscr /system/bin/autochmod.sh "screen_record_backup"
    class core
    user root
    disabled
    oneshot
#endif /*VENDOR_EDIT*/

#ifdef VENDOR_EDIT
#Yanzhen.Feng@Swdp.Android.OppoDebug.LayerDump, 2015/12/09, Add for SurfaceFlinger Layer dump
service layerdump /system/bin/autochmod.sh "layerdump"
    class core
    user root
    disabled
    oneshot
#endif /* VENDOR_EDIT */

#ifdef VENDOR_EDIT
#Deliang.Peng@MultiMedia.Display.Service.Log, 2017/3/31,add for dump sf back trace
service sfdump /system/bin/autochmod.sh "sfdump"
    class core
    user root
    disabled
    oneshot

service sfsystrace /system/bin/autochmod.sh "sfsystrace"
    class core
    user root
    disabled
    oneshot

#endif

#ifdef VENDOR_EDIT
#Yanzhen.Feng@Swdp.Android.OppoDebug, 2017/03/20, Add for systrace on phone
service cont_systrace /system/bin/autochmod.sh "cont_systrace"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
#endif /* VENDOR_EDIT */

#ifdef VENDOR_EDIT
#fangpan@Swdp.shanghai, 2017/06/05, Add for systrace snapshot mode
service snaptrace_on /system/bin/autochmod.sh "systrace_trigger_start"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service snaptrace_off /system/bin/autochmod.sh "systrace_trigger_stop"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service snaptrace /system/bin/autochmod.sh "systrace_snapshot"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
#endif /* VENDOR_EDIT */

#ifdef VENDOR_EDIT
#Jianping.Zheng@Swdp.Android.Stability.Crash, 2016/08/09, Add for logd memory leak workaround
service checklogdmemleak /system/bin/autochmod.sh "check_logd_memleak"
    class core
    user root
    disabled
    oneshot
#endif /* VENDOR_EDIT */

#ifdef VENDOR_EDIT
#Zhihao.Li@MultiMedia.AudioServer.FrameWork, 2016/10/19, Add for clean pcm dump file.
service cleanpcmdump /system/bin/autochmod.sh "cleanpcmdump"
    class core
    user root
    disabled
    oneshot
#endif /* VENDOR_EDIT */

service clearcurrentlog /system/bin/autochmod.sh "clearcurrentlog"
    class core
    user root
    disabled
    oneshot

service calcutelogsize /system/bin/autochmod.sh "calcutelogsize"
    class core
    user root
    disabled
    oneshot

service movescreenrecord /system/bin/autochmod.sh "movescreenrecord"
    class core
    user root
    disabled
    oneshot

service cleardataoppolog /system/bin/autochmod.sh "cleardataoppolog"
    class core
    user root
    disabled
    oneshot

service initcache /system/bin/autochmod.sh "initcache"
    class core
    user root
    disabled
    oneshot

service logcatcache /system/bin/autochmod.sh "logcatcache"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service radiocache /system/bin/autochmod.sh "radiocache"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service eventcache /system/bin/autochmod.sh "eventcache"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service kernelcache /system/bin/autochmod.sh "kernelcache"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service tcpdumpcache /system/bin/autochmod.sh "tcpdumpcache"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service fingerprintcache /system/bin/autochmod.sh "fingerprintcache"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service fplogcache /system/bin/autochmod.sh "fplogcache"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service log_observer /system/bin/autochmod.sh "log_observer"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot

service junklogcat /system/bin/autochmod.sh "junklogcat"
    class main
    user root
    disabled
    oneshot

service junkdmesg /system/bin/autochmod.sh "junkdmesg"
    class main
    user root
    disabled
    oneshot

service junkststart /system/bin/autochmod.sh "junkststart"
    class main
    user root
    disabled
    oneshot

service junkststop /system/bin/autochmod.sh "junkststop"
    class main
    user root
    disabled
    oneshot

#ifdef VENDOR_EDIT
#Canjie.Zheng@Swdp.Android.OppoDebug.LogKit, 2016/09/13, add for copy pstore
service cppstore /system/bin/autochmod.sh "cppstore"
    class main
    user root
    disabled
    oneshot
#endif  VENDOR_EDIT
#ifdef VENDOR_EDIT
#Canjie.Zheng@Swdp.Android.OppoDebug.JunkLog, 2016/08/04, add for junk log.
service junklog /system/bin/junklogcollector
    class main
    user system
    group system sdcard_rw sdcard_r

#endif /* VENDOR_EDIT */

#Linjie.Xu@PSW.AD.Power.PowerMonitor.1104067, 2018/01/17, Add for OppoPowerMonitor get dmesg at O
service opmgetdmesg /system/bin/autochmod.sh "kernelcacheforopm"
    class main
    user root
    disabled
    oneshot

on post-fs-data
   mkdir /data/oppo_log 777
   mkdir /data/ramdump 770 system system


service logpreprocess /system/bin/autochmod.sh "logpreprocess"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0    
    disabled
    oneshot

on property:persist.sys.assert.panic=true
   start initcache
   start logpreprocess
   start prepacketlog
   start log_observer
   start inittpdebug

#ifdef VENDOR_EDIT
#Xiao.Liang@PSW.Wifi.Basic.Log.1072015,2018/10/21, add for collecting wifi driver log
   restart wifidriverlog
#endif

on property:sys.oppo.collectcache.start=true
   start logcatcache
   start radiocache
   start eventcache
   start kernelcache
   start tcpdumpcache
   start fingerprintcache
   start fplogcache

on property:sys.oppo.collectlog.start=true
   start logcatsdcard
   start logcatradio
   start logcatevent
   start logcatkernel
   start tcpdumplog
   start fingerprintlog
   start fplogqess
   start cppstore
#ifdef VENDOR_EDIT
#Canjie.Zheng@Swdp.Android.OppoDebug.JunkLog,2016/07/25,add for junklog
#start or stop base on the property
on property:persist.sys.oppo.junklog=true
    start junklog

on property:persist.sys.oppo.junklog=false
    start junklog
#endif VENDOR_EDIT

on property:sys.oppo.tranfer=true
    stop logcatsdcard
    stop logcatevent
    stop logcatkernel
    stop logcatradio
    stop tcpdumplog
    stop fingerprintlog
    stop fplogqess
    stop log_observer
    start tranfer
    setprop persist.sys.assert.panic false

#ifdef VENDOR_EDIT
#Canjie.Zheng@Swdp.Android.OppoDebug.LogKit,2017/03/09, add for Sensor.logger
service resetlogpath /system/bin/autochmod.sh "resetlogpath"
    class main
    user root
    disabled
    oneshot
#endif

#ifdef VENDOR_EDIT
#Jianping.Zheng@Swdp.Android.Stability.Crash,2017/04/04,add for record performance
on property:persist.sys.oppo.perfrecord=true
    start perf_record

on property:persist.sys.oppo.perfrecord=false
    stop perf_record
#endif VENDOR_EDIT

#ifdef VENDOR_EDIT
#Wenzhen.Lin@Swdp.Android.OppoDebug.JunkLog,2017/4/19,add for pack up junk log
service junklogmonitor /system/bin/autochmod.sh "junklogmonitor"
    class main
    user system
    group system sdcard_rw sdcard_r
    disabled
    oneshot
#endif VENDOR_EDIT

#Jianping.Zheng@PSW.Android.Stability.Crash,2017/05/08,add for systemserver futex_wait block check
on property:persist.sys.oppo.checkfutexwait=true
    start checkfutexwait

on property:persist.sys.oppo.checkfutexwait=false
    stop checkfutexwait
#end, add for systemserver futex_wait block check

#ifdef VENDOR_EDIT
#Canjie.Zheng@Swdp.Android.OppoDebug.LogKit,2016/11/28,add for tp
service gettpinfo /system/bin/autochmod.sh "gettpinfo"
    class main
    user root
    disabled
    oneshot

service inittpdebug /system/bin/autochmod.sh "inittpdebug"
    class main
    user root
    disabled
    oneshot

service settplevel /system/bin/autochmod.sh "settplevel"
    class main
    user root
    disabled
    oneshot

service rmminidump /system/bin/autochmod.sh "rmminidump"
    class main
    user root
    disabled
    oneshot


service readdump /system/bin/autochmod.sh "readdump"
    class main
    user root
    oneshot

#Canjie.Zheng@PSW.AD.OppoDebug.LogKit.1078692, 2017/11/20, Add for iotop
service getiotop /system/bin/autochmod.sh "getiotop"
    class main
    user root
    oneshot

on property:sys.oppo.minidump=on
    write /sys/module/msm_poweroff/parameters/download_mode 1

on property:sys.oppo.minidump=off
    write /sys/module/msm_poweroff/parameters/download_mode 0

on property:persist.sys.assert.panic=false
    start inittpdebug
    start wifipktlogtransf
#ifdef VENDOR_EDIT
#Canjie.Zheng@Swdp.Android.OppoDebug.LogKit,2017/03/09, add for Sensor.logger
    start resetlogpath
#endif
#ifdef VENDOR_EDIT
#Xiao.Liang@PSW.Wifi.Basic.Log.1072015,2018/10/21, add for collecting wifi driver log
    restart wifidriverlog
    chmod 0770 /data/vendor/wifi
#endif

on property:persist.sys.oppodebug.tplevel=*
    start settplevel

#RunSheng.Pei@Swdp.Android.OppoDebug.AssertTip, 2017/02/16, add for asserttip begin:{
on property:persist.sys.assert.state=true
    start oppoasserttip
#end.

#endif VENDOR_EDIT


#add for new log kit begin
service tranfer2 /system/bin/autochmod.sh "tranfer2"
    class core
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot

service deleteOrigin /system/bin/autochmod.sh "deleteOrigin"
    class core
    user root
    disabled
    oneshot

service deleteFolder /system/bin/autochmod.sh "deleteFolder"
    class core
    user root
    disabled
    oneshot

service testKit /system/bin/autochmod.sh "testkit"
    class core
    user root
    disabled
    oneshot

service calSize /system/bin/autochmod.sh "calculateFolderSize"
    class core
    user root
    disabled
    oneshot

service testassert /system/bin/autochmod.sh "test"
   class core
   user root
   disabled
   oneshot

on property:persist.sys.assert.test=true
    start testassert
    start logpreprocess
    start tranfer2
#endif
#add for new log kit end

#ifdef VENDOR_EDIT
#Haoran.Zhang@PSW.AD.BuildConfig.StandaloneUserdata.1143522, 2017/09/13, Modify for [read new prop for feature StandaloneUserdata] 
on post-fs-data
   start datarefresh

service datarefresh /system/bin/sh /system/bin/autochmod.sh "userdatarefresh"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
#endif
#end add
#ifdef VENDOR_EDIT
#Weitao.Chen@PSW.AD.Stability.Crash.1295294, 2018/03/01, Add for trying to recover from sysetm hang
on property:persist.sys.oppo.scanstage=true
   start recover_hang

service recover_hang /system/bin/sh /system/bin/autochmod.sh "recover_hang"
    class core
    user root
    seclabel u:r:rutilsdaemon:s0
    disabled
    oneshot
#endif

#Canjie.Zheng@PSW.AD.OppoDebug.CriticalLog.1067207, 2016/01/07, Add for critical log.
service criticallog /system/bin/criticallog
    class main
    user system
    group system
#ifdef VENDOR_EDIT
#Jian.Wang@PSW.CN.WiFi.Basic.Log.1162003, 2018/7/02, Add for dynamic collect wifi mini dump
service enablewifidump /system/bin/autochmod.sh "enablewifidump"
    class core
    user root
    disabled
    oneshot

service disablewifidump /system/bin/autochmod.sh "disablewifidump"
    class core
    user root
    disabled
    oneshot

service collectwifidmesg /system/bin/autochmod.sh "collectwifidmesg"
    class main
    user root
    disabled
    oneshot
#endif /*VENDOR_EDIT*/

#ifdef VENDOR_EDIT
#Laixin@PSW.CN.WiFi.Basic.Switch.1069763, 2018/09/03, Add for collect wifi switch log
service collectWifiSwitchLog /system/bin/autochmod.sh "collectWifiSwitchLog"
    class main
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot

service packWifiSwitchLog /system/bin/autochmod.sh "packWifiSwitchLog"
    class main
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot

on property:sys.oppo.wifi.switch.log.stop=1
    start packWifiSwitchLog

service mvWifiSwitchLog /system/bin/autochmod.sh "mvWifiSwitchLog"
    class main
    user root
    disabled
    seclabel u:r:rutilsdaemon:s0
    oneshot
#endif /*VENDOR_EDIT*/

#ifdef VENDOR_EDIT
#Xiao.Liang@PSW.CN.WiFi.Basic.SoftAP.1610391, 2018/10/30, Modify for reading client devices name from /data/misc/dhcp/dnsmasq.leases
service changedhcpfolderpermissions /system/bin/autochmod.sh "changedhcpfolderpermissions"
    class main
    user root
    disabled
    oneshot
#endif /* VENDOR_EDIT */

on property:persist.sys.assert.state=true
    start oppoasserttip