Repository navigation
v0.23.1
Read the car app's profile on Topway units again
Found in the van's telemetry (29 Nov, v0.21.0-beta.2, then v0.23.0).
Regression from #64
- #64 reads
com.tw.caronly from a system app. On the van's head unit it is a normal app in/data/app, so v0.23.0 loggedcar app not foundandthe head unit changed from profile 961 to no profile since it was confirmed, nothing will be sent. Nothing was sent until the user confirmed again. - Every Topway unit that ships the car app like this is hit.
Fix
com.tw.carcounts when it is a system app, or when the app runs on a Topway unit.android.tw.john.TWUtilis in the firmware's framework there, and no installed app can add it. A sideloaded copy on any other device still counts for nothing.app openednow ends with(car app: system | not a system app, cert <sha256 prefix> | absent). Once the van reports the vendor's certificate, a later release can require it on Topway units, so a sideloaded copy can't name the profile. Until then such a copy only changes the suggested card and the MATCHES tag. What is sent is still only the box the user confirmed.CarSetup.decide: a box confirmed while the head unit named no profile stays confirmed once the head unit names a profile it fits. So users who re-confirmed on v0.23.0 are not asked again. It needs a positive match (CarSetup.matches): a known profile that fits the box. An unknown or untested profile asks again, and so does any other change. Covered by newCarSetupTestcases.
Log noise
watch: batterylines are now logged on a 0.5 V change, up from 0.2 V. The alternator's 14.77 ↔ 15.08 V ripple was about 60 of 339 lines on one drive. Ignition off (about 12.3 V) and charging still log. Logging only; the engine detection doesn't use it.
Checked
sh test.shpasses (28 suites) andbuild.shpasses.- On the emulator, a non-system
com.tw.car(961_0000_260130) with the stand-in TWUtil now shows "The head unit is set up for profile 961" and MATCHES THIS HEAD UNIT. - The README is updated. No new screen text, so no translations or screenshots are needed.
Merging releases v0.23.1 (fix/).
🤖 Generated with Claude Code