Logs: every log in app-private storage, shared as one scrubbed zip

Session folders, tools/ and the stores' log now live in files/logs
(LinuxRuntime.logDir) instead of Download/DroidDeck. The files directory
is bound into every session at the same path, so the session script and
the guest tools write there as before. Thirty sessions kept; the Logs
switch off still means a cache folder deleted at session end. Game save
backups stay public.

On the first start, session folders, tools/ and loose .log files move
from Download/DroidDeck into files/logs (rename, else copy and delete; a
failure leaves the item where it was). Saves/ and anything else there is
never touched, and the folder is not read again.

Share logs builds one zip in cache/share/: the session folder, with the
last seven days of stores/ and tools/. Every text file goes through
LogRedactor.redactForShare on the way in - the existing rules, plus URLs
without query, fragment or userinfo and with token-bearing path segments
blanked, __token__ / f_token / hdnts / OAuth code= values, and
Authorization / Cookie headers - so a file written before a rule existed
is clean in the zip. The zip goes at the next share or app start. No
existing scrub is relaxed. The file manager's Session logs shortcut opens
files/logs.
This commit is contained in:
The412Banner committed 2026-10-09 12:38:42 -04:00
1 parent 8e1a676f19
commit 56bc2cd3f7
20 files changed
+264 -69

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ Before Steam launches, you must turn off **Restrict child processes** in Develop
## Community
Join the [DroidDeck Discord](https://discord.gg/JRGAvawjsm) for help, Preview builds, and device reports. Bug reports go in its **#bug-reports** forum; attach the session folder from `Download/DroidDeck/` so the logs come with it.
Join the [DroidDeck Discord](https://discord.gg/JRGAvawjsm) for help, Preview builds, and device reports. Bug reports go in its **#bug-reports** forum; attach the zip from **Share logs** (Setup, or the session drawer) so the logs come with it.
## Build
@@ -29,7 +29,7 @@ Run `tools/build_local.sh` with Docker, Java 17, the Android SDK/NDK, and `zstd`
## Limits
Compatibility and performance vary by device; hardware validation is limited. Desktop compositing uses software rendering. Firefox sandboxing is reduced under proot. See the session logs in `Download/DroidDeck/` when diagnosing problems.
Compatibility and performance vary by device; hardware validation is limited. Desktop compositing uses software rendering. Firefox sandboxing is reduced under proot. Logs are kept app-private (`files/logs/`, the last 30 sessions); **Share logs** packs the newest session, with the stores and tool logs, into one scrubbed zip.
## Credits and licence