screencap without -d prints a warning before the PNG when it finds more
than one display, so droiddeckctl screenshot failed on foldables and
dual-screen phones. Without --display, screenshot and record now use the
physical display behind logical display 0 when there is more than one.
Co-authored-by: alien2003 <11610652+alien2003@users.noreply.github.com>
* fix(agent): start sessions from their own task so repeat starts aren't swallowed
* fix(ci): fall back to the kernel.org Ubuntu mirror when Canonical's are unreachable
* fix(ci): fall back to the Berkeley ports mirror on arm64 runners
* feat: experimental native userland that runs the Linux side without proot
* fix(native): keep the visible name of link2symlink binaries
* fix(ci): run the native hook build through bash
* fix(native): address review findings in the hook and the ctl fallback
* fix(ctl): use the broadcast fallback only when content is missing
* fix(native): survive Android's seccomp filter in ld.so, libc and posix_spawn children
* docs(native): how to test under Android's seccomp filter
* fix(session): hide an unlistable /sys/bus/pci/devices so libpci does not abort Chromium's GPU init
* fix(native): nested syscall() redirects no longer loop with libblsession's openat2
* fix(native): controllers reach Steam and the install-script evaluator no longer blocks game moves
* fix(native): write the hook's NUL character literals as escapes
* fix(native): proot fast path turns off and greys out while running without proot
* fix(native): D-Bus logins work and Xwayland still admits root once peers read as root
* fix(native): scripts on session mounts outside the rootfs run with the rootfs shell
* fix(native): games on the SD card library start in their own folder
* fix(native): Wine drive links proot made point at their real places
* fix(native): at-calls, uid lookups and relative programs follow the session's mounts
* fix(native): close-from in spawned programs covers what is open at the spawn
* fix(native): service names resolve and the DNS fallback answers what was asked
* build(native): the hook is built with its Go support and tracked by the preload recipe
* fix(native): drive links into identity mounts stay, and relink and seccomp patch failures are logged
* fix(native): seccomp-sim's filter holds every allowed call
* fix(ctl): the broadcast fallback only stands in for a missing content command
* fix(native): pre-2.33 glibc stat calls present owners as root too
* fix(native): res_init and res_ninit call glibc, so Steam's store resolves names
* fix(ci): a preload lock older than a new output rebuilds that group, and generated headers are not hashed
* fix(native): a second seccomp patch run leaves other system calls alone
* fix(native): the terminal and bottom desktop keep proot's environment in a native session
* fix(native): any number of session mounts, and openat2 relative to a mounted folder
* fix(agent): a native command's stdin is written beside its timeout
* fix(ctl): native rejects --env without = and timeouts outside 0-600 s
* fix(native): the resolver fallback has the network's IPv6 servers, and lookups keep the fallback's validation errors
* fix(native): a spawn whose dup2 source close-from closed fails with EBADF
* fix(native): __getcwd_chk checks its buffer, and seccomp-sim -a takes only call numbers
* feat(native): guests see the session hostname from uname and gethostname
* feat(native): the terminal and bottom desktop run without proot
* fix(components): an origin APK without a newer preload output still proves the rest
* fix(native): seccomp-sim -a rejects empty fields
* fix(native): gethostbyname no longer answers failed lookups with Ubuntu and Debian addresses
* feat(native): store installers, root helpers, Comet and Xodus run without proot
* fix(native): the hook finds libraries, preloads and itself through a sandbox's mounts, and ldconfig -C makes its cache
* feat(native): Flatpak sandboxes run without proot, and apply_extra runs without a runtime
* fix(native): remove, glob and nftw take guest paths, and links in a mount are followed as the guest sees them
* fix(native): Flatpak sandboxes get the session's mounts, their libraries' RUNPATHs, and no rootfs-only settings
* fix(native): gethostbyname asks the network's DNS servers, nftw of / gives single slashes, and the library path fits mapped directories
* fix(native): a native process starts in its working directory's real place
* fix(native): the library path given to ld.so holds whole directories only
* fix(native): Wine drive links keep their guest paths, so proot finds the library after a native session
* fix(native): droiddeckctl native prepares the rootfs with the setting off
* fix(native): a SysV segment stays while any process has it attached
* fix(native): DNS lookups ask the network's own servers before public ones
* fix(native): a program's own seccomp traps reach its own SIGSYS handler
* feat(native): run native sessions under a device's own app seccomp filter for testing
* fix(native): SysV attaches and collection take a lock, a failed mark fails the attach, and collection closes its directory
* fix(native): shmat fails when it cannot take the segment lock
* fix(native): the SysV segment lock is retried when a signal interrupts it
* fix(native): process tools see the session's processes as root's
* fix(native): native processes are named after their program, not ld.so
* fix(native): a session's helpers keep the mode the session started in
* fix(native): a keyed SysV segment stays until IPC_RMID
* fix(native): a rootfs link to an absolute guest path is followed in the guest, so Wine finds its z: drive
* fix(native): a sandbox whose loader can't be patched runs under proot
* fix(native): creating a private SysV segment also collects stale ones
* fix(native): a session stopped during startup forgets its mode
* fix(xbox): a native backend is authorized by its process ancestry
* fix(native): Wine's drive links are followed in the guest from any prefix
* fix(native): only the startup that owns the running session publishes its mode
* fix(native): a SysV segment stays until IPC_RMID even after its maker ends
* fix(native): a sandbox mount nested in another mount gets its own place
* fix(native): a sandbox whose mount places can't be made runs under proot
* fix(input): fakeinput no longer aborts programs whose allocator calls a hooked function at startup
* fix(ctl): screenshot finds display ids that the device name carries inline
* fix(input): fakeinput registers its fork handlers before other threads see its config
Stream each archive entry to disk instead of reading it into memory,
refuse an archive from a session that started after the state call, and
delete the exported zip from shared storage once it has been pulled.
`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.
Nothing in droiddeckctl reported temperature, so a before/after
comparison could start one run hot and the next cold.
`thermal` reads the battery temperature from dumpsys battery, the
thermal status from dumpsys thermalservice, and each CPU policy's
scaling_max_freq against cpuinfo_max_freq (capped when lower), all
readable over plain adb. `wait cool --below <C>` polls it every 10 s
until the battery is under that temperature, or exits 5 at --timeout.
* chore(i18n): translate every missing string in all locales
Adds the 87 strings the bottom-screen Dashboard and in-game stats pages
introduced to all 32 locales, plus the 51 older settings strings Japanese
and the 50 Chinese locales were still missing. Every locale now has all
3456 translatable strings with the same placeholders as English.
Also translates 36 entries that were still English where the language
does not use the English word, and makes es-419 touch_app_id use the same
%1$s placeholder as English.
* chore(patches): drop comments from the lines downstream patches add
Removes comment lines and trailing comments from lines our patches add,
with hunk headers recounted. Lines that a later patch uses as context
and the upstream backport 0123 are left as they are.
The gamescope, FEX, proot and xodus series still apply to their pinned
sources, and the patched trees differ only in those comments.
test_hud_frames now finds the HUD writer by its first declaration.
* docs: credit Greenlight, Better xCloud, viture-v2, GameNative and DiRTTelemetryErrorFix
These were credited only in source headers and NOTICE files.
* chore: remove source comments and unused functions
Removes explanatory comments from first-party Kotlin, Java, C, C++,
Rust, TypeScript, Python, shell, Gradle, CMake and workflow files.
License and attribution headers stay, and vendored third-party trees,
generated files and license files are untouched. A shellcheck directive
is kept, and udevmon's fallthrough comments became fallthrough attributes.
Syntax trees and token streams match the previous sources apart from the
comments and Python docstrings. Module docstrings that argparse prints
are kept, and device-smoke.sh prints the same --help text from a heredoc.
Also removes 37 functions and 4 fields that nothing referenced.
* chore: remove comments from the Syncthing integration and the latest main sources
* docs: credit Syncthing and the syncthing-android fork
* chore(i18n): translate the Syncthing strings in all locales
The 107 strings the Syncthing integration added are now in all 32 locales.
sync_web_path_locked names the Syncthing tab by its label.
* docs: credit @xXJSONDeruloXx for the HUD metric readers
The CPU, GPU load, thermal and battery readers come from their
PerformanceHudView pull requests #777, #877, #991, #1406 and #1573.
The FusionHUD credit line is unchanged.
* docs: credit the HUD metric readers to @xXJSONDeruloXx's work
The value goes to the device shell inside `am start -n` and `content call --uri`.
Anything but a dotted Android package name is refused before adb runs.
* fix: droiddeckctl pacing judges cadence per refresh-rate record and always turns timestats off
Follow-up to the CodeRabbit reviews of #843/#855:
- off-cadence is counted per layer record against that record's own cadence,
allowing the neighbouring millisecond bucket (16.7 ms lands in 16 or 17);
- refreshRates comes from the chosen layer records only;
- records with no counted frames are skipped, so an empty game layer no longer
hides the session's SurfaceView, and a capture with no frames exits NO_FRAMES;
- adb failures while enabling or dumping map to PACING_FAILED, and timestats
is disabled in every case.
* fix: droiddeckctl pacing reports when timestats could not be turned off
feat: droiddeckctl pacing reports the frames that reached the screen
Reads SurfaceFlinger's timestats for the game's layer (or the session's
SurfaceView) over a capture: frames on screen, fps on screen, the
present-to-present histogram and how many intervals were off the usual
cadence. Records split by a refresh-rate change are summed. A game's own fps
counter counts frames handed over, so it can't show dropped or doubled frames.
Co-authored-by: angelrenefm <17342133+angelrenefm@users.noreply.github.com>
fix: droiddeckctl reaches builds shipped under a variant package
The provider authority and the start Activity's component were fixed to
com.droiddeck.launcher, so droiddeckctl could not talk to the antutu,
ludashi or pubg builds from tools/release/variants.txt. DROIDDECK_PACKAGE
now picks the package; the Activity's class name stays the same in every
variant.
Co-authored-by: angelrenefm <17342133+angelrenefm@users.noreply.github.com>
* feat: run a guest agent in every session for commands, focus and the Steam client's DevTools
* feat: give the agent bridge game, input, UI and experiment commands behind a Setup toggle
* feat: droiddeckctl commands for the new bridge, a scenario runner and contract tests
* feat: run cleanup steps after every scenario run so a failure cannot leak into the next
* feat: restart a session that died between scenario runs with start --reuse
* fix: give droiddeckctl stop its own, longer wait for the session's logs
* fix: harden debugging tools access and output