blob: ffa32ba4779056d0eba26d57e2129f23949fc6d0 (
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
|
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
on early-init
write /sys/class/net/ccmni0/queues/rx-0/rps_cpus "3ff"
write /sys/class/net/ccmni1/queues/rx-0/rps_cpus "3ff"
write /sys/class/net/ccmni2/queues/rx-0/rps_cpus "3ff"
write /sys/class/net/ccmni0/queues/rx-0/rps_flow_cnt "1000"
write /sys/class/net/ccmni1/queues/rx-0/rps_flow_cnt "1000"
write /sys/class/net/ccmni2/queues/rx-0/rps_flow_cnt "1000"
setprop net.perf.rps 3ff
setprop net.perf.cpu.core 4,4,0,0,0,0
setprop net.perf.cpu.freq 1118000,1391000,0,0,0,0
on post-fs-data
write /proc/bootprof "post-fs-data: on modem start"
# Modem related device nodes
mkdir /data/nvram/md 0770 root system
mkdir /data/nvram/md3 0770 root system
mkdir /data/md3 0770 root system
# Build-in Modified - S
# insmod /system/lib/modules/ccci_plat.ko
# insmod /system/lib/modules/ccci.ko
# Build-in Modified - E
# chown radio radio /sys/class/BOOT/BOOT/boot/md
chown radio radio /sys/kernel/ccci/boot
#SeLinux
mkdir /data/ccci_cfg 0770 system radio
restorecon /data/ccci_cfg
restorecon_recursive /protect_f
restorecon_recursive /protect_s
# Encrypt phone function
setprop vold.post_fs_data_done 1
service gsm0710muxd /system/bin/gsm0710muxd -s /dev/ttyC0 -f 512 -n 8 -m basic
class core
user root
group radio cache inet misc
disabled
oneshot
service gsm0710muxdmd2 /system/bin/gsm0710muxdmd2 -s /dev/ccci2_tty0 -f 512 -n 8 -m basic
class core
user root
group radio cache inet misc
disabled
oneshot
service muxreport-daemon /system/bin/muxreport
class core
user radio
group radio cache inet misc
disabled
oneshot
service ril-daemon-mtk /system/bin/mtkrild
class core
socket rild stream 660 root radio
socket rild2 stream 660 root radio
socket rild3 stream 660 root radio
socket rild4 stream 660 root radio
socket rild-ims stream 660 root radio
socket rild-debug stream 660 radio system
socket rild-oem stream 660 radio system
socket rild-mtk-ut stream 660 radio net_bt
socket rild-mtk-ut-2 stream 660 radio net_bt
socket rild-mtk-modem stream 660 radio system
socket rild-atci stream 660 root radio
socket rild-mal stream 660 radio system
socket rild-mal-at stream 660 radio system
socket rild-vsim stream 660 root radio
socket rild-mbim stream 660 root radio
socket sap_uim_socket1 stream 660 bluetooth bluetooth
socket sap_uim_socket2 stream 660 bluetooth bluetooth
user root
group radio cache inet misc audio sdcard_r sdcard_rw log system
disabled
oneshot
service ril-daemon-mtkmd2 /system/bin/mtkrildmd2
class core
socket rild-md2 stream 660 root radio
socket rild2-md2 stream 660 root radio
socket rild-debug-md2 stream 660 radio system
socket rild-oem-md2 stream 660 radio system
socket rild-mtk-ut-md2 stream 660 radio net_bt
socket rild-mtk-ut-2-md2 stream 660 radio net_bt
socket rild-mtk-modem-md2 stream 660 radio system
socket rild-atci-md2 stream 660 root radio
socket rild-vsim-md2 stream 660 root radio
socket rild-mal-md2 stream 660 radio system
socket rild-vsim-md2 stream 660 root radio
socket rild-mbim-md2 stream 660 root radio
user root
group radio cache inet misc audio sdcard_r sdcard_rw log system
disabled
oneshot
service md_minilog_util /system/bin/md_minilog_util
user radio
disabled
oneshot
#VIA RILD service
service viarild /system/bin/viarild -l /system/lib/libviatelecom-withuim-ril.so -- -d /dev/ttySDIO4
class core
socket rild-via stream 660 radio radio
socket msap_c2k_socket1 stream 660 radio radio
socket msap_c2k_socket2 stream 660 radio radio
socket msap_c2k_socket3 stream 660 radio radio
socket msap_c2k_socket4 stream 660 radio radio
socket rpc stream 660 radio system
socket rild-debug stream 660 radio system
socket rild-ctclient stream 660 radio system
socket rild-atci-c2k stream 660 radio system
group radio cache inet misc audio sdcard_r sdcard_rw log system
disabled
oneshot
#
# Modem related services (Begin)
#
service permission_check /system/bin/permission_check
class main
user root
group system radio
oneshot
service ccci_fsd /system/bin/ccci_fsd 0
user radio
group radio system
class core
oneshot
service ccci_mdinit /system/bin/ccci_mdinit 0
user system
group radio system
class core
oneshot
service ccci3_fsd /system/bin/ccci_fsd 2
user radio
group radio system
class core
oneshot
service ccci3_mdinit /system/bin/ccci_mdinit 2
user system
group radio system
class core
oneshot
service ccci_rpcd /system/bin/ccci_rpcd 0
user radio
group radio system
class core
oneshot
service pppd_gprs /system/bin/pppd_dt /dev/ttyACM0 debug noauth refuse-eap usepeerdns nodetach
user root
group radio cache inet misc
disabled
oneshot
#Add by T.Zh for ppp daemon
service pppd /system/bin/pppd file /data/misc/ppp/ppp_options
user root
disabled
oneshot
#
#
# Modem related services (End)
#
#Add by hp.chen for
#
# Telephony Early Read service
#
service terservice /system/bin/terservice
class core
user radio
group radio cache inet misc
oneshot
on property:ril.muxreport=1
start muxreport-daemon
|