Skip to content

5.41

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 08:08
· 4 commits to master since this release

FQLite 5.41

  • Pictures, video and audio in BLOBs: WebP, AVIF, MP4, QuickTime (MOV), 3GP, M4A, Matroska, WebM, AVI, WAV, Ogg, Opus, AMR, MP3 (with and without ID3 tag), FLAC and CAF (iMessage audio) are recognised by their signatures (ISO-BMFF brands, RIFF, Ogg, EBML DocType, two consecutive MPEG audio frames ...). The table cell gets a picture, film or speaker icon, the hex view badge names the format, a double-click opens the value with the viewer of the operating system, and the BLOB export writes it with the right file extension. Before, these values were shown as unknown binary data.
  • Chromium-encrypted values (Chrome, Edge, Brave, Opera, Vivaldi, Electron apps; e.g. Login Data.password_value, Cookies.encrypted_value): v10/v11/v20 values are recognised and described with scheme and platform (AES-256-GCM/Windows with key in "Local State", AES-128-CBC/macOS with key from the Keychain "Chrome Safe Storage", v11 Linux key store, v20 app-bound key). Linux v10 values are decrypted directly - Chromium uses the fixed password "peanuts" there; the SHA-256 host prefix of cookies (cookie database version 24+) is removed. New: fqlite.blob.Chromium (decryptCbc() also decrypts macOS values with a known Keychain password).
  • Windows DPAPI blobs (CryptProtectData; Chromium before version 80, many Windows applications): the header is decoded and shown in the cell, e.g. DPAPI master key {…}, AES-256/SHA-512, description "…" - the master key GUID names the key file needed for decryption. New: fqlite.blob.Dpapi.
  • Core Data external storage (iOS/macOS, attributes with "Allows External Storage"): the marker byte in front of such values is understood. 0x01 + data (inline): the content is recognised (e.g. Threema pictures are now shown as JPEG with thumbnail); opening and exporting it as a file leaves out the marker byte, the hex view and the database export keep the original bytes. 0x02 + UUID: the value lives in .<store>_SUPPORT/_EXTERNAL_DATA/<UUID>; the cell shows the UUID and whether the file exists next to the database (with size and format), a double-click opens the file (on a copy). Layout checked with stores written by Core Data itself. New: fqlite.blob.CoreData, fqlite.blob.BlobInfo.
  • Snappy compression (raw blocks and the framing format sNaPpY): used e.g. by Firefox for LocalStorage (storage/default/<origin>/ls/data.sqlite, table data, column value with compression_type = 1). Raw Snappy has no magic number: a BLOB is taken for Snappy only if the whole block parses, every copy refers to data already decoded, the decoded size matches the declared length exactly and the data got smaller (no false positives in 1,000,000 random BLOBs and in 93,000 BLOBs of 140 test databases - only the Firefox values with compression_type = 1 were found). Snappy is one more layer of the decompression chain: the table cell shows [BLOB-n] Snappy → {...} (first 200 characters of the text, UTF-8 or UTF-16LE), the hex view badge shows e.g. SNAPPY → JSON, the BLOB viewer (double-click) and "Decode column into fields" show the decompressed content. New: fqlite.blob.Snappy, Codecs.Codec.SNAPPY.
  • Text preview for BLOBs: a BLOB that is plain printable text (UTF-8, or UTF-16LE with mostly Latin characters) now shows the text in the table cell after [BLOB-n] (first 200 characters, on one line; UTF-16 marked (UTF-16LE)) - e.g. uncompressed Firefox LocalStorage values, JSON stored as BLOB by Apple Health, Signal or Threema. Before, such cells showed only [BLOB-n]. Only BLOBs of at least 8 bytes with at least 3 visible characters are shown as text (short binary ids and flags often consist of printable bytes); UTF-16 needs at least 8 characters, 90 % of them ASCII, as binary data often decodes to valid CJK characters. Only the first 64 KiB are checked. In 93,000 BLOBs of 140 test databases only real text was found.
  • Hex view badge: JSONB values are labelled JSONB and serialized Sendbird objects SENDBIRD → JSON (before, the badge guessed PLAINTEXT or PROTOBUF?), with a tooltip that points to the JSON tree in the BinViewer.
  • ./gradlew blobFormatsTest checks all of this against sample files in tests/data/blobformats (written by cwebp, sips, afconvert and AVFoundation, or built after the format specifications), OpenSSL-generated Chromium vectors and Snappy vectors produced with the reference library libsnappy.
  • Serialized Sendbird objects: BLOBs written by the Sendbird Chat SDK (serialize() of messages and channels, e.g. columns serializedSendbirdMessage/serializedSendbirdChannel in chat apps using Sendbird) are recognised and decoded. Layout: JSON text, Base64-encoded (lines of 76 characters, CR LF), every byte XORed with the low byte of its position. The table cell shows [BLOB-n] Sendbird {...} (first 200 characters), the BLOB viewer (double-click) and "Decode column into fields" show the JSON tree, the hex view keeps the raw bytes. Detection needs the whole BLOB to decode to valid JSON (no false positives in 200,000 random BLOBs). New: fqlite.blob.Sendbird, BLOBTYPE.SENDBIRD, headless RecoveryResult.getJson(record, column) also returns Sendbird JSON, ./gradlew sendbirdTest.
  • GUI: tables whose BLOB column contains pictures (PNG, JPEG, GIF, BMP, TIFF, HEIC) or PDF documents were shown empty, although all records had been recovered. Marking such a cell with the picture/PDF icon replaced the cell while the row was being iterated; CompactList.set() counted this as a structural modification and the iteration ended with a ConcurrentModificationException. This aborted the whole table update, so the affected table and all tables updated after it stayed empty. CompactList.set() no longer changes modCount (as with ArrayList), update_table walks the row by index, and a failure in one table view no longer leaves the remaining table views empty.

