An export is a JSON file. Its outer part says how it is locked; its content, once opened, is JSON again.
01 · The outer JSON
{
"format": "opensolr-mail-export",
"v": 2,
"kdf": "PBKDF2WithHmacSHA256",
"iter": 310000,
"salt": "<16 bytes, base64>",
"nonce": "<8 bytes, base64>",
"segment": 1048576,
"data": ["<piece 0, base64>", "<piece 1, base64>", …]
}
dataholds the encrypted pieces in order, each an AES-256-GCM ciphertext with its 16-byte tag at the end.- The nonce of piece n is
noncefollowed by n as 4 bytes, highest byte first. - The authenticated data of piece n is the text
opensolr-mail-export:n:more, oropensolr-mail-export:n:lastfor the final piece. - The pieces put together are the content, UTF-8 JSON.
02 · The content
{
"app_version": "1.20.3",
"exported_at": 1796415000000,
"prefs": {
"<settings file>": {
"<key>": {"t": "s", "v": "text"},
"<key>": {"t": "sealed", "v": "a sign-in, open"},
…
},
…
},
"files": [
{"path": "databases/mail.db", "chunks": ["<256 KiB, base64>", …]},
…
]
}
| Field | What it holds |
|---|---|
prefs | Every settings file of the app, by name, with every value and its type: s text, b true or false, i and l whole numbers, f a decimal number, ss a list of texts, sealed a value the phone keeps sealed with its key store, here open, sealed again on import. |
files | Every other file, its path from the app’s data folder and its bytes in pieces of 256 KiB, base64. |
app_version | The version of the app that made the file. |
exported_at | When it was made, in milliseconds since 1970, UTC. |
The code is open source: data/Transfer.kt in the app’s repository. See Open source.