fix(android): bound fragmented JADX MCP frame memory (#937)

* perf(android): avoid repeated MCP frame copies

* fix(android): bound fragmented MCP frame memory

* style(android): format JADX transport changes
This commit is contained in:
morluto
2026-10-07 19:51:08 +08:00
committed by GitHub
parent 810fe53e79
commit 9e39795895
4 changed files with 176 additions and 18 deletions
@@ -70,6 +70,7 @@ it("reuses immutable engine state while keeping each Evidence observation separa
it("bounds output per operation across a retained session rather than accumulating earlier captures", async () => {
const { service, apk, launches, provider } = await setup("large-manifest");
const expectedManifest = "x".repeat(1024 * 1024);
for (let index = 0; index < 34; index += 1) {
const result = await service.execute("inspect_android_package", {
path: apk,
@@ -78,8 +79,8 @@ it("bounds output per operation across a retained session rather than accumulati
expect(
androidResultSchemas.inspect_android_package.parse(
result.value.normalized_result,
).manifest.text.length,
).toBe(1024 * 1024);
).manifest.text,
).toBe(expectedManifest);
}
expect(launches).toHaveLength(1);
await provider.close();