Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 4.08 KB

PHASE2_PLAN.md

File metadata and controls

58 lines (48 loc) · 4.08 KB

Phase 2 plan: SSH recon and framework check (PLAN ONLY, nothing here has been run)

Status: draft for the owner to approve or reject. Nothing in this repo performs any step below. Evidence tags as in FEASIBILITY.md: [REF] read in a reference repo, [INFER] inference, [UNKNOWN] must be captured.

0. Result of the module-list comparison (host-only, done)

The three reference repos contain no NBT module list to compare against. The only SWFL ids they mention are 0x2720 / 0x271A for the NBTevo head unit (HU_NBT2) in the ID6 project [REF], which is a different head unit. None of our captured ids (e.g. 0x1275, 0x1E6B, 0x1FAB, 0x21D2) appear anywhere in ref/. The F07 precedent does not publish its module versions. So the capture cannot be matched to the precedent from what we have; only the libraries on the unit itself can settle the ABI question (FEASIBILITY.md section 2).

1. Why this phase is different

Phases 0-1 were read-only. Phase 2 needs a root shell on the head unit, and the stock NBT does not accept SSH logins. [REF] nbt-android-auto/README.md: SSH must be "unlocked (patched) once"; the developer used FeatureInstaller, which can need several attempts and may report errors even when the unlock worked. That unlock changes the head unit's configuration and is the only modifying step in this phase. It is the owner's decision, run by the owner with a tool the owner sources. This project does not provide, fetch, or script it.

2. Gates (all must be true before the unlock)

Owner sign-off recorded 2026-11-23:

  1. Accepted. Owner proceeds knowing the unlock is not something this project can undo, and that no failure rate can be quoted.
  2. Confirmed: car on a battery maintainer, parked, handbrake on.
  3. Confirmed: owner has a recovery route (dealer/specialist) and accepts that cost if needed.
  4. Accepted as a gap: proceeding without a coding backup. No BimmerCode or BMW-tool backup was taken. This is a real, accepted risk, not a resolved one — if the unlock or any later step goes wrong, there is nothing here to restore from.
  5. Done: Phase 1 captures deleted from the OneDrive-synced folder.

Sourcing the unlock tool itself and the root credential remain the owner's own steps (see section 1); neither is provided, named, or handled by this project.

3. Steps once approved

  1. (Owner) Run the SSH unlock, reading its documentation for the I-level first. Stop on any unexpected behaviour. Check the infotainment still boots normally, then test SSH reachability only.
  2. (Owner) Obtain the root credential yourself and type it at the prompt. I will not look it up, store it, or put it in any file. Pin the head unit's host key before connecting (see docs/SSH_RECON_COMMANDS.md).
  3. Read-only recon over SSH: the exact, fixed command list is now in docs/SSH_RECON_COMMANDS.md. Nothing beyond that list: no writes, no remount, no chmod, no package installs.
  4. Copy the two framework libraries into .local/hmi-libs/ (gitignored; never commit — BMW binaries) and run tools/audit_framework_abi.py on them (ready, tested against a synthetic fixture, not yet run against a real library). It checks exported symbol names against the F07 precedent (PluginApp, triggerEvent, updateModel, etc.) and reports hashes + which names are present/missing. A name match is a name check only, not a layout/vtable proof — see the script's own docstring.
  5. Close the session. Decide on Phase 3/4 from the audit, not before.

4. Stop conditions

  • Unlock errors repeat, the unit reboots oddly, or the screen/audio behaves differently: stop and do not retry blindly.
  • Framework symbols or layout differ from the F07 precedent: the plugin plan (Phase 4+) is a NO-GO as written.
  • Anything asks for a write on the head unit: stop and re-plan; that is a separate approval.

5. What I will and will not do

Will: write the read-only command list, the offline audit script, and analyse results you paste. Will not: source or run the unlock, handle the root credential, write to the head unit, or push anything onto it without a separate explicit approval for that exact step.