Skip to content

Native agent: send the APK build ID and app version in AUTH - #2

Merged
selnaklavu merged 2 commits into
mainfrom
hash_moderation
Oct 19, 2026
Merged

selnaklavu merged 2 commits into
mainfrom
hash_moderation

Conversation

@selnaklavu

Copy link
Copy Markdown
Collaborator
  • The NATIVE agent hashes the APK the app runs from (ApplicationInfo.sourceDir) once per process, before the first dial, and sends buildId = apk-sha256:<64 lowercase hex> in AUTH, with sdkBuild = <versionName>(<versionCode>).
  • Both fields are left out when there is nothing to send; the rest of the AUTH line is unchanged, byte for byte.
  • Servers on main ignore the new fields. The BINARY engine is not touched.
  • Unit tests cover the hash, the per-process cache and the AUTH line. The instrumented e2e passes with the fields on, and the hash the agent sent equals the SHA-256 of the installed APK.

@selnaklavu
selnaklavu merged commit 93ebd2a into main Oct 19, 2026
1 check passed
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