Skip to content

Error enumerating loaded classes (9.1.14) #23

Description

@SrFlipFlop

Hi,

I'm trying to enumerate loaded classes using Android 5.0.1 emulator with the following script:
if (Java.available) { Java.enumerateLoadedClasses({ onMatch: function(className) { send(className); } }); } else { send("Not available Java"); }

Using Frida 9.1.7 it give me the following error:
{u'columnNumber': 1, u'description': u'Error: Enumerating loaded classes is only supported on Dalvik for now', u'fileName': u'frida/node_modules/frida-java/index.js', u'lineNumber': 87, u'type': u'error', u'stack': u'Error: Enumerating loaded classes is only supported on Dalvik for now\n at c (frida/node_modules/frida-java/index.js:87)\n at frida/node_modules/frida-java/index.js:143\n at script1.js:7'}

Seeing that the above error had already been notified, I try a newer Frida versions (9.1.14 and 9.1.13) and it give me a different error:
{u'columnNumber': 1, u'description': u'Error: VM::GetEnv failed: -2', u'fileName': u'frida/node_modules/frida-java/lib/result.js', u'lineNumber': 7, u'type': u'error', u'stack': u'Error: VM::GetEnv failed: -2\n at e (frida/node_modules/frida-java/lib/result.js:7)\n at frida/node_modules/frida-java/lib/vm.js:53\n at h (frida/node_modules/frida-java/index.js:166)\n at frida/node_modules/frida-java/index.js:105\n at script1.js:7'}

To discard that the error was provoked by the Android version, I also tried to use Android 6.0 but the same error message was disclosed.emulator and have the same error.

I hope that all the information help you to find the error more quickly. Thanks for the great open source project that is Frida.

Ferran Obiols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions