Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unable to parse ART internals #331

Open
NeverL4nd2 opened this issue Aug 5, 2024 · 1 comment
Open

Error: Unable to parse ART internals #331

NeverL4nd2 opened this issue Aug 5, 2024 · 1 comment

Comments

@NeverL4nd2
Copy link

NeverL4nd2 commented Aug 5, 2024

For some of the apps I'm getting the error, when running frida via Python interface, two apps which fail such a way are using Android API 33 and 34, not sure if that matters. When trying to instrument preinstalled apps such as com.android.gallery3d all is good, and the system is Android 13.

bash INFO:root:⚡ {'type': 'error', 'description': 'Error: Unable to parse ART internals; please file a bug', 'stack': 'Error: Unable to parse ART internals; please file a bug\n at On (frida/node_modules/frida-java-bridge/lib/android.js:2016)\n at Ln (frida/node_modules/frida-java-bridge/lib/android.js:1716)\n at <anonymous> (frida/node_modules/frida-java-bridge/lib/android.js:1612)\n at _patchCode (native)\n at value (frida/runtime/core.js:207)\n at In (frida/node_modules/frida-java-bridge/lib/android.js:1613)\n at vt (frida/node_modules/frida-java-bridge/lib/android.js:581)\n at <anonymous> (frida/node_modules/frida-java-bridge/lib/memoize.js:4)\n at bt (frida/node_modules/frida-java-bridge/lib/android.js:576)\n at <anonymous> (frida/node_modules/frida-java-bridge/lib/class-model.js:115)\n at build (frida/node_modules/frida-java-bridge/lib/class-model.js:7)\n at _make (frida/node_modules/frida-java-bridge/lib/class-factory.js:168)\n at use (frida/node_modules/frida-java-bridge/lib/class-factory.js:62)\n at <anonymous> (frida/node_modules/frida-java-bridge/index.js:224)\n at <anonymous> (frida/node_modules/frida-java-bridge/lib/vm.js:12)\n at _performPendingVmOpsWhenReady (frida/node_modules/frida-java-bridge/index.js:244)\n at perform (frida/node_modules/frida-java-bridge/index.js:204)\n at <anonymous> (/script1.js:71)\n at apply (native)\n at <anonymous> (frida/runtime/core.js:51)', 'fileName': 'frida/node_modules/frida-java-bridge/lib/android.js', 'lineNumber': 2016, 'columnNumber': 1}

bash INFO:root:⚡ {'type': 'error', 'description': "TypeError: cannot set property '_code' of null", 'stack': "TypeError: cannot set property '_code' of null\n at In (frida/node_modules/frida-java-bridge/lib/android.js:1613)\n at vt (frida/node_modules/frida-java-bridge/lib/android.js:581)\n at <anonymous> (frida/node_modules/frida-java-bridge/lib/memoize.js:4)\n at bt (frida/node_modules/frida-java-bridge/lib/android.js:576)\n at <anonymous> (frida/node_modules/frida-java-bridge/lib/class-model.js:115)\n at build (frida/node_modules/frida-java-bridge/lib/class-model.js:7)\n at _make (frida/node_modules/frida-java-bridge/lib/class-factory.js:168)\n at use (frida/node_modules/frida-java-bridge/lib/class-factory.js:62)\n at <anonymous> (frida/node_modules/frida-java-bridge/index.js:224)\n at <anonymous> (frida/node_modules/frida-java-bridge/lib/vm.js:12)\n at _performPendingVmOpsWhenReady (frida/node_modules/frida-java-bridge/index.js:244)\n at perform (frida/node_modules/frida-java-bridge/index.js:204)\n at <anonymous> (/script1.js:71)\n at apply (native)\n at <anonymous> (frida/runtime/core.js:51)", 'fileName': 'frida/node_modules/frida-java-bridge/lib/android.js', 'lineNumber': 1613, 'columnNumber': 1

What can be a reason for such failure?

It happens on a debug build of the APK, for release build all is good

Tested Frida versions:
16.0.0 - just to make sure that the issue is not recently introduced
16.1.10 - pinned version for my env.
16.4.8 - latest

@starsunyzl
Copy link

same problem, release build is fine, but not debug build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants