Commit Graph
2 Commits
Author SHA1 Message Date
TMCandClaude Fable 5.2 1e49441967 Add self-update from a public release repository
The app is distributed privately, outside any store. Every version is published as a
release with the APK attached in https://git.mariosem.es/msemes/Flexera-Launcher-Releases,
and installed copies update themselves from there.

Versioning
- flexera/version.properties holds the version name (now 0.1.0); build.gradle derives the
  version code from it. This replaces Lawnchair's 16_00_02_01_00 / "16.Dev.(hash)".
- Debug builds always use the debug key, so the release key signs releases only.

Updater (app.flexera.update.FlexeraUpdater)
- Asks the release repository for the latest release at most once a day, when the home
  screen or settings come to the front, and on demand from Settings > About > Updates.
- Downloads the APK into the cache, checks that it is a newer build of this app, and
  hands it to Android's installer. Android enforces the signature.
- Posts a notification when an automatic check finds a newer version.
- Off in debug builds, whose app ID differs from the released one.

Network policy (reverses PRD SI-5, at the owner's request for in-app updates)
- The INTERNET permission is back, plus REQUEST_INSTALL_PACKAGES.
- The update check is the only network use. Lawnchair's online features stay off through
  FlexeraNetwork.onlineFeaturesAllowed: web suggestions, the announcement feed, and the
  crash-report upload button.
- The About screen's privacy text says what the app now does online.

Releasing
- flexera/release.ps1 raises the version, builds the signed APK, checks its signature,
  creates the release and uploads the APK.

Also carries the strings for the next commit (alphabet side and drawer settings).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 22:44:42 +01:00
TMCandClaude Fable 5.2 25df1a89e6 Remove the INTERNET permission and guard the network call sites
PRD SI-5: nothing leaves the device.

- flexera/AndroidManifest.xml removes android.permission.INTERNET; it is attached to the
  debug and release build types so it outranks flavor and library manifests
- FlexeraNetwork (new, flexera/src): isAvailable() plus a crash guard, because OkHttp
  rethrows Android's SecurityException on its dispatcher thread and that killed the launcher
- Drawer search skips web suggestions when the permission is missing
- LawnchairApp installs the guard; the bug reporter ignores the same exception

Tested on the Android 17 emulator: typing in the drawer search and opening the About
screen no longer crash; the guard logged and absorbed six refused requests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 20:48:43 +01:00