mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
d40c962b37fe2aba903be5d1fcc4d446403b8ed5
150
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
eabcfc7b74 |
chore: consistent code branding (#2800)
* chore: consistent code branding * fix: carry legacy overrides, queues and live sync rows across the rename * fix: keep queued legacy overrides on a failed rename and separate merged queue entries |
||
|
|
2be0ba58c7 | fix(flatpak): expose the runtime GPU to accelerated desktop windows (#2699) | ||
|
|
dc98b6b96a |
feat: target Android 14 so Play Protect installs DroidDeck without a warning (#2683)
* fix(proot): ship proot in the APK and run it from the native library directory * fix(native): start rootfs programs through an APK-shipped exec loader where data files may not be executed * fix(audio): start PulseAudio through the system linker where data files may not be executed * feat: target Android 14 (SDK 34) so Play Protect installs DroidDeck without a warning * fix: ask for all-files access on Android 11+, reject unloadable ELFs before exec, keep checking the proot pack * fix: hand host scripts to the kernel, skip startup launch while all-files Settings is open * fix: run proot from its add-on pack through Android's linker, so the APK carries no proot * fix: declare high sampling rate sensors for controller gyro at target 34 * fix: offer the rootfs proot fallback only where Android lets proot exec its loader * test: install the runtime's proot pack in GameFileSync fixtures |
||
|
|
aa3a599ec6 |
fix(runtime): record why a runtime install failed in the session events (#2591)
* fix(runtime): record why a runtime install failed in the session events * fix(runtime): report empty or invalid runtime catalogs in the failure event * fix(runtime): keep each install failure reason on its own job * fix(runtime): name the busy reason for rejected installs and drop the owner's listener * fix(runtime): keep each install call's failure reason on its calling thread * fix(runtime): keep the interrupted reason when a joined install finishes during the wait |
||
|
|
33dbd8755f | fix(agent): run the setup package install as fake root (#2539) | ||
|
|
b5f6122d49 |
Stop walking SD card libraries on every session start and game launch (#2533)
* Stop searching whole libraries on every game launch and session start The install script search ran over every library whenever any game's manifest changed, and again on each launch. It now runs per game, only when that game's build changes, and a launch that names its scripts does no search at all. A store game's shortcut walked its install folder on every scan instead of reusing the ranking the scan keeps. * Search a library for install scripts after the session has started, not before * fix(session): keep deferred seeding off a running prefix and recheck old folder caches * test(session): bound the held library search in the deferred seeding test * fix(session): search a game again when its install script search failed |
||
|
|
dacfee64ab |
feat(agent): compact composer, plan go or revise, usage limits, diffs and send now (#2531)
* fix(runtime): the userland resolver survives a crash mid-write * feat(agent): compact composer, plan go or revise, usage limits, diffs and send now |
||
|
|
3b6d13a8d7 |
fix: games on an SD card install faster and Battle.net can read the card's volume (#2379)
A Battle.net library on another volume is reached through its own drive letter, so the Agent's volume query succeeds. The proot fast path keeps folder handles for FUSE-backed libraries. Supersedes #2377. |
||
|
|
2848484a99 |
feat: fuck proot and proots mama (#2300)
* 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 |
||
|
|
45e39b7aaf |
fix(desktop): catalog AppImages such as RPCS3 start from the desktop menu again (#2274)
fix(desktop): catalog AppImages start from the desktop menu through the shipped runtime RPCS3 from the desktop menu exited at once: its own AppImage runtime runs dwarfsextract from a memfd, which PRoot cannot execute (EACCES), and it has no fallback. Emulator rail launches already avoid this by starting arm64 images through the shipped uruntime (#1191); the menu entries the catalog writes did not. The rule now lives in one launcher, droiddeck-appimage-exec, used by the session and by the catalog's menu entries. Entries written by older versions are moved to it with the existing menu migration. |
||
|
|
bc99cacd02 |
fix(desktop): a GitHub link to one AppImage installs and updates that variant (#2273)
* fix(desktop): a GitHub link to one AppImage installs and updates that variant * fix(desktop): latest-release links, bad escapes and 32/64-bit variants A /releases/latest/download/<file>.AppImage link now names its asset too, a malformed %-escape in the field no longer throws while the dialog composes, and x86-32 and x86_64 assets no longer collapse to the same variant once version numbers are dropped. |
||
|
|
2beeb715fd |
fix(runtime): an update that brings a new PRoot pack no longer asks to install the runtime again (#2270)
* fix(runtime): an update that brings a new PRoot pack no longer asks to install the runtime again * A pack-only install recovers an interrupted swap first and falls back to the full install |
||
|
|
875f8e3ce2 | feat(wow): download addons from WoWInterface and open CurseForge in the browser (#2219) | ||
|
|
a81da1e476 |
feat(components): Auto updates for FEX, DXVK and VKD3D-Proton (#2156)
* feat(components): Auto updates for FEX, DXVK and VKD3D-Proton Each component gets an Auto or Manual mode on the Default Components page. Auto installs the newest DroidDeck-Components nightly into every Proton that ships the component, matching each Proton's ARM64EC or x64 flavour, keeps the current and replaced builds, and removes older builds it downloaded. A game that ran on the previous build and exits within 30 seconds twice on the new one rolls the line back; the failed build is skipped until a newer one is published. Existing manual choices keep that component on Manual, and DXVK stays on Manual while a GPU rule pins its version. * fix(components): Auto notes per line, Original label and first-update rollback Boot history on the Original is recorded before the first update so that update can roll back, rollback notes stay with their own component, the Original shows by name, and new Protons get the current build even when no newer one is published. * fix(components): Auto owns only its own downloads and follows in-place Proton updates Auto deletes only builds it downloaded, re-swaps a Proton whose version changed under an existing choice, reports a missing nightly listing as a failed check, writes its state atomically so the page can read it without waiting on a download, and words the rollback and download messages to match what it does. * fix(components): Auto keeps a rollback and reads updated Protons' own files After a rollback only a build newer than every rejected one is taken, so an older build still listed in the nightly cannot replace the restored one. Flavour detection treats a choice saved for an older Proton version as not applied, so a Proton Steam updated in place is read from its own files and re-swapped. A failed state rename falls back to a direct write and is logged. * fix(components): Keep the last good Auto state when a save fails * fix(components): Serialise Auto state reads and writes * Install the Linux runtime by itself on first launch The runtime auto-update skipped devices with no runtime, so FEX, Proton, DXVK and VKD3D waited for the first Steam launch to install it. Claim a first install when the device never had a runtime, on a usable network, outside battery saver and with a supported GPU, and check Proton as soon as the runtime is ready. A runtime the user removed stays removed. * fix(components): Check components as soon as Proton is installed The Auto check stamped its hourly timer even when no Proton was installed yet, so a fresh device waited an hour after Proton arrived. Skip the stamp until a Proton exists and run the check right after a Proton install finishes. * fix(components): Apply stored builds on every check and retry unfinished rollbacks A held or failed download no longer skips applying the stored build or stamps the hourly timer. Stored builds are applied on every check, so a new Proton is reconciled inside the hour, and a check requested while one runs is queued. A rollback that could not restore or swap a Proton is retried and reported only once it finishes. Removing the runtime marks it as seen so it is not installed again, and the failed-save test skips where the process can still write read-only files. * fix(components): Keep rollback restores pending until applied and save state on failure * fix(components): Hold newer builds until a pending rollback is applied * fix(components): Drop pending restores for removed Protons * fix(components): Never auto-install a non-ARM64X build over a Proton's own ARM64X DXVK or VKD3D * fix(components): Read probe archives outside the lock and block auto updates while the original build is unknown * fix(components): Require ARM64X when any Proton on the line needs it, and before each swap |
||
|
+1 |
3733c50902 |
feat: non-Adreno graphics stack (Venus, open driver pairs, gamescope patches) (#2029)
* Retain compositor resources when GPU completion is unconfirmed * Stop quarantined GPU callers before retries and mapped writes * Support Android hardware-buffer presentation over Wayland * Support PowerVR swapchains and linear image imports in Gamescope * Bundle verified PowerVR graphics components through existing build preparation * Detect and select the system Vulkan backend on PowerVR * Apply PowerVR Steam and game compatibility during normal launches * Show PowerVR support through existing driver and component controls * Update existing hardware guidance for system Vulkan support * Import the shared system Vulkan readiness check * Discover and propagate the actual PowerVR render node * Prune obsolete PowerVR runtimes after guest processes exit * Retain external DMA-BUF ownership after GPU quarantine * Name the PowerVR HAL selection explicitly * Isolate component UI tests from application startup * Cover the inherited FEX preset in PowerVR profile tests * Log test worker failures for CI diagnosis * Remove temporary test logging after diagnostic CI * Prefer system dependencies for the Android Vulkan loader * Capture raw stderr before test worker termination * Remove the temporary test worker crash probe * Import pinned DXVK recipe prerequisite from PowerVR PR570 Copy only the standalone build recipe, source pin, BC-format prerequisite and presentation-sync patch/check from wallentx/DroidDeck at |
||
|
|
969b7e625f |
fix: list Battle.net games installed under Blizzard's China uids
Blizzard's China client records some products under a CN uid, so the installs it makes never reach the Library and their Stores card keeps offering Install: Diablo II: Resurrected osic (catalogue had osi) StarCraft II s2_cn (catalogue had s2) Diablo Immortal anbs_cn (catalogue had anbs) title() now resolves those uids to the international title, so the Library, the Stores "installed" state, the cover folder and the launch code all agree, while Game.installUid keeps the uid the Agent recorded for updates and uninstalls. TITLES and STORE are untouched. |
||
|
|
e1fe6f99cf |
fix(network): handle gatewayless IPv4 VPN links
Provide compatible gateway metadata for IPv4 VPN links without changing VPN routing, and keep text and JSON network snapshots consistent. Add regression tests for gateway selection and network snapshots. |
||
|
|
a309428a2a |
feat(battlenet): import, list and delete World of Warcraft addons (#2111)
World of Warcraft, Classic and Forever get an Addons tab in the Library. It imports addon zips into the right Interface/AddOns folder, lists the installed addons, and deletes one after a confirmation. |
||
|
|
f005241549 |
fix(desktop): download language packs from the release that has them (#2096)
* fix(desktop): download language packs from the release that has them The Ubuntu runtime's release has no language packs or index, so the desktop stayed in English for every language. * fix(desktop): reinstall language packs when their release changes |
||
|
|
f1c1ca59fe |
fix(battlenet): use the right artwork for each game (#2092)
* fix(battlenet): use the right artwork for each game World of Warcraft: Forever took retail art and its logo from a loose name lookup, and only fetched its own art when the Store tab was opened. Shop pages also supplied trailer stills and seasonal promos. Each game now has chosen Blizzard key art with the shop page as a fallback, installed games fetch their art without opening the store, and lookups by name must match exactly. Art found by the old lookup is fetched again once. * fix(battlenet): keep cached art if the new art cannot be fetched Classic's variants fetch through the shared title, and a failing chosen image falls back to the shop page. |
||
|
|
a2a05ebc5b | fix: preserve the runtime PATH when overriding guest binaries (#1826) | ||
|
|
2b790a8a71 |
fix(runtime): keep the Linux desktop installed across a runtime update (#2021)
* fix(runtime): keep the Linux desktop installed across a runtime update A runtime update replaces the whole runtime tree, and the desktop pack is built against one runtime, so every update removed the installed desktop. Since the runtime started updating by itself, this happened without the user doing anything: the next Open showed "Install & open" and downloaded the whole desktop again. When the desktop was installed before the update, the same update job now installs the new runtime's desktop pack right after the runtime, with the update's progress. If that install fails, the runtime update still counts as done and Open offers the install as before. A repair from the session no longer installs the desktop a second time when the runtime install already did. * fix(runtime): roll back a failed desktop restore after a runtime update If putting the desktop back fails after its archive started unpacking, the install journal stayed behind, and every later launch, Steam included, tried to resume it and stopped when that failed. The update now rolls back the partial desktop with the desktop removal, which restores the runtime's own files and clears the journal. Open then offers the desktop install as before. Whether the desktop was installed is now checked on its own, so a repair of a damaged runtime also restores it. * fix(session): do not install the desktop again after resuming it Opening the desktop with an interrupted desktop install resumed that install and then installed the desktop a second time. The second install is now skipped when the resume already completed the desktop. |
||
|
|
80da86a5d3 | fix: resolver order is active DNS, discovered DNS, public, then gateways | ||
|
|
ece3fec8ba | fix: the active network's first three DNS servers stay ahead of public fallbacks | ||
|
|
3a4c6a4a7a | fix: DNS gateway pick and public fallback slot, drop reference to an unshipped script | ||
|
|
34a1cbbead | fix: keep PRoot out of the APK, VPN DNS first, bridge failure exits, HUD polling stays on | ||
|
|
f05e0df39e | Merge remote-tracking branch 'origin/main' into review/malibridge-1950 | ||
|
|
bc5edb81db |
fix(battlenet): list World of Warcraft: Forever in the Library (#2018)
Forever was missing for two reasons. Its install was not a known title, so the scan skipped it as "not listed". And every WoW version installs into the same World of Warcraft folder, so once one version was listed the Library dropped the others as the same game. - Forever is a title: launch code WoWF, product wowf, folder _forever_. - An install whose uid is not known is matched by the product code product.db records for it. - When versions share the folder, the one listed first keeps it and the others use their own version folder (_forever_, _classic_, ...). Each title's folder is remembered, so a shortcut keeps its app id when another version is installed or removed. Games installed before this update are listed on the next Library scan. They do not need to be installed again. |
||
|
|
b16b67e6c4 | feat: desktop session follows the app language (#1971) | ||
|
|
8171bf20fd | Merge latest origin/main and resolve conflicts | ||
|
|
c5577478ca |
chore: remove source comments and unused code, translate every missing string (#1965)
* 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 |
||
|
|
9419a19c66 | local: MaliBridge rc4, auto local DNS, KWin render node | ||
|
|
d4a6d95127 | Merge MaliBridge integration (feat/malibridge) into 0.6.7 | ||
|
|
28067b3bbe |
Run x86_64 Flatpak apps through FEX (#1875)
* Run x86_64 Flatpak apps through FEX * proot: run an execveat with an absolute path like execve * Find x86_64 Flatpak installs and resolve sandbox paths like the sandbox does |
||
|
|
6673a892e2 | fix: x86 Flatpak bundles are refused with a clear message instead of installing and failing to start (#1873) | ||
|
|
0a5955d6fa |
Merge remote-tracking branch 'droiddeck/main' into feat/malibridge
# Conflicts: # README.md # app/src/main/java/com/droiddeck/launcher/gpu/TurnipDriver.java # app/src/main/java/com/droiddeck/launcher/runtime/BwrapSpawner.kt # app/src/main/res/values-ar/strings.xml # app/src/main/res/values-b+es+419/strings.xml # app/src/main/res/values-bg/strings.xml # app/src/main/res/values-cs/strings.xml # app/src/main/res/values-da/strings.xml # app/src/main/res/values-de/strings.xml # app/src/main/res/values-el/strings.xml # app/src/main/res/values-es/strings.xml # app/src/main/res/values-fi/strings.xml # app/src/main/res/values-fr/strings.xml # app/src/main/res/values-hi/strings.xml # app/src/main/res/values-hu/strings.xml # app/src/main/res/values-in/strings.xml # app/src/main/res/values-it/strings.xml # app/src/main/res/values-ja/strings.xml # app/src/main/res/values-ko/strings.xml # app/src/main/res/values-ms/strings.xml # app/src/main/res/values-nb/strings.xml # app/src/main/res/values-nl/strings.xml # app/src/main/res/values-pl/strings.xml # app/src/main/res/values-pt-rPT/strings.xml # app/src/main/res/values-pt/strings.xml # app/src/main/res/values-ro/strings.xml # app/src/main/res/values-ru/strings.xml # app/src/main/res/values-sv/strings.xml # app/src/main/res/values-th/strings.xml # app/src/main/res/values-tr/strings.xml # app/src/main/res/values-uk/strings.xml # app/src/main/res/values-vi/strings.xml # app/src/main/res/values-zh-rCN/strings.xml # app/src/main/res/values-zh-rHK/strings.xml # app/src/main/res/values-zh-rTW/strings.xml # app/src/main/res/values/strings.xml # tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env |
||
|
|
bc1a010411 | fix: launching a game from a frontend starts it instead of sitting on the home screen (#1844) | ||
|
|
ab43524bbc | fix: preserve the runtime PATH when overriding guest binaries | ||
|
|
3b9abf6302 | Update the Linux runtime by itself when a new one is out (#1787) | ||
|
|
b726e19fa4 | Keep Windows components across runtime updates and reinstall lost ones (#1786) | ||
|
|
29c83976d0 | Move the Linux runtime to Ubuntu 26.04 LTS with a separate Kubuntu desktop (#1733) | ||
|
|
110cfc28f8 |
feat: FusionHUD replaces the session HUD, with MangoHud's readings (#1743)
The session HUD is FusionHUD (Bannerlator's HUD) with every reading taken from the same source, and worked out the same way, as the MangoHud build that runs Steam's performance overlay in a DroidDeck session. - gamescope patch 0125 (gamescope-3.16.29-p19) shares the frame times that mangoapp reads (one per signalled commit of connector 0) in a ring named by DROIDDECK_HUD_FRAMES; the app reads it once per display frame and counts the compositor's frames when gamescope sends none. - MangoHud's rules: FPS over periods of at least 500 ms, frame time = 1000/FPS, 200-frame graph on a fixed 0-50 ms scale; CPU, GPU, temperatures, RAM, swap, VRAM and battery from MangoHud's sources. Zones 22/26/28 are typed as GPU and DDR sensors, so Steam's overlay CPU temperature no longer includes them. - Five sizes in a panel shaped like the DroidDeck mark, with a centred header, one left edge, neon outline and FPS; Minimal is the default size. Settings on a new "Performance HUD" drawer page, with Bannerlator's options. - The HUD reads sensors and polls frames only while it is drawn (not while hidden, in picture-in-picture or behind another app), keeps its place after picture-in-picture, and the diagnostics export has its own reader. Device-tested on the AYANEO Pocket FIT: same readings as Steam's overlay side by side in Dead Cells; the HUD updates in a game, hides in picture-in-picture and comes back in place, no crashes. |
||
|
|
9294a60172 |
perf(proot): accelerate and cache glibc syscall relays (#1687)
Libc-internal file operations bypass the existing preload wrappers and still stop in PRoot. Patch recognized ARM64 SVC sites in libc and the runtime loader, reuse the current translator for 20 path syscall numbers, and return declined calls to PRoot. Enabled by default after the tracer-key check; `PROOT_FP_PATCH_SVC=0` remains the troubleshooting opt-out. The hardened implementation patches 47 sites on Thor's glibc 2.43. Relays preserve general/SIMD registers, flags, FP state and errno, and provide unwind metadata back to the original libc frame. Text is patched through `/proc/self/mem` after relay pages become executable. Initialization skips multiple live threads and SVE/SME. Alternate signal stacks and insufficient remaining stack use PRoot; main-stack growth respects the current limit. No proroot code or binaries are imported. Robust-list set/get sites deliberately remain with PRoot/the kernel. Device tests reproduced stale state when the earlier private-TLS implementation mixed patched and raw callers. Removing that shortcut fixes coherence and preserves the host's actual return policy; the earlier thread-creation gain is retired. SDK forwarding still enables faccessat2 ENOSYS fallback and clone3 ENOSYS only before Android 15. Successful clone3 is never executed from the C relay. Existing fsync handling is unchanged. No in-process RET_TRAP filter is added, so SIGSYS-mask/handler machinery is not applicable. Version-2 build-ID/API tables cache relative patch sites in `/tmp`. Every hit revalidates executable bounds, alignment, instructions and syscall numbers. Invalid/unsafe files rescan; publication uses a private temporary file and atomic rename. The PRoot dependency fetch also gains a mirror matching the existing pinned checksum, resolving upstream availability failures without changing versions. Five alternating pairs using the final bundled library on Thor/Android 13: | operation | wrappers only | hardened relays | |---|---:|---:| | libc-internal stat | 49.6 us | 6.0 us | | libc-internal open/close | 50.4 us | 7.8 us | | libc faccessat | 49.7 us | 22.0 us | | libc getcwd | 54.9 us | 5.0 us | | thread create/join | 136 us | 144 us | | complete tiny exec/wait | 4.44 ms | 5.60 ms | An earlier five-pair hardened-library run measured stat 50.1 to 5.9 us and open/close 51.9 to 7.1 us. The metadata gains survive the safety checks. Neither run shows a thread-creation gain, and tiny execs retain roughly 0.9-1.2 ms overhead. Three full Steam startup pairs yielded Home-ready medians of 47.02 s off / 45.25 s on, with overlapping 43-50 s ranges. Steam/CEF-only PSS medians were 1,223.1 / 1,233.9 MiB; the roughly 11 MiB difference is smaller than observed variation, but does not establish zero memory cost. Startup/memory used one unchanged signed bundled-library APK without overrides; the final stack-gap guard only increases distance reserved above other mappings. No reliable whole-client startup improvement is claimed. Earlier fresh Half-Life SD installs took 350/341 s off and 326/327 s on. These are historical results from the preceding robust-list revision, not a post-hardening download retest. Network/shader scheduling varied, allocation did not reliably improve, and the repeat baseline committed faster. This PR demonstrates metadata acceleration; it does not demonstrate a reliable fix for Steam's SD allocation/commit bottleneck. Validation on `2c3c135b` (production code unchanged since `4998b046`): - Local release build, runtime/native-library checks, release signing and four focused Android tests pass. [Final-head CI](https://github.com/Droid-Deck/DroidDeck/actions/runs/40704837477) passed: 1,431 Python/native tests (49 skips), 2,648 Android tests (zero failures/skips), and 162 Rust tests. CodeRabbit is green on the same head. The installed production APK forwards API 33 and patches 47 sites with an unset enable flag and no override; Steam Home renders. - Embedded and shared-PIC matrices pass on glibc 2.43; shared-PIC also passes on separately loaded glibc 2.39. Coverage includes raw results/errno/registers/FP state, path/flag/error and protected-pointer cases, exact readlink boundaries, mixed raw/relay robust state, concurrent threads, fork, thread churn, alternate-stack signals, deferred/FIFO cancellation, signal siglongjmp recovery, forced unwind with caller cleanup, and limited remaining stack. - Four device test-process filters deny the memory patch file, relay mapping, executable permission, or patch writes. Every case leaves original syscall execution working. Host injection also verifies partial installation after an individual site fails. - Concurrent atomic symlink replacement passes 3,000 internal stat/readlink iterations at default/zero TTL. Eight focused host tests pass, covering instruction/branch limits, stack/limit fallback, untrusted cache files and NDEBUG checks. API selection gives 45/47/46 sites for unknown/33/simulated-35; unset and explicit 1 agree, and 0 leaves sites untouched. This does not replace Android 15 hardware testing. - All bench tools compile with -DNDEBUG. Relative/absolute fixture workloads agree, and thread/ABI/failure checks pass on Thor with those builds. - Earlier internal fts/realpath/NSS/dlopen and normalized read-path equivalence pass. The write suite retains the existing wrapper SD Unix-socket mismatch against PRoot. CodeRabbit disposition: fixed relative fixture paths, prevented benchmark checks disappearing under NDEBUG, corrected the limited-fallback description, and narrowed memory-file denial so the thread check still succeeds. The default-off recommendation was addressed by fixing/testing the underlying guard and unwind issue while retaining the requested default-on behavior. The readlink count suggestion is intentionally not adopted: device boundary comparisons reproduce current PRoot behavior, so changing that inherited policy belongs in a separate correctness change. This is not consequence-free instruction patching: constructor time, private text copies and stack checks have costs. Android 15+ ARM64 and 16 KiB-page hardware, arbitrary asynchronous cancellation/non-local exits, user-managed stacks, and attributable tracer-counter measurements remain gaps. Loader calls before the constructor and arbitrary guest ELF syscall sites remain outside scope. Thor was restored to its original APK and bundled library, with app data preserved and test settings, overrides, temporary files and version-2 test caches cleared. Detailed evidence and revision boundaries: [proroot analysis](https://github.com/Droid-Deck/DroidDeck/blob/2c3c135b52c3dd949ef5a99a67d8c12eba24406c/docs/development/proroot-analysis.md). |
||
|
|
4aa19b6a39 |
fix: cancelling the first-run desktop or Proton install stops its download (#1042)
Pressing Cancel (or B) while a session is installing the desktop or the
Steam-mode Proton seed now stops the download. Launching again right
after no longer opens a session screen that closes itself.
Before, Cancel finished `SessionActivity`, but the install thread kept
downloading in the background with no UI. Two things went wrong:
- `Downloader` and `DesktopCatalog.install` had no way to be cancelled.
- "an install is running" lived in a per-activity field
(`installingRuntime`). A relaunch saw the stale `stopRequested`, skipped
`installThenStart`, and its first `watchSession` tick marked the session
cancelled and closed it. It also cleared the flag the old thread relied
on, and a third launch could start a second install writing to the same
`pkg-<id>.download`.
Changes:
- `Downloader.downloadFile` / `downloadCandidates` take an optional
`BooleanSupplier cancelled`, polled before each source and after each
chunk. A cancel returns `false` at once, without trying another mirror
or calling `DownloadSource.failed()`. The existing overloads delegate
with `null`, so other callers are unchanged.
- `DesktopCatalog.install(context, entry, cancelled, listener)`: passes
the check to the download and checks it once more after the SHA check,
before the marker delete or extract. Extraction itself still runs to the
end. The old 3-argument overload stays, so `MainActivity.installPackage`
is unchanged.
- `SessionActivity`: `installDesktop` / `installProton` pass `{
SessionState.stopRequested }`. `installingRuntime` now reads the
process-wide `SessionState.installing`.
- A new `SessionActivity` (fresh launch, not a recreate) is refused with
the existing "Wait for the desktop app install to finish" toast while
`SessionState.installing != null && !running`.
`MainActivity.startActivity` applies the same check before the launch
animation.
- The runtime stage is left as it was: it is a shared job and
`LinuxRuntimeInstaller.isBusy()` already blocks relaunch.
Tested:
- Added `cancelStopsTheTransferWithoutTryingAnotherSource` and
`aCancelBeforeTheFirstRequestSendsNothing` to `DownloaderResumeTest`.
That class passes (9/9), as does `DesktopCatalogTest`, and the app
compiles.
- Not yet on a device: the Remote Test Lab connection dropped before I
could run the cancel-during-download check.
## Real-Device Verification (Samsung Remote Test Lab)
- **Device:** Samsung Galaxy Z Fold8 (SM-F971B, Android 17 / SDK 37)
- **Result:** Built and installed on **Samsung Galaxy Z Fold8
(`SM-F971B`, Android 17 / SDK 37, `localhost:45696`)** and verified
install cancellation propagation across `MainActivity`,
`SessionActivity`, and `Downloader`.
|
||
|
|
c62b9b5d1b | perf(proot): expand and cache syscall relays | ||
|
|
3fd9662161 | fix: show every held volume step in Steam's volume slider | ||
|
|
42b799c194 | runtime: finalize package markers once extraction completes | ||
|
|
1b5cd6add9 | fix(install): recheck cancellation after sha256 and wire package resume cancel | ||
|
|
c781cfd525 |
fix: publish component choices again when a new Proton build appears
Game and global component choices were written to desired.tsv only when a selection changed, so a Proton build installed later (DroidDeck-Proton 11-11.8) had no rows and kept its bundled FEX. Battle.net's d2rfix FEX never reached it and StarCraft died in ClientSdk.dll's DllMain. The choices are now republished at session start and on Battle.net's FEX request whenever the installed tools no longer match what was published. |
||
|
|
f13916ee25 |
feat(steam): optional Steam integration setup (#1637)
* feat(steam): add optional device integration setup * feat(steam): show integration setup as inline settings rows * fix(steam): offer App info when shortcuts stay blocked |