mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
Stores: cloud uploads on every exit path; downloads keep going in the background
Cloud saves no longer depend on the compat tool's exit hook alone, which never runs when the session is closed from the drawer. The pre-launch step marks the game dirty in the app's storage, and the upload runs on the first of the exit request, the end of the session (after teardown) or the app's next start for a mark a killed app left, not while a session runs. The mark goes only after an upload went through or a final skip; each logs its trigger. The planner test runs under Robolectric for org.json. Downloads keep going with the screen off: while one runs the service holds a Wi-Fi lock (high-performance before Android 14, low-latency from it) and a partial wake lock taken with a timeout and renewed with the progress, both released as soon as nothing runs. The notification has a real progress bar and the Downloads row's line (game, percent, sizes, speed, time left; the stage while installing), Pause / Resume, and a Cancel that first asks Delete / Keep for ten seconds. A paused download leaves a notice to resume from; an installed game posts a notice that opens it in Games, a failed one opens Downloads. On Android 13 and later notifications are asked for once, the first time an install starts from a screen.
This commit is contained in:
1 parent
cc981aa69f
commit
6a175f1097
16 files changed
+375
-33
No files matched your search
@@ -150,6 +150,16 @@ without it and Setup says "Stores engine not built").
|
||||
native start takes the whole set (`cdnBases`; the engine spreads its window across the hosts) and
|
||||
its `onBytes` - every 250 ms, including files still in flight - drives the bar and the speed, so a
|
||||
large file no longer moves the bar in one jump.
|
||||
- **Background downloads:** while a download runs the service holds a Wi-Fi lock and a partial wake
|
||||
lock (timed, renewed with the progress, released when nothing runs). The notification shows a
|
||||
real progress bar and "<game> · 42% · 1.2 GB/2.5 GB · 12.3 MB/s · 3 min" (the stage while
|
||||
installing), with Pause / Resume and a two-step Cancel (Delete / Keep, ten seconds); a paused
|
||||
download leaves a notice to resume from; "<game> installed" opens it in Games, "<game> download
|
||||
failed" opens Downloads. Notifications are asked for once on Android 13+. The Android 15 dataSync
|
||||
time limit (and its `onTimeout`) applies only to apps targeting 35+: this app targets 28 and
|
||||
compiles against 34, so there is nothing to handle yet.
|
||||
- **Cloud uploads do not depend on the exit hook:** a dirty mark per game launch; uploaded on the
|
||||
first of exit request, session end, or the next app start (`trigger=exit|session-end|recovery`).
|
||||
- **Cloud saves, device round 1 (ELDERBORN, `b323a0b`): nothing ran** - a GOG game without arguments
|
||||
gets no launcher .bat, Steam runs its exe, and `droiddeck-store-launch` only recognised the .bat.
|
||||
It now recognises the exe too (searching the folders above it for the sidecar), and every path
|
||||
|
||||
Reference in new issue
Block a user