[Request] True zero-interaction background updates during sync on Android 12+ (Session installer)

Aperta
#1,434 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
android, kotlin
Ambito
mobile-dev

Direzione di ricerca

Start with SyncWorker and the Settings > Sync & Updates flow, then inspect the app manifest for installer permissions. The feature needs an opt-in setting, Android 12+ installer-of-record and user-action checks, and a fallback notification path. It is done when Droid-ify-installed apps can update silently during sync while apps requiring user action still produce a standard notification.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Guidelines
  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I'm not requesting app support for a specific repo — that's up to repo maintainers
  • I understand this might not get built (Droid-ify is maintained by a single person)
Problem

Right now, when using the Session installer on Android 12+, background updates are only semi-automatic: Droid-ify syncs in the background and posts a notification, but I still have to open the app and tap "Update all" to actually download and install them.

On GrapheneOS (where short auto-reboot timers make ADB/Root workarounds impractical), it would be great to have true "set and forget" background updates out of the box—just like the official F-Droid client, Neo Store, and Obtainium do.

Proposed solution

Add an option in Settings -> Sync & Updates to automatically download and install updates in the background during the sync job.

Since Android 12+ (API 31+) allows the original installer of an app to update it silently without user prompts, Droid-ify can do this natively during SyncWorker for any app it originally installed:

  • Declare <uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" /> in the Manifest.
  • Check if Droid-ify is the installer of record (getInstallSourceInfo), and if so, use setRequireUserAction(USER_ACTION_NOT_REQUIRED) on the SessionParams to commit the update silently in the background.
  • If an app was installed by another source (or requires user action), just fall back to a standard notification instead of failing/crashing.
Extras
Benefits
  • True "Set and Forget" UX: Matches the zero-interaction background update experience of the official F-Droid client, Neo Store, and Obtainium.
  • No Root / No Shizuku needed: Works out of the box on stock Android 12+ and GrapheneOS across reboots.
  • Minimal cognitive load: Users only get a passive notification "3 apps updated in the background" (or nothing at all, if configured), keeping Droid-ify's clean Material You philosophy.

Related to #1275, #1273, #900, and #1158.

Lingua principale
Kotlin
Stelle
7.7k
Fork
233
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Droid-ify/client

Tutte le issue di Droid-ify/client

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.