Skip to content

App: Get mods and Updates in the Mods tab - #424

Open
AwsomeFox wants to merge 18 commits into
catalog/enginefrom
catalog/app
Open

AwsomeFox wants to merge 18 commits into
catalog/enginefrom
catalog/app

Conversation

@AwsomeFox

@AwsomeFox AwsomeFox commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Stack: 5 of 5, on #423. The app screens.

  • Catalogue tab (CatalogTab). The catalogue, each mod with:

    • its status here (not installed, installed, update from x, newer than the catalogue's);
    • what it needs ("installed with it if missing");
    • whether its author is on the trusted list (if not, installing it needs the owner's yes);
    • why it can't install (HMG-API version), or a warning when it isn't listed for this car ("you chose to use it here" once the owner did).

    Install, Update and Turn on first show every step it'll take (catalog-plan): "Install Base 1.0.0 (needed by App)", "Turn on X". Offline, it shows the last check and offers Connect to home Wi-Fi (15 min) (wifi now 15, in P), then checks.

  • Install anyway, per mod. When the plan has something the owner can override, "Install anyway…" lists each mod with its reason, after a warning for each kind:

    • not listed for this head unit → --any-car=<id>
    • an author key that isn't on the trusted list → --any-author=<id>

    The owner ticks the ones they mean, and only those are passed. Before, --any-car went to every mod in the batch.

  • A second OK. If the downloaded packages need more than the plan said (engine exit 5), nothing is installed and the new plan is shown to confirm.

  • Updates tab (n) (UpdatesTab). Installed mods with a newer version, with Update and Update all. Update all plans each mod on its own (catalog-plan --update --all): the ones that can't go now are listed with why, the rest go.

    • Updates the automatic check downloaded say they go in at apply.
    • HMG-API's own release has its notes in a dialog (kept by the engine; the head unit may have no browser), with the page link and "Open the page" when a browser is there. It also has its installer, "Update anyway" when installed mods wouldn't take the new version, and a restart prompt as after a USB update.
    • Switches for the automatic check and for staging plain mod updates ("they wait until you apply").
  • Mods list: a mod's row says "update x.y.z" and its page has Update. Remove names the mods that need it. The Updates count follows USB and adb installs (the engine rewrites it).

  • After installs, back on the main screen: plan and apply, as after a USB install. If an install doesn't answer within the wait (now 30 min), it isn't reported as failed. The screen still hands back OK, so the main screen's plan waits for the engine and then shows what changed.

Shared flow in CatalogFlow.

Updates from mods' own releases (with #423's release checks)

  • Updates tab:
    • A row from a mod's own releases says which repo it's from, that it's signed by the installed version's author but not reviewed for the catalogue, and whether it's a pre-release. It has the release's notes.
    • Installed versions a maintainer withdrew (catalog/withdrawn.json) are listed first, with why.
  • Installed mods → a mod:
    • The update line says where the update comes from.
    • A withdrawn version gets a warning box.
    • A new Updates section chooses where updates come from (engine update-source):
      • From the catalogue, only for listed mods;
      • From its releases, only when mod.json names a GitHub repo;
      • Don't check;
      • Default.

Tested

It builds (./build.sh app). The engine answers it reads are catalog-test.sh's. Not run on a head unit yet: layout at 1920×720 and the dialogs (including the per-mod choice list) are unchecked.

Review follow-ups (Nov 30)

🤖 Generated with Claude Code

- Mods tab -> Get mods (CatalogActivity): the catalogue with what each mod would do here, its
  requires, whether its author is on the trusted list; Install / Update / Turn on, showing first
  every step it takes (CatalogFlow: catalog-plan, then catalog-install), "Install anyway" for
  another car. Offline: the last check, and "Connect to home Wi-Fi (15 min)" (in P).
- Mods tab -> Updates (n) (ModUpdatesActivity): installed mods with a newer version, Update and
  Update all, HMG-API's own release with its installer and a restart; the switches for the
  automatic check and for staging mod updates. A mod's row says "update x.y.z", its page has
  Update; Remove names the mods that need it.
- Back on the main screen after installs, the plan and apply as after a USB install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox and others added 3 commits November 27, 2026 09:29
- "Install anyway" picks mods one by one, each with its reason (not listed
  for this head unit: --any-car=<id>; an author not on the trusted list:
  --any-author=<id>), after a warning for each kind; before, --any-car
  went to every mod in the batch.
- Update all plans each mod on its own (catalog-plan --update --all) and
  says which can't go now and why; the rest go.
- When the downloaded packages need more than the plan (engine exit 5),
  the new plan is shown for a second OK.
- No answer within the wait (now 30 min) isn't "failed": the screen hands
  back OK, so the main screen's plan waits for the install and applies.
- HMG-API's release notes in a dialog (the engine keeps them; the head
  unit may have no browser), with the page link, and "Update anyway" when
  installed mods wouldn't take the new version.
