Skip to content

Enforce exact firmware payload matching - #383

Closed
ZeldaMaster501 wants to merge 3 commits into
BuSung-dev:mainfrom
ZeldaMaster501:agent/s928u-dzg1-app
Closed

ZeldaMaster501 wants to merge 3 commits into
BuSung-dev:mainfrom
ZeldaMaster501:agent/s928u-dzg1-app

Conversation

@ZeldaMaster501

Copy link
Copy Markdown

Summary

Make payload selection fail closed on exact firmware identity instead of matching only the device model.

  • Requires support-manifest schema v4.
  • Matches model, exact kernelRelease, and exact Android buildId.
  • Applies the same checks to manual target selection.
  • Supports per-profile exploit-attempt limits and fresh-P0-session requirements.
  • Adds unit tests for exact matching and mismatch rejection.
  • Runs unit tests before producing the debug APK in CI.

Why

On SM-S928U / S928USQS6DZG1, the legacy model-only feed can select the older DZF2 payload. That mismatch has already caused device crashes. This change prevents the app from downloading or running a payload unless the full firmware identity matches.

Dependency / deployment order

This PR depends on payload PR BuSung-dev/Root-My-Galaxy-Payloads#195 and must be merged only after that payload/feed PR is available on the payload repository's main branch.

The exact DZG1 profile remains hardware-unvalidated; the companion payload PR intentionally limits it to one attempt and a fresh P0 session.

ZeldaMaster501 commented Aug 11, 2026 •

Copy link
Copy Markdown
Author

No description provided.

@ZeldaMaster501

Copy link
Copy Markdown
Author

Currently traveling and had Codex work on a POC for my device's firmware. Did not realize that it had decided to open a pull request on the main repository. I'll reopen this pull request and or create a new one if this actually works on my device.

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