Skip to content

fix(apktool): accept --no-strings CLI option - #2707

Merged
morluto merged 1 commit into
morluto:mainfrom
HeadmasterEggy:fix/apktool-no-strings-2672
Oct 13, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
HeadmasterEggy:fix/apktool-no-strings-2672

Conversation

@HeadmasterEggy

@HeadmasterEggy HeadmasterEggy commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #2672. rea decode-android-resources <apk> --no-strings now dispatches with include_strings: false; leaving the option out continues to include strings by default.

Problem and expected behavior

The CLI documented --no-strings, but declared the option schema under the name no-strings. Incur interprets --no-<name> as the negative form of a boolean option, so it looked for strings, rejected the documented flag as unknown, and never dispatched the request.

Expected: the documented flag is accepted and disables string projection, while the default remains enabled.

Change and scope

The CLI now declares the positive boolean option strings with a default of true. Its generated negative form is --no-strings; the handler passes that value directly to include_strings. A boundary test exercises the real CLI parser with an inert provider, checks the omitted default, and confirms the help text.

This is a fix within the existing CLI and analysis boundary. No new capability or maintainer scope decision is needed. No provider, analysis service, MCP contract, or target interaction changed.

Follow the contribution scope.

Contract and boundary impact

  • Semantic owner and earliest changed stage: the CLI option schema and its request mapping.
  • Contribution scope fit and linked maintainer decision: ordinary bug fix within existing limits; maintainer decision not applicable.
  • CLI and MCP/tool-catalog contract: fixes the documented CLI flag; MCP schemas and tool catalog are unchanged.
  • Provider, bridge, target-format, or platform compatibility: unchanged; provider behavior is not modified.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged.
  • Target selection, authority, upstream behavior, and cleanup details: unchanged; no new target interaction or cleanup path.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, 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: tests/boundary/cli/apktoolBooleanOptions.test.ts covers --no-strings, the default include_strings: true, and command help.

  • Base reproduction: on ded199abc, the new boundary test failed because --no-strings exited with an unknown-option error; the omitted-default case passed.

  • After the fix: the boundary test dispatches include_strings: false for --no-strings and true when omitted.

  • User-visible CLI behavior: command help includes --no-strings; the CLI dispatches the matching boolean in the analysis request.

  • Remaining proof gaps: no real Apktool or APK integration run; the boundary test uses an inert provider.

  • 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

  • npm run test:focused -- tests/boundary/cli/apktoolBooleanOptions.test.ts tests/boundary/cli/apktoolCli.test.ts — 7 passed.
  • npm run check:fast — passed.
  • git diff --check — passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none; the documented option now works and the default is unchanged.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: no change to target access or process behavior.

Before merge

  • This PR addresses a concrete problem: fix(cli): documented string omission flag stops Android resource decoding #2672.
  • Material scope and authority questions are resolved; no maintainer scope decision applies.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked.
  • Tests cover the changed option behavior and omitted-default path.
  • Owning CLI option/help contract is updated; generated metadata is unaffected.
  • User-visible CLI change includes representative behavior above.
  • Final diff checked for secrets, unrelated changes, and unsupported claims.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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 ✅ Completed 2026-10-13T08:19:17.719483Z cbaa460 PR opened
ℹ️ 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.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Fixes the CLI declaration for --no-strings by naming the boolean option strings and passing it directly to include_strings.

  • The Android resource command accepts --no-strings.

Reviews (1) · Last reviewed commit: "fix(apktool): accept --no-strings CLI op..." · Reviewed by Greptile

@morluto
morluto merged commit 11f8b76 into morluto:main Oct 13, 2026
3 checks passed
@morluto morluto mentioned this pull request Oct 13, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: cli CLI adapter and one-shot commands labels Oct 14, 2026
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Welcome to REA, @HeadmasterEggy! Thanks for making the documented --no-strings flag work and covering the default-on behavior too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands bug Something isn't working provider: apktool Analysis provider / engine: apktool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(cli): documented string omission flag stops Android resource decoding

2 participants