Skip to content

Add Blink App Support for Android - #1196

Merged
abrignoni merged 6 commits into
abrignoni:mainfrom
frahmco:blink-camera-information
Sep 12, 2026
Merged

abrignoni merged 6 commits into
abrignoni:mainfrom
frahmco:blink-camera-information

Conversation

@frahmco

@frahmco frahmco commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Add Blink App Support for Android

This module adds support for 4 Blink artifacts:

  • Camera Information
  • Camera Entitlements
  • Syncmodule Information
  • Syncmodule Entitlements

All artifacts are present in the BlinkRoom database.

Test Device

This data was collected from a Samsung SM-A166U (A16 5G) running Android 16 with the 2025-10-01 security patch.

  • 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. An empty or constant column is often a real result (no group chats, coarse location denied); the fix for those is to say so in the artifact's notes, which is also what stops the checker reporting them.
    --Syncmodule Entitlements holds constant values on 4 columns. This is expected.
  • Checked it against a second app data directory (a second Android user, or two iOS containers). --compare <multi-container report> reads the scaling for you: it should be exactly double.
  • 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

I cancelled the original PR for this app because it was poorly done. And this is my first PR and I am a git newcomer.

Add Blink App camera information: 
Created and updated timestamps for cameras
Camera names
Camera serial numbers
Network type
Camera Model
Added artifacts for Camera Entitlements, Syncmodule information, and Syncmodule entitlements.
@frahmco frahmco changed the title Blink camera information Add Blink App Support for Android Aug 21, 2026
Fixed reimport, the first __artifacts_v2__ with the import statement was present twice.

Believe I fixed bad indentation, my local pylint didn't see anything.
Fix indentation (again)
@abrignoni

Copy link
Copy Markdown
Owner

Thanks for the contribution!

This PR changes artifact modules without test data for them. A small fixture with each artifact change lets reviewers run the module against real data, and the committed case keeps guarding the module after merge.

  • BlinkApp.py: please include a fixture with this PR.

Adding a fixture

Generate it from your extraction with the helper (details in create_module_test_cases.md):

python admin/test/scripts/make_test_data.py <module> --case <case_number> --input <extraction.zip>

It writes admin/test/cases/testdata.<module>.json and one zip per artifact under admin/test/cases/data/<module>/.

Size rules:

  • Under 10 MB per zip: commit the files in this PR.
  • 10 to 25 MB: commit the case JSON in the PR and attach the zip to a comment here.
  • Over 25 MB: say so here and a maintainer will arrange a handoff.

If your extraction cannot be shared:

  • If the app appears on a public research image, generate the fixture from that instead. public_corpus_images.md lists the images and where to download them.
  • Or sanitize the real file in place: keep the file the app wrote and overwrite only the personal values, which keeps the format honest.
  • Or script a known session: install the app on a test device with a throwaway account, perform documented actions, and extract that.

If none of those fit, say so here and we will work it out. The PR can still be reviewed and merged with the gap recorded in the artifact's notes.

This is a request, not a gate. Nothing here blocks review.

@abrignoni abrignoni added the needs-test-data Artifact PR without test data for the changed modules label Aug 25, 2026
@frahmco

frahmco commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

I may be able to use the helper. Let me verify there is no sensitive data. If that isn't possible, I will likely make a copy and sanitize the real db file. Thanks!

@frahmco

frahmco commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

I edited data that was sensitive from the original BlinkRoom db file, nothing is particularly identifying but just to be cautious. I've attached it here, it is not very large.

I hope to eventually get my hands on some Blink cameras to be able to control actual tests, there's much more data that could be gleaned from the app, I just don't have a way of testing without cameras to connect. Thank you for your time!

BlinkRoom.zip

The entitlement table's primary key is (target, target_id, name), so target_id
on its own does not name a device. Both entitlement artifacts joined on
target_id alone, which lets one device's entitlements attach to another when a
camera id and a sync module id collide. Both joins now also match
entitlement.target against the device's own type column, and the target is
reported as a column. Row counts on the tested file are unchanged at 26 and 4.

The artifacts read the first BlinkRoom the seeker returned, so a second Android
user's container was dropped. They now read every container through
unique_files, which collapses the duplicate storage views of one file. Measured
against a tree holding one container under two spellings, a second user, and a
decoy package: every artifact doubles exactly and the decoy contributes nothing.

Also in this change:

- paths pick up the -wal and -shm sidecars, and are a tuple rather than a
  bare string.
- The four timestamp columns are declared datetime, so they reach LAVA as
  epoch values and sort and filter. They are stored as ISO 8601 text with an
  explicit UTC offset.
- Blink Syncmodule Information and Blink Syncmodule Entitlements both headed a
  column "Syncmodule Local Storage Status" while reading two different columns,
  local_storage_status and local_storage_enabled. The information artifact now
  reports local_storage_compatible, local_storage_enabled and
  local_storage_status separately and the entitlements artifact reports none of
  them.
