Skip to content

Commit 827b1a6

Browse files
committed
Add Qualcomm QDB (Qshrink Database) format
This is a very simple wrapper around compressed XML used by Qualcomm to store modem debug info. I gather that these files are used by Qualcomm's official QXDM diagnostic software, but I derived the format without reference to any documentation or tooling; it's just that simple.
1 parent 09f4172 commit 827b1a6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

firmware/qualcomm_qdb.ksy

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
meta:
2+
id: qualcomm_qdb
3+
title: Qualcomm Qshrink hash database file
4+
application: Qualcomm QXDM
5+
file-extension: qdb
6+
license: CC0-1.0
7+
8+
doc: |
9+
This format is nothing more than zlib-compressed XML appended to a trivially
10+
simple binary header. The XML maps diagnostic codes emitted by Qualcomm modem
11+
firmware to textual log messages. A file of this type typically resides on the
12+
"modem" partition of a Qualcomm device with a name like "qdsp6m.qdb".
13+
14+
seq:
15+
- id: magic
16+
contents: [0x7f, "QDB"]
17+
- id: guid
18+
size: 0x10
19+
doc: Matches the top-level <GUID> element in the compressed XML
20+
21+
instances:
22+
compressed_xml:
23+
pos: 0x40
24+
size-eos: true
25+
process: zlib

0 commit comments

Comments
 (0)