Repository navigation
fix(apktool): accept --no-strings CLI option - #2707
Merged
Merged
Conversation
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. |
Contributor
|
3 tasks done
Owner
|
Welcome to REA, @HeadmasterEggy! Thanks for making the documented |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #2672.
rea decode-android-resources <apk> --no-stringsnow dispatches withinclude_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 nameno-strings. Incur interprets--no-<name>as the negative form of a boolean option, so it looked forstrings, 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
stringswith a default oftrue. Its generated negative form is--no-strings; the handler passes that value directly toinclude_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
Expected effects:
Evidence and regression coverage
Tests added or updated:
tests/boundary/cli/apktoolBooleanOptions.test.tscovers--no-strings, the defaultinclude_strings: true, and command help.Base reproduction: on
ded199abc, the new boundary test failed because--no-stringsexited with an unknown-option error; the omitted-default case passed.After the fix: the boundary test dispatches
include_strings: falsefor--no-stringsandtruewhen 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
Before merge
type(scope): outcome.