-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.amlogic.rc
627 lines (513 loc) · 20.4 KB
/
init.amlogic.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
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
import init.amlogic.usb.rc
import init.amlogic.board.rc
import init.amlogic.wifi.rc
import init.mtk.rc
on early-init
on init
# Support legacy paths
symlink /sdcard /mnt/sdcard
mkdir /factory
chown system wifi /dev/wifi_power
chmod 0660 /dev/wifi_power
chmod 666 /sys/class/audiodsp/codec_fatal_err
chmod 666 /sys/class/ppmgr/angle
chmod 666 /sys/class/vfm/map
chmod 666 /sys/class/video/axis
chmod 666 /sys/class/video/disable_video
chmod 666 /sys/class/tsync/enable
chmod 666 /sys/class/tsync/pts_pcrscr
chmod 666 /sys/class/tsync/av_threshold_min
chmod 666 /sys/class/video/screen_mode
chmod 666 /sys/class/vdec/poweron_clock_level
chmod 666 /sys/module/ionvideo/parameters/freerun_mode
chown media system /sys/class/graphics/fb0/osd_afbcd
chmod 666 /sys/class/video/blackout_policy
chmod 666 /sys/class/tsync/vpause_flag
chmod 0666 /dev/amstream_sub_read
# needed for SystemUI screenshot
chmod 666 /dev/amvideocap0
# for zram
mkdir /swap_zram0 0700 root root
# for tee
mkdir /tee 0700 system system
confirm_formated_ext ext4 /dev/block/tee /tee 1024 1024
on post-fs
start tee_supplicant
on post-fs-data
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 system dhcp
mkdir /data/misc/etc 0777 system pppoe
mkdir /data/misc/etc/ppp 0777 system pppoe
chown system system /etc/ppp
chmod 0770 /etc/ppp
#save log
mkdir /data/log 0771 log log
mkdir /data/log/dontpanic 0771 log log
# we will remap this as /storage/sdcard0 with the sdcard fuse tool
mkdir /data/media 0770 media_rw media_rw
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
on boot
mount debugfs /sys/kernel/debug /sys/kernel/debug
# Set up kernel tracing, but disable it by default
chmod 0222 /sys/kernel/debug/tracing/trace_marker
write /sys/kernel/debug/tracing/tracing_on 0
#bluetooth
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chmod 0660 /proc/bluetooth/sleep/btwrite
chmod 0660 /proc/bluetooth/sleep/lpm
# change back to bluetooth from system
chown bluetooth net_bt_stack /data/misc/bluetooth
write /sys/block/mmcblk0/queue/read_ahead_kb 2048
write /sys/block/mmcblk1/queue/read_ahead_kb 2048
chown media system /sys/class/amhdmitx/amhdmitx0/aud_ch
chmod 0664 /sys/class/amhdmitx/amhdmitx0/aud_ch
insmod /system/lib/aml_thermal.ko
chown media system /sys/class/tsync/pts_video
chown media system /sys/class/tsync/pts_audio
chown media system /sys/class/tsync/pts_pcrscr
chown media system /sys/class/tsync/event
chown media system /sys/class/tsync/mode
chown media system /sys/class/tsync/enable
chown media system /sys/class/tsync/av_threshold_min
chown media system /sys/class/tsync/av_threshold_max
chown system system /sys/class/graphics/fb0/blank
chown media system /sys/class/graphics/fb0/free_scale_switch
chown media system /sys/class/graphics/fb1/blank
chown media system /sys/class/graphics/fb0/order
chown media system /sys/class/graphics/fb1/order
chown media system /sys/class/graphics/fb0/enable_key
chown media system /sys/class/graphics/fb0/enable_key_onhold
chown media system /sys/module/amlvideodri/parameters/freerun_mode
chown media system /sys/module/ionvideo/parameters/freerun_mode
chmod 0664 /sys/class/graphics/fb0/blank
chmod 0664 /sys/class/graphics/fb1/blank
chmod 0664 /sys/class/graphics/fb0/free_scale_switch
chown media system /sys/class/video/blackout_policy
chown media system /sys/class/video/screen_mode
chown media system /sys/class/video/axis
chown media system /sys/class/video/disable_video
chown media system /sys/class/video/zoom
chown media system /sys/class/video/free_keep_buffer
chown media system /sys/class/video/free_cma_buffer
chown media system /sys/class/codec_mm/tvp_enable
chown media system /sys/class/ppmgr/angle
chown media system /sys/class/ppmgr/disp
chown system system /sys/class/ppmgr/ppscaler
chown media system /sys/class/ppmgr/ppscaler_rect
chown media system /sys/class/ppmgr/vtarget
chown media system /sys/class/amaudio/audio_channels_mask
chown media system /sys/class/amaudio/enable_resample
chown media system /sys/class/amaudio/resample_type
chown media system /sys/class/amaudio/debug
chown system system /sys/class/audiodsp/digital_raw
chown system system /sys/class/audiodsp/ac3_drc_control
chown media system /sys/class/audiodsp/dts_dec_control
chmod 0664 /sys/class/audiodsp/dts_dec_control
chmod 0666 /dev/audiodsp_pcmenc
chmod 0666 /dev/audio_spdif
chmod 0664 /sys/class/amaudio/debug
chmod 0666 /dev/ilitek_ctrl
chmod 0660 /dev/wifi_power
# default support XBMC
chmod 666 /sys/class/video/axis
chmod 666 /sys/class/video/screen_mode
chmod 666 /sys/class/video/disable_video
chmod 666 /sys/class/tsync/pts_pcrscr
chmod 666 /dev/amstream_abuf
chmod 666 /dev/amstream_hevc
chmod 666 /dev/amstream_mpps
chmod 666 /dev/amstream_mpts
chmod 666 /dev/amstream_rm
chmod 666 /dev/amstream_sub
chmod 666 /dev/amstream_sub_read
chmod 666 /dev/amstream_userdata
chmod 666 /dev/amstream_vbuf
chmod 666 /dev/amvideo
#add for XBMC BlueRay 3d and audio Passthrough
chmod 666 /sys/class/audiodsp/digital_raw
chmod 666 /sys/class/audiodsp/digital_codec
chmod 666 /sys/class/ppmgr/ppmgr_3d_mode
chmod 666 /sys/class/video/blackout_policy
chmod 666 /dev/snd/controlC0
chmod 666 /dev/snd/pcmC0D0c
chmod 666 /dev/snd/pcmC0D0p
chmod 666 /dev/snd/pcmC0D1c
chmod 666 /dev/snd/pcmC0D1p
chmod 666 /dev/snd/timer
chmod 666 /sys/devices/platform/spdif-dit.0/spdif_mute
chmod 666 /sys/class/amhdmitx/amhdmitx0/config
chown system system /sys/class/subtitle/enable
chown system system /sys/class/subtitle/total
chown system system /sys/class/subtitle/width
chown system system /sys/class/subtitle/height
chown system system /sys/class/subtitle/type
chown system system /sys/class/subtitle/curr
chown system system /sys/class/subtitle/size
chown system system /sys/class/subtitle/data
chown system system /sys/class/subtitle/startpts
chown system system /sys/class/subtitle/fps
chown system system /sys/class/subtitle/subtype
chown media system /sys/class/audiodsp/codec_fatal_err
chown media system /sys/class/subtitle/index
chown media system /sys/class/audiodsp/digital_codec
# DVB
chmod 0666 /dev/dvb0.frontend0
chmod 0666 /dev/dvb0.demux0
chmod 0666 /dev/dvb0.demux1
chmod 0666 /dev/dvb0.demux2
chmod 0666 /dev/dvb0.dvr0
chmod 0666 /dev/dvb0.dvr1
chmod 0666 /dev/dvb0.dvr2
chown media system /dev/dvb0.frontend0
chown media system /dev/dvb0.demux0
chown media system /dev/dvb0.demux1
chown media system /dev/dvb0.demux2
chown media system /dev/dvb0.dvr0
chown media system /dev/dvb0.dvr1
chmod media system /dev/dvb0.dvr2
chown media system /sys/class/stb/demux0_source
chown media system /sys/class/stb/demux1_source
chown media system /sys/class/stb/demux2_source
chown media system /sys/class/stb/source
chown media system /sys/class/stb/asyncfifo0_source
chown media system /sys/class/stb/asyncfifo1_source
chown media system /sys/class/stb/asyncfifo0_flush_size
chown media system /sys/class/stb/asyncfifo1_flush_size
chown media system /sys/class/stb/video_pts
chown media system /sys/class/stb/audio_pts
chown media system /sys/class/stb/dsc_source
chmod 0660 /dev/amaudio_ctl
chown media system /sys/class/tsync/pcr_recover
chown media system /sys/module/amvdec_h264/parameters/dec_control
chown media system /sys/module/amvdec_mpeg12/parameters/dec_control
chown media system /sys/module/di/parameters/bypass_hd
chown media system /sys/module/di/parameters/bypass_all
chown media system /sys/module/amvideo/parameters/smooth_sync_enable
chown media system /sys/module/amvdec_h264/parameters/error_recovery_mode
chown media system /sys/module/deinterlace/parameters/deinterlace_mode
chown media system /sys/class/graphics/fb0/block_mode
# HDMI/LCD switch
chown system system /sys/class/display/mode
chown media system /sys/class/display/axis
chown system system /sys/class/graphics/fb0/scale
chown system system /sys/class/graphics/fb1/scale
chown system system /sys/class/graphics/fb0/scale_axis
chown system system /sys/class/graphics/fb1/scale_axis
chown system system /sys/class/amhdmitx/amhdmitx0/disp_mode
chown system system /sys/class/amhdmitx/amhdmitx0/cec_config
chown system system /sys/class/amhdmitx/amhdmitx0/phy_addr
chown system system /sys/class/amhdmitx/amhdmitx0/hpd_state
chown system system /sys/class/amhdmitx/amhdmitx0/cec
chown system system /sys/class/amhdmitx/amhdmitx0/cec_lang_config
chown system system /sys/class/amhdmitx/amhdmitx0/config
chown system system /sys/class/amhdmitx/amhdmitx0/avmute
chmod 644 /sys/class/amhdmitx/amhdmitx0/avmute
chown media system /sys/class/amhdmitx/amhdmitx0/aud_output_chs
chown media system /sys/class/switch/hdmi/state
chmod 0660 /sys/class/switch/hdmi/state
chown media system /sys/devices/virtual/switch/hdmi/state
chmod 0660 /sys/devices/virtual/switch/hdmi/state
chown media system /sys/class/vfm/map
# Free scale
chown system system /sys/class/graphics/fb0/free_scale
chown system system /sys/class/graphics/fb0/scale_width
chown system system /sys/class/graphics/fb0/scale_height
chown system system /sys/class/graphics/fb0/free_scale_axis
chown system system /sys/class/graphics/fb1/free_scale
chown system system /sys/class/graphics/fb1/scale_width
chown system system /sys/class/graphics/fb1/scale_height
chown media system /sys/class/graphics/fb0/request2XScale
chown system system /sys/class/graphics/fb0/freescale_mode
chown system system /sys/class/graphics/fb0/free_scale_axis
chown system system /sys/class/graphics/fb0/window_axis
# CPU scaling
chown system system /sys/class/thermal/thermal_zone0/mode
chown system system /sys/class/thermal/thermal_zone1/mode
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chown system system /sys/devices/system/cpu/cpu0/cpufreq/hmp_boost
chown system system /sys/devices/system/cpu/cpufreq/conservative/freq_step
chown system system /sys/devices/system/cpu/cpufreq/performance2/sampling_rate
chown system system /sys/devices/system/cpu/cpufreq/performance2/down_threshold
chown system system /sys/devices/system/cpu/cpufreq/performance2/up_threshold
chown system system /sys/devices/system/cpu/cpufreq/conservative/sampling_rate
chown system system /sys/devices/system/cpu/cpufreq/conservative/down_threshold
chown system system /sys/devices/system/cpu/cpufreq/conservative/up_threshold
chown system system /sys/class/mali_freq/max
chown system system /sys/class/freq_limit/limit
chown system system /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/class/thermal/thermal_zone0/mode
chmod 664 /sys/class/thermal/thermal_zone1/mode
chmod 664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 664 /sys/devices/system/cpu/cpu0/cpufreq/hmp_boost
chmod 664 /sys/devices/system/cpu/cpufreq/conservative/freq_step
chmod 664 /sys/devices/system/cpu/cpufreq/performance2/sampling_rate
chmod 664 /sys/devices/system/cpu/cpufreq/performance2/down_threshold
chmod 664 /sys/devices/system/cpu/cpufreq/performance2/up_threshold
chmod 664 /sys/devices/system/cpu/cpufreq/conservative/sampling_rate
chmod 664 /sys/devices/system/cpu/cpufreq/conservative/down_threshold
chmod 664 /sys/devices/system/cpu/cpufreq/conservative/up_threshold
chmod 664 /sys/class/mali_freq/max
chmod 664 /sys/devices/system/cpu/cpu1/online
chown system system /sys/devices/system/clocksource/clocksource0/current_clocksource
# usbpm
chown system system /sys/devices/dwc2_a/peri_power
chown system system /sys/devices/dwc2_a/peri_sleepm
chown system system /sys/devices/dwc2_a/peri_otg_disable
chown system system /sys/devices/dwc2_b/peri_sleepm
chown system system /sys/devices/dwc2_b/peri_otg_disable
chown system system /sys/class/aml_mod/mod_off
chown system system /sys/class/aml_mod/mod_on
# hdcp2
write /sys/class/unifykeys/attach 1
chown media root /sys/class/unifykeys/name
chown media root /sys/class/unifykeys/read
write /proc/sys/net/ipv4/tcp_max_syn_backlog 2048
mkdir /data/misc/hdcp 0770 media media
chown media root /sys/devices/platform/crypto_device/status
chown media root /sys/devices/platform/crypto_device/algname
chown media root /sys/devices/platform/crypto_device/keysize
chown media root /sys/devices/platform/crypto_device/keyaddr
chown media root /sys/devices/platform/crypto_device/srcaddr
chown media root /sys/devices/platform/crypto_device/dstaddr
chown media root /sys/devices/platform/crypto_device/size
chown media root /sys/devices/platform/crypto_device/dir
chown media system /sys/class/mpgpu/scale_mode
chmod 664 /sys/class/mpgpu/scale_mode
chown system system /sys/class/mpgpu/mpgpucmd
chmod 664 /sys/class/mpgpu/mpgpucmd
#di detect 3D
chmod 664 /sys/module/di/parameters/det3d_en
chmod 664 /sys/module/di/parameters/prog_proc_config
chown root system /sys/module/di/parameters/det3d_en
chown root system /sys/module/di/parameters/prog_proc_config
write /sys/module/amvdec_h264/parameters/error_recovery_mode 1
start sdcard
write /sys/class/vfm/map "rm default"
write /sys/class/vfm/map "add default decoder ppmgr deinterlace amvideo"
start bootvideo
on fs
mount_all /fstab.amlogic
setprop ro.crypto.fuse_sdcard true
swapon_all /fstab.amlogic
on aml-firstboot-init
#format data and cache patrition if not exist
wait /dev/block/data 20
confirm_formated ext4 /dev/block/data /data
wait /dev/block/cache 20
confirm_formated ext4 /dev/block/cache /cache
service system_control /system/bin/systemcontrol
class core
user root
group system
seclabel u:r:system_control:s0
# virtual sdcard daemon running as media_rw (1023)
#service sdcard /system/bin/sdcard -u 1023 -g 1023 /data/media /mnt/shell/emulated
# class late_start
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
service fuse_udisk0 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/udisk0 /storage/udisk0
class late_start
disabled
service fuse_udisk1 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/udisk1 /storage/udisk1
class late_start
disabled
service fuse_sr0 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sr0 /storage/sr0
class late_start
disabled
service fuse_loop /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/loop /storage/loop
class late_start
disabled
# Set watchdog timer to 30 seconds and pet it every 10 seconds to get a 20 second margin
service watchdogd /sbin/watchdogd 10 20
class core
disabled
seclabel u:r:watchdogd:s0
service dhcpcd_eth0 /system/bin/dhcpcd -ABKLG
class main
disabled
oneshot
service dhcpcd_usbnet0 /system/bin/dhcpcd -ABKLG
class main
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot
# on userdebug and eng builds, enable kgdb on the serial console
on property:ro.debuggable=1
write /sys/module/kgdboc/parameters/kgdboc ttyFIQ2
write /sys/module/fiq_debugger/parameters/kgdb_enable 1
service remotecfg /system/bin/remotecfg /system/etc/remote.conf
class main
oneshot
seclabel u:r:remotecfg:s0
service ug_remotecfg /system/bin/remotecfg /system/etc/ug_remote.conf
class main
oneshot
seclabel u:r:remotecfg:s0
service pppoe_wrapper /system/bin/pppoe_wrapper
class main
group system inet
oneshot
seclabel u:r:pppoe_wrapper:s0
service usbpm /system/bin/usbtestpm
class main
user system
group system
seclabel u:r:usbpm:s0
disabled
service imageserver /system/bin/imageserver
class main
user root
group system
seclabel u:r:imageserver:s0
service bootvideo /system/bin/bootplayer /system/etc/bootvideo
class main
user root
group system
disabled
oneshot
service instaboot /system/bin/instabootserver
class core
disabled
user root
group root
seclabel u:r:instaboot:s0
on property:config.disable_instaboot=false
start instaboot
on property:ug_remotecfg.config=1
start ug_remotecfg
on property:ug_remotecfg.config=2
start remotecfg
on property:instaboot.status=completed
start remotecfg
on property:dev.bootcomplete=1
start usbpm
# fix flinger crash
write sys/class/video/disable_video 2
# disable cursor overlay
write sys/class/graphics/fb1/osd_clear 1
#Root Access for users support
service daemonsu /system/xbin/daemonsu --auto-daemon
class main
oneshot
service get_root /system/bin/suconfig get_root
class main
disabled
oneshot
service get_root_silent /system/bin/suconfig get_root_silent
class main
disabled
oneshot
service restore_root /system/bin/suconfig restore_root
class main
disabled
oneshot
service factory_reset /system/bin/suconfig factory_reset
class main
disabled
oneshot
on property:misc.root.state=1
start get_root
on property:misc.root.state=2
start get_root_silent
on property:misc.root.state=0
start restore_root
on property:misc.root.state=3
start factory_reset
#END Root Access for users support
#Samba Support
on property:app.samba.config=start
start samba_start
on property:app.samba.config=stop
start samba_stop
on property:app.samba.config=fixperms
start samba_fixperms
on property:app.samba.config=pass
start samba_pass
on property:app.samba.config=killallsamba
start samba_killallsamba
service samba_start /data/system/samba_________________ug/samba-rc start
class main
disabled
oneshot
service samba_stop /data/system/samba_________________ug/samba-rc stop
class main
disabled
oneshot
service samba_fixperms /data/system/samba_________________ug/samba-rc fixperms
class main
disabled
oneshot
service samba_pass /data/system/samba_________________ug/samba-rc pass
class main
disabled
oneshot
service samba_killallsamba /data/system/samba_________________ug/samba-rc killallsamba
class main
disabled
oneshot
#End samba
#Fireasy support
on early-boot
chmod 0666 /dev/tchip_rm
service remote /system/bin/remoted
class main
oneshot
ioprio rt 4
service enable_remote /system/bin/wifiremoteconfig enable_remote
class main
disabled
oneshot
service disable_remote /system/bin/wifiremoteconfig disable_remote
class main
disabled
oneshot
on property:app.wifiremote.config=1
start enable_remote
on property:app.wifiremote.config=0
start disable_remote
#End fireasy support
on property:vold.post_fs_data_done=1
start tee_supplicant
service hdcp_tx22 /system/bin/hdcp_tx22 \
-f /system/etc/firmware/firmware.le
class main
disabled
oneshot
service ddrtest /system/bin/ddrtest.sh
class main
user root
group root
oneshot
# logcat offline log
service logcat /system/bin/logcat -b system -b events -b main -b crash -K -n 10 -v threadtime -f /data/log/logcat.log -r 1000 -M
class main
user log
group log
seclabel u:r:logcat:s0