Track the install phase with INSTALLING/INSTALLED download states

A download row previously stopped at COMPLETED and never reflected whether the
app actually installed. Add INSTALLING/INSTALLED states driven by a central
installer-event observer in DownloadHelper:
- COMPLETED -> INSTALLING on the installer's first progress event
- -> INSTALLED on success (row kept so the APK can still be exported)
- a failed install reverts INSTALLING -> COMPLETED so it can be re-installed
  without re-downloading

Consumers that branched on COMPLETED are updated (App Details state, MicroG
status mapping, Downloads list icon). downloadStatus is stored as TEXT so no
schema migration is needed.
This commit is contained in:
Rahul Patel
2026-05-30 00:37:05 +05:30
parent 7e8746dbcb
commit 03638ca84c
6 changed files with 46 additions and 5 deletions

View File

@@ -520,6 +520,8 @@
<string name="status_queued">Queued</string>
<string name="status_unavailable">Unavailable</string>
<string name="status_verifying">Verifying</string>
<string name="status_installing">Installing</string>
<string name="status_installed">Installed</string>
<!-- UnarchivePackageReceiver -->
<string name="authentication_required_title">Authentication required</string>