Repository navigation
Description
2.0 is the release where HMG-API stops depending on NEMESIS (Discussion #444). It's a major version because owners on NEMESIS have to move to one tool or the other (docs/releasing.md in #449: "needs owners to reinstall" → MAJOR).
Work collects on release branches. Each PR merges after review by someone other than its author and green CI. A change to boot, app_process, the installers or /system also needs a test-* build and an on-car report first (#444). We release when every box below is ticked.
Branches
| Repo | Branch | Made from | Next version |
|---|---|---|---|
| HMG-API | release/2.0 |
release/1.1 @ 1389eb7 (has all of main's code) |
2.0.0 |
| Wireless | release/3.0 |
main @ 23c564f |
3.0.0 (3.0.0-beta.1 in #124) |
| Phone Turn-by-Turn | release/1.0 |
main @ ee4e734 |
1.0.0 (1.0.0-beta.1) |
| EV routing | release/1.0 |
main @ ace94cc |
1.0 (proposed; both halves combined) |
- 2.0 PRs retargeted:
- core →
release/2.0: Home Wi-Fi: keep the car's Wi-Fi checksum in step, so the client starts #419 (with its stack, now stack #467), Boot guard: count late crashes and hangs, fail closed, explain and reset #429–Engine: roll back a failed apply at once, journal held apps, keep file modes #434, Installer: say why a backup that is a known stock build is kept (comments only) #409, EV readings: usable energy, range, charge limits, aux power, drive mode #212, Optional requirements and ModContext.modOn #215, Mod SDK: HMG-API's maps and a plan test for mods #216, Mod workflow and build-mod.sh: a mod's own build.sh, ids from mod.json #219, Mods' native recipes can find their own sites (hooks.native_sites) #230, and Integration (not for merge): every open PR together, for car and CI testing #440 (integration, not for merge) - Wireless Remove the bundled mods from core; the release takes them from the catalogue #124 →
release/3.0; projection-tbt Car tracker: Ioniq 5 — USA 260903 (NEEV / NEEV23) #1–Car Report: 2024 Ioniq 5 on nemesis #4 →release/1.0; EV Car Report: Ioniq 5 USA 260903 #39 and Car Report: Ioniq 5 USA 260903 #40 →release/1.0 - Stacked PRs keep their bases. Catalogue: Phone Turn-by-Turn (projection-tbt) and Wireless 3.0, prepared; release checklist #428 stays on
main(see section 4).
- core →
- GitHub shows Home Wi-Fi: keep the car's Wi-Fi checksum in step, so the client starts #419, Boot guard: count late crashes and hangs, fail closed, explain and reset #429, Safety functions: no mod in the camera and telematics, guide lines kept #431 and Mods' native recipes can find their own sites (hooks.native_sites) #230 as conflicting with
release/2.0, but each merges cleanly onto it with git. If the flag stays, mergerelease/2.0into those branches. - Others' PRs headed for 2.0 (Installer: sync once the stock app_process copy is made, before the wrapper #426, Hook point: DipoService's resetUSB() (dipo.service.reset_usb) #392 and the rest): their authors or a maintainer retarget them. Hooks on with an unverified map; the installer checks it and leaves a Car Report #464 is retargeted (Dec 1).
- Merge
release/1.1forward intorelease/2.0after each 1.1 fix, and after v1.1.0 final (Release/1.1 #451). - Releasing: release branches from 1.1.0 on, and an on-car check before every release #449: option A (release branches), decided Dec 1. The PR still needs rewriting to match.
- Mod repos' CI runs on pushes to
mainonly. Addrelease/**, as core'sci.ymlhas. Pull requests into the new branches already run CI. - projection-tbt and EV routing protect only their tags. Give
mainandrelease/[0-9]*the same ruleset core and Wireless have (PR + review, no force-push, no deletion).
1. Leaving NEMESIS (standalone)
These are the "separated install and cleanup" pieces.
- What 2.0 does when NEMESIS is installed (decided Dec 1): HMG-API and NEMESIS are never installed together. An install on a unit with NEMESIS stops and offers the guided "keep HMG-API, remove NEMESIS" path first; the owner can stop there, and nothing is installed.
- The install gate itself: #480. A new install on a unit with NEMESIS stops before anything changes, on every route; a unit with HMG-API already on it is still updated and repaired (or the NEMESIS 1.17: uninstalling HMG-API can stop Android from starting (fix in #396, recovery steps) #397 rescue couldn't run). It offers the guided path once that exists. Off-car only.
- #479 "Wipe NEMESIS" keeps HMG-API and its mods (the hooks only drop the listing; hooks refreshed in every listed package), and the zygote wrapper runs
hmgapid boot, so the boot steps run after a wipe deletesinstall-recovery.shand put HMG-API's line back. The guided path is built on this wipe. Off-car only. -
app_processunder NEMESIS 1.17's LivePatch script and.real: install, update and uninstall handle it (CRITICAL: NEMESIS 1.17 LivePatch brick risk and mitigation #396, Installer: never take NEMESIS's LivePatch script for the stock app_pr… #406). - Guided path: keep HMG-API, remove NEMESIS. Checks, confirmations, resume after a power cut, and cleanup of what NEMESIS leaves behind. Tested off-car in every order, then on cars. Also:
- files a NEMESIS package changed under
/system/apphave no stock copy after the wipe: mods on those files get a warning, not a silent re-apply - a car where NEMESIS turned SELinux off boots Enforcing afterwards (SELinux: an owner's option to start Permissive (test build) #334)
- mods installed only in NEMESIS: listed, and installed into HMG-API before the wipe where the package carries the mod's own zip
- files a NEMESIS package changed under
- NEMESIS installed or updated after HMG-API: noticed at boot, and the owner is asked to pick one.
- Guided path: keep NEMESIS, remove HMG-API. Built on
uninstall.sh; safe with 1.17's LivePatchapp_process(CRITICAL: NEMESIS 1.17 LivePatch brick risk and mitigation #396 handles it today). Same testing. - A recovery path that doesn't need Android, tested on a car, before we tell anyone to remove NEMESIS.
- No way to install or update HMG-API or any mod through NEMESIS in 2.0. Take NEMESIS out of core, keeping only what the "keep NEMESIS" path and the wipe handling (NEMESIS's wipe keeps HMG-API and its mods; boot steps run without install-recovery.sh #479) need:
NemesisSync(engine nemesis-sync) andboot.sh's two-minute sync- HMG-API's NEMESIS package and its update path (
install/nemesis/), the release's NEMESIS downloads (tools/mkinstallers.sh,nemesis-meta.py), the wiki's NEMESIS install section - mods through NEMESIS:
engine install --from-nemesis,tools/mknemesismod.shand the SDK's NEMESIS packaging - the boot service HMG-API gets started from
- NEMESIS
package-version(nemesis-version.py). Without it, versions no longer have to be alpha/beta/rc only. - the
nemesis-dfallback ininstall/adb/hmgapi-adb.sh, thenemesis remountfallbacks (hmgapid's own remount covers them), the engine's reads of/data/nemesis/backup(must work when it doesn't exist), and the app's NEMESIS menu entry - check that the app's self-update never calls
nemesis install
- Keep every NEMESIS attribution the licence requires (AGPL-3.0):
NOTICE.md's NEMESIS section (only its "installs as a NEMESIS package" sentence changes) andcore/hmgapid/hmgapid.c's header stay; removing the NEMESIS route mustn't take a notice with it. Release notes and README: notice that HMG-API is separating from NEMESIS #445 credit NEMESIS. - Docs for owners moving off NEMESIS. How to get to HMG-API only (jdhorner's question on HMG-API is separating from NEMESIS #444); what replaces NEMESIS-only features (
hmgapi-adb,hmgapi-comfort); whethernemesis-shortcutstays in the catalogue. - Install without NEMESIS: USB route A (Engineering Mode → DSP → Update OTA) exists. Confirm it on each supported car family, and say which route the docs lead with.
- Priority — NEMESIS 1.17.1 (released): mods' file changes as LivePatch outputs #405 (xwtk, mods' changes as NEMESIS LivePatch outputs): maintainers to decide and reply. It goes the other way from 2.0's split.
- README: notice that HMG-API is separating from NEMESIS #445 README notice (approved, draft): update it for 2.0 when 2.0 ships.
2. Clean install and uninstall
- Install status (HMG-API is separating from NEMESIS #444): which step it's on, "don't remove the stick or reset" while it works, and "done, safe to remove" at the end. The USB route shows only "installing" and "installed, restarting" today. As a screen, not only toasts: one state file every route writes (installer, uninstaller, engine, USB), shown full-screen by the HMG-API app with "stay in P", and shown again after the rear camera or another screen takes over. After Restarts, applies and installs only start with the car in P #433 (its gear reading).
- #478 one install or uninstall at a time (
install.shhad no lock while the stick offered two routes at once); the stick no longer carriesNEMESIS.data. Off-car only. - #426 (zpoon) installer sync after the stock copy: no review yet, conflicts. Needs a test build and a car report.
- #436 boot hardening, on Installer: sync once the stock app_process copy is made, before the wrapper #426. VysseCodes: "careful work". ✅ installed and boots on a car.
- #464 (VysseCodes) the installer checks the map and leaves a Car Report; a map that failed its check on that car stays off with no override; the app opens once after an install or update so owners see the status, only on an explicit "in P" (review; The gear reading on every car: straight from the car's system service when the map has none #489 for cars without a map). Now on
release/2.0. Needs a reviewer and a new test build. Related: Bug: failed on install #456, a first USB install that failed on a damaged map file. - #488 (to
release/1.1) hook map for the US Kia EV6 on 260903, from stock files; a tester's car matches (18/18 files) and its own map is identical in all 393 points. Without it that car had hooks off and no tile. - #409 installer comments only. VysseCodes: "Fine to merge".
- Owner-provided stock files (after Engine: journal settings, props and binds; checked backups; room checks #430): when a stock backup is damaged and no NEMESIS copy fits, the engine also looks on a USB stick (
HMGAPI/stock/<path>) and accepts only the md5 recorded when the backup was taken; anything else is ignored, and the status says so. The status and the app name the path, the md5 and the stick folder ("Check the stick again"). Plus "Export stock files" on a healthy car with the same software build: it copies the listed files (path + md5) from its own/systemonto a stick, each checked. Owner to owner only; the project never hosts the files. - Rerun the every-order install/uninstall test (Installer: #406 review fixes, the NEMESIS-uninstalled case, and an every-order test (into fix/livepatch-old) #407) with 2.0's engine changes (Engine: journal settings, props and binds; checked backups; room checks #430, Engine: roll back a failed apply at once, journal held apps, keep file modes #434) in. Uninstall must still put back the exact stock bytes.
- 1.1.0-rc.8: mod services can't System.loadLibrary (the service group makes exec secure, so LD_LIBRARY_PATH is dropped) #378 (mod services can't
System.loadLibrary): check whether rc.10 fixed it, then close it or fix it.
3. Safety and reliability
Merge order (VysseCodes): #434 → #430 → #433, and #429 → #432.
- #434 roll back a failed apply, journal held apps. ✅ car, normal apply; failure paths off-car only. Review fixes pushed Dec 2; approved (VysseCodes).
- #430 journal settings, props and binds; checked backups. Decided Dec 1: option 1 (only that file stops, named in the status; no override). Rebase on Engine: roll back a failed apply at once, journal held apps, keep file modes #434 after it merges.
- #433 only in P. Decided Dec 1: option 2. Uninstall warns and goes on; install, apply and restart stay refused when not in P, with no override (add it to CLAUDE.md's exceptions in this PR).
- #489 the gear reading on every car:
com.hkmc.micom.system'sgetGearPStatusread directly when the map has no gear point (transaction 36 in all 21 stock builds we have; no map, hook or patched file). For Restarts, applies and installs only start with the car in P #433's gear checks and Hooks on with an unverified map; the installer checks it and leaves a Car Report #464's "open the app in P" on cars without a map. Needs a car check (service call com.hkmc.micom.system 36in P and in D). - #429 boot guard. Fixes pushed (in-boot count resets after an hour up). Still to confirm: the launcher process name, and the watcher's "booted" line in a car's kernel log.
- #432 safe mode. "Looks good." Comes after Boot guard: count late crashes and hangs, fail closed, explain and reset #429 and needs its
zygote.cchange merged in. - #431 protected processes. Decided Dec 1: no override, in the hard rules. FITCAMX checked off-car: unaffected. Conflicts with
main, but merges cleanly ontorelease/2.0. Not yet checked on a car: the rear camera in R. - Test builds and car reports for the startup-file changes: Installer: sync once the stock app_process copy is made, before the wrapper #426, Boot hardening: exact boot-hook lines, Dalvik layout check, update md5 check, zygote fallback #436, Boot guard: count late crashes and hangs, fail closed, explain and reset #429, Safe mode, service logs capped while running, mods' services at low priority #432.
- The zygote and installer tests run only in CI (qemu, ARM build). Make sure they're required checks on
release/2.0. - Optional for 2.0: SELinux: an owner's option to start Permissive (test build) #334 (VysseCodes, draft) an owner option to start SELinux Permissive.
4. Mod catalogue and updates over Wi-Fi
Stack, in order (VysseCodes): #419 → #420 → #422 → #423 → #457 → #458 → #424. Every requested fix was pushed on Nov 30; all are waiting on re-review.
- Re-review and approve the stack. Home Wi-Fi: keep the car's Wi-Fi checksum in step, so the client starts #419 and Home Wi-Fi: mods' connections and their services' lookups get through #420 ✅ car; The engine's HTTPS: the unit's own libssl, home Wi-Fi only #422 ✅ car (real GitHub downloads).
- Where the catalogue lives:
- The problem: cars read
catalog/frommain(Catalog.BASE), and Catalogue: open each listed mod's new release as a bump PR, hourly #457's workflow opens its PRs againstmain. But the engine,tools/catalog.pyand the format changes (key_from, requires) land onrelease/2.0. Until 2.0 final,main's catalogue check would be the 1.x one. - Recommended: land the tooling that doesn't ship (
tools/catalog.py,catalog.yml,catalog-update.yml) onmainas soon as it's approved. - During the betas, testers can point at a test catalogue with
hmgapi.json"catalog": {"base": …}.
- The problem: cars read
- On-car, not tried yet:
- installing from the catalogue (Catalogue, dependencies and updates in the engine #423)
- an update from a mod's own releases
- App: Get mods and Updates in the Mods tab #424's install dialogs
- HMG-API updating itself over Home Wi-Fi (
engine update hmgapi)
- One key per mod:
- projection-tbt has its own key; its
MOD_KEYsecret still needs adding to thereleaseenvironment. - The other Open-HMG mods move off the shared key with a
key-handover.jsonin their first release after A mod can move to a new author key (key-handover.json), so each mod can have its own #458.
- projection-tbt has its own key; its
- #428 catalogue entries for Wireless 3.0 and projection-tbt. It stays on
main, merging after both mods are released. Itscatalog/wireless-carplay-aa.jsonconflicts withrelease/1.1's 2.2.0 entry; resolve that when 1.1 reachesmain. - Unique ids for install paths: one folder per id, so two mods can't take the same name.
4b. Mods keep working on 2.0, with no update from their authors
Every SDK-built mod is a signed HMG-API zip, and its NEMESIS package only wraps it. All catalogue mods declare "hmgapi": ">=…" with no cap, but the engine checks the range against the product version, so a ^1.0 or <2.0.0 cap would refuse 2.0 (EV routing had one).
- The mod API stays 1.x while the product is 2.0 (
mod.json, hook point ids,ModEntry/ModContext, the client jar): #483. A mod's"hmgapi"range made for 1.x (^1.0.0,<2.0.0) is met on 2.x as on 1.x's newest. Off-car only. - A mod that only ships as a NEMESIS package: the owner docs for moving off NEMESIS say how to take the mod out of it. The package holds the mod's own signed zip (
mod/package.zip); copied intoHMGAPI/updates/on a USB stick, it installs from the app's Updates with the usual signature check. No engine change. - A compatibility check before every 2.0 release (CI): #485. Each catalogue mod's listed release through the engine (install, plan, remove, hook points), on PRs that touch the engine, hook points or catalogue, and weekly. All 7 pass on
release/2.0today. - Mods that use NEMESIS at runtime (
nemesis root,nemesis-d,/data/nemesis): find them, and point their authors at HMG-API's root services and the hmgapid client. - A heads-up to mod authors before the first beta.
5. Projection mods
Wireless 3.0 (release/3.0)
- #124 + #125 turn-by-turn moves out. ✅ loads on a car; wireless AA not driven yet.
- Release together with Phone Turn-by-Turn 1.0 (Wireless first, then turn-by-turn;
docs/wireless-3-split.md). - Others' PRs to consider for 3.0:
- m #123 (Geijoh): the hotspot's interface coming up late
- Mod SDK and reusable mod workflow; core tests off the wireless fixture #122 (Geijoh, draft): skip DiPO's USB reset; needs core Hook point: DipoService's resetUSB() (dipo.service.reset_usb) #392's hook point
- Catalogue: download from the v1.0.2 release in Open-HMG/HMG-API #119: Android Auto developer mode
- car entries Car Report: 2023 Kia Niro EV USA 260507 #99, Car Report: Ioniq 5 USA 260507 #92, Conditioning: send the start (station event) once, not every 5 s #67, Stock-style app-menu icons: HMG-API's logo, and tools/mkicon.sh for mods #49, Hook maps: Ioniq 5 USA 260507/260903, EV6 and Ioniq 5 Canada 260206 #29
- Car tracker: Hyundai Kona Electric — Canada 260206 (OSPEEV) #102, Add TP-Link Wifi Adapter Support #104, Car Report: null KOR 260902 #107 and Car Report: 2024 Kia Niro EV #110–Car Report: null KOR 260902 #113 are already in projection-tbt: close them once Remove the bundled mods from core; the release takes them from the catalogue #124 lands, or merge them into 2.x (question for maintainers).
Phone Turn-by-Turn 1.0 (release/1.0)
- #1 release workflow and own key, #2 review fix from Wireless Car Report: null KOR 260902 #113, #3 floor
>=1.1.0-rc.10(fixes CI), #4 links. -
MOD_KEYsecret (see section 4).
EV routing 1.0 (release/1.0)
- #39 CarPlay and Android Auto in one repo (Isaac OK'd).
-
carplay/mod.json's"hmgapi"cap was<2.0.0, so it wouldn't have installed on 2.0. Now>=1.1.0-rc.3 <3.0.0-0. - Decide who releases
carplay/: Isaac's key, or his key as a second secret.
-
- #40 works with Wireless 3.0 and turn-by-turn. ✅ loads alongside turn-by-turn.
- Core hook points it waits on: #212 → #214 → #221. Into 2.0, or keep EV on 1.x points for now?
- Car Report: null KOR 260902 #41 (links, docs only) stays on
main.
CarPlay: none of the CarPlay side has been tested (no iPhone). Find a tester before any beta.
Also headed for 2.0 (not the focus)
Mod SDK and tooling: #215, #216 → #220, #219, #230. Others' hook points: #392, #303, #293.
Release
- Version PR on
release/2.0:HMGAPI_VERSIONand the app manifest. Start at2.0.0-alpha.1or-beta.1. - Beta from
release/2.0→ off-car check of the draft → on-car check → published as a pre-release. - rc.1 = feature freeze, with a tracking issue that gives maintainers the cutoff date.
- Final: release notes with the move-off-NEMESIS steps;
release/2.0merged intomain; README: notice that HMG-API is separating from NEMESIS #445's notice updated.
Activity
VysseCodes commentedon Dec 1, 2026
Thanks for putting this together. Decisions from today, and what I'd add.
Decided
app_process,install-recovery.sh), and keeping both has been behind our worst failures, NEMESIS 1.17: uninstalling HMG-API can stop Android from starting (fix in #396, recovery steps) #397 included (that one was our bug). An install on a unit with NEMESIS stops and offers the guided "keep HMG-API, remove NEMESIS" path first. That path shows which NEMESIS packages go with it, offers HMG-API's replacements (adb, wireless), and refuses unless every check passes, leaving NEMESIS installed on any failure. The owner can stop there, and nothing is installed. "Keep NEMESIS, remove HMG-API" stays as the other path. This will go into CLAUDE.md's exceptions.To add to the list
Section 1, leaving NEMESIS
app_processchain (app_process/.real/.hmgapi-stock) on install, update and uninstall, and repair it at boot/system/apphave no stock copy left to go back to. Mods on those files can't re-apply on stock: warn the owner rather than re-apply silently.nemesis-dfallback ininstall/adb/hmgapi-adb.sh, thenemesis remountfallbacks ininstall.sh/uninstall.sh/hook-check.sh(hmgapid's own remount covers them), and the engine's reads of/data/nemesis/backup(it has to work when that folder doesn't exist). Also check that the app's self-update never callsnemesis install.Section 2, clean install and uninstall
install.shhas none, and the USB stick carries bothota_package.tarandNEMESIS.data, so two installs can run at once on a NEMESIS unit.O_EXCLon tmpfs, ashmgapid bootdoes, and dropNEMESIS.datafrom the stick.