feat(android): trace callers of external DEX methods (#8154)

Resolve exact external method targets from directly encoded DEX invokes.
Preserve complete caller identity, bounded position evidence and follow-up
selectors. Report aggregate position coverage independently of the caller
inventory, and reuse bounded prototype facts within the exact session.

Absorbs #8096. Fixes #7811.

Co-authored-by: hhang <[email protected]>
This commit is contained in:
gensokyo-devandhhang authored and GitHub committed 2026-10-31 01:07:18 +08:00
1 parent 675d4076de
commit 0ffed7a48c
20 files changed
+1472 -76

No files matched your search

+7 -3
View File
@@ -261,16 +261,20 @@ export const registerAndroidCommands = (
});
cli.command(CLI_COMMANDS.traceAndroidReferences, {
description:
"Trace incoming APK using nodes for a class or selected method",
"Trace APK using nodes for a defined class/method or an externally invoked DEX method",
args: z.object({ path, className }),
options: z.object({
methodName: z
.string()
.optional()
.describe("Declared method name; omit for class references"),
.describe(
"Defined or directly referenced external method; omit for APK class references",
),
overloadIndex: cliIntegerArgument(0)
.optional()
.describe("Index among same-name methods from inspect-android-class"),
.describe(
"Index among defined methods or observed external prototypes listed by an ambiguous query",
),
}),
run: ({ args, options }) =>
execute(