forked from jedld/device_samsung_gtexslte
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.gtexswifi_base.rc
executable file
·754 lines (630 loc) · 21.9 KB
/
init.gtexswifi_base.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
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
#init.gtexswifi_base.rc
import /init.board.rc
import /init.sc8830.usb.rc
on early-init
mount debugfs debugfs /sys/kernel/debug
# set core dump resource limit
setrlimit 4 2147483647 2147483647
# coredump file will not be generated in release version
write /proc/sys/kernel/core_pattern /dev/null
# radio pipe
mkdir /dev/rpipe 0550 radio radio
pipe 666 /dev/rpipe/ril.vt.0
pipe 666 /dev/rpipe/ril.vt.1
pipe 666 /dev/rpipe/ril.vt.2
on init
# Support Preload install apks
mkdir /preload 0771 system system
mkdir /productinfo 0771 system system
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/media_rw/extSdCard 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveA 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveB 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveC 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveD 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveE 0700 media_rw media_rw
mkdir /mnt/media_rw/UsbDriveF 0700 media_rw media_rw
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
export SECONDARY_STORAGE /storage/extSdCard
export LEGACY_STORAGE /storage/emulated/legacy
#Google FRP
symlink /dev/block/platform/sdio_emmc/by-name/PERSISTENT /dev/block/persistent
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
# map "real" external storages paths also in same way. backwards compatibility.
symlink /storage/extSdCard /mnt/extSdCard
symlink /storage/UsbDriveA /mnt/UsbDriveA
symlink /storage/UsbDriveB /mnt/UsbDriveB
symlink /storage/UsbDriveC /mnt/UsbDriveC
symlink /storage/UsbDriveD /mnt/UsbDriveD
symlink /storage/UsbDriveE /mnt/UsbDriveE
symlink /storage/UsbDriveF /mnt/UsbDriveF
mkdir /storage/extSdCard 0700 root root
mkdir /storage/UsbDriveA 0700 root root
mkdir /storage/UsbDriveB 0700 root root
mkdir /storage/UsbDriveC 0700 root root
mkdir /storage/UsbDriveD 0700 root root
mkdir /storage/UsbDriveE 0700 root root
mkdir /storage/UsbDriveF 0700 root root
# @}
chown system system /sys/class/power_supply/battery/hw_switch_point
chown system system /sys/class/power_supply/battery/save_capacity
#SPRD: Add support for install apk to internal sdcard @{
mkdir /mnt/secure/internal-asec 0700 root root
# @}
on fs
mount_all /fstab.sc8830
mount pstore pstore /sys/fs/pstore
setprop ro.crypto.fuse_sdcard true
symlink /system/res /res
symlink /system/bin /bin
# Support Preload install apks
mount ext4 /dev/block/platform/sdio_emmc/by-name/HIDDEN /preload nosuid nodev ro barrier=1
setprop storage.preload.complete 1
#Allow others to read fb devices
chmod 660 /dev/graphics/fb0
chmod 660 /dev/fb0
on post-fs
chown system system /productinfo
chmod 0771 /productinfo
insmod /system/lib/modules/mali.ko
insmod /system/lib/modules/trout_fm.ko
on post-fs-data
copy /system/etc/bluetooth/bt_stack.conf /data/misc/bluedroid/bt_stack.conf
chown bluetooth system /data/misc/bluedroid/bt_stack.conf
chmod 0640 /data/misc/bluedroid/bt_stack.conf
mkdir /data/local/media 0770 media system
mkdir /data/local/tmp/slog 0771
mkdir /data/local/tmp/slogmodem 0771
mkdir /data/anr 0771 system system
mkdir /data/tombstones 0771 system system
mkdir /data/corefile
chmod 775 /data/corefile
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
# Support audio loopback test
mkdir /dev/pipe 0755 system system
pipe 666 /dev/pipe/mmi.audio.ctrl
# Support audio parameter stored
chmod 660 /proc/cpt/cp_crash
chmod 660 /proc/cpt/wdtirq
chmod 660 /proc/cpt/stop
chmod 660 /proc/cpt/start
chmod 660 /proc/cpt/modem
chmod 660 /proc/cpt/dsp
chown system root /proc/cpt/cp_crash
chown system root /proc/cpt/wdtirq
chown system root /proc/cpt/stop
chown system root /proc/cpt/start
chown system root /proc/cpt/modem
chown system root /proc/cpt/dsp
chmod 660 /proc/cpw/cp_crash
chmod 660 /proc/cpw/wdtirq
chmod 660 /proc/cpw/stop
chmod 660 /proc/cpw/start
chmod 660 /proc/cpw/modem
chmod 660 /proc/cpw/dsp
chown system root /proc/cpw/cp_crash
chown system root /proc/cpw/wdtirq
chown system root /proc/cpw/stop
chown system root /proc/cpw/start
chown system root /proc/cpw/modem
chown system root /proc/cpw/dsp
chmod 660 /proc/cpwcn/cp_crash
chmod 660 /proc/cpwcn/wdtirq
chmod 660 /proc/cpwcn/stop
chmod 660 /proc/cpwcn/start
chmod 660 /proc/cpwcn/modem
chmod 660 /proc/cpwcn/dsp
chown system root /proc/cpwcn/cp_crash
chown system root /proc/cpwcn/wdtirq
chown system root /proc/cpwcn/stop
chown system root /proc/cpwcn/start
chown system root /proc/cpwcn/modem
chown system root /proc/cpwcn/dsp
chown system root /proc/mdbg
chown system root /proc/mdbg/assert
chown system root /proc/mdbg/wdtirq
chown system root /proc/mdbg/loopcheck
chown system root /proc/mdbg/at_cmd
chmod 555 /proc/mdbg
chmod 766 /proc/mdbg/assert
chmod 766 /proc/mdbg/wdtirq
chmod 766 /proc/mdbg/loopcheck
chmod 766 /proc/mdbg/at_cmd
chown system root /sys/class/rtcc/rtcc_trigger
on boot
chown system system /sys/module/mali/parameters/gpu_freq_cur
chown system system /sys/module/mali/parameters/gpu_freq_max_limit
chown system system /sys/module/mali/parameters/gpu_freq_min_limit
chown system system /sys/module/mali/parameters/gpu_freq_list
chown system system /sys/module/cpuidle/parameters/off
chown system system /sys/class/backlight/sprd_backlight/brightness
chown system system /sys/devices/system/cpu/cpuhotplug/cpu_num_min_limit
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
chown system system /sys/devices/system/cpu/cpufreq/sprdemand/cpu_hotplug_disable
chown system system /sys/devices/system/cpu/cpuhotplug/cpu_hotplug_disable
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
chown system system /sys/devices/system/cpu/cpu0/online
chown system system /sys/devices/system/cpu/cpu1/online
chown system system /sys/devices/system/cpu/cpu2/online
chown system system /sys/devices/system/cpu/cpu3/online
chown system system /sys/devices/system/cpu/cpufreq/sprdemand/boostpulse
chown system system /sys/devices/system/cpu/cpufreq/sprdemand/boost
chown system system /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_freq
chown system system /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_enable
chown system system /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_enable
chown system system /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_upthreshold
chown system system /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_downdifferential
chown media system /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_freq
chown media system /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_request
chown system system /dev/iq_mem
chown system system /sys/class/graphics/fb0/dynamic_pclk
chown system system /sys/class/graphics/fb0/dynamic_mipi_clk
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 0660 /sys/devices/system/cpu/cpufreq/sprdemand/cpu_hotplug_disable
chmod 0664 /sys/devices/system/cpu/cpuhotplug/cpu_hotplug_disable
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
chmod 0664 /sys/devices/system/cpu/cpu0/online
chmod 0664 /sys/devices/system/cpu/cpu1/online
chmod 0664 /sys/devices/system/cpu/cpu2/online
chmod 0664 /sys/devices/system/cpu/cpu3/online
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
chmod 0660 /sys/devices/system/cpu/cpufreq/sprdemand/boostpulse
chmod 0660 /sys/devices/system/cpu/cpufreq/sprdemand/boost
chmod 0660 /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_freq
chmod 0660 /sys/devices/platform/scxx30-dmcfreq.0/devfreq/scxx30-dmcfreq.0/ondemand/set_enable
chmod 0664 /dev/iq_mem
chmod 0660 /dev/sprd_bm
chmod 0660 /sys/class/graphics/fb0/dynamic_pclk
chmod 0660 /sys/class/graphics/fb0/dynamic_mipi_clk
chown system system /sys/class/thermal/cooling_device0/cur_ctrl_param
chown system system /sys/class/power_supply/battery/chg_cool_state
chown system system /sys/class/backlight/sprd_backlight/max_brightness
chown system system /sys/module/mali/parameters/gpu_freq_max_limit
# OTG_TEST
chown system radio /sys/class/host_notify/usb_otg/booster
chmod 0660 /sys/class/host_notify/usb_otg/booster
# chown for engineermode
chown system system /sys/class/power_supply/battery/stop_charge
chmod 0664 /sys/class/power_supply/battery/stop_charge
on charger
class_start core
start console
start slog
service poweroffalarm /system/bin/poweroff_alarm
disabled
oneshot
on alarm
class_start core
start drm
start media
start console
start slog
start poweroffalarm
on property:ro.board_ram_size=min
setprop zram.disksize 64
on property:ro.board_ram_size=low
setprop zram.disksize 200
write /proc/sys/vm/extra_free_kbytes 1024
write /sys/module/zram/parameters/total_mem_usage_percent 35
on property:ro.board_ram_size=mid
setprop zram.disksize 400
write /proc/sys/vm/extra_free_kbytes 2048
on property:ro.board_ram_size=high
setprop zram.disksize 600
write /proc/sys/vm/extra_free_kbytes 4096
on property:ro.config.zram.support=true
setprop sys.vm.swappiness 100
write /proc/sys/vm/page-cluster 0
start zram
service zram /system/xbin/zram.sh
disabled
oneshot
on property:ro.debuggable=1
write /sys/kernel/debug/fatal_dump/enable 1
chmod 777 /sys/kernel/debug/sc2713-regulator/vddarm/voltage
chmod 777 /sys/kernel/debug/sc2713-regulator/vddcore/voltage
chmod 777 /sys/kernel/debug/sprd-regulator/vddarm/voltage
chmod 777 /sys/kernel/debug/sprd-regulator/vddcore/voltage
chmod 755 /sys/kernel/debug
write /proc/sys/fs/suid_dumpable 1
write /sys/module/smsg/parameters/debug_enable 1
on property:ro.modem.t.count=1
write /proc/sim/0 t
on property:ro.modem.t.count=2
write /proc/sim/0 t
write /proc/sim/1 t
on property:ro.modem.t.count=3
write /proc/sim/0 t
write /proc/sim/1 t
write /proc/sim/2 t
on property:ro.modem.w.count=1
write /proc/sim/0 w
on property:ro.modem.w.count=2
write /proc/sim/0 w
write /proc/sim/1 w
on property:ro.modem.w.count=3
write /proc/sim/0 w
write /proc/sim/1 w
write /proc/sim/2 w
on property:ro.config.ksm.support=true
write /sys/kernel/mm/ksm/pages_to_scan 100
write /sys/kernel/mm/ksm/sleep_millisecs 500
write /sys/kernel/mm/ksm/run 1
# SPRD: add for theme setting @{
on property:universe_ui_support=true
start theme_init
service theme_init /system/bin/theme_init.sh
disabled
oneshot
# @}
# virtual sdcard daemon running as media_rw (1023)
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l -r /data/media /mnt/shell/emulated
class late_start
oneshot
service fuse_extSdCard /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d -f /mnt/media_rw/extSdCard /storage/extSdCard
class late_start
disabled
oneshot
service fuse_UsbDriveA /system/bin/sdcard -u 1023 -g 1023 -d -f /mnt/media_rw/UsbDriveA /storage/UsbDriveA
class late_start
disabled
oneshot
service fuse_UsbDriveB /system/bin/sdcard -u 1023 -g 1023 -d -f /mnt/media_rw/UsbDriveB /storage/UsbDriveB
class late_start
disabled
oneshot
service fuse_UsbDriveC /system/bin/sdcard -u 1023 -g 1023 -d -f /mnt/media_rw/UsbDriveC /storage/UsbDriveC
class late_start
disabled
oneshot
service fuse_UsbDriveD /system/bin/sdcard -u 1023 -g 1023 -d -f /mnt/media_rw/UsbDriveD /storage/UsbDriveD
class late_start
disabled
oneshot
service fuse_UsbDriveE /system/bin/sdcard -u 1023 -g 1023 -d -f /mnt/media_rw/UsbDriveE /storage/UsbDriveE
class late_start
disabled
oneshot
service fuse_UsbDriveF /system/bin/sdcard -u 1023 -g 1023 -d -f /mnt/media_rw/UsbDriveF /storage/UsbDriveF
class late_start
disabled
oneshot
#modem_control
service modem_control /system/bin/modem_control
class core
user system
group system radio shell
oneshot
service modemd /system/bin/modemd
class core
user system
group system radio shell
oneshot
service wcnd /system/bin/wcnd
class main
#user system
group system shell wifi inet bluetooth net_bt_stack
#oneshot
service wcnd_eng /system/bin/wcnd -G
class core
group system shell wifi inet bluetooth net_bt_stack
disabled
oneshot
service phoneserver_t /system/bin/phoneserver -m t
class core
user root
group radio system shell dhcp
disabled
oneshot
service phoneserver_w /system/bin/phoneserver -m w
class core
user root
group radio system shell dhcp
disabled
oneshot
service phoneserver_l /system/bin/phoneserver -m l
class core
user root
group radio system shell dhcp
disabled
oneshot
service phoneserver_tl /system/bin/phoneserver -m tl
class core
user root
group radio system shell dhcp
disabled
oneshot
service batterysrv /bin/batterysrv
class core
user system
group system
oneshot
service charge /bin/charge
class charger
user root
oneshot
#td rild service
service tril-daemon /system/bin/rild_sp -l /system/lib/libreference-ril_sp.so -m t -n 0
class core
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log
service tril-daemon1 /system/bin/rild_sp -l /system/lib/libreference-ril_sp.so -m t -n 1
class core
socket rild2 stream 660 root radio
socket rild-debug2 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log
service tril-daemon2 /system/bin/rild_sp -l /system/lib/libreference-ril_sp.so -m t -n 2
class core
socket rild3 stream 660 root radio
socket rild-debug3 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log
#wcdma rild service
service ril-daemon /system/bin/rild -l /system/lib/libreference-ril_sp.so -m w -n 0
class core
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell
service ril-daemon2 /system/bin/rild -l /system/lib/libreference-ril_sp.so -m w -n 1
class core
socket rild2 stream 660 root radio
socket rild-debug2 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell
service ril-daemon3 /system/bin/rild -l /system/lib/libreference-ril_sp.so -m w -n 2
class core
socket rild3 stream 660 root radio
socket rild-debug3 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell
#lte rild service
service lril-daemon /system/bin/rild_sp -l /system/lib/libreference-ril_sp.so -m l -n 0
class core
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell
#tl rild service
service tlril-daemon /system/bin/rild_sp -l /system/lib/libreference-ril_sp.so -m tl -n 0
class core
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell
service tlril-daemon1 /system/bin/rild_sp -l /system/lib/libreference-ril_sp.so -m tl -n 1
class core
socket rild2 stream 660 root radio
socket rild-debug2 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell
#RIL AT Distributor
service at_distributor /system/bin/at_distributor
class main
user root
group radio misc log
service engpcclientwcn /system/bin/engpc -p wcn -a /dev/ttyGS2 -d /dev/ttyGS3
class core
user system
group system radio shell bluetooth net_bt_stack
disabled
oneshot
service engpcclientw /system/bin/engpc -p w -a /dev/ttyGS1 -d /dev/ttyGS1 -l /dev/ttyGS1
class core
user system
group system radio shell bluetooth net_bt_stack
disabled
oneshot
service slogmodem /system/bin/slogmodem -s sec
class main
user system
group media_rw system shell radio log sdcard_r sdcard_rw
disabled
# [RIL] DataRouter
service DR-daemon /system/bin/ddexe
class main
user root
group system radio inet net_raw
service SMD-daemon /system/bin/smdexe
class main
user root
group system radio inet net_raw
# [RIL] BCService
service BCS-daemon /system/bin/connfwexe
class main
user root
group system radio inet net_raw
#cp_diskserver
service cp_diskserver_td /system/bin/cp_diskserver t 0
class core
user system
disabled
group system radio shell
oneshot
service cp_diskserver_w /system/bin/cp_diskserver w 0
class core
user system
group system radio shell
disabled
oneshot
service cp_diskserver_l /system/bin/cp_diskserver l 0
class core
user system
group system radio shell
disabled
oneshot
service slog /system/bin/slog -t
class main
user system
group system shell radio log sdcard_r sdcard_rw media_rw
disabled
service refnotify_td /system/bin/refnotify -t 0
class core
disabled
user system
group system radio shell
service refnotify_w /system/bin/refnotify -t 1
class core
disabled
user system
group system radio shell
service refnotify_l /system/bin/refnotify -t 2
class core
disabled
user system
group system radio shell
# For CTS of slog ->
# This action is to make sure that the shell user
# can also enable the slog daemon
# convert the debug to system
on property:debug.slog.enabled=1
setprop persist.sys.slog.enabled 1
# convert the debug to system
on property:debug.slog.enabled=0
setprop persist.sys.slog.enabled 0
# Start the daemon
on property:persist.sys.slog.enabled=1
mkdir /data/local/tmp/slog 0777
mkdir /data/local/tmp/slogmodem 0777
start slog
start slogmodem
start sprd_res_monitor
# Stop the daemon
on property:persist.sys.slog.enabled=0
stop slog
stop slogmodem
stop sprd_res_monitor
rm /data/local/tmp/sprd_monitor.conf
# For CTS of slog <-
on property:persist.modem.w.enable=1
symlink /dev/spipe_w1 /dev/vbpipe1
symlink /dev/spipe_w2 /dev/vbpipe2
symlink /dev/spipe_w3 /dev/vbpipe3
symlink /dev/spipe_w6 /dev/vbpipe6
start refnotify_w
start cp_diskserver_w
on property:persist.modem.t.enable=1
start refnotify_td
start cp_diskserver_td
on property:persist.modem.l.enable=1
start refnotify_l
start cp_diskserver_l
#create symlink
service smd_symlink /system/bin/ext_symlink.sh -u
user root
disabled
oneshot
#data on
service data_on /system/bin/ext_data.sh -u
user root
disabled
oneshot
#data off
service data_off /system/bin/ext_data.sh -d
user root
disabled
oneshot
#enable_dns
service enable_dns /system/bin/ext_data.sh -e
user root
disabled
oneshot
#disable_dns
service disable_dns /system/bin/ext_data.sh -c
user root
disabled
oneshot
#kill td app
service kill_td_phone /system/bin/ext_kill.sh -t
user root
disabled
oneshot
#kill w app
service kill_w_phone /system/bin/ext_kill.sh -w
user root
disabled
oneshot
#kill lte app
service kill_l_phone /system/bin/ext_kill.sh -l
user root
disabled
oneshot
#change owner
service chown_service /system/bin/ext_chown.sh -c
class main
user root
oneshot
#set mac addr
service set_mac /system/bin/ext_chown.sh -e
user root
disabled
oneshot
service inputfreq /system/bin/inputfreq.sh
user root
disabled
oneshot
service recoveryfreq /system/bin/recoveryfreq.sh
user root
disabled
oneshot
chmod 0666 /proc/pin_switch/iis0_sys_sel/cp0_iis0
chmod 0666 /proc/pin_switch/iis0_sys_sel/cp1_iis0
chmod 0666 /proc/pin_switch/iis0_sys_sel/cp2_iis0
chmod 0666 /proc/pin_switch/iis0_sys_sel/ap_iis0
chmod 0666 /proc/pin_switch/bt_iis_sys_sel/cp0_iis0
chmod 0666 /proc/pin_switch/bt_iis_sys_sel/cp1_iis0
chmod 0666 /proc/pin_switch/bt_iis_sys_sel/cp2_iis0
chmod 0666 /proc/pin_switch/bt_iis_sys_sel/ap_iis0
# SRT server
service srtd /system/xbin/srtd
class main
socket srtserver stream 0777 system system
user root
group root
oneshot
service autotest /system/bin/autotest
class main
disabled
user root
oneshot
service bugreport /system/bin/dumpstate -d -p -B \
-o /data/data/com.android.shell/files/bugreports/bugreport
class late_start
disabled
oneshot
# WCDMA I/Q feed
service iqfeed /system/bin/iqfeed
class main
user system
group system sdcard_r
disabled