Repository navigation
fix(android): support owned JADX stdio on Windows - #1276
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d0e2ea2e8d
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| input?.destroy(); | ||
| await inputClosed; | ||
| input?.off("error", this.#error); |
There was a problem hiding this comment.
Await pending stdin writes before destroying the stream
When a Windows process_stdin_write is blocked during cancellation, WindowsOwnedProcess.#release() destroys this writable as soon as job settlement is observed. Node's finished() settles on that close event even if the custom _write callback and native promise are still pending, so destroying the input here and then awaiting inputClosed does not actually join the write. Consequently, close() can return and remove the error listener before the pending write rejects, leaving the native work active past the claimed cleanup boundary; explicitly track and await in-flight sends/writes before destroying and detaching the stream.
AGENTS.md reference: AGENTS.md:L101-L101
Useful? React with 👍 / 👎.
- EVM bytecode and recorded crashes: state the Linux x64 host requirement. `EvmoleInterfaceProvider` and `PwntoolsDecoder` refuse every other host with `capability_unavailable`, but only the neighbouring offline ELF layout row said so. - Translations: Android analysis has supported Windows x64 since 6.2.0 (#1276), which updated only the English table; 16 translations still said Linux/macOS. Translated cells reuse each README's own wording: the recorded-crash cell copies that file's ELF-row pwntools phrase, and the EVM and Android cells follow the construction the same table already uses for host platforms. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Support owned JADX stdio on Windows x64, preserve protocol input errors through cancellation, and verify native stdin and Android CLI/MCP lifecycle on the real Windows host. Closes morluto#1262
…o#1422) - EVM bytecode and recorded crashes: state the Linux x64 host requirement. `EvmoleInterfaceProvider` and `PwntoolsDecoder` refuse every other host with `capability_unavailable`, but only the neighbouring offline ELF layout row said so. - Translations: Android analysis has supported Windows x64 since 6.2.0 (morluto#1276), which updated only the English table; 16 translations still said Linux/macOS. Translated cells reuse each README's own wording: the recorded-crash cell copies that file's ELF-row pwntools phrase, and the EVM and Android cells follow the construction the same table already uses for host platforms.
Windows rejected every Android/JADX request because the owned launcher had no writable protocol stdin. Support Windows x64 through the existing atomic Job Object boundary, resolve the selected
java.exeto an absolute executable, and retain stream error handling until pending writes settle during cancellation.Native input writes copy the admitted Buffer and run off the Node event loop. Opaque process handles, explicit handle inheritance, backpressure, EOF and kill-on-owner-close remain enforced. The default NUL input and four-argument native launch remain valid for existing providers. Readiness distinguishes missing Windows package controls from JDK/JAR failures. Documentation and the existing Android/native verification lanes cover the Windows path.
Closes #1262.
Validation:
-Xmx512m,-XX:ActiveProcessorCount=2.verify:windows-native: protected DACL/snapshots, descendant and owner-crash cleanup, default launch/output, 2,520,000-byte UTF-8/binary input, responsive event loop, backpressure/EOF, forged/malformed input rejection, native pending-write closure and provider transport cancellation. The last case reproduced an unhandled pipe error before the stream-close fix and passes after it. Optional extra boundary executable was not supplied locally; CI covers that fixture.npm run check:fast;npm run docs:check.Representative Windows MCP request:
{"name":"inspect_android_package","arguments":{"path":"D:/targets/ApiDemos-debug.apk"}}The APK is never executed. Windows arm64 remains outside the native boundary. Real Hopper/Ghidra verification was not performed for this change. Windows support is new on main; this PR does not claim an existing released npm package includes it.