Skip to content

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 16:49
73800de

Log the CAN box profile and send no PSA commands to other profiles

The vendor app com.tw.car is built once per CAN box profile, and its version name starts with the profile code (961_0000_260130 on the van). The app opened log line now ends with that version and the profile it names, so shared diagnostics show which profiles users have.

  • CarProfile holds the profiles with a known stop-start command (see #51). Only 961 (Raise, PSA and Opel) is marked tested.
  • Guard: when the vendor app names a known profile other than 961, the switch screen and the automatic switch send nothing to the CAN box. On those boxes the PSA bytes mean something else: on an emulator with a stand-in Raise VW box, master sent 143 {56,0} and 57 queries to it. The log says the car app names profile 111 (Raise, VW MQB): its stop-start command differs, nothing will be sent and the card shows NO LINK TO CAR. The watch service still opens its link: it only listens to power messages. Units without the vendor app or with an unknown profile are unchanged. Profile 96 (PSA on Simple Soft, Binary or LuZheng) is blocked too: its query and value meaning differ from Raise.
  • The table also corrects VW 11 to send id 58.
  • The manifest declares <queries> for com.tw.car, so detection keeps working if the target SDK is raised past 29.

Verified:

  • sh test.sh passes, including the new CarProfileTest.
  • build.sh passes, and the APK manifest contains the <queries> entry.
  • Android 14 emulator: the line ends with car app not found, as expected without the vendor app. With a stand-in vendor app 111_0000_260327 and a fake Raise VW TWUtil in a test-only build, no write reached the box. Not yet seen on a head unit.

The README links docs/vendor-profiles.md, which comes with #51.

🤖 Generated with Claude Code