fix(artifacts): align projection provider targets

This commit is contained in:
morluto
2026-07-20 11:31:36 +00:00
parent 0cc9d468c4
commit 560dbda76d
4 changed files with 58 additions and 3 deletions
+26
View File
@@ -127,4 +127,30 @@ describe("runtime identification", () => {
});
expect(result.coverage.omitted_observations).toBeGreaterThan(0);
});
it("does not route nested DEX content to the APK-only provider", async () => {
const root = await mkdtemp(join(tmpdir(), "rea-runtime-dex-"));
const path = join(root, "Fixture.zip");
const writer = new ZipWriter(new Uint8ArrayWriter());
await writer.add(
"classes.dex",
new Uint8ArrayReader(
Uint8Array.from([...Buffer.from("dex\n035\0"), 0, 0, 0, 0]),
),
);
await writeFile(path, await writer.close());
const inventory = parseEvidence(
await runProviderAnalysis(path, "inventory_artifact", {}),
);
const result = identifyRuntimes({ inventory_evidence: [inventory] });
expect(result.runtimes).toContainEqual(
expect.objectContaining({
family: "android",
inspection: "provider-selection-required",
provider_id: null,
}),
);
});
});