* fix(battlenet): games installed inside the runtime stay listed after a native session
* test(battlenet): expect the shared folder for a lone Forever install
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
fix(preload): keep libudev loaded while the input wrappers use it
Programs that close libudev and open it again crashed in the next wrapped
udev call: the wrappers kept function pointers into the unmapped copy.
Pin libudev with RTLD_NODELETE when it is opened so those pointers and
the stored handle stay valid.
* 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
DroidDeck-Bionic: a Steam compatibility tool that runs the game itself on Android's libc (bionic) instead of glibc inside proot. Steam, the stores and the session stay on DroidDeck's Linux side; only the game process leaves proot.
- Listed in the Proton list only when Run without proot is on, in its own row. Its builds are pre-releases on Droid-Deck/DroidDeck-Proton (DroidDeck-Bionic-12.8-rNN, runtime built by .github/workflows/build-bionic-runtime.yml from tools/bionic-runtime); the app installs and updates them like the other extra tools and never makes one the default unless the user picks it.
- With proot on, a launch sent to a bionic tool goes to the newest DroidDeck-Proton (picks stay as set).
- ProtonExtras / ProtonMenu / ExperimentalProtons / droiddeck-proton-extra: bionic pre-releases checked and listed only without proot; updates carry the default and per-game picks over; deleting a tool never follows links out of it. ProtonDefault: picks left on an older bionic build move to the installed one.
- Components: FEX builds for bionic (bionic-stable on DroidDeck-Components); each tool is offered only the FEX builds that fit it.
- Session logs: the bionic game log and its graphics logs are part of Share logs.
Synced with main twice before the merge (latest sync fbed69ce on main 67b82ad9; Build APK and validation green); a local trial merge on main 3e1fc3e6 had no conflicts and the game-environment, Proton-extra and store-launch tests pass.
* 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 <maxjividen@gmail.com>
* 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(launcher): LT and RT keep the focus ring on the tab rail
A trigger step selected the tab like a tap on the rail, which also sent focus into the new page, and each page put it somewhere different. The step now shows the page and focuses its rail item, and for a second puts focus back on the rail if the page takes it, until another key is pressed. Dual screens, which have no rail on the main screen, keep focusing the page.
* fix(launcher): end the trigger step's rail hold when another navigation changes the page
A navigation that changed the selected page during the hold, such as opening a game from a link, was undone: the hold focused the stepped tab's rail item, and that focus switched the page back. The hold now stops as soon as the selection is no longer the one the step made.
* fix(launcher): end the trigger step's rail hold when another navigation opens a page
Opening the Components page does not change the selected tab, so a navigation there during the hold kept it running and the hold could pull focus from Components back to the rail. The hold now also tracks the page key: once the page its own step opened is showing, any other page ends the hold.
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
The unified input surface redrew the overlay on every stick move. Knob-only
moves now redraw through ThrottledRedraw at 33 ms and skip sub-pixel moves
away from the rim. Pad updates still go out on every event; touch down, touch
up and reaching the rim still redraw immediately.
Co-authored-by: Tapuuk <177422350+Tapuuk@users.noreply.github.com>
* 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.
#2958 reverted the controller redesign and its follow-ups, and #2946 was
in that list, so streaming_client lost the real libudev again. #2963
brought back #2942 but not #2946. With the session's udev answers,
SDL3 in streaming_client hands a virtual pad's handle to the real
udev_device_get_driver and crashes about a second after it starts.
streaming_client in steamrtarm64/steamrt64 keeps the real libudev again,
like the Steam client. The no-driver answer for pads that #2946 also
added is left to #2915, which covers every device call.
The nested Wayland pointer reaches wlserver as touch 0, and in the Disabled
touch click mode wlserver_touchmotion returned before moving anything.
Buttons go through wlserver_mousebutton, so they still arrived, at an X
pointer that stayed at (0,0). Steam picks Disabled for Don't Starve
Together: DroidDeck's cursor followed the mouse while every click landed
in the top-left corner. The nested pointer now warps the X pointer in
Disabled as in the other modes; real fingers are still ignored.
At the game's default monster mesh detail, slimes show only their tips.
Set the two skeletal mesh detail values in Engine.ini before each launch,
in the prefix the game profile selects, and keep the file's permissions.
The game ignores -ini: overrides and deletes a writable Engine.ini after
reading it, so a launch argument or a one-time write does not work.
* fix(desktop): Plasma draws on the system PowerVR driver
KWin lacks the Android-buffer Wayland protocol the system PowerVR driver's
swapchain needs, so every Plasma client failed with "zink: could not create
swapchain" and the desktop stayed black under the cursor. Plasma's clients now
present through DRI on that path, as the Steam session already does.
* test(desktop): the kopper override reaches Plasma's child processes
* test(desktop): check the kopper override where Plasma launches
---------
Co-authored-by: Jacob Lambert <183008808+JMLambo@users.noreply.github.com>
PRoot's link2symlink resolves /usr/bin/env to a `.l2s.env….` stub and the
guest's uutils coreutils multicall refuses that name:
Security violation: Requested utility 'env' does not match executable
name: /usr/lib/cargo/bin/coreutils/.l2s.env0001.0116
Every exec of these five scripts therefore dies with GUEST_EXIT 1 before
Python starts, 20-60 ms into the session. They are droiddeck-diagnostic-
inventory (the session's first child), droiddeck-desktop-bookmarks (the
desktop's bookmarks refresh), droiddeck-ime, droiddeck-steam-games and
droiddeck-steam-shortcuts.
The absolute interpreter is what the other payload scripts already use,
and the guest runtime installs the python3 package (tools/ubuntu/
packages-runtime.txt), so /usr/bin/python3 exists in the rootfs.
Only the tracked overlay copies change: app/src/main/assets/linuxfs is
generated by the stageSessionScripts Gradle task, so the asset copies
follow from the overlay.
Co-authored-by: Pablo González <pgm1207@users.noreply.github.com>
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* fix(native): programs started through the rootfs loader show their own command line
Without proot every dynamic guest program runs as "ld.so --preload <hook>
--library-path <dirs> --argv0 <name> <program> <args>", and the kernel's
/proc/<pid>/cmdline kept all of it. Launchers and the session match programs
by their command line, and Wine only moves its Windows command line over its
loader's name when its arguments follow each other, so the Battle.net launcher
never saw Battle.net.exe, gave up after five minutes and ended the session
with the game still running.
The hook now moves the program's own arguments to the front of that area at
start, as an exec of the program would have laid them out.
* fix(native): programs the app starts natively keep their path for /proc/<pid>/exe
* fix(native): the rewritten command line keeps AT_EXECFN naming the program
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* fix(display): layer buffers are imported as AHardwareBuffers only on the phone's own Vulkan driver
* fix(display): a failed 10-bit layer pool still falls back to 8-bit linear buffers
* 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
dd_descriptor_unlink, dd_descriptor_rmdir and dd_descriptor_rename put
one or two PATH_MAX buffers on their own frame (12 KB, 24 KB), and
dd_status_without_tracer put its 16 KB status buffer there, even on the
common path that only calls through to libc. Threads with small stacks,
such as .NET or Wine threads near their guard page, could overflow in
an otherwise plain unlink, rename or open.
The wrappers now do only the cheap checks and call the real function;
the buffers live in noinline helpers that run only when the descriptor
store or the status rewrite is actually needed. A test compiles both
sources with -fstack-usage and keeps each wrapper frame under 1 KB.
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* fix(apps): Up and Down in the app grid follow fast presses and keep the row in view
The grid composes rows ahead of the view without placing them. Down focused a tile there directly, so focus moved into
rows that never scrolled in, and the next Down searched from a tile with no place on screen and landed on the first
tile, sending the list back to the top. Up used the grid's own search, which works from where tiles are drawn at that
moment: with presses faster than the scroll it skipped the first row or drifted a column. And presses aimed from the
last settled focus, so fast ones were lost.
Up and Down now aim from the tile a move is already heading to, scroll that row fully into view, then focus it. At the
first or last row a press leaves the grid as before, unless a move has not landed yet, in which case it waits.
* fix(apps): a newer Up/Down move cancels the one still on its way, and a cancelled reveal frees the edge rows
A move whose target was not yet attached kept retrying its focus after a newer press, so the older tile could take
focus back. Each press now cancels the move before it. The pending target is also cleared when the reveal scroll is
cancelled (for example by a touch scroll), so Down on the last row and Up on the first no longer stay blocked.
* Apps: an Up/Down move holds its target tile by id and clears it only if it is still the latest move
A list update that shifts the tiles no longer leaves the next press aiming from the old index, and a
target that left the list drops its move. A cancelled move finishing late no longer clears the target
of a newer move to the same tile.
* fix(session): serialize launch requests in a coordinator
Replace the gameLaunchRequest counter and the single pendingGameLink field
with a LaunchCoordinator. A launch is now identified by a ticket, so a stale
callback can only act on its own request, and a game link is superseded by
any newer launch. Launching is also refused while a package install stage
is in progress.
* fix(frontend): a replacement intent supersedes uncommitted launch state
A game link that resolved while the launcher was not resumed stayed pending, so
opening Settings, following a notification or picking a shortcut left it in the
coordinator and the next library refresh launched the old game over the new
screen. The same gap let an ACTION_SETUP intent leave an accepted launch current,
so a late Xbox manifest check could start the game after the user had moved on.
A replacement activity intent now cancels every ticket this activity has not
dispatched, and the refresh path may only finish a link owned by the intent the
activity shows. The toast for a superseded store lookup is gated on its ticket,
and the coordinator test now proves cancelAll() invalidates a link ticket.
The deferred Proton-compat launch is untouched: its ordering still predates this
change and has its own follow-up.
* 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
* fix(desktop): a program started through a directory link knows its real path
* fix(desktop): a missing or non-directory component still fails the lookup
* fix(fex): a program run from a descriptor keeps its argv[0] and an absolute /proc/self/exe
* fix(fex): 64-bit programs send their socket credentials through the hook
D-Bus clients fill SCM_CREDENTIALS with getuid(), which is 0 under the guest. FEX sent x86-64 sendmsg straight to the kernel, which refused the fake root uid with EPERM, so GLib programs lost the session bus and every portal. sendmsg, recvmsg and getsockopt now go through libc like the identity calls, so the hook puts in the real ids and shows the peer as root.
The index carries the sha256 of every language pack, so loading it through a download mirror let the mirror pick both the hash and the pack that gets extracted into the Linux runtime. The index now always comes straight from GitHub; pack bodies can still use mirrors since their hash is trusted.
Co-authored-by: Tapuuk <177422350+Tapuuk@users.noreply.github.com>
* fix: run game thread hints on the SM8750P Snapdragon 8 Elite
* fix: gate game thread hints on the SoC model SocNames resolves
* fix: skip unknown SoC model properties
* fix(desktop): links read into a buffer sized from lstat show their guest target
lstat reports the guest length of a link stored with a rootfs target, and dpkg's
update-alternatives then reads it with exactly that many bytes. readlink filled the
buffer with the start of the host path, which could no longer be mapped back, so
every alternative looked dangling ("current alternative /data/dat is unknown").
The whole target is read first, mapped, then copied into the caller's buffer.
* fix(desktop): a zero-sized readlink buffer still fails with EINVAL
* test(desktop): read errno before printing the zero-size readlink result
* fix(loading): show the arm64 Steam client's update progress in every language
The arm64 bootstrapper writes its progress straight into session.log in the
client's language and with thousands separators, e.g.
"正在下载更新 (已下载 184,557,共 573,070 KB)" or
"Downloading update (184,557 of 573,070 KB)". UPDATE_PROGRESS only matched the
forwarded x86-64 form without separators, so the loading screen stayed on
"Waiting for Steam's first frame" with no percentage for the whole ~570 MB
first update. Users took that for a hang and cancelled; after two starts the
installer's repair wiped the partial download, so it started over each time.
Accept separators, and fall back to the bootstrapper's language-independent
"Set percent complete: N" line.
* chore: drop the added comment
* fix(loading): a zero or post-extract percent line no longer reads as a download
* fix(loading): an unknown percent ends the earlier download percent
* fix(session): ignore out-of-range percents and clear a percent after an unknown one
---------
Co-authored-by: guohaomin1995-dev <321670510+guohaomin1995-dev@users.noreply.github.com>
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
* fix: a Steam target whose file is gone goes back to the app's exe
A shortcut Target edited in Steam is kept across the client's restart on
purpose, but it was kept even after the file it names disappeared. When the
app's own exe already equalled the recorded proposal, nothing replaced the dead
target: Steam started `System/launcher.exe`, Wine answered
`err:steam:run_process Failed to create process ...: 2`, and the game never ran
(#694, after #1644 and #2022 removed the two real causes).
The merge now treats a target that is not a file as no edit at all and writes
the listing's exe and StartIn. The check runs in the guest, where the shortcut's
paths live.
Fixes#694
* fix: keep a Steam target whose card is not mounted
- The app recreates /mnt/droiddeck-sd and /mnt/bannerlator-sd before binding the card, so the
mountpoint outlives a removed card. A target directly under one had an existing parent, so
the missing-file repair overwrote the edited Exe and Start In and kept them overwritten.
- The repair now needs the target's storage to be there: a card mountpoint that lists nothing
is a card that is not in the device, and the edit is kept for when it returns. Extra Steam
libraries under /mnt/droiddeck-lib/<id> get the same check.
- test_a_steam_target_under_a_bare_card_mountpoint_is_kept fails without the check and asserts
both fields; test_a_steam_target_under_a_mounted_card_goes_back_to_the_apps keeps the repair.
* fix: repair a Steam target removed with its folder
- A missing target is gone when its storage is mounted and either its folder is still
there or it lives in a tree the app always has (internal store installs, the internal
Steam library). An update that removes the whole game folder now repairs the shortcut.
- Store volumes and added game folders are removable mounts too: /mnt/droiddeck-stores/<id>
and /root/Games/<name> are checked for content before a target under them is treated as
gone, so an unplugged volume keeps the edited Exe and Start In.
- Tests: internal folder removed repairs both fields; a bare store mountpoint and a card
mountpoint keep both; a mounted card still repairs. 84 tests pass.
* fix: classify a Steam target by its resolved path
- A target such as /root/Games/Stores/../../../mnt/droiddeck-sd/Other.exe matched the
internal prefix and was repaired while the card was out. internal_target and
removable_mount now normalize the path before choosing the storage class, so the
decision follows the file the target resolves to; the kept text is unchanged.
- test_a_steam_target_is_classified_by_its_resolved_path fails before the normalization
(the edit is replaced) and keeps both fields after it. 85 tests pass.
Halo Wars: Definitive Edition's EAppx bundle leaves AppxBlockmap.xml at
the top of the game folder, and its one package folder has its own, so
hoist refused the install with "Extraction would overwrite ...". The
files a package container carries about itself (AppxBlockMap.xml,
AppxSignature.p7x, [Content_Types].xml, AppxMetadata) now replace the
bundle's copies, found by name regardless of letter casing. A game file
in the way still stops a fresh install.