8000 "il2cpp.perform()" fails in emulated environments (e.g., Houdini) when using Frida Gadget with an automated "gadget.config" · Issue #3810 · frida/frida · GitHub
[go: up one dir, main page]

Skip to content
10000

"il2cpp.perform()" fails in emulated environments (e.g., Houdini) when using Frida Gadget with an automated "gadget.config" #3810

Open

Description

@Starcool20

Description

When Frida Gadget is bundled directly into an APK and configured using an automatically generated "gadget.config" file, calling "il2cpp.perform()" from a JavaScript script fails to work in emulated environments that rely on native library translation, such as Houdini.

The issue appears to occur when running the application in an environment where native ARM libraries are translated to a different instruction set. Under these conditions, the IL2CPP initialization callback does not seem to execute as expected, preventing scripts that depend on "il2cpp.perform()" from running correctly.

Steps to Reproduce

  1. Bundle Frida Gadget into an APK.
  2. Configure the Gadget to an automated scripts in the "gadget.config" file.
  3. Include a JavaScript script that uses "il2cpp.perform()" to execute code after the IL2CPP runtime is initialized.
  4. Bundle everything inside a lib/arm or lib/arm64 apk folder including libgadget.so, libgadget.config.so and libscript.so then build it as an apk.
  5. Run the modified APK in an emulated environment that uses native library translation, such as Houdini.
  6. Observe that "il2cpp.perform()" does not work as expected.
    Expected Behavior

"il2cpp.perform()" should execute its callback once the IL2CPP runtime is available, even when the application runs in an environment that uses native library translation.

Actual Behavior

The callback passed to "il2cpp.perform()" does not execute as expected in the translated environment, but that same setup worked well in a non-translated environment.

Environment

  • Instrumentation: Frida Gadget bundled into the APK
  • Configuration: Automated script "gadget.config"
  • Scripting API: "il2cpp.perform()"
  • Affected environments: Emulated environments using native library translation, such as Houdini
  • Target: Android application using Unity IL2CPP

Additional Information

It would be helpful to determine whether this behavior is related to IL2CPP runtime detection, native library loading, or compatibility with translated execution environments.

Please let me know if additional logs, a minimal reproducible example, or further environment details would help diagnose the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0