Skip to content

Fix native T1 recovery transport and factory-data handling - #54

Open
syn-ack-ai wants to merge 1 commit into
standardagents:mainfrom
syn-ack-ai:fix/native-t1-recovery-compatibility
Open

syn-ack-ai wants to merge 1 commit into
standardagents:mainfrom
syn-ack-ai:fix/native-t1-recovery-compatibility

Conversation

@syn-ack-ai

Copy link
Copy Markdown

Native online recovery on MacBookPro13,3 failed at several protocol boundaries and could not reach a working Touch Bar. These fixes handle the observed transport stalls and restore requests through successful firmware boot, EFI publication and local import.

  • Correct USB mux receive framing and sequence fields; tolerate delayed negotiation replies and choose fresh source ports when reopening USB transport. Keep channel framing, identity and completion checks.
  • Handle the observed rsepfirmware and ticket EPIPE stalls narrowly, with successful restore/final boot still required. Add stage and numeric transport diagnostics without printing device payloads.
  • Allow only gg.apple.com:80 in addition to the existing public Apple HTTPS destinations, matching the endpoint used by the pinned restore and documented by Apple. Public-address checks and host TLS verification remain enabled.
  • Bound outbound firmware XML separately from incoming plists so the pinned NOR reply fits, implement manifest-selected FUDData replies, preserve successive FDR commits durably before ACK, and retain replay input separately because restored refreshes output records. Install the final personalization store with its matching signed image.
  • Read the calling thread's mount inventory after private-namespace EFI discovery, including when invoked from a worker thread.

Validation: make quality passes, the release binary builds, and the pinned-package offline personalization/NOR/FUD test passes. Synthetic regressions cover mux framing, command-completion policies, XML size bounds, FUD selection, refreshed/repeated FDR commits, failed persistence and snapshot limits.

Hardware validation used MacBookPro13,3 with kernel 7.2.8-9-omarchy: both native restore passes returned successful final status, final functional USB remained stable for 30 seconds, EFI publication and protected import completed, and the owner confirmed the physical Touch Bar works. Tests used attended local continuation helpers while diagnosing failures; those helpers and all firmware, tickets, factory data and raw logs are excluded. A fresh uninterrupted online command, Touch ID enrollment and subsequent warm/cold boots have not been validated in this run. Recovery remains experimental.

System CA trust was refreshed locally for Apple signing; no certificate verification bypass or machine-local trust material is included.

Related to #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.

1 participant