- Staged updates say they go in at apply; the switch no longer says
  downloads are applied later without saying they wait aside.

Builds (./build.sh app). Not run on a head unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox and others added 2 commits November 27, 2026 09:42
It went into /data after the wrapper and boot hook were written, so a
failure there stopped the install with the maps, the app and the records
after it skipped. It's now kept right after the backups, before
remount rw, and a failure says nothing on /system was changed. Test: a
file where its folder goes: refused, /system unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox and others added 5 commits November 28, 2026 10:11
…eport

They were screens of their own, opened from two buttons at the top of the Mods tab. Now they're
tabs of the main screen (CatalogTab, UpdatesTab), the Updates tab with the count when the last
check found any. An install or update offers Apply now (the main screen's plan, then its OK)
instead of applying when the screen was left. Tabs are named (MainActivity.MODS ... LOGS), so
the ones the Logs, Problem and Mods tabs open stay right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings' Updates category (USB updates, and the switch that blocks the car's own over-the-air
updates) moves to the Updates tab, below the catalogue's updates and the automatic check, so one
tab has them all. Settings keeps Vehicle, Home Wi-Fi, Phone projection, Hook map and About, shown
by name. The first tab is Installed mods, next to Catalogue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rom, withdrawn versions

- Updates tab: a release-sourced row says which repo it's from, that it's signed by the
  installed author but not reviewed for the catalogue, pre-release if so, with its release notes.
  Installed versions a maintainer withdrew are listed first, with why.
- Installed mods: an update's source on the mod's page; a withdrawn version boxed; an Updates
  section to follow the catalogue, the mod's own releases, or nothing (engine update-source).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AwsomeFox
AwsomeFox marked this pull request as ready for review November 28, 2026 15:50
@AwsomeFox
AwsomeFox requested review from a team and VysseCodes as code owners November 28, 2026 15:50
@isaacwisdom
isaacwisdom added this pull request to stack #443 November 28, 2026 17:44
isaacwisdom
isaacwisdom previously approved these changes Nov 28, 2026

@isaacwisdom isaacwisdom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.

@VysseCodes VysseCodes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The installer fix (copy the HTTPS library before /system) belongs in #422; please move it there.
  • The description names CatalogActivity/ModUpdatesActivity, but the code has CatalogTab/UpdatesTab. Please update it.

Merge order: last in the stack (#419 → #420 → #422 → #423 → #457 → #458 → #424).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox added a commit that referenced this pull request Nov 30, 2026
…llbacks)

NativeFetch.fetch and dns are synchronized on one lock, so later parallel use can't run two
OpenSSL calls at once; fetch.c's comment now says calls are serialized (review). The installer
fix that keeps this library before /system changes moved here from #424 (cherry-picked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AwsomeFox

Copy link
Copy Markdown
Contributor Author

Done: the installer fix is in #422 now (this PR's install/ diff is empty after merging #423), and the description uses CatalogTab and UpdatesTab.

AwsomeFox and others added 2 commits December 2, 2026 11:22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants