DLSS games only work with the nvapi64.dll hooks that let NGX accept the bridge DLLs (without them
the DLSS sample stops at GetFeatureRequirements with PlatformError; with them it runs Full FSR 4.1
on the NPU in D3D11 and D3D12, Red Magic 12 Pro). DLSS mode now has the fix on unless the player
switches it off: the app stores "1" or "0" for DLSS games and reads a missing entry as on, and
droiddeck-game-env passes 1 unless the game stores 0. Upstream always installs the hooks.
ensure() returns at once when the data files and DLLs exist, so the refresh added in aabacc10 never
ran (Red Magic 12 Pro: no stamp written, old 09:15 DLLs kept). prepare() runs on the session-start
thread before the game copies the DLLs; it now calls stageBridges(), which returns at once when the
stamp matches the pack or local copy.
Staging ran only when no DLLs were staged, so a newer add-on pack or local copy never reached
the games. ensure() now re-stages when DLLs are present (stageBridges returns at once when the
stamp matches) and downloads only when none are staged. The local-copy stamp is a hash of the
files' contents: CI builds every DLL with the same date and libxess.dll kept its size, so the
old size+date stamp matched (Red Magic 12 Pro, r5 test).
Layer and bridges updated from Winlator-NeuralScale 71c140d9 (michaelisomer-cyber, GPL-3.0):
- full FSR 4.1 on the NPU (S8 graph, U8 fallback), compiled on the device per HTP arch
- ghosting fix: blank far depth when a game sends none, binding 11 bound with 62
- FSR 4.1.2 Lite S8/U8 zero-copy graphs
- Snapdragon GSR 2 on the GPU (new engine sgsr2_gpu)
- D3D11 DLSS through DXVK's interop (nvngx D3D11 entry points)
Left out on purpose: upstream's root-only performance/thermal manager, GPU clock floor and
bypass charging. Kept from DroidDeck: NPU detection by the app (DROIDDECK_UPSCALE_NPU, any HTP
generation incl. the phone's own QNN libraries) instead of upstream's SoC list, DD env names and
log tags, Intel XeSS 3 (runtime still fetched from a0ab6b0f, upstream dropped it in cb3ae04e).
FSR 4.0 on the NPU is gone upstream; the engine id becomes fsr4_1_full_npu and saved
fsr4_0_npu choices map to it. The full-FSR-4-on-Turnip guard is now opt-in
(DROIDDECK_UPSCALE_FULL_OFF_ON_TURNIP=1), since upstream's binding-11 fix targets that black frame.
Data files re-pinned to 71c140d9 (81 core + 8 NPU, sha256 checked).
Phones whose vendor offers the QNN HTP libraries to apps (public.libraries.txt)
now run the NPU engines on them, any HTP generation, with nothing downloaded:
the app finds the generation from the vendor's libQnnHtpV<NN>Stub.so and passes
DROIDDECK_UPSCALE_HTP_ARCH; the layer takes the bundled QNN files only for an
arch whose skel came with them, else loads the vendor libraries by name.
Red Magic 12 Pro (SM8975, HTP V85, no root), layer QNN code in a probe:
FSR 4.1.2 Lite INT8 graph compiled on the phone (2.0 s, cached 0.3 s),
1.2 ms per run at perf, 0 failures; arch found without HTP_ARCH.
Conflicts: drawer pages moved into functions on main (upscaler group now in
DrawerGamePage), launch.sh WSI bypass line, recipes.json/runtime_inputs.py
lists (main's IME entries + the upscale layer), game-environment tests (both
classes kept).
Add the session engine picker and the stepped Game zoom slider. Keep Frame Generation in its own tab and use the standard controller focus ring on its buttons.
feat(agent): open chat pictures full screen
Tapping a picture in the agent chat, or an attached image, opens it over
the whole window. Pinch or double-tap zooms and dragging pans; a tap, a
swipe down, Back or B, or the close button closes it. It is a popup so it
also works in the pet's chat, which lives in an overlay window.
The pet's chat panel absorbed taps with a clickable disabled while the
chat was closed. A disabled clickable drops its focus node, so closing the
chat removed a node above the still-focused editor and reopening put back a
new, unfocused one in its place. Compose then found no focus target for key
events: backspace and other key presses were dropped, and with the pet's
view focused, DroidDeck crashed with "Event can't be processed because we
do not have an active focus target".
Use independent portrait and landscape alignment, with Top and 1280×800 as the default in Steam portrait. Keep explicit resolutions and existing controls modes.
Original Xbox games sold for PC through the Xbox store (Xbox360BackwardCompatibil.* packages: Fuzion Frenzy, BLiNX, Conker, Crimson Skies, Grabbed by the Ghoulies, Morrowind, Red Faction II, ...) now start and play on DroidDeck-Bionic.
- droiddeck-xbox: keep the GameInput redistributable, remove its service class; run install actions with FEX's safe settings; find MicrosoftGame.config in any case and skip one that does not parse.
- droiddeck-game-env: fix rule for these games turns on the emulator fixes in the Wine, FEX and VKD3D-Proton builds made for them.
- Components: each installed game gets the Xbox FEX, VKD3D-Proton and DXVK builds, never over a player's choice (also not one made during the download).
- Xbox store: these games show the size of their console package.
- DroidDeck-Bionic launch.sh keeps the Wine and VKD3D-Proton switches; bionic pack uses the v18 layer with the fixes (released as DroidDeck-Bionic 14.1 r104).
- Xbox backend: purchases that name a legacy marketplace offer reach the library.
Keep About, Launch, and Install in the game detail strip. Use dropdowns for top-level sources in portrait and narrow panes. Default Library title and size overlays to off without overriding saved choices.
* Controls below the game: drop the second-screen bar, Steam and Quick Access under the pad
* Test the keys under the unfolded pad instead of the removed bar
* Keep a touch drawer button below the game
EA keeps its sign-in session in cookies scoped under the sign-in paths
(/connect on accounts.ea.com, /p on signin.ea.com). Sign-out and the
fresh sign-in only listed and expired cookies at /, so the old session
survived and EA signed the previous account straight back in.
Cookie expiry now also covers every path prefix of each sign-in URL, and
the EA sign-in URLs name those paths.
Closes#2457
* feat(ui): tabs that do not fit a narrow page open as a dropdown
In portrait or on a narrow page, a row of section pills that would scroll
sideways becomes one chip naming the shown section, which opens the list of
sections, as the second screen's picker does. Covers the sheets' pills
(Steam, desktop, glasses, Settings and the others on SheetChips), TabStrip,
the game page's tabs and the Stores chips.
* fix(stores): the compact store picker takes controller focus, survives a hidden store and keeps the signed-out status
* fix(ui): picking the shown tab from the tab menu still activates it
Before the runtime is installed, the rootfs has no native hook yet, so the
child-process check assumed the next session would be counted and showed
"Finish setup" for wireless debugging. The session stages the hook from the
APK before it starts, so predict the next session from the setting and the
rootfs loader instead; a runtime still to be installed will have one.
Commit Android IME text through the focused renderer and submit only after delivery is confirmed. Restore Steam pinyin on Ubuntu rc7 and allow older runtimes to start normally without IBus.
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.
Fall back to standard audio mode after low-latency failures and cap consecutive startup restarts. On the Pocket Fit Elite, the exact locally signed PR build accepted playback in both DirectAudio modes. The Samsung-specific failure did not reproduce on that device.
Add opt-in frosted wallpaper and cards with separate transparency settings. Keep dialogs solid and fall back to the standard palette when blur or readable contrast is unavailable.
EA games open two LSX sessions: the activation layer's, which holds the launch,
and the game SDK's, which claims the same game but is never trusted. GetProfile
then sent it an empty UserId/PersonaId, which the SDK parses as integers, and
Lost in Random quit on the FormatException. Sessions that claimed the prepared
game now get the profile ids (tokens, codes, licences and entitlements stay with
the trusted session), and GetSettings is answered with the SDK's
GetSettingsResponse instead of ErrorSuccess.
* 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 <the412banner@users.noreply.github.com>
Co-authored-by: The412Banner <205237651+The412Banner@users.noreply.github.com>
* 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
* Add per-session orientation preferences
* Apply orientation preference for active session
* Use session-specific orientation for output following
* Test independent session orientation preferences
* Map run sessions to Steam orientation preference
* Add separate Steam and desktop orientation controls
* Cover session mode orientation mapping
* Persist in-session orientation by session mode
* Refresh inherited orientation settings after global change
* Resolve window and portrait orientation by session mode
* Use session orientation for output sizing and window behavior
* Test mode-specific window and portrait orientation
* Refresh session orientation choices on resume
* Refresh session orientation choices on resume
* Use Compose lifecycle owner import
* Trigger CI
* fix(display): copy the game and the window above it in one GPU submit
When a game's frames go on the layer-copy path and a window sits above
the game, each scene copied the game frame and then the window above it
with two separate submits and two CPU waits. Each wait queued behind
the game's own GPU work, so a GPU-bound game lost on-screen frames to
the second wait.
Record both copies in one command buffer, merge their release fences,
and wait once per scene. The zero-copy path and the single-layer copy
path are unchanged.
* Check overlay eligibility against the frame's own game geometry and keep both release waits when a fence merge fails
The Bionic launcher no longer forces the WSI layer's XWayland bypass; the layer runs its normal eligibility check, cached for 100 ms. The compositor logs, rate-limited, why a frame or layer candidate leaves the zero-copy path: no registered gralloc buffer, a failed direct present, or a rejected candidate draw.
Tested on a 60 Hz Adreno handheld with the forced bypass on and off and with two driver versions: every run stayed on the zero-copy path at about 60 fps.