Skip to content

Error: access violation accessing 0x0 when calling Java.enumerateLoadedClasses() or Java.choose() #42

Description

@StefaanSeys

Hello,

When executing the following simple scripts

Java.perform(function () {   
        Java.enumerateLoadedClasses({
            onMatch: function(className){
                console.log(className)
            },
            onComplete:function(){
            }
    });
});

I get this error:

{'type': 'error', 
'description': 'Error: access violation accessing 0x0', 
'stack': 'Error: access violation accessing 0x0
    at v (frida/node_modules/frida-java/index.js:233)
    at frida/node_modules/frida-java/index.js:105
    at [anon] (script1.js:10)
    at frida/node_modules/frida-java/index.js:266
    at call (native)
    at dispatchMessage (input:1)', 'fileName': 'frida/node_modules/frida-java/index.js', 'lineNumber': 233, 'columnNumber': 1}

I get the same issue when calling Java.choose().

Versions used:

  • Android 4.3.1 (Cyanogenmod 10.2.1)
  • Both with Frida version 9.1.28 and 10.5.13

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