Commit Graph
11 Commits
Author SHA1 Message Date
The412Banner 338ef5b29a Pace Epic updates with a replacement-overlap budget
A staged file that replaces an existing one sits beside its old copy
until its swap, so many large replaced files open at once could run a
nearly full device out of space mid-update. The stream engine now admits
files in order and admits a replaced file only while the planned sizes of
open replaced files fit a budget (always at least one); the fetch core
dispatches a chunk only once its first file is admitted. Fresh files are
never held back. The manager sizes the budget from the game volume's free
space after the net growth and the cache, floored at the largest replaced
file, and hands over to the lookahead engine when that does not fit.
A successful install also removes the empty owned staging namespace.
2026-10-13 21:46:33 -04:00
The412Banner 26dec85c1d Integrate the stream engine with the lookahead engine and owned staging
The stream engine (mode=adaptive) stays the default; the lookahead engine
from this PR is selectable as mode=lookahead and takes over when the
stream engine's space plan does not fit. Once the library is loaded an
engine failure fails the install instead of switching to Java downloads.
nativeStream stages files in the owned .droiddeck-epic-staging namespace,
and its handle carries the worker thread that release joins. Each mode
logs its own summary line; docs describe all four writers.
2026-10-13 21:00:35 -04:00
The412Banner f2ecda239a Use the adaptive Epic engine by default, keep bounded and batch modes
EpicDownloadManager runs EpicNative.stream when the library loads and its
per-volume space plan fits (cache on internal scratch for card installs,
beside the game when internal storage is full), and falls back to the
bounded Java writer otherwise. A hidden storesEpicMode preference selects
adaptive, batch (whole-cache fetch then native assembly, with its 2x
space check) or java for A/B runs; each mode logs a summary line.
2026-10-13 20:57:43 -04:00
Juan Marti Mercado cb7f745fcb Add adaptive parallel Epic installation with safe staged recovery 2026-10-13 20:40:14 -04:00
Juan Marti Mercado 05d1795a51 Preserve Epic files during replacement and distinguish full storage 2026-10-13 19:15:36 -04:00
Juan Marti Mercado 87e6556993 Simplify storage probes, cache policy, and failure feedback 2026-10-13 19:15:36 -04:00
Juan Marti Mercado 8ff1f5dd20 Preserve Epic game files when storage checks reject updates 2026-10-13 19:15:35 -04:00
Juan Marti Mercado 93cd54c93b Fix store retry lifecycle, resume checks, and Epic progress 2026-10-13 19:15:34 -04:00
Juan Marti Mercado 78b3f27816 Bound Epic chunk cache during installation 2026-10-13 19:15:33 -04:00
The412Banner 6e5932cb68 Stores: seal the GOG, Epic and Amazon sign-in files with an Android Keystore key (#486)
The stores' sign-ins (files/stores/<store>/credentials.json: access and refresh
tokens, account id and name) were plain JSON. Other apps could not read them, but
every program in the Linux session runs as the app and could. They are now sealed
with AES-256-GCM under a non-exportable AndroidKeyStore key (StrongBox when the
device has one), so the session only ever sees ciphertext.

- Format: a versioned envelope {v, alg, iv, ct}, written atomically and readable
  only by the app. No new dependencies (javax.crypto and KeyStore).
- Migration: an existing plaintext file is sealed at the next start, checked by
  decrypting it, then the plaintext is removed; users stay signed in.
- No Keystore on the device: the file stays plain and the log says so once per
  start.
- A sealed file that can never be opened (tampered, key gone or invalidated,
  broken envelope) is removed and that store asks for sign-in again. A transient
  Keystore error keeps the file and retries.
2026-10-09 14:42:23 -04:00
The412Banner 7c946db440 Stores: GOG, Epic Games and Amazon Games libraries, installs and cloud saves (#476)
A Stores section (rail, under Games; Setup › Stores gate) with each store's sign-in,
library, storefront shelves and a download queue. Each store has two tabs, Store and
Library, and Library filters to All or Installed; libraries open from a saved copy
and refresh in the background, with install sizes on every card. Games install to internal storage,
or a card chosen at Install time, and are registered in the Steam client as non-Steam
games, so they launch through Steam and droiddeck-proton from either the front end or
the client.

- Downloads: GOG, Epic and Amazon engines in Rust (app/src/main/rust/stores, built by
  cargo-ndk, nothing compiled in the tree). One adaptive fetch core with a latency
  brake, stalled-host handoff and every CDN a store offers. Per-stage progress,
  pause/resume, two-step cancel that deletes, failed downloads kept for retry, a
  foreground service with Wi-Fi and wake locks and notification controls.
- Games tab: store source chips (Steam, GOG, Epic, Amazon, Custom) and store art.
- Epic: per-launch exchange code from the app and from Steam's Play button,
  "Epic sign-in (EOS)", "Launch offline", and a game's web links opened in Android's
  browser for EOS consent. The EOS overlay crashed games and is left out.
- Cloud saves (GOG, Epic): pulled before launch, pushed after the game or the session
  ends, no upload before a first download, conflicts never overwritten, backups both
  ways.
- Logs: every store line redacted; the engine log goes to daily files.
2026-10-09 11:08:17 -04:00