feat: turn the OTA updater back on, behind a button in the top bar
OtaUpdater was complete and unreachable: upstream's UpdateHook returned false and had an empty checkInBackground, so nothing ever called the downloader or the installer. That seam was suspended for an audit of the published suite; this fork ships its own builds from its own repository, signed with the platform key the head unit already trusts, so it is live here. The release URL and the About link now point at this repository. An APK from anywhere else is signed with a different key, and OtaUpdater.install checks the archive's certificate against the running app's before calling pm install -r — a mismatch is deleted rather than installed. The refresh button sits outside the tab row, next to About, so it cannot read as a sixth page. It disables itself for the duration: the check, the download and the install are one background pass, and a second press would start a second download of the same APK. The result goes to a toast because the check is reachable from every page and no one page owns the answer. The stable flavour gains a matching no-op overload. It still contains no updater at all — the class is absent from that APK rather than disabled — and the overload exists only so the shared UI compiles in both flavours. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -109,11 +109,13 @@
|
||||
<string name="notif_channel_desc">Shows vehicle telemetry upload status</string>
|
||||
<string name="notif_title">ABRP Uploader</string>
|
||||
<string name="notif_action_stop">Stop</string>
|
||||
<string name="update_check">Güncelleme kontrol et</string>
|
||||
<string name="update_checking">Kontrol ediliyor…</string>
|
||||
<string name="about_action">About</string>
|
||||
<string name="about_title">Fatih\'sMG4 Hakkında</string>
|
||||
<string name="about_version">Version %1$s</string>
|
||||
<string name="about_attribution">Fork of malys / EVABRPUploader\nand Leon Kernan / ABRP_Uploader</string>
|
||||
<string name="about_repository">github.com/fatihdonmezdev/EVABRP</string>
|
||||
<string name="about_repository">github.com/fatihdonmezdev/MG4ABRP</string>
|
||||
<string name="about_made_with_love">MG4 EH32 · SWI69</string>
|
||||
<string name="about_logo_description">EVABRPUploader logo</string>
|
||||
<string name="about_qr_description">QR code for the project repository</string>
|
||||
|
||||
Reference in New Issue
Block a user