• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17on init
18    chmod 666 /dev/diag
19
20on post-fs-data
21    # Modem logging collection
22    mkdir /data/vendor/radio 0777 radio radio
23    mkdir /data/vendor/radio/diag_logs 0777 system system
24    # WLAN logging collection
25    mkdir /data/vendor/wifi 0777 system system
26    mkdir /data/vendor/wifi/cnss_diag 0777 system system
27
28on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag && property:sys.usb.configfs=1
29    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag"
30    rm /config/usb_gadget/g1/configs/b.1/f1
31    rm /config/usb_gadget/g1/configs/b.1/f2
32    rm /config/usb_gadget/g1/configs/b.1/f3
33    rm /config/usb_gadget/g1/configs/b.1/f4
34    rm /config/usb_gadget/g1/configs/b.1/f5
35    write /config/usb_gadget/g1/idVendor 0x05C6
36    write /config/usb_gadget/g1/idProduct 0x900E
37    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
38    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
39    setprop sys.usb.state ${sys.usb.config}
40
41on property:sys.usb.config=diag,adb && property:sys.usb.configfs=1
42    start adbd
43
44
45on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb && property:sys.usb.configfs=1
46    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_adb"
47    rm /config/usb_gadget/g1/configs/b.1/f1
48    rm /config/usb_gadget/g1/configs/b.1/f2
49    rm /config/usb_gadget/g1/configs/b.1/f3
50    rm /config/usb_gadget/g1/configs/b.1/f4
51    rm /config/usb_gadget/g1/configs/b.1/f5
52    write /config/usb_gadget/g1/idVendor 0x05C6
53    write /config/usb_gadget/g1/idProduct 0x901D
54    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
55    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
56    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
57    setprop sys.usb.state ${sys.usb.config}
58
59on property:sys.usb.config=diag,serial_cdev,rmnet_gsi,adb && property:sys.usb.configfs=1
60    start adbd
61    start port-bridge
62
63on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,serial_cdev,rmnet_gsi,adb && property:sys.usb.configfs=1
64    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "Default composition"
65    rm /config/usb_gadget/g1/configs/b.1/f1
66    rm /config/usb_gadget/g1/configs/b.1/f2
67    rm /config/usb_gadget/g1/configs/b.1/f3
68    rm /config/usb_gadget/g1/configs/b.1/f4
69    rm /config/usb_gadget/g1/configs/b.1/f5
70    write /config/usb_gadget/g1/idVendor 0x05C6
71    write /config/usb_gadget/g1/idProduct 0x9091
72    write /config/usb_gadget/g1/os_desc/use 1
73    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
74    symlink /config/usb_gadget/g1/functions/cser.dun.0 /config/usb_gadget/g1/configs/b.1/f2
75    symlink /config/usb_gadget/g1/functions/gsi.rmnet /config/usb_gadget/g1/configs/b.1/f3
76    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f4
77    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
78    setprop sys.usb.state ${sys.usb.config}
79
80on property:sys.usb.config=diag,serial_cdev,rmnet_gsi && property:sys.usb.configfs=1
81    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "Default comp without ADB"
82    rm /config/usb_gadget/g1/configs/b.1/f1
83    rm /config/usb_gadget/g1/configs/b.1/f2
84    rm /config/usb_gadget/g1/configs/b.1/f3
85    rm /config/usb_gadget/g1/configs/b.1/f4
86    rm /config/usb_gadget/g1/configs/b.1/f5
87    write /config/usb_gadget/g1/idVendor 0x05C6
88    write /config/usb_gadget/g1/idProduct 0x9092
89    write /config/usb_gadget/g1/os_desc/use 1
90    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
91    symlink /config/usb_gadget/g1/functions/cser.dun.0 /config/usb_gadget/g1/configs/b.1/f2
92    symlink /config/usb_gadget/g1/functions/gsi.rmnet /config/usb_gadget/g1/configs/b.1/f3
93    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
94    setprop sys.usb.state ${sys.usb.config}
95    start port-bridge
96
97on property:sys.usb.config=rndis,diag && property:sys.usb.configfs=1
98    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "rndis_diag"
99    rm /config/usb_gadget/g1/configs/b.1/f1
100    rm /config/usb_gadget/g1/configs/b.1/f2
101    rm /config/usb_gadget/g1/configs/b.1/f3
102    rm /config/usb_gadget/g1/configs/b.1/f4
103    rm /config/usb_gadget/g1/configs/b.1/f5
104    write /config/usb_gadget/g1/idVendor 0x05C6
105    write /config/usb_gadget/g1/idProduct 0x902C
106    symlink /config/usb_gadget/g1/functions/gsi.rndis /config/usb_gadget/g1/configs/b.1/f1
107    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f2
108    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
109    setprop sys.usb.state ${sys.usb.config}
110
111on property:sys.usb.config=rndis,diag,adb && property:sys.usb.configfs=1
112    start adbd
113
114on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,diag,adb && property:sys.usb.configfs=1
115    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "rndis_diag_adb"
116    rm /config/usb_gadget/g1/configs/b.1/f1
117    rm /config/usb_gadget/g1/configs/b.1/f2
118    rm /config/usb_gadget/g1/configs/b.1/f3
119    rm /config/usb_gadget/g1/configs/b.1/f4
120    rm /config/usb_gadget/g1/configs/b.1/f5
121    write /config/usb_gadget/g1/idVendor 0x05C6
122    write /config/usb_gadget/g1/idProduct 0x902D
123    symlink /config/usb_gadget/g1/functions/gsi.rndis /config/usb_gadget/g1/configs/b.1/f1
124    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f2
125    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f3
126    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
127    setprop sys.usb.state ${sys.usb.config}
128
129on property:sys.usb.config=rndis,serial_cdev,diag && property:sys.usb.configfs=1
130    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "rndis_dun_diag"
131    rm /config/usb_gadget/g1/configs/b.1/f1
132    rm /config/usb_gadget/g1/configs/b.1/f2
133    rm /config/usb_gadget/g1/configs/b.1/f3
134    rm /config/usb_gadget/g1/configs/b.1/f4
135    rm /config/usb_gadget/g1/configs/b.1/f5
136    write /config/usb_gadget/g1/idVendor 0x05C6
137    write /config/usb_gadget/g1/idProduct 0x90B5
138    symlink /config/usb_gadget/g1/functions/gsi.rndis /config/usb_gadget/g1/configs/b.1/f1
139    symlink /config/usb_gadget/g1/functions/cser.dun.0 /config/usb_gadget/g1/configs/b.1/f2
140    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f3
141    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
142    setprop sys.usb.state ${sys.usb.config}
143    start port-bridge
144
145on property:sys.usb.config=rndis,serial_cdev,diag,adb && property:sys.usb.configfs=1
146    start adbd
147    start port-bridge
148
149on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,serial_cdev,diag,adb && property:sys.usb.configfs=1
150    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "rndis_dun_diag"
151    rm /config/usb_gadget/g1/configs/b.1/f1
152    rm /config/usb_gadget/g1/configs/b.1/f2
153    rm /config/usb_gadget/g1/configs/b.1/f3
154    rm /config/usb_gadget/g1/configs/b.1/f4
155    rm /config/usb_gadget/g1/configs/b.1/f5
156    write /config/usb_gadget/g1/idVendor 0x05C6
157    write /config/usb_gadget/g1/idProduct 0x90B6
158    symlink /config/usb_gadget/g1/functions/gsi.rndis /config/usb_gadget/g1/configs/b.1/f1
159    symlink /config/usb_gadget/g1/functions/cser.dun.0 /config/usb_gadget/g1/configs/b.1/f2
160    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f3
161    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f4
162    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
163    setprop sys.usb.state ${sys.usb.config}
164
165on property:sys.usb.config=mtp,diag && property:sys.usb.configfs=1
166    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "mtp_diag"
167    rm /config/usb_gadget/g1/configs/b.1/f1
168    rm /config/usb_gadget/g1/configs/b.1/f2
169    rm /config/usb_gadget/g1/configs/b.1/f3
170    rm /config/usb_gadget/g1/configs/b.1/f4
171    rm /config/usb_gadget/g1/configs/b.1/f5
172    write /config/usb_gadget/g1/idVendor 0x05C6
173    write /config/usb_gadget/g1/idProduct 0x901B
174    symlink /config/usb_gadget/g1/functions/mtp.gs0 /config/usb_gadget/g1/configs/b.1/f1
175    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f2
176    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
177    setprop sys.usb.state ${sys.usb.config}
178
179on property:sys.usb.config=mtp,diag,adb && property:sys.usb.configfs=1
180    start adbd
181
182on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,diag,adb && property:sys.usb.configfs=1
183    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "mtp_diag_adb"
184    rm /config/usb_gadget/g1/configs/b.1/f1
185    rm /config/usb_gadget/g1/configs/b.1/f2
186    rm /config/usb_gadget/g1/configs/b.1/f3
187    rm /config/usb_gadget/g1/configs/b.1/f4
188    rm /config/usb_gadget/g1/configs/b.1/f5
189    write /config/usb_gadget/g1/idVendor 0x05C6
190    write /config/usb_gadget/g1/idProduct 0x903A
191    symlink /config/usb_gadget/g1/functions/mtp.gs0 /config/usb_gadget/g1/configs/b.1/f1
192    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f2
193    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f3
194    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
195    setprop sys.usb.state ${sys.usb.config}
196
197on property:sys.usb.config=diag,qdss && property:sys.usb.configfs=1
198    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_qdss"
199    rm /config/usb_gadget/g1/configs/b.1/f1
200    rm /config/usb_gadget/g1/configs/b.1/f2
201    rm /config/usb_gadget/g1/configs/b.1/f3
202    rm /config/usb_gadget/g1/configs/b.1/f4
203    rm /config/usb_gadget/g1/configs/b.1/f5
204    write /config/usb_gadget/g1/idVendor 0x05C6
205    write /config/usb_gadget/g1/idProduct 0x904A
206    write /config/usb_gadget/g1/functions/qdss.qdss/enable_debug_inface 1
207    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
208    symlink /config/usb_gadget/g1/functions/qdss.qdss /config/usb_gadget/g1/configs/b.1/f2
209    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
210    setprop sys.usb.state ${sys.usb.config}
211
212on property:sys.usb.config=diag,qdss,adb && property:sys.usb.configfs=1
213    start adbd
214
215on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,qdss,adb && property:sys.usb.configfs=1
216    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_qdss_adb"
217    rm /config/usb_gadget/g1/configs/b.1/f1
218    rm /config/usb_gadget/g1/configs/b.1/f2
219    rm /config/usb_gadget/g1/configs/b.1/f3
220    rm /config/usb_gadget/g1/configs/b.1/f4
221    rm /config/usb_gadget/g1/configs/b.1/f5
222    write /config/usb_gadget/g1/idVendor 0x05C6
223    write /config/usb_gadget/g1/idProduct 0x9060
224    write /config/usb_gadget/g1/functions/qdss.qdss/enable_debug_inface 1
225    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
226    symlink /config/usb_gadget/g1/functions/qdss.qdss /config/usb_gadget/g1/configs/b.1/f2
227    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f3
228    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
229    setprop sys.usb.state ${sys.usb.config}
230
231on property:sys.usb.config=diag,qdss,rmnet_gsi && property:sys.usb.configfs=1
232    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_qdss_rmnet"
233    rm /config/usb_gadget/g1/configs/b.1/f1
234    rm /config/usb_gadget/g1/configs/b.1/f2
235    rm /config/usb_gadget/g1/configs/b.1/f3
236    rm /config/usb_gadget/g1/configs/b.1/f4
237    rm /config/usb_gadget/g1/configs/b.1/f5
238    write /config/usb_gadget/g1/idVendor 0x05C6
239    write /config/usb_gadget/g1/idProduct 0x9083
240    write /config/usb_gadget/g1/functions/qdss.qdss/enable_debug_inface 1
241    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
242    symlink /config/usb_gadget/g1/functions/qdss.qdss /config/usb_gadget/g1/configs/b.1/f2
243    symlink /config/usb_gadget/g1/functions/gsi.rmnet /config/usb_gadget/g1/configs/b.1/f3
244    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
245    setprop sys.usb.state ${sys.usb.config}
246
247on property:sys.usb.config=diag,qdss,rmnet_gsi,adb && property:sys.usb.configfs=1
248    start adbd
249
250on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,qdss,rmnet_gsi,adb && property:sys.usb.configfs=1
251    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_qdss_rmnet_adb"
252    rm /config/usb_gadget/g1/configs/b.1/f1
253    rm /config/usb_gadget/g1/configs/b.1/f2
254    rm /config/usb_gadget/g1/configs/b.1/f3
255    rm /config/usb_gadget/g1/configs/b.1/f4
256    rm /config/usb_gadget/g1/configs/b.1/f5
257    write /config/usb_gadget/g1/idVendor 0x05C6
258    write /config/usb_gadget/g1/idProduct 0x9084
259    write /config/usb_gadget/g1/functions/qdss.qdss/enable_debug_inface 1
260    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
261    symlink /config/usb_gadget/g1/functions/qdss.qdss /config/usb_gadget/g1/configs/b.1/f2
262    symlink /config/usb_gadget/g1/functions/gsi.rmnet /config/usb_gadget/g1/configs/b.1/f3
263    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f4
264    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
265    setprop sys.usb.state ${sys.usb.config}
266
267on property:sys.usb.config=rndis,diag,qdss && property:sys.usb.configfs=1
268    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "rndis_diag_qdss"
269    rm /config/usb_gadget/g1/configs/b.1/f1
270    rm /config/usb_gadget/g1/configs/b.1/f2
271    rm /config/usb_gadget/g1/configs/b.1/f3
272    rm /config/usb_gadget/g1/configs/b.1/f4
273    rm /config/usb_gadget/g1/configs/b.1/f5
274    write /config/usb_gadget/g1/idVendor 0x05C6
275    write /config/usb_gadget/g1/idProduct 0x9081
276    write /config/usb_gadget/g1/functions/qdss.qdss/enable_debug_inface 1
277    symlink /config/usb_gadget/g1/functions/gsi.rndis /config/usb_gadget/g1/configs/b.1/f1
278    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f2
279    symlink /config/usb_gadget/g1/functions/qdss.qdss /config/usb_gadget/g1/configs/b.1/f3
280    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
281    setprop sys.usb.state ${sys.usb.config}
282
283on property:sys.usb.config=rndis,diag,qdss,adb && property:sys.usb.configfs=1
284    start adbd
285
286on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,diag,qdss,adb && property:sys.usb.configfs=1
287    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "rndis_diag_qdss_adb"
288    rm /config/usb_gadget/g1/configs/b.1/f1
289    rm /config/usb_gadget/g1/configs/b.1/f2
290    rm /config/usb_gadget/g1/configs/b.1/f3
291    rm /config/usb_gadget/g1/configs/b.1/f4
292    rm /config/usb_gadget/g1/configs/b.1/f5
293    write /config/usb_gadget/g1/idVendor 0x05C6
294    write /config/usb_gadget/g1/idProduct 0x9082
295    write /config/usb_gadget/g1/functions/qdss.qdss/enable_debug_inface 1
296    symlink /config/usb_gadget/g1/functions/gsi.rndis /config/usb_gadget/g1/configs/b.1/f1
297    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f2
298    symlink /config/usb_gadget/g1/functions/qdss.qdss /config/usb_gadget/g1/configs/b.1/f3
299    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f4
300    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
301    setprop sys.usb.state ${sys.usb.config}
302
303on property:sys.usb.config=diag,serial_cdev && property:sys.usb.configfs=1
304    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_dun"
305    rm /config/usb_gadget/g1/configs/b.1/f1
306    rm /config/usb_gadget/g1/configs/b.1/f2
307    rm /config/usb_gadget/g1/configs/b.1/f3
308    rm /config/usb_gadget/g1/configs/b.1/f4
309    rm /config/usb_gadget/g1/configs/b.1/f5
310    write /config/usb_gadget/g1/idVendor 0x05C6
311    write /config/usb_gadget/g1/idProduct 0x9004
312    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
313    symlink /config/usb_gadget/g1/functions/cser.dun.0 /config/usb_gadget/g1/configs/b.1/f2
314    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
315    setprop sys.usb.state ${sys.usb.config}
316    start port-bridge
317
318on property:sys.usb.config=diag,adb,serial_cdev && property:sys.usb.configfs=1
319    start adbd
320    start port-bridge
321
322on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb,serial_cdev && property:sys.usb.configfs=1
323    write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_adb_dun"
324    rm /config/usb_gadget/g1/configs/b.1/f1
325    rm /config/usb_gadget/g1/configs/b.1/f2
326    rm /config/usb_gadget/g1/configs/b.1/f3
327    rm /config/usb_gadget/g1/configs/b.1/f4
328    rm /config/usb_gadget/g1/configs/b.1/f5
329    write /config/usb_gadget/g1/idVendor 0x05C6
330    write /config/usb_gadget/g1/idProduct 0x901f
331    symlink /config/usb_gadget/g1/functions/diag.diag /config/usb_gadget/g1/configs/b.1/f1
332    symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
333    symlink /config/usb_gadget/g1/functions/cser.dun.0 /config/usb_gadget/g1/configs/b.1/f3
334    write /config/usb_gadget/g1/UDC ${sys.usb.controller}
335    setprop sys.usb.state ${sys.usb.config}
336
337service diag_mdlog_start /vendor/bin/diag_mdlog
338    class late_start
339    user shell
340    group system diag media_rw
341    disabled
342    oneshot
343
344service diag_mdlog_stop /vendor/bin/diag_mdlog -k
345    class late_start
346    user shell
347    group system diag media_rw
348    disabled
349    oneshot
350
351on boot && property:persist.sys.modem.diag.mdlog=*
352    setprop sys.modem.diag.mdlog ${persist.sys.modem.diag.mdlog}
353
354on property:sys.modem.diag.mdlog=true
355    start diag_mdlog_start
356
357on property:sys.modem.diag.mdlog=false
358    start diag_mdlog_stop
359
360on property:persist.sys.cnss.diag_qxdm=true
361    start cnss_diag
362
363on property:persist.sys.cnss.diag_qxdm=false
364    stop cnss_diag
365
366on property:persist.sys.cnss.diag_txt=true
367    start cnss_diag_txt
368
369on property:persist.sys.cnss.diag_txt=false
370    stop cnss_diag_txt
371
372service cnss_diag /vendor/bin/cnss_diag -q -u -w
373    class late_start
374    user system
375    group system
376    oneshot
377
378service cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cnss_diag/cnss_diag.conf
379    class late_start
380    user system
381    group system
382    disabled
383    oneshot
384
385on property:debug.htc.ramdump.crash=true
386    write /proc/sysrq-trigger "c"
387
388on property:sys.logger.bluetooth=true
389   setprop persist.service.bdroid.snooplog true
390   setprop persist.service.bdroid.fwsnoop true
391
392on property:sys.logger.bluetooth=false
393   setprop persist.service.bdroid.snooplog false
394   setprop persist.service.bdroid.fwsnoop false
395
396on property:persist.bluetooth.btsnoopenable=true
397   setprop persist.service.bdroid.soclog true
398
399on property:persist.bluetooth.btsnoopenable=false
400   setprop persist.service.bdroid.soclog false
401