App 2.18.0: install from a USB stick

Settings -> App -> "Install from USB stick" (car build only). It looks
in the top folder of every mounted volume (found from the app's own
folder on it, since the head unit has no file picker) for
NilsMG4-unstable-<version>.apk, takes the newest one newer than the
installed version, checks it against its .sha256 sidecar and the
package name, and installs it with the same PackageInstaller session
as the over-the-air update. The stable build gets a stub and no button.

Tested on the emulator: 2.18.0 installed a 2.18.1 from the storage's
top folder without a confirmation, as the system user, so the OTA
install step should not need one either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
This commit is contained in:
2026-10-18 20:59:45 +02:00
co-authored by Claude Opus 5.5
parent 0fd024cc2e
commit 69d284f81b
11 changed files with 209 additions and 4 deletions
+2
View File
@@ -182,6 +182,8 @@
<string name="ota_install_failed">Installation failed: %1$s. The APK is in Downloads.</string>
<string name="update_check">Check for updates</string>
<string name="update_checking">Checking for a new OTA version…</string>
<string name="update_usb_looking">Looking on the USB stick…</string>
<string name="btn_usb_update">Install from USB stick</string>
<string name="update_dialog_title">Software update</string>
<string name="btn_check_update">Check for updates</string>
<string name="btn_about">About Nils\' MG4</string>