FQLite 5.4

  • JSONB (SQLite 3.45+): BLOBs in SQLite's binary JSON format (written by jsonb(), jsonb_set(), jsonb_insert(), jsonb_patch(), ...) are recognised and decoded - in live, deleted and WAL records. The table cell shows [BLOB-n] JSONB {...} (first 200 characters), tooltip, "Decode column into fields" and the BLOB viewer (double-click) show the JSON tree, the hex view keeps the raw bytes. The output is exactly what SQLite's json() returns, JSON5 elements (INT5, FLOAT5, TEXT5) included. JSONB has no magic number: a BLOB is taken for JSONB only if it is a complete, structurally valid array or object (scalars and one-byte values are not detected automatically, they would match too many other BLOBs). New: fqlite.blob.Jsonb, BLOBTYPE.JSONB, headless RecoveryResult.getJson(record, column), ./gradlew jsonbTest.
  • Large BLOBs / 64-bit values: serial types and payload lengths are read as 64-bit values. BLOBs and texts larger than ~1 GiB (serial type above 2^31; possible with SQLITE_MAX_LENGTH raised to its maximum of 2^31-1 and the 64-bit APIs such as sqlite3_bind_blob64()/sqlite3_bind_zeroblob64()) were not recognised before - the record was lost and its overflow pages showed up as garbage "deleted" records. They are now recovered completely (tested with 1.2 GB and 2.1 GB BLOBs). The overflow chain is read directly into the record buffer instead of being collected and copied twice, so a large BLOB needs about twice its size in heap (before: four times). A record that does not fit into the heap is skipped with a message (start with a larger -Xmx).
  • Rowids above 2^31 (e.g. timestamps or 64-bit ids as INTEGER PRIMARY KEY, common in messenger databases) were shown truncated/negative for live records (5000000000 → 705032704); rowids are now read as signed 64-bit varints.
  • Deleted records with overflow pages: the BLOB of such a record was stored under a wrong key (offset column index 2 instead of 0, "Number format exception: compute hash failed") - the BLOB was missing or belonged to another record; records near the end of a page whose local part could not be copied were dropped; an overflow chain that ended early dropped the whole record - now the readable part is kept and flagged "⚠ truncated".
  • fqlite-mcp is now available as seperate jar-archive file ready to use within agent workflows