Skip to content

Integration (not for merge): every open PR together, for car and CI testing - #440

Draft
AwsomeFox wants to merge 125 commits into
release/2.0from
integration/all-open-prs
Draft

AwsomeFox wants to merge 125 commits into
release/2.0from
integration/all-open-prs

Conversation

@AwsomeFox

@AwsomeFox AwsomeFox commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Not for merge. Every open PR combined (#419–#424, #426, #428–#436, drafts included), to test them together on a car and to have CI run what a Mac can't (hmgapid, the zygote wrapper, lpatch under qemu-arm). Each PR still merges on its own; this branch shows what merging them together takes, and the commits marked "Integration:" are the resolutions to carry over when the second PR of each pair lands.

Where PRs meet, and how it's resolved

PRs What overlaps Resolution (commit "Integration: ...")
#430 × #434 both rewrite Engine.apply, recover and restore one transaction: #434's in-run rollback around #430's checked backups and journalled settings, live props and binds. State keeps the odex md5 (#430) and stock mode/owner/label (#434). Restore: #430's restoreFrom plus #434's stockMeta. Recover: #430's checks (a damaged journal set aside, saved copies verified (lost, not retried), room for the put-back, settings and binds), then #434's rollback and held apps
#433 × #434 two ways of stopping apps while their files change (held.txt) #434's kept (never Android, persistent apps or OTAClient; journalled before stopping). #433's own path removed; boot.sh runs recover only for a journal and release-held once Android is up
#429 × #432 the boot guard in zygote.c the first trip turns safe mode on (written via fsync + rename) and starts the counts again; a trip in safe mode, or with SAFE unwritable, is #429's fail-closed trip. engine safe off now clears hook/tripped too (BootGuard.reset): before, the hooks stayed off
#423 × #433/#434 staged updates promoted before an apply put back in pending/ on a gear refusal and a failed apply as well (#423 alone now does the failed-apply part, 67ee0a2)
#430 × #434 refusal order boot-critical checked before the /system/bin mode rule; #434's tests use allow_critical for netd and framework-res.apk, which #430 made critical
#433 × #431/#432 tests the vehicle service #433 runs it always (the gear check reads through it); the live and safe-mode tests now expect that
#426 × #436 install-test's sync check looks for #426's sync among #436's earlier ones
#429 × #436 zygote.c helpers, docs both kept
#423 × #432 hmgapid's engine usage line both kept (safe, update-source)

Also on this branch, now in the PRs themselves: #431's native patches skipped in protected processes (0d64d19).

Tested

Off-car on macOS, after #423/#424 gained updates from mods' own releases: every suite that runs on a Mac passes, among them engine 218, journal 89, safety 78, catalogue 201, fetch 62, home Wi-Fi 172, installer 301, live 35, safe 73, hooks 116. Not run there: hmgapid, zygote, lpatch (no qemu-arm: this CI run is their first on the combined boot guard) and the USB installer test (fails on macOS on unchanged rc.10 too).

Not on a car yet: next, with Wireless 3.0 (#124/#125), Phone Turn-by-Turn and the EV standalone build.

Open review points (not changed here)

🤖 Generated with Claude Code

AwsomeFox and others added 30 commits November 15, 2026 22:15
The SDK carries maps/ (without the repo's coverage baseline), and test/lib.sh has
plan_test <mod> [<required mod>...]: for each car the mod's "system" names that has a
map, a fake head unit (stand-ins for the stock files the map was made from, their md5s
in the unit's copy of the maps; the features the mods ask for) with the mods on it,
and engine plan as that car. It checks the plan's problems (not the stand-ins' files),
the mod's "system" (engine plan checks it only for mods with file changes), that the
car's map is used, that every declared hook point is mapped and the hooks load, lists
the points the mod shares, and checks its native recipes against the required mods'
for the same library build (RecipeCheck, in the SDK's test jar).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build-mod.sh runs an executable <mod>/build.sh <out dir> after building
hooks.jar and the app, with the SDK, the runtime, hmgapi-client.jar and the
Android tools in its environment; what it writes there goes into the package.
mkmodpkg.sh packages the mod folder with that build on top (HMGAPI_MOD_BUILD,
or it runs build-mod.sh), so the package is what the tests saw and build.sh
runs once. It refuses a HMGAPI_MOD_BUILD that is another mod's build.

The mod's id comes from mod.json, not the folder name, in build-mod.sh and the
reusable workflow: the workflow builds into out/build/<id> and refuses two
folders with one id and ids the engine would refuse.

For mods like egmp-aa-ev (folder hmgapi-mod/, a relay service jar).
Packages of today's mods have the same files as before. sdk-test.sh covers a
build.sh mod in a folder not named by its id, and runs mod.yml's own steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bin/hmgapi-mod wraps the SDK's tools, from a mod repo's root: new (a mod folder, an
entry class, a test.sh running plan_test, the SDK pin, CI, .gitignore), build
(build-mod.sh), check (check-points.py, check-scripts.sh), deps, test (build, deps, the
mod's test.sh or the plan test), package (mkmodpkg.sh, mknemesismod.sh).

deps (bin/mod-deps.py) gets each mod "requires" names, and what those require, from
HMG-API's catalogue: the version against the range as the engine reads it (Requires, in
the SDK's test jar), the download against the entry's SHA-256, the signature against its
author key, which must be on maps/authors.json; cached in .hmgapi/deps. hmgapi-deps.txt
pins a pre-release from the mod's own repo, same key.

Over adb: install --adb (push, engine install, engine apply, wait for adb as the apply
may restart adbd, then engine status if the link dropped, hmgapid reboot), logs (the
mod's lines in HMG-API's log file, or a service's log) and settings get|set (pushed as a
file and read on the unit, so the JSON keeps its quotes). Exit codes come back as a last
line, since adb shell on Android 4.4 always exits 0. Each takes --dry-run; tested
against a fake adb only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g build.sh

The id and version (and the built mod's id) came from the first "id" and
"version" anywhere in mod.json, so a nested one before the top-level one
named the package wrong or failed the "as built" check. Read the top-level
fields with python3, as build-mod.sh does, and refuse a mod.json without them.

An existing build.sh used to get the package's folder, a copy of the whole
mod folder; now it gets build-mod.sh's out dir. CHANGELOG and mod-reference.md
say so, and what to do: one that only adds files works as it is, one that
changed the folder's files writes its copy to the same path in the out dir,
which wins in the package. sdk-test.sh checks both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An id starting with a digit (3d-view) or a Java keyword (new) gave a package that
doesn't compile (mod.3d_view): it gets an m first now (mod.m3d_view, mod.mnew), as the
class gets Mod. hmgapi-sdk.json gets the release zip's sha256 from that release's
SHA256SUMS when it can be fetched (HMGAPI_SDK_SUMS: another URL or file); otherwise it's
left empty and new says to fill it in, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…/maps-plan-test

# Conflicts:
#	CHANGELOG.md
CHANGELOG: this change under For mod authors, after main's Cars and Fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stock Wi-Fi library (seen on an Ioniq 5 US 260507) starts the car's Wi-Fi client only when
/data/misc/wifi/wpa_supplicant_crc32.conf holds the CRC-32 of wpa_supplicant.conf (8 upper-case
hex digits). wifi.sh's join and forget edited the networks file and left it stale: logcat said
"Wi-Fi will not be enabled" and home Wi-Fi stayed "searching". WifiAp crc writes it (only when it
differs, owned system:wifi 660); wifi.sh runs it after every edit and before switching the
client on. The test checks it against the pair the car's library wrote for its own template.

A first network no longer needs printf (not on the unit): the config starts from the car's own
template (/system/etc/wifi/wpa_supplicant.conf), as its library does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both found on an Ioniq 5 US 260507 (rc.10) with a mod that downloads over home Wi-Fi.

- Connections were refused. The mods' cellular block sat in filter OUTPUT, where -o is the route
  a packet had before HMG-API's mark (mangle OUTPUT) moved it to table 95: a connection whose
  first route was the main table's (mobile data) was rejected there, though it would have left
  on wlan0. With home Wi-Fi on, the IPv4 block for the home group and the mods that asked runs
  after the reroute instead (mangle POSTROUTING, HMGAPI_HOMECELL: nothing marked leaves on
  rmnet), and table 95 is never empty: an unreachable default while home Wi-Fi is down, so
  marked traffic fails rather than falling through to mobile data. IPv6, and everything with
  home Wi-Fi off, is refused in OUTPUT as before.
- A service's resolver (ANDROID_DNS_MODE=local) has no servers in its process and asks
  127.0.0.1:53. The DNAT to home Wi-Fi's server kept 127.0.0.1 as the source, which the kernel
  won't route out of wlan0. While home Wi-Fi is up: route_localnet on wlan0 (the queries are
  masqueraded by HMGAPI_HOMEOUT), and HMGAPI_HOMELO lets only answers come back in for 127.x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For the catalogue and updates (next). Android 4.4's Java TLS shares no cipher suite with GitHub,
and its MessageDigest SHA-256 can be missing under app_process, so:

- core/fetch/fetch.c -> /data/hmgapi/lib/libhmgapi_fetch.so (built like the loader: no libc,
  dlopen/dlsym only; installed into /data, nothing new on /system). One TLS 1.2 request through
  the unit's libssl.so; the socket carries home Wi-Fi's mark (SO_MARK 0x2951), so it leaves on
  home Wi-Fi or not at all. The certificate isn't checked (the unit's 2013 roots and its clock
  can't be relied on): what's downloaded is trusted only through a SHA-256 and a signature.
- NativeFetch (with NativeFetch.Web, files standing in for GitHub off the car), Http (https,
  GitHub's hosts only, redirects between them, a size cap), DnsLookup (home Wi-Fi's DNS server,
  asked directly), Sha256 (plain Java).
- fetch-test.sh. The same C, built for a computer, fetched catalogue entries and packages from
  GitHub; first run on an Ioniq 5 US 260507 as a mod.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s libc headers)

The few JNI pieces it uses are declared at their places in the standard table, checked at
compile time; the library is byte-for-byte the same. CI's Linux headers failed for the ARM target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
engine catalog [--refresh], catalog-plan <id>..., catalog-install <id>... [--any-car],
updates [--refresh], update <id>... | --all | hmgapi, update-check (wifi.sh runs it each time
home Wi-Fi comes up; the owner switches no_update_check and auto_stage_updates).

- The catalogue: catalog/ on GitHub, from index.json (tools/catalog.py index) or GitHub's
  listing of the folder; cached in /data/hmgapi/catalog, updates also in public/updates.json.
  HMG-API's own release: its newest from the releases API (pre-releases only on one), the
  update zip's SHA-256 from SHA256SUMS.
- Dependencies: requires met by what's installed, or by the catalogue's version installed
  first; a required mod that's off is turned on; the downloaded package's mod.json is read again
  for requires its entry doesn't name. Loops, conflicts, unmet ranges, a mod for a newer
  HMG-API (and, without --any-car, another car) are refused; everything is downloaded and
  checked before the first install. Removing a mod others require says which.
- Trust: the entry's SHA-256, then Packages' signature check with the entry's author key
  (--uuid) on a first install; HMG-API's release key for HMG-API (UsbUpdates). Nothing applied.
- tools/catalog.py: entries carry requires/conflicts (from mod.json, checked in bumps);
  catalog.py index.

catalog-test.sh plays GitHub from files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
…rapper

app_process.hmgapi-stock is made under a new name, and the kernel can keep a
new file's data in memory for up to ~30 s; the wrapper then goes over
app_process (or .real), and a rename over an existing file reaches storage at
once. A hard reset (Reset pinhole, power loss) before the install's final
sync could leave the wrapper running an empty stock copy: no zygote, and no
stock app_process left. Now sync runs as soon as the stock copy is made.

The uninstall was already safe: stock goes back over the existing files,
then sync.

install-test.sh: a sync stand-in records what was on /system when it ran;
the first sync of a fresh install must see the stock copy in place and
app_process still stock. It fails without this change. 263 checks pass
under dash and mksh; test.sh, check-scripts and orders-test pass.
Off-car only.
crc_fix no longer hides WifiAp's output and status: a failure is said in
the keeper's log and in join's and forget's answer. WifiAp.crc checks
chown and chmod, names the one that failed, and leaves the old checksum
file as it was. join builds the whole config text (from the existing
file, the car's template, or the two default lines) before put_net,
instead of first writing the template to wpa_supplicant.conf as root.

Tested off-car only (homewifi-test.sh, bash; no mksh here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both entries are made from the mods' mod.json files ahead of their releases, with a zero
SHA-256, so the catalogue's download check refuses them until they're regenerated with
tools/catalog.py add from the published zips. Both in one pull request on purpose: a
Wireless 3.0.0 bump alone would merge itself before projection-tbt is listed.

projection-tbt is signed with VysseCodes' author key, the Wireless mod's, so
maps/authors.json only gets its repository (Open-HMG/hmgapi-projection-tbt, after the move).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Home lists phone turn-by-turn on its own; the NEMESIS packages table gets Phone
Turn-by-Turn's conflicts and Wireless's enhanced.projection. docs/wireless-3-split.md is
the order across egmp-aa-ev, Wireless, the turn-by-turn repository and HMG-API, and what
owners are told where.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HMGAPI_HOMELO lets in, for 127.x on wlan0, only the DNS server's answers
(its address, port 53, established), and it is checked on every
route_up instead of only when the lease changes: the stock firewall
reloading flushes INPUT and can put its own jump first. route_localnet
is on only while the guard is first in INPUT; a guard that can't go in
is said and route_localnet stays off. The nat OUTPUT jump to
HMGAPI_HOMEDNS is checked on every pass too.

The network keeper builds the post-reroute DROP, the mark, masquerade,
table 95's unreachable default and the fwmark rule before the IPv4 home
REJECTs leave, and fills the cellular chain before OUTPUT jumps to it.
mods_ok also checks the DROP inside HMGAPI_HOMECELL. wifi.sh down,
net.sh down and the uninstaller take table 95's unreachable default
out.

The test's fake ip route replace/add now key routes as the kernel does
(table, destination, metric; not the type), so a default via the
gateway replaces the unreachable one.

Tested off-car only (homewifi-test.sh with bash, net-test.sh,
install/common/test.sh). Not yet checked on a car with the stock
whitelist firewall (US Ioniq 6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…less 2.x

The prepared entry takes the mod's current mod.json description (install-order warning),
and the checklist no longer says owners set their turn-by-turn settings again: projection-tbt
takes them over from Wireless 2.x once (WirelessImport), now a test item before the finals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The zygote wrapper's watcher reset both counts once the zygote had been up
120 s, so a mod that crashed Android later (a phone connecting, CarPlay
starting) restarted it forever with hooks on, and a hang was never counted.

- starts goes back to 0 only once Android booted: a system_server and a
  com.android.launcher3 child of that zygote, the launcher up 30 s, and
  sys.boot_completed 1. hook/boot is no longer reset within a kernel boot,
  so three restarts in one boot turn hooks off whenever they happen.
- No system_server after 120 s: the zygote hung before it (a mod's
  zygoteInit); the watcher kills it so the restart counts.
- A limit reached writes hook/tripped; hooks stay off until reset.
- Counters fail closed: a read or write error, or a count that isn't a
  number, means no hooks. Writes go to a .tmp file, fsync, rename.
- engine boot-guard [reset]: the app shows "Hooks off: boot guard", why,
  and Reset and restart; the problem log uses it too.
- Settings text, Troubleshooting, the problem log, CLAUDE.md and the core
  README give the real limits.
- core/zygote/test.sh: late crashes, hangs, a crash-looping launcher,
  boot never completed, write and read errors, tripped staying off.

Tested off-car only (macOS: tools/test-all.sh --fast; the ARM tests
need Linux).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recover now puts back the settings, live props and binds an apply or trial
changed, not only its files: a trial's persist.* prop stayed set after
"trial undone", and the next apply took it for stock.

Stock backups are copied beside, checked against the stock md5, then
renamed, as install.sh's backup() does. An app's odex backup has its md5
recorded, and every backup is checked before a restore or rebuild; a
NEMESIS copy with the recorded md5 stands in for a damaged one, else the
engine stops and names it. The journal's saved copies are checked the same
way.

An apply checks room on /system and /data before writing anything; recover
removes a cut-off copy, and on a full /system the file, before its saved
copy goes back. A damaged journal, or a saved copy that's gone, is set
aside (state/journal.bad.json) instead of failing at every start.

build.prop and live props refuse dalvik.* and persist.sys.dalvik.* without
overrides.allow_critical; CRITICAL takes framework-res.apk, libz, libcrypto,
the ICU files, libgui, libEGL, lib/hw and lib/egl, and the boot daemons
Android waits for. update-hmgapi refuses while a journal is pending. The
Dalvik cache clean-up touches only the app's own entry, priv-app included.

Tests: core/runtime/journal-test.sh, plus safety-test.sh and usb-test.sh.
Off-car only.

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

From the review of 2026-11-26:

- Trust: the catalogue isn't signed, so a first install's author key must
  already be on the unit's maps/authors.json (only HMG-API's releases bring
  it), or the owner says yes for that mod (--any-author=<id>). Nothing here
  writes authors.json.
- The plan is checked as a whole: every mod that will be on keeps what it
  requires, in range and on, and conflicts count from either side (an
  installed mod's list naming a planned one too). update --all leaves out
  each mod that can't go now, with why, and updates the rest.
- unfit() honours the owner's any-car choice (overrides.ignore_system) and
  a hotspot mod's unpowered chip; --any-car=<id>,... per mod.
- Every package is checked (Packages.check: signature, key, HMG-API, car)
  before the first install, and installed from the unzipped folder.
- An unreadable range is a plan problem, not an exception.
- Requires a package adds are kept (learned.json); if they change the
  plan, nothing is installed and the new plan comes back (exit 5) for a
  second OK.
- update-check stages only pure updates signed with the installed key,
  into /data/hmgapi/pending/<id>, which nothing loads; engine apply puts
  them in place before it plans (previous version kept in previous/<id>),
  and puts them back if the apply is refused. engine plan lists them.
- A plan or install refreshes a catalogue over 15 minutes old when
  online; one entry that doesn't come keeps the last check's; a bad
  index.json is an error, not a crash; per-run temporary names.
- update-check at most every 6 hours.
- A unit on a pre-release is offered only that version's next ones (rc.10:
  1.1.0, not 1.2.0-alpha), unless the owner opts in.
- update hmgapi refuses while a mod that's on wouldn't take the new
  version (--force: a warning instead).
- Installs and removals outside the catalogue update the Updates count.
- catalog.py: downloads only from GitHub's hosts, ranges checked, copies
  wifi.hotspot, writes index.json again on add when the repo keeps one and
  check refuses a stale one; bump allows an index written with the entry.

catalog-test.sh 154 checks (was 71), tools/catalog-test.sh 113;
test-all.sh --fast passes. Not on a car.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e modes

A failed apply (rename, dexopt, remount, copy, settings, state write) now
puts every file and setting back in the same run, last changed first,
deletes its temp files and starts the apps it stopped. Only a power cut,
a killed engine or a failed rollback leaves the journal for recover.

Apps stopped (pm disable) while their files change are written to the
journal and state/held.txt before they're stopped. recover starts them
again, and boot.sh runs engine release-held once Android is up (not
while an unfinished apply is waiting). Android itself, persistent apps,
OTAClient and apps already off are never stopped.

Each file's mode, owner and SELinux label are read before HMG-API first
writes it (FileMeta, files.json stockMeta, journal entries) and put back
on apply, rollback and restore. A change under /system/bin or
/system/xbin must give a "mode".

Tests: engine, safety, overlap and boot.sh, with a fake pm and failure
injection (HMGAPI_TEST_FAIL, off the unit only). Tested off-car only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rear camera, the 360 view (AVM/SVM), the parking guide lines (PGS) and the
emergency calls (SOS, eCall) are off limits to every mod, built in with no
owner override (hmgapi.engine.Protected):

- No mod loads in their app processes (com.hkmc.system.app.rearcamera,
  com.hkmc.telematics.ECall, com.hkmc.telematics.service, and stock process
  names that look like a camera or eCall app), at boot or live. The bind hook
  decides it first (lowest priority), Bridge.modsOff makes the hooks mods put
  on in the zygote pass through there, and HMG-API adds nothing of its own.
- No mod hooks the camera and telematics classes that run in system_server
  (com.hkmc.pgs.*, PgsService, TMUService, com.hkmc.tmu.*, their MICOM
  protocols), declared or not; a mod declaring framework.pgs_service*,
  framework.car_services.pgs or framework.tmu* isn't loaded.
- A mod's direct Bridge.hookMethod/findAndHookMethod outside its declared
  points still works elsewhere (egmp-aa-ev 0.8.4 uses one) but is logged once
  per process; the Car Report's new protection section lists those, the
  refused hooks and the protected processes it saw start.

Names are from the US Ioniq 5 260507's logs, ps and framework files; the
other mapped cars aren't checked against stock trees.

Guide lines: the guide_lines command keeps their stock state in
state/guide-lines.stock before the first change. The vehicle service puts it
back at its start (retrying until the camera service answers) and keeps
running while the file is there, so a restart or the mod's removal no longer
leaves them off; the uninstall runs Hub restore-lines.

Tests: hooks-test 116, live-test 35, commands-test 228, engine 129, runtime
110; tools/test-all.sh --fast 31 ok, 1 skipped (no ImageMagick). Off-car
only: not yet checked on a car.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox and others added 27 commits November 30, 2026 16:36
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wner DROPs on rmnet, no_route here)

- route_up: route_localnet is set to 0 before HMGAPI_HOMELO is flushed for a new DNS server,
  so 127/8 from wlan0 is never unguarded (test: every flush sees 0).
- HMGAPI_HOMECELL also drops the home group's and the home apps' traffic on rmnet+ by owner,
  so the block holds if the mark rule is lost; mods_ok counts its rules.
- no_route() moves here from #419, which never called it.
- The comments and changelog no longer claim a repair has no gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
(cherry picked from commit 34b9624)
…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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ut window)

Review: a non-trial apply deleted its journal, and only afterwards did run() remove
staged-swap.json; a cut between the two made recover put the old mod code back over the new
/system files. Now apply() writes the staged ids into the journal ("staged") and deletes
staged-swap.json right after, so deleting the journal makes the staged updates final with the
files in one step, and recover puts them back from the journal. staged-swap.json only covers the
moments before the journal is written. Tests: a cut-off apply with the ids only on the journal,
and a finished apply (no journal, no record) that recover leaves alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…token for listing PRs

Review:
- Older version PRs are closed only when the branch is catalog-update/<this id>-<x.y.z>
  exactly, so a mod named <id>-2 is never touched (checked in shell, not a regex).
- Each mod starts from a clean main (checkout -f, git clean catalog maps): nothing a failed
  --apply left behind gets into the next mod's PR.
- gh pr list uses the app token (GITHUB_TOKEN has no pull-requests permission here).
- The list is read on fd 3, so no command in the loop can consume it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: one key per mod from its first release, so projection-tbt never needs a key handover.
The prepared entry names the new key; maps/authors.json lists it (Open-HMG, this repo only) and
drops projection-tbt from the shared key's repos; the split doc's key decision and checklist say
so (release environment and tag ruleset done, MOD_KEY still to add).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: with QuickBoot one kernel boot can last weeks of drives, so three unrelated
system_server crashes days apart tripped the guard. The watcher now keeps watching after the
start booted; once it has stayed up STABLE_MS (an hour of the unit awake) it writes
hook/boot back to "<boot_id> 0". A start that dies first leaves the count as it was, so a
crash loop, early or late, still trips. Test (core/zygote/test.sh, qemu in CI): STABLE_MS 3 s,
a start that stays up has its count reset, the late-crash loop still trips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now keeps hook maps compact (one base map plus each build's differences,
tools/maplib.py), and the payload expands them. The SDK copied them as the repo keeps them, so
the plan test's fake unit had no per-app files and every car's hooks were off. The SDK's maps
are now expanded the same way; sdk-test compares them with an expanded copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engine.recover: #434's version (startHeld, rollback) with the staged ids taken from the journal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kept #434's held-apps journal where #433 dropped its own version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DY-Jeong added a commit to DY-Jeong/HMG-API that referenced this pull request Dec 1, 2026
…gear check reads through it)

Taken from upstream's integration branch (Open-HMG#440, 6264f2d): Open-HMG#433 runs the vehicle
service always, so live-test and safe-test expect it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AwsomeFox
AwsomeFox changed the base branch from main to release/2.0 December 1, 2026 16:43

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.

4 participants