Skip to content

Add detect-only hook registry#21

Open
1vivy wants to merge 1 commit into
mainfrom
feature/hook-registry-detect-only
Open

Add detect-only hook registry#21
1vivy wants to merge 1 commit into
mainfrom
feature/hook-registry-detect-only

Conversation

@1vivy

@1vivy 1vivy commented May 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a small UEFI config-table marker to detect existing GBL protocol hooks before installing new wrappers.
  • Fail closed on same-session reruns, including cross-mode reuse, and instruct hard reset before another boot-efi attempt.
  • Add a lint guard to keep this PR detect-only and avoid hook uninstall/rollback machinery.

Validation

  • git diff --check
  • tests/045_mode_taxonomy_lint.sh
  • tests/046_mode1_protocol_hook_lint.sh
  • tests/047_cleanup_lint.sh
  • tests/048_hook_registry_lint.sh
  • ./scripts/build.sh --mode 0
  • ./scripts/build.sh --mode 1

Notes

  • This is the smaller alternative to PR Harden protocol hook lifecycle #20's full hook lifecycle cleanup.
  • Hooks still intentionally remain active for successful chainloaded ABL / ABL FastbootLib.
  • Hard reset remains the recovery boundary for stale Qualcomm UEFI session state.

Copilot AI review requested due to automatic review settings May 14, 2026 22:11

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants