feature: In-app update support for sideloaded Android apps (app version + APK install)
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the requested feature
Apps distributed outside Google Play (GitHub Releases, own website) have no built-in way to handle updates. This matters for apps that can't or won't be on Play, and for apps with fast-moving Python dependencies (e.g. yt-dlp) that break when the installed version gets old.
Today, as far as I could find in the Flet 1.0 API, there is no way to read the running app's own version (versionName / versionCode) from Python, so an app can't reliably compare itself against the latest release. Installing a downloaded APK also requires native code (FileProvider + install intent + REQUEST_INSTALL_PACKAGES).
In scope: sideloaded Android apps. Out of scope: Google Play in-app updates (a separate API) and silent installs (Android always requires user confirmation).
Suggest a solution
- Expose the app package info at runtime, e.g. a service backed by
package_info_plus(version, build number, package name). - An optional service to download an APK with progress and trigger the system install prompt, e.g. backed by
ota_update, withflet buildadding the needed permission/FileProvider when enabled.
With (1) alone, apps can already check GitHub Releases on startup/resume and open the APK URL with UrlLauncher. (2) makes the flow feel native.
Additional details
Related: #6695 (Python-only updates without rebuilding native assets), which would complement this for fixing Python dependencies between APK releases.
Source: flet-dev/flet