fix(android): preserve decoded values and duplicate class inventories
Parse Apktool YAML and XML at the producer boundary, preserving scalar spelling, XML text and partial string coverage. Retain repeated JADX inventory rows with explicit duplicate-name counts and lookup ambiguity. Make the Apktool verifier report cleanup failures. Validation: parser, provider and JADX fixture boundary tests; typecheck, lint and documentation checks. Real Apktool and JADX engines were not exercised. Refs #1978
This commit is contained in:
@@ -277,6 +277,27 @@ it("fetches all class pages rather than silently retaining the first upstream pa
|
||||
await verifyCleanup(launches);
|
||||
});
|
||||
|
||||
it("preserves duplicate class-name rows and reports lookup ambiguity", async () => {
|
||||
const { service, apk, launches, provider } = await setup(
|
||||
"duplicate-class-name",
|
||||
);
|
||||
const outcome = await service.execute("search_android_classes", {
|
||||
path: apk,
|
||||
query: "fixture.Target",
|
||||
});
|
||||
if (!outcome.ok) throw outcome.error;
|
||||
const result = androidResultSchemas.search_android_classes.parse(
|
||||
outcome.value.normalized_result,
|
||||
);
|
||||
expect(result.total_classes).toBe(402);
|
||||
expect(result.matches).toEqual(["fixture.Target", "fixture.Target"]);
|
||||
expect(result.duplicate_names).toEqual([
|
||||
{ name: "fixture.Target", occurrences: 2 },
|
||||
]);
|
||||
await provider.close();
|
||||
await verifyCleanup(launches);
|
||||
});
|
||||
|
||||
it("exposes overload candidates and executes only an explicitly selected ambiguous method", async () => {
|
||||
const { service, apk, launches, provider } = await setup();
|
||||
const input = {
|
||||
|
||||
Reference in New Issue
Block a user