Repository navigation
chore(android): update jadx-headless-mcp provider to 0.8.0 - #5248
1013503897 wants to merge 1 commit into
Conversation
Bump the audited headless JADX MCP provider from v0.7.1 to v0.8.0. Upstream 0.8.0 adds a UTF-8 byte `offset` to get_class_source, makes source/smali paging byte-honest, charges each decompile task's timeout to its own execution time (decompile-pool fairness), and adds a get_main_application_classes_names tool. The caller-supplied-JAR integration contract and bridge are unchanged. - src/android/JadxRelease.ts: version, revision, sha256, url - third_party/jadx-headless-mcp: gitlink -> e9e14f15 (v0.8.0 release commit) - third_party/README.md, THIRD_PARTY_NOTICES.md: release + commit pin - scripts/fixtures/android/fetch.mjs: fixture JAR filename - docs/android-analysis.md, docs/testing.md: download URL, filename, SHA-256 verification commands, version mentions - src/application/CapabilityInventory.ts, src/server/registerSessionTools.ts, src/android/JadxConfiguration.ts, bridge/android/ReaJadxBridge.java, .agents/.../android-applications.md: version strings - tests + tests/fixtures/android/jadx-mcp.mjs: expected engine version 0.8.0 (the engine-version mismatch mode stays at 0.7.0 on purpose) Dated provenance intentionally left at 0.7.1: website/evidence/aegis-login-code.md, website/public/showcase/aegis/index.html, and experiments/analysis-efficiency/* record specific past runs. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[High impact] The reviewed changes appear safe to merge; no blocking defect was established. SummaryUpdates the caller-supplied JADX provider from
Reviews (2) · Last reviewed commit: "chore(android): update jadx-headless-mcp..." · Reviewed by Greptile |
CassieFox23
left a comment
There was a problem hiding this comment.
TL;DR: This PR moves REA's Android provider from 0.7.1 to 0.8.0 of jadx-headless-mcp (Apache-2.0). The edits cover every live version string on main, and the JAR hash matches the release. But no test lane has run on this head, and the submodule points at a commit that is not on the upstream main branch.
Findings
Should fix
- The CI workflow never ran on this head. CI run 39255851115 for 821b3e5 has the conclusion
action_required. That is GitHub's state for a run that waits for approval. So doReal packet capture,Real signal recordingand 21PR titleruns. The author's association is NONE. The only passing checks areValidate author declaration,Greptile Reviewand thePR readinessstatus. CONTRIBUTING.md says a change to a provider needs the matching lane with a real provider. It also says to state which workflows ran. The body says the real-APK lane "was not executed locally; relies on CI". Right now there is no CI result to rely on. A maintainer needs to approve the runs before this can be judged. - The submodule points at a commit that is not on the upstream main branch. The PR pins e9e14f155d in the submodule gitlink, in
JadxRelease.tsline 4, inTHIRD_PARTY_NOTICES.mdline 60 andthird_party/README.mdline 12. The upstream compare API says that commit shares no ancestor with upstreammain. It is reachable from the branchlocal-pre-wipe-backup(compare: behind by 1), and that repo has only two branches. The v0.8.0 tag points at 2b2a560e80, which is onmain. It has the same commit message and the same tree (9922f7744c) as e9e14f155d, but a different parent. Please pin the tag's commit, so the submodule stays fetchable and matches the release. Main's current 0.7.1 pin (5844800) is in the same state, so this was not introduced here. This PR is the chance to fix it. - The body does not keep the repo template as written. What changed:
- The "Follow the contribution scope" paragraph is gone. One sentence in "Change and scope" took its place.
- The
Expected effectslead-in and itsUnchecked items do not establish absenceline are replaced by prose. The eight boxes are there, all unchecked. - The
Target selection, authority ... (if applicable)label lost(if applicable). - The
Generated metadatalabel lost its parenthetical about CI-built catalogs andskills/. - The "For evidence-bearing changes:" line is gone. The three boxes under it remain, checked.
- In "Before merge", the "Related issue is linked" box is unchecked. The body states the reason (a routine version bump), so the box can be checked.
Worth a look
- Upstream 0.8.0 changed more than the body lists. In
JadxSession.ktmethod and field lookups now go throughmetadataMethodsandmetadataFields, andmetadataMethodssorts by name. REA callsget_class_summary(JadxAnalysis.tsline 68) andget_method_bodywith anoverload_index(line 232). I read the Kotlin and did not run it. I do not know whether the order of same-name overloads, or the summary shape, differs from 0.7.1. The fake provider intests/fixtures/android/jadx-mcp.mjscannot show that. Could the author run the real-APK lane against 0.8.0 on a class with an overloaded method and say what happened? - The JAR hash matches, but the asset is newer than the release. GitHub reports
sha256:4b9a01c2...a2372forjadx-headless-mcp-0.8.0-all.jar, the same as the PR and the same as the upstream commit message. The release was published at 12:14:35Z on 19 October, and the JAR asset showsupdated_at12:48:50Z. So it was uploaded or replaced 34 minutes after publishing, and the API field does not say which. I did not download the JAR. - The PR author is also the owner of the upstream repo (the release author is 1013503897). That is allowed. The doc comment in
JadxRelease.tscalls the release "audited", and the body shows the hash check as the evidence. An independent look at the 0.8.0 changes, such as the lookup change above, would be normal for a provider bump. JadxConfiguration.tslines 45 to 47 now say "The audited 0.8.0 JAR's central directory occupies 2,294,350 bytes". Main says the same number for 0.7.1. Only the version changed. I did not measure either file, so I cannot say if the number holds for 0.8.0. The 8 MiB limit in the constant below the comment is not affected.- The body says three
androidAnalysisMcp.test.tscases "fail identically on the unmodified base commit" on Windows. I did not check that.
Nits
- The comment under
Author readinessin the body still says the declarations areintentionally NOT filled by the agent. Yet all three boxes are checked, and areadiness-retriggertimestamp comment is at the end. I cannot tell who ticked the boxes. A short comment from the author confirming it would settle it. - Eight lines in five files still say 0.7.1, all dated records:
website/evidence/aegis-login-code.md,website/public/showcase/aegis/index.htmland threeexperiments/analysis-efficiencyfiles. The body says that is on purpose. I agree, but the showcase page keeps a live link to the 0.7.1 download.
Looks good
- Main (567b559) is still on 0.7.1.
JadxRelease.tson main has version, revision, hash and URL for 0.7.1. The change is still needed. I searched PRs forjadx-headless-mcpand read the titles: none of the others is a version bump. - The edit list is complete. I searched all of main for
0.7.1, the old revision and the old hash, with no name filter. Every live hit is in a file this PR changes. The only other hits are the dated records below, an unrelatedsigrok-cli 0.7.1test string and an unrelated[email protected]npm entry. - The contract for a caller-supplied JAR holds. REA still never downloads the engine. The pin is now 0.8.0, so a caller's 0.7.1 JAR fails the version check. The fixture's
engine-versionmismatch mode stays at 0.7.0 and still tests that path. The body states this upgrade effect. - The truncation marker REA parses in
normalizeJadxTextstill matches.truncateToBytesin upstreamTextUtil.ktis identical in the 0.7.1 and 0.8.0 revisions (lines 13 to 23). - The change is small for 16 files: 32 lines added, 32 removed (compare API, main...head).
- Greptile gave 5 of 5 and found nothing. Codex did not review this head: its summary says Failed. Neither left an inline thread.
- No issue is linked, and the body says why.
Not run
- No checkout, no build, no tests, no formatter.
- I did not download or run the JAR. The hash comparison used the digest GitHub shows for the release asset.
- I did not run the real-APK lane or compare 0.7.1 and 0.8.0 output on any class.
- I did not read all of the 0.8.0 Kotlin changes, only the files for the tools REA calls (
ClassTools.kt,XrefTools.kt,ToolSupport.kt,Main.ktand theJadxSession.ktlookups).
Thanks, 1013503897, for keeping the bump together and for stating what was left at 0.7.1 and why.
Test setup
🤖 Written with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊
|
Thank you for the jadx-headless-mcp 0.8.0 bump, and for maintaining the upstream engine. #7772 makes the same pin with the same JAR SHA-256, but its revision 2b2a560e matches the current upstream v0.8.0 tag (this branch pins e9e14f15), and it also fixes the bridge tools/list schema handling in bridge/android/ReaJadxBridge.java. We'll continue the update there, so I'm closing this as a duplicate. |
Summary
Bump the audited headless JADX MCP provider from v0.7.1 → v0.8.0
(upstream release).
The caller-supplied-JAR contract, the
rea-jadx-bridgeidentity, and the adaptersurface are unchanged; REA still never downloads the engine.
Problem and expected behavior
REA pins the audited JADX provider at v0.7.1. Upstream shipped v0.8.0 with changes
relevant to this read-only provider:
get_class_sourcegains a UTF-8 byteoffset; it andget_smali_of_classnowwindow by exact UTF-8 bytes (never splitting a multibyte char) and report
total_bytes/next_offset.queued request can no longer retire the pool and interrupt a sibling's decompile.
get_main_application_classes_names; launcher JVM-arg parity; CI now runstest+shadowJar.Expected: REA integrates the audited 0.8.0 JAR, pinned by digest, with the engine-version
contract and tests updated to match.
Change and scope
Version bump across the release identity, the submodule gitlink, docs, remediation
strings, tests, and the protocol fixture. No new provider or capability; no change to
REA's CLI/MCP tool surface or to target interaction. Ordinary change within existing
boundaries — maintainer scope decision: not applicable. No issue is linked: routine upstream-release version bump within existing provider boundaries.
Contract and boundary impact
src/android/), release identity.rea-jadx-bridgeidentity unchanged; byte-offset paging is additive upstream.website/evidence/aegis-login-code.md,website/public/showcase/aegis/index.html,experiments/analysis-efficiency/*) intentionally left at 0.7.1 as records of specific past runs..agents/skills/reverse-engineer-anything/references/android-applications.mdversion string changed. No build outputs committed.Expected effects — version/metadata/test change only; the provider's runtime behavior
toward targets (caller-supplied static decompile) is unchanged, so no new target
interaction is introduced.
Evidence and regression coverage
Tests added or updated: expected engine version in
tests/boundary/android/JadxAnalysis.test.ts,tests/boundary/mcp/androidPackageSummaryMcp.test.ts,tests/boundary/process/androidAnalysisMcp.test.ts, and the protocol fixturetests/fixtures/android/jadx-mcp.mjsmoved to0.8.0. Theengine-versionmismatch mode deliberately stays at0.7.0.Base reproduction or other evidence: the pinned fat-jar SHA-256 was verified against the published GitHub release asset —
4b9a01c23845c123c217840182d2b5f2c26a7ca20dec3d08810b310fc80a2372 jadx-headless-mcp-0.8.0-all.jar.User-visible CLI/MCP output (if applicable): none; the provider reports
engine_reported_version: "0.8.0"viaBuildInfo.VERSION.Remaining proof gaps: the real-APK provider lane (
REA_JADX_MCP_JAR+ JDK) was not executed locally; relies on CI.Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
tsc --noEmit— clean.oxfmt --check(changed JS/TS) — clean.vitest run tests/boundary/android tests/boundary/process/jadxIntegration.test.ts tests/boundary/mcp/androidPackageSummaryMcp.test.ts src/android— pass.vitest run tests/boundary/process/androidAnalysisMcp.test.ts— 3test.eachprocess-boundary cases fail identically on the unmodified base commit (pre-existing Windows-only stdio-handshake gap; most tests in that file are alreadyskipIf(win32)), so they are unrelated to this change. Run on Windows x64; please let the Linux CI lane run the full matrix.Compatibility, safety, and release
capability_unavailable) and must supply the 0.8.0 JAR — same pin-by-digest contract as before.Author readiness
Human owner: @1013503897
Before merge
type(scope): outcome.