Skip to content

fix: chunk long Android recordings#617

Merged
thymikee merged 3 commits into
mainfrom
codex/android-recording-chunks
May 30, 2026
Merged

fix: chunk long Android recordings#617
thymikee merged 3 commits into
mainfrom
codex/android-recording-chunks

Conversation

@thymikee
Copy link
Copy Markdown
Member

Summary

Android adb shell screenrecord has a hard 180s platform limit. Long Android record start / record stop sessions now rotate into multiple MP4 chunks before that limit, return structured chunks metadata, and print readable numbered chunk paths for human stdout.

This keeps the existing adb recorder instead of adding a MediaProjection helper app, and avoids extra chunk-boundary file-stability polling so the capture gap is as small as practical. Touch overlay burn-in remains available for single-chunk Android recordings; chunked Android recordings return raw chunks plus gesture telemetry with an explicit overlay warning.

Closes #615

Touched-file count: 11. Scope stayed within the record/trace command family plus CLI output/help tests.

Validation

Passed pnpm format, pnpm check:quick, focused record/output tests, Android provider recording scenario tests, CLI help assertions, pnpm test:smoke, pnpm check:unit outside the sandbox, and git diff --check. The sandboxed aggregate unit run failed on environment permissions for loopback listeners and Swift subprocess checks, then passed when rerun outside the sandbox.

@thymikee thymikee merged commit 3522aa3 into main May 30, 2026
17 checks passed
@thymikee thymikee deleted the codex/android-recording-chunks branch May 30, 2026 13:39
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-30 13:39 UTC

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.

Android agent-device record truncates MP4 evidence at 180s due to adb screenrecord default time limit

1 participant