From baca179cbddbb960d5ec1dcf3a2cec2987231d0b Mon Sep 17 00:00:00 2001 From: Eduardo Novella Date: Mon, 16 Dec 2024 10:45:13 +0100 Subject: [PATCH] Enhance :ies for Android ELF entrypoint --- src/agent/lib/info/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/lib/info/index.ts b/src/agent/lib/info/index.ts index 621cf1bc..b62a9c60 100644 --- a/src/agent/lib/info/index.ts +++ b/src/agent/lib/info/index.ts @@ -265,7 +265,7 @@ export function listEntrypointSymbols(args: string[]): string { }); Process.enumerateModules().forEach((mod) => { mod.enumerateExports().forEach((exp) => { - if (exp.name.startsWith("Java_")) { + if (exp.name.startsWith("Java_") || exp.name.startsWith("JNI_OnLoad")) { symbols.push({ name: "entry.jni." + exp.name, address: exp.address.toString() }); } });