"il2cpp.perform()" fails in emulated environments (e.g., Houdini) when using Frida Gadget with an automated "gadget.config" · Issue #3810 · frida/frida · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"il2cpp.perform()" fails in emulated environments (e.g., Houdini) when using Frida Gadget with an automated "gadget.config" #3810
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
Bundle Frida Gadget into an APK.
Configure the Gadget to an automated scripts in the "gadget.config" file.
Include a JavaScript script that uses "il2cpp.perform()" to execute code after the IL2CPP runtime is initialized.
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.
Run the modified APK in an emulated environment that uses native library translation, such as Houdini.
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