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
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