fix(droiddeckctl): logs latest works without root

`logs latest` pulled the session folder under getFilesDir(), which adb
cannot read on an unrooted device, so it always failed with "Permission
denied" and droiddeck-scenario kept no logs for failed runs.

The agent bridge gets a `logs` method that writes the Share logs archive
to the app's external files folder (agent-logs/), and droiddeckctl pulls
that zip and unpacks it into the destination with the session's files at
the top, as before. Builds without the method still get the old pull.
This commit is contained in:
angelrenefm authored and Kurt Himebauch committed 2026-11-05 13:52:43 -05:00
1 parent 4b6cba0a6d
commit 2fb066507a
7 files changed
+128 -6

No files matched your search

+2 -1
View File
@@ -76,7 +76,8 @@ Automatic process logs record environment keys and argument counts rather than v
argument lists. UI nodes marked as passwords redact text, editable text, descriptions, and state
text. This does not redact arbitrary authorized command results, CDP data, preferences, or screen
captures. Scenario directories are owner-only and JSON reports are written with mode 0600. Review
artifacts before sharing; a live `logs` pull copies the current folder without a fresh export scrub.
artifacts before sharing. `logs` downloads the archive Share logs builds (scrubbed, Steam logs over
8 MiB left out) from the app's external files folder, since adb cannot read the session folder itself.
## Device selection and output