Skip to content

fix!: agree on a minimum Binder version instead of an exact interface fingerprint - #10

Merged
naijun0403 merged 1 commit into
masterfrom
fix/binder-version
Sep 30, 2026
Merged

naijun0403 merged 1 commit into
masterfrom
fix/binder-version

Conversation

@naijun0403

Copy link
Copy Markdown
Member

Summary

  • Replace String apiFingerprint() (transaction 100) with int binderVersion() (transaction 101). Number 100 stays retired.
  • A peer is accepted when its version is at least BinderContract.MIN_VERSION. Adding a method under a new number keeps working with peers that lack it, which is the point of fixing the numbers; an exact fingerprint rejected every such change.
  • Peers built before binderVersion, including the fingerprint builds, answer 0 and get the same "rebuild" error.
  • Restore the AIDL comments that document ordering and roles.
  • A test pins the AIDL hash to VERSION, so changing the AIDL without raising the version fails.

Breaking

Apps and plugins built against 574d927 must be rebuilt together once more.

@naijun0403
naijun0403 merged commit edd901e into master Sep 30, 2026
1 check passed
@naijun0403
naijun0403 deleted the fix/binder-version branch October 4, 2026 09:30
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