Repository navigation
Tech Data Storage, Prefs, Backups, Logs & Widget
DurchEins edited this page Nov 25, 2026
·
1 revision
This page documents ApkUp's encrypted preference storage, JSON backup schema, sanitized diagnostic logging, and the Home Screen Updates Widget (Preview).
-
Slot-Based Abstraction:
Prefs.ktexposes typedPrefSlot<T>andStateFlowaccessors backed byTinkSecurePrefsBackend(AES-256-GCM). -
Strict Allowlist:
SecurePrefsStore.ktmaintains an explicit key allowlist so unknown keys cannot be persisted or restored from untrusted sources. -
Snapshot Cache (
CachedUpdateSnapshot): Stores the last discovered update list andtimestampMillislocally so the Updates tab, notifications, and the home screen widget can render immediately without re-querying network sources.
-
Versioned JSON Schema (
CURRENT_SCHEMA_VERSION):SettingsViewModelexports and importsApkUpBackupConfigvia Android's Storage Access Framework (SAF), preserving source toggles, source priority, pinned sources, ignored apps/versions (IgnoredVersionEntrydeduplicated byid_packageName_versionCode), pre-release preferences, rollback backup limits, and theme/accessibility settings. -
Sanitized Import: Imported values are clamped and validated (e.g.
ignoredApps,ignoredVersions, numeric bounds) before writing toPrefs.
- Offline Diagnostic Export: Captures structured runtime events, source health states, and installer outcomes without network telemetry, automatically redacting API tokens and credentials prior to SAF export.
- Persistent Update History: Tracks completed installations and exposes rollback links directly from the Update History sheet.
-
Preview Status: Marked with a
Previewpill badge inwidget_updates.xml(@string/widget_updates_preview_badge) and(Preview)across widget descriptions. -
RemoteViews Constraints: Uses
RemoteViews-compatible layouts (LinearLayout,FrameLayout,ImageView,TextView,ImageButton,ProgressBar) — avoiding unsupported views such as<View>(enforced bylintDebugRemoteViewLayout). -
Live Sync & Quick Refresh: Reads
CachedUpdateSnapshot+Prefsvisibility rules (countVisibleWidgetUpdates), opensMainActivityon tap (UpdatesNotification.UpdateAction), and dispatchesACTION_REFRESH_WIDGETto triggerUpdatesWorker.launchImmediate(WorkManager).
📖 User-friendly guide: App Management, Filters, Background Checks & Backup
🏠 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