Skip to content

v0.23.3

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 21:49
801da0a

Trust the car app only with Topway's certificates; quieter battery log; no update check offline

From the van's telemetry on v0.23.2 (30 Nov: three engine starts, each switched and confirmed, no failures).

Car app trust

  • On a Topway unit, a com.tw.car that is not a system app now names the CAN box only when its first signing certificate's full SHA-256 is one of Topway's two certificates.
  • Both were read from all 444 vendor builds on disk: 5304915c… (builds 2018–2023) and aa6f9fb3… (2019–now, the van's).
  • Any other copy is ignored: the unit counts as unidentified, and the car setup asks before anything is sent.
  • The certificate and version are read from one package snapshot.
  • Log: car app not found or not trusted; the (car app: …, cert <prefix>) note stays.

Battery log

  • While the engine runs (13.0 V or more), a new line needs a 1.5 V change, so the 14–15 V alternator swing no longer logs (21 of 196 lines on the van).
  • Crossing 13.0 V going up, or 12.7 V going down, always logs.
  • The 0.3 V band stops a reading that hovers at 13.0 V from filling the log.

Update check offline

  • Tapping the update card while Android reports no network shows No internet without trying.
  • The background job no longer logs no internet (often DNS not ready right after the network comes up); its backoff retry is unchanged.
  • Other failures log a short reason instead of the full exception.

Checks

  • Tests pass, with new cases for the pin, the battery rule and the hysteresis. The build succeeds.
  • Emulator: the fake car app (another key) logs car app not found or not trusted (car app: not a system app, cert d5837d0343349d77), and Settings says the head unit does not name a car. The offline tap shows No internet, with no update failed line.
  • Separate security review: no way found for another key to be trusted, and no regression for real Topway units. Its two low findings (snapshot, hysteresis) are fixed here.
  • README updated. No screen or translated text changed.

🤖 Generated with Claude Code