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
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016 Qualcomm Technologies, Inc.
All rights reserved.
Confidential and Proprietary - Qualcomm Technologies, Inc.
-->
<!--
LogKit 3 Configuration file
-->
<!--
Version must be in format [MAJOR].[MINOR] where MAJOR and MINOR
are integers. If client detects downgrade, prefs will revert to
default values as backwards compatibility is not supported.
Config and Command Versions are incremented along with client.
Name can be changed to differentiate configs for a given version.
-->
<LogKitConfiguration Name="Qualcomm Technologies, Inc. Phase 2" Version="0.9">
<!-- ConfigureLogs
These configurations are all session based logging
Submenu:
Name: Name used to label and group all UIElements
Enable: "true" to enable all UIElements in this submenu that are enabled
"false" will disable all logging of all UIElements
UIElementCmd:
Name: Name to display
CommandName: Command name which is defined in Commands table
Visible: "true" to display in UI
Enable: default enable state
OnStart: when start pressed (default to true)
OnStop: when stop pressed (default to true)
OnInterval: repeat every x seconds (default to 0)
Userdebug: "true" if element should be greyed out on USER builds
CustomLogSize: max log size (in MB) for this file (optional - if not
specified log size will be determined by Settings->Log Size)
UIElementDMC: UIElement that contains DMC path instead of command
Name: Name to display
Path: Path to DMC
Visible: "true" to display in UI
Enable: default enable state
Userdebug: "true" if element should be greyed out on USER builds
UIElementSecondaryDMC: Same as UIElementDMC, but output will be stored
in a second file, e.g. out-SecondDiag0.isf
UIElementCustomDMCPath: Allows dynamic addition of dmc files, and
selection from the UI
Name: Name to display
Path: Path to folder containing DMC files
Visible: "true" to display in UI
Enable: default enable state
Userdebug: "true" if element should be greyed out on USER builds
UIElementQDSS:
Name: Name to display
Visible: "true" to display in UI
Enable: default enable state
Userdebug: "true" if element should be greyed out on USER builds
-->
<ConfigureLogs>
<Submenu Name="Modem" Enable="true">
<UIElementDMC
Name="Golden"
Path="/vendor/etc/qti-logkit/goldenlogmask.dmc"
Visible="true"
Enable="true"
Userdebug="true"/>
<UIElementDMC
Name="Audio"
Path="/vendor/etc/qti-logkit/audiobasic.dmc"
Visible="true"
Enable="false"
Userdebug="true"/>
<!-- This switch is hidden and only enabled in scenario view -->
<UIElementSecondaryDMC
Name="IMS"
Path="/vendor/etc/qti-logkit/IMS.dmc"
Visible="false"
Enable="false"
Userdebug="true"/>
<!-- This swith is used to selecte a new DMC file -->
<UIElementCustomDMCPath
Name="Custom"
Path="/data/vendor/qti-logkit/shared-public"
Visible="true"
Enable="false"
Userdebug="true"/>
</Submenu>
<Submenu Name="Analytics" Enable="true">
<UIElementCmd
Name="Battery Analytics"
CommandName="eAnalyticsCommand_Battery"
Visible="true"
Enable="false"/>
<UIElementCmd
Name="CPU Analytics"
CommandName="eAnalyticsCommand_CPU"
Visible="true"
Enable="false"/>
<UIElementCmd
Name="Memory Analytics"
CommandName="eAnalyticsCommand_Memory"
Visible="true"
Enable="false"/>
</Submenu>
<Submenu Name="Android" Enable="true">
<UIElementCmd
Name="logcat radio"
CommandName="eHLOSCommand_ContLogcatRadio"
Visible="true"
Enable="false"/>
<UIElementCmd
Name="logcat events"
CommandName="eHLOSCommand_ContLogcatEvents"
Visible="true"
Enable="false"/>
<!-- USERDEBUG only -->
<UIElementCmd
Name="TCPDump"
CommandName="eHLOSCommand_ContAllTCP"
Visible="true"
Enable="false"
Userdebug="true"/>
<UIElementCmd
Name="Bluetooth"
CommandName="eHLOSCommand_ContBluetooth"
Visible="true"
Enable="false"/>
<UIElementQDSS
Name="QDSS"
Visible="true"
Enable="false"
Userdebug="true"/>
</Submenu>
</ConfigureLogs>
<!-- ConfigureScenarios
These scenarios are an alternate way to view ConfigureLogs and are all
session based logging
Scenario:
Name: Name used to label and group all UIElements
The "Default" scenario does not require any items, and just uses
the default switch settings.
Icon: Path on device where icon will be accessed at runtime
Selected: (optional) Is this scenario selected?
Item:
Name: Maps to a ConfigureLogs Submenu and UIElement Name
-->
<ConfigureScenarios>
<Scenario
Name="Default"
Icon="/vendor/etc/qti-logkit/scenarios/default.png"
Selected="true">
<Item Submenu="Modem" Name="Golden"/>
</Scenario>
<Scenario
Name="Bluetooth"
Icon="/vendor/etc/qti-logkit/scenarios/bluetooth.png">
<Item Submenu="Modem" Name="Golden"/>
<Item Submenu="Android" Name="Bluetooth"/>
</Scenario>
<Scenario
Name="IMS"
Icon="/vendor/etc/qti-logkit/scenarios/IMS.png">
<Item Submenu="Modem" Name="IMS"/>
</Scenario>
</ConfigureScenarios>
<!-- Settings
These configurations are all continuous logging
Submenu:
Name: Name used to label and group all UIElements
Enable: "true" to enable all UIElements in this submenu that are enabled
"false" will disable all logging of all UIElements
UIElementCmd:
Name: Name to display
Type: [optional] Set to "Button" or "Switch". Default is "Switch"
CommandName: Command name which is defined in Commands table
Visible: "true" to display in UI
Enable: [optional] Switches only - default switch position
(false if not present)
Userdebug: "true" if element should be greyed out on USER builds
UIElementDMC: UIElement that contains DMC path instead of command
Name: Name to display
Path: Path to DMC
Visible: "true" to display in UI
Enable: default enable state
Userdebug: "true" if element should be greyed out on USER builds
-->
<Settings>
<Submenu Name="Continuous" Enable="true">
<!-- Continuous logs will be always included,
but not shown to the user so it cannot be disabled -->
<UIElementCmd
Name="Main Logcat"
Type="Switch"
CommandName="logcat"
Visible="false"
Enable="true"/>
<UIElementCmd
Name="Kernel mesg"
Type="Switch"
CommandName="kmesg"
Visible="false"
Enable="true"/>
</Submenu>
<Submenu Name="Event monitoring" Enable="true">
<UIElementCmd
Name="Tombstone"
Type="Switch"
CommandName="Tombstone"
Visible="true"
Enable="false"/>
<UIElementCmd
Name="ANR-System"
Type="Switch"
CommandName="ANR-System"
Visible="true"
Enable="false"
Userdebug="true"/>
<UIElementCmd
Name="ANR-Data"
Type="Switch"
CommandName="ANR-Data"
Visible="true"
Enable="false"
Userdebug="true"/>
<UIElementCmd
Name="Framework Reboot"
Type="Switch"
CommandName="FWRNotification"
Visible="true"
Enable="true"/>
<UIElementCmd
Name="Subsystem Reset"
Type="Switch"
CommandName="SSRNotification"
Visible="true"
Enable="true"/>
<UIElementCmd
Name="Crash Collection"
Type="Switch"
CommandName="CrashCollection"
Visible="true"
Enable="true"/>
</Submenu>
<Submenu Name="Reports" Enable="true">
<UIElementCmd
Name="Bug Report"
Type="Button"
CommandName="bug_report"
Visible="true"/>
<UIElementCmd
Name="Surface Flinger"
Type="Button"
CommandName="surface_flinger"
Visible="true"/>
<UIElementCmd
Name="Dumpsys"
Type="Button"
CommandName="eHLOSCommand_CrashDumpSys"
Visible="true"/>
<UIElementCmd
Name="Meminfo"
Type="Button"
CommandName="eHLOSCommand_CatMemInfo"
Visible="true"/>
<UIElementCmd
Name="Procrank"
Type="Button"
CommandName="eHLOSCommand_ProcRank"
Visible="true"/>
<UIElementCmd
Name="dumpsys media.camera"
Type="Button"
CommandName="eHLOSCommand_DumpCamera"
Visible="true"/>
<UIElementCmd
Name="WIFI iwconfig"
Type="Button"
CommandName="eHLOSCommand_Iwconfig"
Visible="true"/>
</Submenu>
<!-- CrashMode
User configurable crash detection mode.
Applicable when "Crash Collection" switch enabled.
Only one should be Selected, if none are selected,
the first entry will be.
InternalMini - enable internal mini dump collection
InternalFull - enable internal full dump collection
External - enable sdcard dump collection
ExternalNotify - enable sdcard dump count metrics
-->
<CrashMode>
<Option
Name="Sdcard collection"
Enum="External"
Selected="true"/>
<Option
Name="Sdcard notify only"
Enum="ExternalNotify"/>
<Option
Name="Internal mini collection"
Enum="InternalMini"/>
</CrashMode>
<!-- StorageLocation
User configurable storage locations
Only one should be Selected, if none are selected, the first entry will be
If multiple entries are Selected, the last entry will be
LowStorageWarning - display warning when available space goes below
value (in MB).
-->
<StorageLocation>
<Storage
Name="internal"
Path="/data/user/0/com.qualcomm.qti.logkit/files/"
LowStorageWarning="300"
Selected="true"/>
<Storage
Name="sdcard1"
Path="/storage/sdcard1/Android/data/com.qualcomm.qti.logkit/files/"
LowStorageWarning="500"/>
<Storage
Name="sdcard0"
Path="/storage/sdcard0/Android/data/com.qualcomm.qti.logkit/files/"
LowStorageWarning="500"/>
</StorageLocation>
<!-- LogSize
User configurable log sizes/chunks
Size is in MB
Only one should be Selected, if none are selected, the first entry will be
If multiple entries are Selected, the last entry will be
-->
<LogSize>
<Option Size="10"/>
<Option Size="50" Selected="true"/>
<Option Size="500"/>
</LogSize>
<LogCount>
<Option Count="5"/>
<Option Count="10" Selected="true"/>
<Option Count="20"/>
</LogCount>
<!-- ModemFormat
User configurable modem log format
Valid formats are "QMDL" and "ISF"
CustomLogSize: max log size (in MB) for this modem log format
(optional: if not specified log size determined by Settings->Log Size)
Only one should be Selected, if none are selected, the first entry will be
If multiple entries are Selected, the last entry will be
BufferOnData: Buffer on /data/ for (possible) speed increases due to
write speed
-->
<ModemFormat>
<Option Format="QMDL"/>
<Option Format="ISF" Selected="true" BufferOnData="true"/>
</ModemFormat>
<!-- ConfigView
User configurable ways to view the config screen
Each view has a type
- Valid types are LogView and ScenarioView
Each view has visibility set to true or false. If neither is true it
defaults to LogView
Only one should be Selected, if none are selected, the first entry will be
If multiple entries are Selected, the last entry will be
-->
<ConfigView>
<Option
Type="LogView"
Visible="true"
Selected="true"/>
<Option
Type="ScenarioView"
Visible="true"/>
</ConfigView>
<!-- AutoPackage
Auto package (accept default name and location) when dialog would
have been shown
Only one entry should exist for this
bEnable - Enable auto package or not
"false" - nothing will be auto-packaged
"true" - everything will be auto-packaged
"Events" - only events will be auto-packaged
sessions will prompt with the package dialog
-->
<AutoPackage bEnable="Events"/>
<!-- AutoZip
Auto Zip when package completes
Only one entry should exist for this
bEnable - Enable auto zip or not (boolean)
-->
<AutoZip bEnable="true"/>
<!-- AutoLaunch
Auto launch the UI after reboot
Only one entry should exist for this
bEnable - Enable auto launch or not (boolean)
-->
<AutoLaunch bEnable="true"/>
<!-- IncludeQshrinkDB
Include the QSHRINK 4.0 database files in the output folders
bInclude - Include DB or not (boolean)
-->
<IncludeQshrinkDB bInclude="true"/>
<!-- DeletedPackages
Show deleted packages in the UI
bVisible - Are deleted packages visible
MaxNum - Max number of deleted packages to keep across reboot
-->
<DeletedPackages bVisible="true" MaxNum="100"/>
<!-- QSHCircularBuf
QSH circular buffering
Only one entry should exist for this
bVisible - make option visible (boolean)
bEnable - Enable option (boolean)
Feature cannot be enabled unless also visible
-->
<QSHCircularBuf bVisible="true" bEnable="false"/>
<!-- ShowWarnings
Show warning pop-ups. These can often confuse customers into
thinking warnings are actual errors. Should be used primarially
for debug mode.
Only one entry should exist for this
bVisible - make option visible (boolean)
bEnable - Enable option (boolean)
Feature cannot be enabled unless also visible
-->
<ShowWarnings bVisible="true" bEnable="false"/>
<!-- GenerateHeartbeat
Generate a heartbeat package every hour. This heartbeat does not
include any logs from the active session, and is auto-packaged to the
default selected storage
Only one entry should exist for this
If not present the default is disabled
bEnable - Enable heartbeat (boolean)
-->
<GenerateHeartbeat bEnable="false"/>
<!-- CheckMPSSVer
On client launch, attempt to query diag to get the MPSS version.
This may cause a brief interruption if QXDM or another tool is logging
over USB
Only one entry should exist for this
If not present the default is disabled
bEnable - Enable checking MPSS version (boolean)
-->
<CheckMPSSVer bEnable="false"/>
</Settings>
</LogKitConfiguration>
|