Run Kotlin tests beside APK compilation while keeping merge and release checks intact. Pin the APK and test workflows to the same pull request base, retry Robolectric rate limits on both Maven Central hosts, and verify source parity when main advances.
* docs: research Android's child-process limit without developer options
* docs: confirm the child-process gaps on the Thor
* feat(session): start long-lived daemons in uncounted worker processes
* feat(nativeguest): hand long-lived programs to uncounted worker processes
* test(session): run the session bus block with dd_spawn
* test(nativeguest): cover the exec handoff's wait and kill
* feat(session): run the session root, its jobs and the gamescope chain outside the child-process count
* feat(setup): the child-process limit no longer blocks Steam while the session runs in workers
* feat(audio): run PulseAudio outside the child-process count
* feat(nativeguest): hand off posix_spawn children and keep handed-off daemons alive
* fix(nativeguest): let Steam end a handed-off game and keep process-group signals
* perf(session): exec a worker as soon as its reply is in and keep two bound ahead; fix review findings
* fix(nativeguest): address review findings in handoff waits, signals and spawn errors
* fix(session): commit each worker launch explicitly and keep workers with the session that asked
* fix(session): let a worker wait for its launch commit on the main thread
* fix(session): confirm handoffs, honour wait selectors and stop spawns at teardown
* fix(session): one owner per handoff exit, worker launch answers and spawn edge cases
* fix(session): send a working directory outside the program's root by its real path
* fix(session): recheck a taken exit's child and commit a launch only on a whole go line
* fix(session): three-step launch, tagged exit reports and lock-free popen and system children
* test(native): popen test shell is static, as the other hook fixtures
* test(native): run the popen test program with a clean environment
* test(native): skip the popen test where a spawn child cannot exec aarch64
* fix(session): confirm the hook before the worker runs, prefer a late report and free a reused pid
* fix(session): tell a reused pid's old entry by start time, not the reaped flag
* fix(session): silent failed launches, bounded spawn requests and held check-gone writes
* test(native): check the unlisted child's status only where a child can exec aarch64
* fix(session): every exit-only waitid goes through the handoff wait
* fix(handoff): exact waitid events, safe exit timer, bounded request receipt
* feat(handoff): hand off shell children near Android's process limit
* fix(agent): tag handed-off game windows outside the reaper
* fix(handoff): a handed-off program's getppid() is its forking process
* fix(handoff): exact waitid selection, kept Steam and pipe readers, held reports
* fix(handoff): getppid() gives init for an exited or replaced parent
* fix(handoff): keep __WALL waitid calls on the handoff path
* test(handoff): require a zombie parent in the unreaped-parent case
* fix(handoff): honor __WNOTHREAD and check every argument for Steam
* fix(handoff): stop waiting on a held entry once its parent has exited
* fix(handoff): __WNOTHREAD on waits for a pid, flags on every shim reap
* fix(handoff): keep the forking thread of each child in the parent
* fix(handoff): a wait that finds no child rechecks live handoffs
* fix(handoff): keep a child's forking thread until its end is taken
* fix(handoff): the thread selector applies to claims in progress too
* fix(handoff): controlling-terminal check via /dev/tty, owned records only
* fix(handoff): a child whose forking thread ended is any thread's
* fix(handoff): a parent /proc cannot read is checked with kill(), then given up
* fix(handoff): one-word fork records, changed only by compare-and-swap
* fix(handoff): watch the forking parent through a pidfd opened at start
* fix(handoff): fork records by pid, a gone thread's children go to the main one
* fix(handoff): keep the parent pidfd through dup2 and check it before use
* fix(handoff): no handoff without fork records, unknown thread state keeps the owner
* fix(handoff): undo a pidfd move when dup fails, recheck it after the poll
* fix(handoff): fresh fork records in a forked child, heir is the first live thread
* fix(handoff): one lock over a pidfd move, its dup and the undo
* fix(handoff): liveness check under the pidfd lock, forget only a reaped pid's record
* fix(handoff): lock only dups onto the pidfd, with signals blocked
* fix(handoff): fork record generations, no pidfd restore after a failed move
* fix(handoff): every dup in a pidfd process locks, fork prep blocks signals
* test(semaphores): tell a child hung in qemu-user from a guest deadlock
* fix(handoff): fork records matched by the child's start time, never removed
* test(semaphores): count only reaped children, only futex waits as emulator stalls
* fix(handoff): a known-start bit in fork records
* fix(handoff): dup bookkeeping before the pidfd lock, newer fork records kept
* fix(handoff): a fork record stays only for the pid's current process
* fix(handoff): keep a pending child's fork record when an older fork records late
* fix(handoff): an unknown-start fork record never replaces a pending one
* fix(handoff): self-recorded forks, ELF and wait option checks, both nofile limits
* test(handoff): find the module in the namespace run under discover too
* fix(handoff): a spare parent pidfd made at start, so a dup2 onto it makes no fd
* test(handoff): require ENOEXEC for an ELF stub; skip the namespace run without binfmt
* fix(hook): change the kept fd list under a sequence lock; readers take a copy
* fix(handoff): one report per handed-off child; stops keep a claim; nested waits keep their selector
* fix(hook): a table made at runtime outlives closes begun before it; unknown-start fork records kept
* fix(handoff): waits look before they reap, so a handed-off fork's child is never reported
* fix(hook): settle waits out earlier epochs; unknown-start fork records kept for any handoff under way
* fix(handoff): generation-checked reap marks, stops taken as stops, close counts reset in a fork
* fix(handoff): one given-up table at most, whole stop codes and rusage, WNOWAIT exits rechecked
* fix(handoff): requests name their session; stops of handed-off programs reported; cancellable look
* fix(handoff): table setup not cancellable; test spawner never runs what it cannot end
* fix(handoff): job-control jobs stay counted; unnamed requests refused; cancel-safe setup
* docs(phantom): job-control jobs stay counted; listed programs report no stops
* fix(handoff): a listed program a shell runs as a job-control job stays counted
* refactor(hook): kept descriptors in their own part, a handoff matched by another program
The descriptors close(), close_range() and closefrom() leave open move from
privileged.c to hook/kept.c (unchanged), so the bionic runtime's exec shim can
build the handoff with them. ddh_try_as() matches DD_HANDOFF against one
program and sends another: the bionic shim sends "/system/bin/linker64 PROGRAM
ARGS" and lists it by PROGRAM. ddh_try() is ddh_try_as() with both the same.
* feat(bionic): hand the bionic runtime's Wine programs to the app's workers
The glibc session's hook never sees DroidDeck-Bionic's processes (Wine on
Android's libc), so a bionic game's Wine programs all stayed counted under the
worker running the tool's launch.sh. The handoff is now built into the
runtime's exec shim (tools/bionic-runtime/handoff.c, part of libexecshim.so):
- hook/handoff.c and hook/kept.c with what the native hook's other parts do
around them: fork(), close(), close_range(), dup2(), dup3(), and exit() for
the on_exit() bionic lacks
- bionic's execv(), execvp(), execl*() reach the execve system call inside
libc, past execshim's execve(); Wine starts its preloader with execv(), so
the shim defines them on top of its execve()
- a linker64 start is listed by its program
- the app starts a handed-off program from the glibc root's bash, which cannot
load the runtime's LD_PRELOAD/LD_LIBRARY_PATH: they go as arguments of
/system/bin/env, which puts them back for the program
- launch.sh keeps DD_SPAWN, DD_SPAWN_SESSION, DD_HANDOFF*, DDH_* and
DDNATV_ROOT, and its /proc/N/environ reads no longer print "Permission
denied" for idle workers (2>/dev/null before the redirect)
Pocket FIT, DroidDeck-Bionic 14.1-r67 with this shim and launcher, handoff on:
counted during Brawlhalla 25 -> 17, DiRT Showdown 24-27 -> 16, whole run
28 -> 19-20; with Android's limit on no DroidDeck process and no other app's
process was killed (before: Discord, BatteryLog helpers); DiRT 75 fps either
way. docs/phantom-processes.md: "The bionic runtime".
* fix(bionic): hand off only starts that would succeed here; bionic's execvp fallbacks
Review follow-ups on the bionic runtime's handoff (tools/bionic-runtime/handoff.c):
- A start is handed to a worker only when it would get past execve() in this process: the file is a
regular executable outside the app's data (Android refuses execve() there), and for a linker64 start
the program it loads is a readable regular file. A start that failed in the worker failed where the
caller could not see it, so Wine never tried its next candidate. The hook's own check looked at
/system/bin/env, not the program.
- A start whose argv[0] is not its file stays here: env starts FILE with FILE as argv[0]. linker64 and
interpreter starts are unaffected (their argv[0] is the file). An empty argv stays here too.
- Nothing is built for the handoff without DD_SPAWN and DD_HANDOFF.
- execvp()/execvpe()/execlp() follow bionic's: an unset PATH is libc's default, an empty PATH or entry
is the current directory, and a file the kernel cannot start (ENOEXEC) runs under /system/bin/sh.
- close_range() refuses first > last and unknown flags before it splits the range or unshares the table.
- The debug line reads the table's owner only once the table is seen published.
* fix(bionic): hand off app-data starts only where SELinux lets them run; bare names stay here
Follow-up to 7d95564f7 (review, and a Pocket FIT test of its pack):
- 7d95564f7 kept every start of a file in the app's data here. Wine's preloader is one (a static ELF,
so execshim.c cannot make it a linker64 start), and where SELinux is permissive, as on AYANEO's
firmware, it runs: Wine then never reached its loader, and its programs ran here, counted again
(Pocket FIT: Brawlhalla 26-28 counted vs 16-17 before). Where SELinux enforces, Android refuses the
exec, here and in a worker alike, and Wine falls back to its loader, which goes as a linker64 start.
Such a start is now handed off when /sys/fs/selinux/enforce reads 0, and stays here otherwise
(also when the setting cannot be read).
- The program a start would run is checked with the hook's own ddh_startable() (an ELF the kernel
loads with its interpreter there, or a script with its interpreter): for a linker64 start, the
program it loads.
- A file name without '/' stays here: env would look it up in PATH, the exec here in the caller's
working directory.
- execvpe() skips a PATH entry whose candidate exceeds PATH_MAX (ENAMETOOLONG) instead of copying
it onto the stack.
* fix(handoff): spawn blocks signals and cancellation across the fork; root flag stored under the stop lock
* fix(handoff): a thread that unshares its fd table keeps its own copy of the kept fds
* fix(handoff): register the kept list's fork handlers before a split takes its lock
* test(handoff): cover WNOHANG with a held forked child, early reaps, blocked waitid and pidfd parents; keep the counted-process exception in translations
* test(handoff): exited-entry precondition, atomic checkpoints, a pidfd-only zombie check; validate the shim hold fd
* test(handoff): WNOHANG with two handed-off children and for a group; a program's exit while its entry is held
* test(handoff): a held exit with no free fd, with and without the parent's pidfd
* test(handoff): held-exit tests require the program's own exit status
* test(handoff): time held exits from the run, and only once the program is at its exit
* perf(handoff): keep the asker's priority, quick tools local, workers bound ahead of a game (#3582)
Three fixes that bring handoff-on speed to within 1-2 % of handoff off
(AIO D3D11 same session: 3196 -> 3520 fps, 1 % low 444 -> 637) with the
same counted processes (benchmark mean 18.5, peak 23):
- A handed-off program keeps its asker's priority. Workers are bound
from the top app with BIND_IMPORTANT, so Android boosts their main
thread to THREAD_PRIORITY_TOP_APP_BOOST (-10); the program the worker
execs inherited it. The asker's nice value is sent with the request and
set before execve, and a watcher resets it if Android boosts it again.
- Quick script tools (awk, sed, grep, cat, ...) stay where they are when
the count is near the limit. Sent to a worker, the forked child waits
(counted) while a worker starts; run locally it is counted for a few ms.
- Workers are bound ahead when a Steam game is queued (16 for 20 s), so
Wine's services do not wait on zygote forks at game start.
---------
Co-authored-by: The412Banner <[email protected]>
Co-authored-by: The412Banner <[email protected]>
* feat(native): run the desktop, its apps and shells as an ordinary user instead of fake root
* fix(native): a script's interpreter takes DDNATV_BECOME, so sudo runs scripts as root
* fix(desktop): keep the Plasma start line the pipewire tests slice the script at
* fix(native): terminals use the ioctls Android allows on an app's pseudo-terminal
* fix(native): leave a terminal request alone when its register is read before the high half
* fix(gamescope): a pending scanout wait keeps its forwarded buffer alive
Patch 0147 waits for scanout on a forwarded client buffer with a raw
pointer to its CWaylandFb. If the buffer was shown again and the next host
release found scanout already over, that release dropped the last
reference while the earlier wait was still queued, and the wait then
called OnScanoutDone on a freed buffer. The wait now holds a reference
until it finishes.
* fix(gamescope): composite every frame when the host releases buffers before scanout
Holding a forwarded client buffer until scanout ends (0147) costs a three-buffer
client a third of the refresh rate: Steam's UI ran at 80 fps on a 120 Hz screen.
Once the backend sees a forwarded buffer released while it is still being
scanned out, it composites every frame into its own output images, which 0146
reuses at latch. The Steam UI runs at 120 fps again on the Pocket FIT.
* Pin the gamescope build with the scanout wait reference and full-rate compositing
* feat(drawer): fold session menu groups into summarized sections and regroup pages
* chore(drawer): drop unused strings
* fix(drawer): observe controller state, drop stale achievements, stable section keys
* fix(droiddeckctl): gamepad and pen input on Android 13 and 14 QPR1
* fix(droiddeckctl): read the pen's codes before its bus so Android 14 QPR1 retries numerically
* test(semaphores): tell a child hung in qemu-user from a guest deadlock
* test(semaphores): calibrate qemu's guest base and end a stuck child on timeout
* docs: bottom screen research and proposals
* docs: expand bottom screen region mirror, guides and companion API
* feat(bottom): idle home card, per-game panel memory, Steam achievements tab and screen off
* feat(bottom): quick tiles page on the dashboard
* feat(bottom): Steam guides tab with per-game reading position
* feat(bottom): companion page with Stardew, Skyrim and Fallout 4 adapters
* docs: bottom screen implementation status
* feat(bottom): mirror a region of the game picture on the bottom screen
* fix(bottom): follow Steam's selection for any game, composite while mirroring
* docs: bottom screen hardware results and screenshots
* feat(bottom): guides wiki, fixes, maps and saved pages; hide mirrored region on top
* feat(bottom): guides, mirror and companion as their own panels in the app's settings style
* feat(bottom): Steam's Quick Access menu as a bottom screen panel
* fix(bottom): park Steam's Quick Access through its own bounds and keep it open on a lease
* feat(bottom): align Quick Access left, centre or right; keep its tab and Decky working
* fix(bottom): quieter Quick Access move handles, instant reopen, Decky tab after a cold start
* fix(bottom): lay Quick Access out at the panel's shape so every tab keeps one size
* feat(bottom): Quick Access tabs fill the bottom screen
* fix(bottom): the Quick Access button still opens the menu on the top screen
* feat(bottom): choose Quick Access layout from the bar: full width, left, center or right
* feat(bottom): brightness slider for the bottom screen with screen off at its end
* feat(bottom): game art panel, hideable bar with a pull tab, direct guide links, centred guide tabs
* fix(bottom): mirror fills the panel, options open from the bar
* docs: drop the removed dashboard row screenshot
* refactor(bottom): split the companion panel into its own change
* fix(bottom): Steam dialogs take input over the parked Quick Access menu; review fixes
* fix(bottom): extract the Quick Access relay at session start; second review round
* fix(bottom): game art refreshes details for the same game
* fix(bottom): Quick Access retries back off; art never shows another game for the running one
* fix(bottom): Quick Access keeps its lease through retry backoff
* fix(bottom): renew the Quick Access lease apart from discovery
* fix(bottom): a Quick Access panel releases only its own lease
* fix(bottom): an older Quick Access panel cannot take back a newer panel's lease
* test(bottom): an expired Quick Access lease can be taken by any panel
* fix(bottom): only the Quick Access lease owner sets the menu's shape
Owned Steam games are listed in the Library's Steam tab like the other stores' games. Any of them installs from its page into the Steam library the user picks, with a Rust engine running in the app.
- Sign-in reuses the Linux Steam client's saved login; there is no second login.
- The engine picks the same depots and manifests the client would (licensed depots only) and checks every chunk's SHA-1 before writing it.
- It registers the game the way the client does (app manifest, libraryfolders, shared redistributables), so the client neither re-verifies nor re-downloads it. Updates stay with the client.
- A paused or interrupted download shows in the arm64 or x86-64 client as a resumable install. Taking over a client's stopped download keeps the files the client already staged.
- Uninstall matches the client's and updates the client whose library holds the game.
- Steam gets no Stores tab.
Tested on an AYN Thor with both client architectures. The engine is The412Banner's feat/steam-store work, derived from WinNative's wn-steam-client (GPL-3.0); see src/steam/NOTICE.md.
* fix(xbox): an application element with attributes on the next line still counts
* fix(xbox): repair the patch hunk for the pretty-printed manifest test
* fix(desktop): a Kubuntu-default panel gets the SteamOS layout and launcher icon
* fix(desktop): lay out Plasma's stock panel with the SteamOS pins, once, over an older panel
* fix(desktop): keep Plasma's wide-screen cap and input-method panel in the SteamOS layout
* fix(desktop): stamp the panel layout only after the old panel is backed up, never over a backup
* fix(session): report the CPU cache sizes the x86 CPUID reports to Windows programs
* fix(session): clear the staged core caches without following links
* fix(session): stage CPU cache binds per session generation and per core
* fix(session): keep every start's staged CPU caches until the process ends
* fix(session): give every start its own CPU cache staging folder
* test(session): a delayed worker from a recreated service keeps its own cache folder
---------
Co-authored-by: maxjivi05 <[email protected]>
* fix(ea): a failed touchup is retried and its output reaches the store log
* fix(ea): bound the touchup output kept for the store log
The output goes to a temporary file and only its last 64 KiB are read back. The timeout test now checks the output is logged and the next launch retries.
* fix(ea): a touchup still runs when its output cannot be captured
* fix(gog): bind every store root for installer extraction and log its error
* fix(gog): count the extracted size before downloading an offline installer
The installer fallback only checked free space for the download, so a
game that needs the download plus its extracted files failed after
every part was fetched, with innoextract's stream error. The failure
reason now drops innoextract's warnings and bug-report trailer.
* fix(gog): keep the internal store root visible to installer extraction
* fix(games): never give an added folder the internal store guest path
An added folder named Stores was bound at /root/Games/Stores, over the
internal store install root. legacyRoots, used by bindFolder and the
games-folder migration, now gives such a folder a suffixed guest path,
so guestBinds mounts every added root again, matching guestPath and the
session binds.
* fix(games): re-path saved folder binds that hold the internal store guest path
* test(games): verify extractor binds after migrating a saved internal-guest bind
* fix(gog): keep innoextract output in the log and leave the install failure message unchanged
* fix(gog): count known installer part sizes in the free-space check when some part has no size
* fix(library): keep another program of a Steam install out of the Steam app's route
* fix(library): cover a Steam-edited target in the unrouted-program test and docs
* fix(library): keep Steam-edited targets routed and release stale Spacewar imports for other programs
* fix(library): keep Steam-edited targets adopted before the marker existed routed
A saved executable and seen revision without the adoption marker are recognised
from the Steam shortcut record (its target is the current executable and differs
from the one the app asked for), and the marker is stored.
* fix(epic): hand Epic's terms step to the browser instead of looping the sign-in
When Epic's redirect page answers corrective_action_required (privacy policy or EULA
acceptance, e.g. for a newly created account), open Epic's account sign-in in the Android
browser, where the step is shown, and tell the user to finish it there and retry, instead
of failing verification and reloading the sign-in.
* test(epic): remove live response identifiers from fixture
* test(epic): cover browser step selection
* fix(epic): ignore a stale sign-in page read after the login was reloaded
* fix(epic): hold the browser handoff until the sign-in screen is started
* fix(ui): changing the language restarts the launcher instead of leaving it frozen
* fix(ui): a launcher restart no longer starts the startup session
* fix(ui): a stopping launcher no longer clears the hooks its replacement set
* fix(ui): a launcher restart keeps a pending session switch
* fix(ui): a launcher restart hands its state over in-process, not through intent extras
* perf(steam): setup applies Steam's client update itself so the first launch has nothing to unpack
The setup already downloads every package of Steam's client update. droiddeck-steam-preapply now extracts them and writes the .installed and .manifest records the way Steam's updater does, so the first launch verifies and starts instead of unpacking for about half a minute and restarting. When it cannot, the packages stay and Steam updates itself as before.
* perf(setup): the Steam stage skips the plain packages it just applied, and Proton's install trusts the prefetch's checksum
With the whole client update applied from the cached packages, the separate 362 MB plain-package install is redundant: the cache pass applies the update and finishes the install, and the plain install stays as the fallback. DroidDeck Proton's archive was hashed twice more at install time after the prefetch had already verified it; the install now reuses that result while the file is unchanged.
* fix(steam): a failed or cancelled apply leaves nothing stale, extraction stays inside the Steam root, and a cache failure still installs
A failed apply removes its record and the cache marker so the next run retries; cancelling stops the helper; entries that leave the Steam root, directly or through a symlink, are refused; the plain install still runs when the cache pass fails; Proton's install reuses the prefetch's verification only for the same digest.
* fix(steam): a cancelled apply clears the cache marker too
run_parallel is called in an || list, which switches set -e off inside it and inside its workers, so a failed claim left the worker's index empty and the worker exited successfully with packages unclaimed. The worker now checks the claim itself and marks the run failed, and claim_next uses the same flock command as the unpack lock.
The parallel workers claimed packages with mkdir, which is not atomic in the app's guest shell: two workers sometimes took the same package and about 3 installs in 8 failed on a device. Claims now come from a counter under a flock, and a counter that cannot be read or written fails the worker.
The child-process fix always uses the guided pairing flow, Finish setup opens the setting directly and queues the Steam launch, the Play button carries the first-run progress, the setup bar weighs each download by its real size, and the Steam client packages download over four connections and unpack one at a time under a flock.
* feat(tools): pre_pr.sh runs the CI checks the fast loop skips, for what the branch changes
* fix(tools): pre_pr.sh checks authorship with no file changes and skips deleted tests
* docs(agents): pre_pr.sh picks tests by name
* docs(agents): pre_pr.sh compiles and lints only for app changes
* fix(ci): cache the Windows launcher services so hosted runners finish within the job limit
* fix(ci): save each launcher build as soon as it finishes, and install both linkers for Rockstar
* feat(build): build_local.sh reuses main CI's prepared components when this tree would prepare the same
* docs(agents): build_local.sh reuses CI's prepared components
* fix(build): reuse only this repository's main artifacts, keyed by artifact id
* fix(build): CI reuse verifies before replacing, and declines other NDKs, PulseAudio sources, unregistered inputs and edited submodules
* fix(build): CI reuse also declines a VK_INCLUDE override
* fix(build): CI reuse also declines a custom build image
* fix(test): ProtonMenuAutoTest no longer fetches Proton releases from GitHub
aCachedCheckUpdatesOnlyInstalledFamiliesAndReplacesOlderDroidDeckProton left experimentalRefresh at its default, which downloads the release list with 10 s connect and 15 s read timeouts, so a slow or rate-limited network blew the test's 5 s wait.
* fix(test): a background-thread error no longer halts the unit test JVM
Every Robolectric test runs App.onCreate, which chains CrashHandler onto the default uncaught-exception handler. A plain JVM has none, so the first test's handler halts with exit 2 on any later uncaught error, and the chain grows by one layer per test. A Robolectric lifecycle plugin now resets the default handler to a printing one before each test.
* fix(build): helper script edits no longer invalidate the prepared runtime, and every build uses CI's NDK
* docs(agents): helper script edits no longer need build_local.sh
* feat(onboarding): one setup card, Steam client and Proton downloaded in the background, no component toast
* feat(onboarding): an optional Bluetooth controllers row in the setup card asks for the permission up front
* feat(onboarding): prefetch Steam's whole package cache, one foreground notification, child-process setup while downloads run
* test(steam): the cache pass keeps packages under Steam's names and is not repeated
* feat(onboarding): unpack the whole Steam client ahead of time and record it as installed, downloads no longer wait for a cool device
* feat(onboarding): setup progress on the Steam home page, Bluetooth asked only from the setup card, Steam unpacks its own files
* fix(onboarding): review fixes: removal does not report setup progress, cancel stops the whole prefetch, cache files are verified, no resume toast
* fix(onboarding): a cancelled prefetch is never a setup failure
* fix(onboarding): the Steam fact is updated atomically
* feat(onboarding): Bluetooth controllers moves into the Steam integration list
* fix(remote-play): the decoder reports a changed stream size, so fullscreen streams are not cropped to a corner
* fix(remote-play): capture buffers are sized for large streams up front and a size change reopens only the app decoder
* fix(remote-play): reject out-of-range scaling deltas and an SPS that ends before its frame flag
* feat(steam): first-run defaults for big art on Library home and the bouncing logo screensaver
* fix(steam): seeded keys land in the root store when nested stores close on its last line
* feat(ui): a More tab in the session menu keeps the pages you use least, and holds the way to arrange them
* fix(ui): bumpers walk only the strip, and back leaves a page kept inside More
* feat(ui): a Back to More row at the top of pages kept inside More
* refactor(ui): the arrange pages editor reuses the Edit tabs More divider
* feat(ui): the Session page can be kept inside More
* fix(ui): the on-screen bumpers step across the strip like the physical ones
* feat(ui): resize the session menu by its edge handle, and set dual screen to auto, on or off from the menu
* fix(ui): the session menu resize handle follows the finger across several moves per frame
* fix(ui): the closed agent menu button has no gap inside its outline
* feat(ui): the session menu's resize handle hovers just past its left edge
* fix(session): turning dual screen on from the menu moves the menu itself to the second screen
* fix(ui): keep the menu width bounds current and restore a pinned second-screen menu after backgrounding
* fix(display): preserve padded layer buffer layouts
* fix(display): fall back when layer allocation fails
* fix(display): write linear targets at their row pitch
build: make the local macOS build run natively, with no emulation
On an arm64 Mac the x86/i386 session preloads were built in a linux/amd64
container under emulation, and the Rockstar launcher failed to link against
Homebrew's SJLJ i686 mingw. Both now build on the host's own architecture.
- build_local.sh: on arm64 build the x86 preloads in a native arm64 Debian
bullseye container with the x86_64/i686 cross toolchains (glibc 2.31, as
before); x86 hosts keep the native gcc-multilib path.
- build-x86-preloads.sh: X86_CROSS=1 selects the cross toolchains.
- rockstar-launcher/build-container.sh: build the launcher in a native
Ubuntu container with a DWARF2 mingw, used on macOS only.
- vr/build.sh: stop aborting silently when ANDROID_NDK_HOME names an NDK
that is not installed.
- build_local.sh: expand the empty stores_check array safely on bash 3.2 so
the script reaches its signing step.
* feat(launcher): tick haptics for controller navigation, off for touch
* docs: regenerate settings map for controller haptics
* fix(launcher): tick for hat and stick navigation, which arrive as joystick-source keys
* fix(launcher): tick before the Components tab consumes L1/R1
* feat(session): arrange and hide the in-session menu pages
* fix(session): the end-session button is a true circle pinned to the right of the menu header
* fix(session): arrange-pages drag reads the current list; reset reloads the page layout even if the activity was recreated
* fix(session): Back leaves Arrange pages first; UI zoo previews don't save page layout
* fix(session): Back on a grabbed page row restores its order before anything else
* feat(input): restyle Steam Deck buttons
* feat(input): add Steam overlay options
* fix(input): align floating overlay previews
* fix(input): polish floating Steam trackpads
* fix(input): restore overlay options on startup
* fix(input): restore original Steam Deck artwork
* fix(input): restore Steam Deck overlay geometry
* fix(input): keep the Steam Deck shortcut row apart on small screens
The Steam pill sits right of the keyboard by a density-based margin while
Select and Start sit at unit-scaled offsets from the middle, so on a small,
dense surface (800x450 at xxxhdpi) the Steam pill covered Select. Lay out
Steam, Select, Start and Quick Access left to right with an 8 dp gap.
* fix(input): fit the Steam Deck shortcut row inside the safe area
Clamping each pill on its own after spacing could move Quick Access back
onto Start when a cutout inset narrows the right side. Fit the keyboard,
Steam, Select, Start and Quick Access as one row: push each right past its
neighbour, pull the row back inside the right edge, and shrink the 8 dp gap
only when the row would not fit otherwise.
---------
Co-authored-by: K11MCH1 <[email protected]>
Choosing a layout from the layout menu took the first actions saved for it.
Desktop and Steam mode both draw the stock Gamepad, and Desktop's actions
(stick moves the pointer, face buttons click and press Enter and Esc,
D-pad sends arrow keys) could come first, so Steam mode's on-screen pad
became a mouse and keyboard. A choice now takes the mode's own actions,
or any the other mode doesn't use, and a Steam-mode selection already
holding Desktop's actions is dropped on upgrade.
The editor is a dialog that starts at the default dialog size and is then
stretched to the full screen, so its preview could be laid out at a size it
was never measured at. Controls took their size from the earlier pass and
their position from the new one: in portrait, pills came out several times
taller and round buttons slid down. Each control is now sized from where the
canvas actually lays it out.
Since #1593 every process except the Steam client gets DroidDeck's udev
answers through dlsym. Steam's Remote Play client, streaming_client, is
an SDL3 program: for each input node it treats as a joystick, SDL3 asks
udev_device_get_driver for the device that udev_device_new_from_devnum
returned. The preload answered new_from_devnum with its own handle for a
virtual pad but did not answer get_driver, so the real libudev read the
handle as its own and streaming_client crashed before the stream opened.
It reaches that call whenever it can stat a pad node: the Xbox 360 pad,
Steam's own uinput gamepads, and since #2033 the pads it reads.
streaming_client now keeps the real libudev like the Steam client, and a
virtual pad answers get_driver with no driver, so other SDL3 programs no
longer crash on it.
* fix(input): saved layouts keep their shape on a rotated screen, sticks aren't cut off and old gamepads are kept
- A layout shown on a screen much taller or wider than it was saved for is
placed as one block (at the bottom in portrait) instead of anchoring each
control by its own third, which tore clusters such as the face buttons apart
in portrait and in the editor.
- A floating stick's base is drawn whole inside the overlay when the thumb
lands near an edge; input still centres on the touch.
- The migration that makes old-editor gamepads follow the kit again also keeps
a copy of each one that had kit positions, as "<name> (old layout)" with its
actions, so players can choose their old layout again.
* fix(input): the old-layout copy keeps only actions it can use, fits the library's limits and leaves same-orientation screens alone
- Actions for kit buttons the old gamepad never placed stay on the kit-following
gamepad and are dropped from the copy, which otherwise failed validation and
stopped the library from loading.
- When the copy and its actions don't fit the layout, action or saved-size
limits, the gamepad keeps its own positions instead.
- Block placement only applies when the screen and the layout differ in
orientation; a 4:3 layout on a wide landscape screen keeps edge anchoring.
The Steam kits keep their Steam and Quick Access buttons on the bottom row,
and Start and Select moved there too, but the Xbox kit's Guide button still
sat at the top centre of the screen and the PlayStation kits' PS button over
the middle of the game. Both now sit between Select and Start, where the real
pads have them, centred on the safe area like Select and Start.
* fix(input): Steam finds a DualShock or DualSense chosen mid-session
Android lets an app open a uevent netlink socket but not join its multicast
groups, and libudev joins none when no udev daemon runs, so the udev
monitors Steam's SDL opens heard nothing and the pad switch's add and remove
events reached no one. SDL only noticed a new PlayStation pad when the old
one happened to fail a read. A monitor left without a subscription is now
swapped for the session's stand-in under the same descriptor, so it
receives the injected events.
* test(preload): stub the udev monitor bind hook in the CDP guard build
* feat(input): describe on-screen layout choices, scope per-game layouts and delete unused ones
- The layout menu says what each choice is: "DroidDeck controls" work in
every game and are edited here; "Steam touch controls" are each game's
controls from Steam, for Steam games only.
- Layouts made with "+ New for <game>" (or "Just this game") are listed
only for that game, marked "Just for <game>". Older ones are recognised
by carrying the name of the game that draws them.
- Saved layouts nothing uses get a delete button in the menu. Deleting one
also removes a profile that still uses it but can no longer be chosen,
such as copies made by the old profile screen.
- A game set to Steam touch controls that runs without Steam shows a note
under Layout instead of silently using the default.
* fix(input): a layout the built-in profile still lists can be deleted once another is chosen
Applying a layout used to write it into the Game profile; choosing another
now goes on top, so the profile's part is no longer drawn. Only parts a mode
actually draws count as in use, and deleting points the built-in profile
back at the stock layout.
* fix(session): launching the running game again resumes it instead of asking Steam twice
A front end that resumes a suspended player by launching the same game again
(Cocoon 3.07 does) made DroidDeck queue the game for Steam a second time,
and Steam answered with "An error occurred while launching this game: Game
already running" over the game.
queueSteamGame now resumes the session and returns when the requested game is
the current one and its process is running. A different game, or one that has
exited, still goes to Steam as before.
* fix(session): a relaunch during a pending freeze resumes too, and both game ID forms count as the same game
* fix(session): remove the keep-top guard from other displays
#2763 put a transparent KeepTopActivity on every other display while a
session was on top, so lmkd killing that display's home could not move focus
off the session. A/B on a 12 GB AYN Thor (Android 13) and a Retroid Pocket
Duo (Android 16) found no case where it kept a session alive: with steady
pressure the bottom home (stock launcher or Cocoon) was killed up to 400
times per run without taking focus, and a burst big enough to matter makes
lmkd kill the session at adj 0 with or without the guard.
Its side effects were real:
- Android's ActivityRecordInputSink made the bottom screen ignore touch
(worked around in #2910 by stepping aside on touch).
- Cocoon tracks each display's top activity, so it could not suspend or
resume DroidDeck cleanly.
- The Thor's Game Assistant gives every app with an activity on top of the
bottom display that display's volume, so DroidDeck's audio followed the
bottom screen's volume slider.
Removes KeepTopActivity, the focus bounce and light pause, the memory
pressure trigger and their tests. onPause runs its departure cleanup every
time again.
tools/memory_guard_ab.py gains a burst mode, reads oom_score_adj without
su (lmkd kills the root manager app and su can then open its request screen
over the game), handles Android 13 dumps, a hung stop and a session that
does not start. docs/development/memory-guard-ab.md has the Thor results.
* test(session): the guard A/B fill mode starts its counter again, and a pressure run with no completed run fails
* test(session): the burst seed is rebuilt unless it is exactly 256 MiB
* test(session): the guard A/B burst takes its last partial chunk, and only a hog run that finished counts