- Timestamps lead the column order, and the camera and sync module ids are
  reported so a row can be tied to its entitlements.
- notes on all four artifacts record what was measured, what is reported as
  stored, and what is not established. Category is Blink so the four group
  under the app.

Co-Authored-By: Frahm <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
@abrignoni
abrignoni merged commit 17196bc into abrignoni:main Sep 12, 2026
10 checks passed
@abrignoni

Copy link
Copy Markdown
Owner

Merged. Thank you for this, Christian. Good first contribution, and you picked an app nobody
had parsed yet, which is the hard part.

I pushed one commit to your branch before merging rather than sending you back round, so the
PR is still yours. Short version of what changed:

The entitlement table's primary key is (target, target_id, name), so target_id on its
own does not name a device. Both entitlement artifacts joined on it alone, which lets a camera
pick up a sync module's entitlements if those two ids ever match. The other half of the key
was already sitting in the row: the camera's own type column carries the same value as
entitlement.target. Adding that returned the identical 26 and 4 rows on your file, so it
costs nothing.

The artifacts also read only the first BlinkRoom handed to them, and an extraction usually
carries the same app directory under two or three spellings plus a copy per Android user. They
go through unique_files now.

The rest is smaller. The path pattern picks up the -wal sidecar, the timestamps are declared
datetime so they sort and filter in LAVA, the two sync module artifacts no longer give one
header to two different columns, and all four carry notes. One tip from that last part:
check_artifact_output stops flagging a uniform column once the artifact's notes name it, so
saying it was uniform and why it still earns its place is the fix rather than dropping the
column. Handy to know for the next one.

If you do get cameras to work with, there is more in that database than we are reading.
network holds the account's time zone, and key_value_pair, subscription, message and
tracking_event all had rows on your sample too. Any of those would make a good second PR and
we would be happy to take it.

Thanks again.

@abrignoni

Copy link
Copy Markdown
Owner

Quick follow up, Christian.

The BlinkRoom you attached is now committed as the module's test case, so the parsers stay
guarded after merge. I sanitized it first: renumbered the device, network and account ids,
swapped the hardware serials for same-length synthetic ones, and replaced the camera and
network names. I left the timestamps, the time zone and the type codes alone, since the
artifacts' notes measure those. The file was rebuilt and then checked byte by byte for
anything original. Nothing left.

The module grew while I was in there. Your four tables are now nine artifacts, covering
every table in that database that held rows: network, key_value_pair, subscription, message
and tracking_event. Each one's notes say what was measured and what was not established.

If you would rather the file was not in the repo, say the word and I will pull it.

Thanks again, for the parsers and for sending the sample.

@frahmco

frahmco commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

Wow! Thank you very much for your time, review, and edits. I appreciate the time spent explaining the issues I had, this is definitely a learning experience for me. This started off as a small project on my own, as we had several back to back cases involving Blink cameras and information related to them.

I hope to be able to contribute more in the future! I've told our people to keep an eye out for cameras, there is a lot more info that can be acquired if I could validate and test. I also have an iOS extraction with the app, and I am working on that one (time permitting) as well. I will be sure to improve my PR for that one when I am done with it.

As for the test file, thank you for sanitizing it completely. I am more than comfortable leaving it in the repo.

I appreciate all of your work and look forward to contributing in the future!

@frahmco
frahmco deleted the blink-camera-information branch September 12, 2026 16:33
frahmco added a commit to frahmco/ALEAPP that referenced this pull request Sep 12, 2026
BlinkApp had no committed fixture, so nothing guarded it after merge. This adds
one case covering all nine artifacts, built from the BlinkRoom database
Christian Frahm supplied on PR abrignoni#1196 and sanitized here before committing.

What was changed: the camera, sync module, network, account and subscription
identifiers were renumbered, the hardware serial numbers were replaced with
same-length synthetic values, and the camera and network names were replaced,
with the message text rewritten so it still names the camera it named. Every
relationship moved together, so the entitlement joins, the key_value_pair keys
that embed a camera id, clip_list_tab and message.network_id all still resolve.

What was not changed, because the artifacts' notes measure it: every timestamp,
the IANA time zone on the network row, the local offset on the key_value_pair
value that corroborates that zone, the type and target codes the entitlement
joins depend on, the entitlement names and statuses, the subscription plan and
cycle values, and the autoincrement ids on message and tracking_event.

The file was VACUUMed and then scanned byte by byte for every original value in
every encoding SQLite uses for it, the rowid varint included, with each scan
proven against the unsanitized copy first. Zero hits. Row counts are unchanged
in every table and the nine artifacts report the same counts as on the original.

run_test_cases passes 9 of 9 against the recorded baselines and 18 of 18 on the
storage view arithmetic.

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

Labels

needs-test-data Artifact PR without test data for the changed modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants