Repository navigation
Tech Update Sources, Networking & Parsing
DurchEins edited this page Nov 25, 2026
·
1 revision
This page documents ApkUp's multi-source update engine, HTTP transport, rate-limit resilience, and repository parsing architecture.
-
Concurrent Source Queries: Update checks run concurrently across enabled sources (
Google Play,APKMirror,F-Droid/IzzyOnDroid/ custom F-Droid feeds,GitHub,GitLab,Codeberg/Forgejo) and aggregate candidateAppUpdatemodels perpackageName. -
Source Priority & Per-App Pinning: Global source ordering is configurable in Setup and stored in
Prefs. Per-app pinning locks an app to a preferred source when an update is available from that source, with automatic fallback if the pinned source returns no newer build. -
Alternative Variants (
alternativeUpdates): When multiple sources provide a newerversionCode, ApkUp retains alternative variants insideAppUpdate.alternativeUpdatesso users can inspect and switch sources insideUpdateDetailsSheet. -
Pre-Release Filtering: Global and per-app pre-release channels (
Beta,RC,Alpha,Nightly) filter tag/version strings before candidate selection.
-
On-Device Session & Delta Queries: Uses
gplayapidirectly on-device without relying on an external dispenser server, minimizing third-party exposure. -
HTTP 429 Recovery & Profiles: Automatically recovers from Google Play rate limits (
HTTP 429) and uses privacy-minimized device compatibility profiles. -
Split-APK & Missing Pre-Download Hash: Play Store responses do not always supply a pre-download SHA-256 digest in
Link.Url.expectedSha256. WhenexpectedSha256is absent, ApkUp displaysMissingPreDownloadHashBadgenext to the target version and relies on Android's APK Signature Scheme v2/v3 verification against the installed package before installation.
-
Index-V2 & Index-V1 Support: Supports official F-Droid, IzzyOnDroid, and custom HTTPS repositories (
?fingerprint=...) viaIzzyOnDroidRepository. -
Cryptographic Index Verification:
-
index-v1.jar/entry.jarsignatures are verified against pinned 64-hex SHA-256 X.509 certificate fingerprints (including Trust-On-First-Use pinning for custom presets). - Incremental Index-V2 diffs (
RFC 7396) validate per-diff SHA-256 checksums (ApkIntegrityVerifier.verifyFileSha256) before applying state updates.
-
-
Per-APK Checksums: Every F-Droid / IzzyOnDroid package download includes
expectedSha256for mandatory pre-install SHA-256 verification.
-
In-App Download &
.apkmSplit Bundles: Resolves APKMirror release/variant pages, downloads single APKs or.apkmsplit-bundle archives, and extracts split parts in private internal storage with strict Zip-Slip and decompression-bomb limits. -
Cooldown & Concurrency Throttling:
SourceHealthTrackerenforces a per-app cooldown and intelligent concurrency throttling to avoidHTTP 429/403bursts. -
Cloudflare WebView & Browser Fallback: When anti-bot challenges block headless HTTP requests, ApkUp automatically routes resolution through an in-app Cloudflare-capable WebView or offers a seamless browser fallback (
isBrowserOnlyUpdate).
-
3-Tier Repository Binding: Supports built-in mappings for popular FOSS apps,
owner/repobindings, and self-hosted GitLab/Forgejo instances (including multi-level subgroup paths). - Batched GraphQL & Token Isolation: When a GitHub Personal Access Token is configured, ApkUp batches release lookups via GraphQL to raise limits from 60 to 5,000 requests/hour. Tokens are stored per-host and stripped on cross-host redirects.
-
Asset Filtering & Digests: Supports optional asset regex filtering, FOSS flavor preference, and
expectedSha256extraction from release digests when provided (e.g.CodebergRepository,GitHubRepository).
📖 User-friendly guide: Update Sources, Repository Linking & Signature Protection
🏠 Wiki Home · 📦 Releases · 🐛 Report an Issue · 🛡️ Security · Licensing & Third-Party Notices · GPL-3.0-or-later
Found this helpful? ⭐ Star on GitHub · ☕ Buy Me a Coffee · 💛 Coindrop
- 🌐 Update Sources & Signature Protection
- 📦 F-Droid & Index V2 Repositories
- 🔑 GitHub, GitLab & Codeberg Tokens
- 📲 Installing Unknown Apps
⚠️ Google’s 24h Lock & Keep Android Open- ⚡ Shizuku & Background Installation
- ♿ Accessibility & Accessible Mode
- 🛠️ Apps, Filters, Rollbacks & Backup
- 🔄 Obtainium Migration & Sync Guide
- 🌐 Sources, Networking & Parsing
- ⚡ Installation, Shizuku & WorkManager
- 🛡️ Security, Cryptography & Privacy
- 🎨 UI, Accessibility & Website
- 🚀 CI/CD, Releases & Checksums
- 🏷️ Versioning (Legacy vs. SemVer 2.0.0)
- 💾 Storage, Backups, Logs & Widget
- 🧪 Build System, R8 & Tests
- 🌍 Localization, Weblate & Assets