Files
zapstore/lib/services/package_manager
Henrique VellosoandCursor 288cb8ef16 Retry download from CDN on hash mismatch
When a download from the original URL (e.g. GitHub) fails hash verification,
retry from cdn.zapstore.dev before showing an error to the user. This handles
transient corruption or CDN cache issues.

- Add cdnRetryTracker in PackageManager to track whether a download came from CDN
- Add retryDownloadFromCdn() to re-download from CDN URL (hash-based)
- In AndroidPackageManager, on HASH_MISMATCH: if not from CDN, retry from CDN;
  if already from CDN, show error (no infinite loop)
- Encode isCdnRetry in task metadata so completion handler can set cdnRetryTracker

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-24 17:36:04 -03:00
..