Skip to content

Add Chromium download correlation with Android MediaStore - #1708

Merged
abrignoni merged 1 commit into
abrignoni:mainfrom
Forensik-IT-GmbH:chromium-download-mediastore
Oct 12, 2026
Merged

abrignoni merged 1 commit into
abrignoni:mainfrom
Forensik-IT-GmbH:chromium-download-mediastore

Conversation

@ForensikITGmbH

Copy link
Copy Markdown
Contributor

What this changes

Adds a separate artifact that correlates Chromium download records with Android MediaStore metadata, resolving content://media/<volume>/downloads/<id> references to recorded filenames, device paths and file sizes. Results are included in HTML, TSV, LAVA and tl.db.

For a new or changed artifact

  • Ran the tool against a real extraction and confirmed the row counts, not just that it imports.
  • Ran python admin/scripts/check_artifact_output.py <report folder> on that report and fixed or documented every finding.
  • Checked it against a second app data directory where the platform provides one (a second user, account, or container).
  • notes, description and sample_data say only what the data shows, and the numbers were re-derived from the finished run.

Anything reviewers should know

Validated against two separate real extractions:

  • Kiwi Browser: All 1,208 download records were retained. Of these, 1,206 resolved to exactly one MediaStore record with a filename and device path. All 1,206 recorded file sizes matched the received byte counts. The remaining two downloads had empty paths and zero received bytes in the source History database and were retained without a file association. No missing or duplicate download IDs were found.
  • Chrome: One download resolved to exactly one MediaStore record, with matching file size and received byte count.

Includes 20 passing regression tests and a synthetic fixture with a recorded ALEAPP baseline. The official fixture comparison passes. Tests cover Android user separation, extraction-root separation, duplicate storage views, ambiguous matches, missing records and uncheckpointed WAL data. An integration test verifies HTML, TSV, LAVA and timeline output.

Matches are scoped by Android user, extraction root and URI volume. Original download URIs and source database paths are preserved. Missing or ambiguous matches are explicitly reported without selecting an arbitrary candidate. Chromium state values are reported as stored.

The correlation identifies MediaStore metadata recorded at acquisition. It does not establish unchanged file content at download time; matching sizes are not hash verification.

The report-checker run, validation against a second real Android user directory and the final metadata checklist review have not yet been confirmed.

@abrignoni
abrignoni merged commit 82cddd2 into abrignoni:main Oct 12, 2026
1 check passed
@abrignoni

Copy link
Copy Markdown
Owner

Thank you for this. The correlation works: on six of our test images it matched 108 downloads to one MediaStore row each, with equal size and owner package.

Your fork does not allow maintainer edits, so I could not push to this branch. I merged it through #1709 instead. Your commit is kept there with a few changes on top:

  • It reports only downloads that carry a content://media URI. The Downloads artifact already lists every row.
  • The History paths match the ones Downloads uses.
  • The author field is your handle.
  • The integration test now puts the log paths back when it ends. Left set, they broke later tests in a full run.

Since #1709 carries your commit, GitHub shows this PR as merged. Thanks again for the contribution.

stark4n6 pushed a commit to stark4n6/ALEAPP that referenced this pull request Oct 13, 2026
Builds on the artifact from abrignoni#1708.

- Report only downloads whose target or current path is a
  content://media downloads URI. The Downloads artifact already reports
  every row.
- Use the History patterns the Downloads artifact declares, which the
  path allowlist already covers.
- Put the MediaStore dates next to Start and End Time.
- Author is @ForensikITGmbH. Add sample_data for six images and state in
  the notes what was measured and what only synthetic tests cover.
- Reword the status for a History path with no recognised Android user.
- Tests: restore the log paths the integration test set on
  OutputParameters, which broke later tests in a full run. Silence two
  pylint warnings. Add tests for the URI filter and column order.
  Baseline re-recorded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants