Skip to content

Add offline DJI TXT flight-record artifacts - #1513

Merged
abrignoni merged 3 commits into
abrignoni:mainfrom
Blackwater1224:artifact/dji-flight-record-txt
Oct 16, 2026
Merged

abrignoni merged 3 commits into
abrignoni:mainfrom
Blackwater1224:artifact/dji-flight-record-txt

Conversation

@Blackwater1224

Copy link
Copy Markdown
Contributor

What this changes

Adds offline Python artifacts for original DJI GO/Fly DJIFlightRecord*.txt files in ALEAPP. Returns one row per binary record plus a separate flight-log summary, with framework-generated reports, KML and timeline output.

For a new or changed artifact

Ran against the original VTO/NIST DF020 Android logical extraction and confirmed 54,655 record rows, three summary rows and 10,403 KML points.

Ran check_artifact_output.py on the finished report and documented all seven findings in the artifact notes. The strict check now reports no remaining findings.

Checked against a second independent user/account/container extraction. This validation remains outstanding; DF020 includes DJI GO and DJI GO 4 directories, but no controlled multi-container comparison was performed.

notes, description and sample_data describe the observed evidence, with counts verified against the finished run.

Anything reviewers should know

Versions 1–12 support offline decoding. Versions 13–14 expose locally readable metadata and explicitly report encrypted telemetry; no network calls, API keys or external executables are used. CSV import, replay viewing and photo correlation are excluded.

All 22 unit tests, six fixture comparisons, lint and 11 format checks pass. Real telemetry validation covers versions 9 and 11; other legacy layouts use synthetic tests. A public version 14 fixture tests encrypted metadata handling.

Two DF020 logs contain four unexplained trailing bytes. Parsing preserves the preceding records and reports partial-parse warnings. Less common record fields remain available as decoded payload hex.

The DF020 location columns contain empty values or “Map Loading.” Its three RC button columns have identical observed values; they read separate stored bits and have targeted tests.

Automated LAVA database and manifest checks pass. Visual review in the LAVA application remains pending.

Author: Neal (@Blackwater1224). Developed with assistance from OpenAI Codex. Luc Vauvillier’s dji-log-parser is credited for record layouts and XOR key derivation, with its MIT notice preserved.

Blackwater1224 and others added 3 commits October 5, 2026 15:48
- Summary: aircraft name, product type, aircraft, camera, RC and battery
  serial numbers, app platform and version, photos taken, video time and
  takeoff altitude from the Details block.
- Records: decode App GPS, RC GPS, Component Serial and Firmware. App GPS
  is read latitude first, which is what all three DF020 logs hold.
- Record types dji-log-parser does not define are counted in the summary
  instead of listed as hex rows.
- Units only where a reference documents them; the rest are marked as
  stored. Embedded JPEG rows no longer carry a made-up type number.
- A stop now says how many bytes of the record area were left unread.
- Records case 3 uses shortened copies of two DF020 logs, so the baseline
  drops from about 42 MB to 150 KB. Hashes moved into PROVENANCE.md.
- Remove the contribution notes and check outputs under admin/docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni

Copy link
Copy Markdown
Owner

Thanks Neal, this is solid work. The decoding matched dji-log-parser everywhere I checked. I pushed one commit on top of your branch:

  • Summary now shows the aircraft name, product type, serial numbers and app version from Details.
  • Records decode App GPS, RC GPS, Component Serial and Firmware. App GPS is read latitude first because that is what all three DF020 logs hold.
  • Record types dji-log-parser does not define are counted in the summary instead of listed as hex rows.
  • Records case 3 uses shortened copies of two DF020 logs, so the baseline went from 42 MB to 150 KB. I also removed the admin/docs files.

Let me know if anything looks off.

@abrignoni
abrignoni merged commit c58770b into abrignoni:main Oct 16, 2026
11 checks passed
@Blackwater1224

Blackwater1224 commented Oct 22, 2026 via email

Copy link
Copy Markdown
Contributor Author

@abrignoni

Copy link
Copy Markdown
Owner

Nothing else needed on your end, Neal. It is merged and will go out with the next release. Thanks for the offer on drone artifacts. I will reach out when something comes up. Hope this helps.

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