Skip to content

chore(android): update jadx-headless-mcp provider to 0.8.0 - #5248

Closed
1013503897 wants to merge 1 commit into
morluto:mainfrom
1013503897:chore/jadx-headless-mcp-0.8.0
Closed

1013503897 wants to merge 1 commit into
morluto:mainfrom
1013503897:chore/jadx-headless-mcp-0.8.0

Conversation

@1013503897

@1013503897 1013503897 commented Oct 19, 2026 •

Copy link
Copy Markdown

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-bridge identity, and the adapter
surface 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_source gains a UTF-8 byte offset; it and get_smali_of_class now
    window by exact UTF-8 bytes (never splitting a multibyte char) and report
    total_bytes / next_offset.
  • Decompile-pool fairness: a task's timeout is charged to its own execution time, so a
    queued request can no longer retire the pool and interrupt a sibling's decompile.
  • New tool get_main_application_classes_names; launcher JVM-arg parity; CI now runs
    test + 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

  • Semantic owner and earliest changed stage: Android JADX provider (src/android/), release identity.
  • Contribution scope fit and linked maintainer decision: existing-provider version bump; not applicable.
  • CLI and MCP/tool-catalog contract: unchanged.
  • Provider, bridge, target-format, or platform compatibility: engine 0.7.1 → 0.8.0; rea-jadx-bridge identity unchanged; byte-offset paging is additive upstream.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged. Dated provenance (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.
  • Target selection, authority, upstream behavior, and cleanup details: not applicable.
  • Generated metadata, package, or installation impact: none committed; only the authored .agents/skills/reverse-engineer-anything/references/android-applications.md version 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.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

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 fixture tests/fixtures/android/jadx-mcp.mjs moved to 0.8.0. The engine-version mismatch mode deliberately stays at 0.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" via BuildInfo.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 — 3 test.each process-boundary cases fail identically on the unmodified base commit (pre-existing Windows-only stdio-handshake gap; most tests in that file are already skipIf(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

  • Breaking changes or migration steps: none. Callers supplying a 0.7.1 JAR will now see an engine-version mismatch (capability_unavailable) and must supply the 0.8.0 JAR — same pin-by-digest contract as before.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none committed.
  • Security, privacy, process, or containment review: no change; read-only static analysis, engine still caller-supplied and digest-pinned.

Author readiness

Human owner: @1013503897

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-19T13:30:28.400026Z 821b3e5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@1013503897
1013503897 marked this pull request as draft October 19, 2026 12:58
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[High impact] The reviewed changes appear safe to merge; no blocking defect was established.

Summary

Updates the caller-supplied JADX provider from 0.7.1 to 0.8.0.

  • REA’s Android provider now uses the pinned JADX 0.8.0 release.

Reviews (2) · Last reviewed commit: "chore(android): update jadx-headless-mcp..." · Reviewed by Greptile

@1013503897
1013503897 marked this pull request as ready for review October 19, 2026 13:29

@CassieFox23 CassieFox23 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.

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 do Real packet capture, Real signal recording and 21 PR title runs. The author's association is NONE. The only passing checks are Validate author declaration, Greptile Review and the PR readiness status. 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.ts line 4, in THIRD_PARTY_NOTICES.md line 60 and third_party/README.md line 12. The upstream compare API says that commit shares no ancestor with upstream main. It is reachable from the branch local-pre-wipe-backup (compare: behind by 1), and that repo has only two branches. The v0.8.0 tag points at 2b2a560e80, which is on main. 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 effects lead-in and its Unchecked items do not establish absence line are replaced by prose. The eight boxes are there, all unchecked.
    • The Target selection, authority ... (if applicable) label lost (if applicable).
    • The Generated metadata label lost its parenthetical about CI-built catalogs and skills/.
    • 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.kt method and field lookups now go through metadataMethods and metadataFields, and metadataMethods sorts by name. REA calls get_class_summary (JadxAnalysis.ts line 68) and get_method_body with an overload_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 in tests/fixtures/android/jadx-mcp.mjs cannot 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...a2372 for jadx-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 shows updated_at 12: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.ts calls 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.ts lines 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.ts cases "fail identically on the unmodified base commit" on Windows. I did not check that.

Nits

  • The comment under Author readiness in the body still says the declarations are intentionally NOT filled by the agent. Yet all three boxes are checked, and a readiness-retrigger timestamp 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.html and three experiments/analysis-efficiency files. 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.ts on main has version, revision, hash and URL for 0.7.1. The change is still needed. I searched PRs for jadx-headless-mcp and 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 unrelated sigrok-cli 0.7.1 test 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-version mismatch mode stays at 0.7.0 and still tests that path. The body states this upgrade effect.
  • The truncation marker REA parses in normalizeJadxText still matches. truncateToBytes in upstream TextUtil.kt is 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.kt and the JadxSession.kt lookups).

Thanks, 1013503897, for keeping the bump together and for stating what was left at 0.7.1 and why.

Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.11
  • Head / base: 821b3e5 / 3ea0d94 (merge base); main was 567b559

🤖 Written with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

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.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added area: mcp MCP server, transport, and tool registration provider: jadx Analysis provider / engine: jadx labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcp MCP server, transport, and tool registration provider: jadx Analysis provider / engine: jadx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants