mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
Device report (ELDERBORN): the run used one CDN (used=1/1, fastly) at 12-13 MB/s with the window pinned at its ceiling, and the progress bar jumped because onProgress only fires when a whole file is finished. nativeStart's third parameter becomes cdnBases: String[] - every urls[] entry of the secure-link answer (or the one dependency store base). Bases are deduped by host, each chunk item carries one URL per host and the fetch core spreads the window across them with a per-host cap of max(6, ceil(workers / hosts)); one base behaves as before. The start line logs hosts=a,b,c. A ticker thread beside the fetch reports onBytes(done, total) every 250 ms when the value moved: assembled bytes plus in-flight files (gen2: finished chunks; gen1: the current attempt's pieces, reset on retry so nothing counts twice). A listener without onBytes still works. JNI.md has the new signature and callback. Epic (per ~1 MiB chunk) and Amazon (per written piece) already report more often than 4/s.