summaryrefstree
path: root/boot/ramdisk/init.oem_ftm.rc
blob: 0005f415244dd3f0b44e56a5587e140d02734f96 (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
# this file should import init.rc and then add some oem defined service

#this service is a non-use service and just use to duplicate real console service
service console /system/bin/xxx
    class core
    console
    disabled
    user root
    group shell log
    oneshot
    seclabel u:r:shell:s0

#this service is a non-use service and just use to duplicate real surfaceflinger service
service surfaceflinger /system/bin/xxx
    class core
    oneshot
    disabled

#this service is a non-use service and just use to duplicate real servicemanager service
service servicemanager /system/bin/xxx
    class core
    oneshot
    disabled


import /init.rc

on post-fs-data
    chmod 0666 /dev/block/mmcblk0p23
    chmod 0666 /dev/param

service wcnss-service-f /system/bin/wcnss_service -f
    class main
    user root
    group system wifi radio
    oneshot
    disabled

service factory /system/bin/factory
    class late_start
    disabled

service ftm_power_config /system/bin/sh /ftm_power_config.sh
    class late_start
    user root
    disabled
    oneshot

on oem_ftm
    chown system system /system/bin/factory
    chmod 0777  /system/bin/factory
    chown system system system/bin/ptt_socket_app
    chmod 0777  /system/bin/ptt_socket_app

on property:ro.wandrfmode=0
    start self-init
    start qmuxd
    start wcnss-service-f
    start factory
    start ftm_power_config
    start ril-daemon

on property:ro.wandrfmode=1
    start self-init
    start qmuxd
    start wcnss-service-f
    start ptt_ffbm
    start ftm_power_config

on property:ro.wandrfmode=2
    start self-init
    start qcom-c_main-sh
    start ftm_power_config
    write /sys/class/power_supply/battery/charging_enabled 0