frida / frida-java-bridge

Java runtime interop from Frida
318 stars 115 forks source link

Error: access violation accessing 0x10 #140

Open tungpun opened 4 years ago

tungpun commented 4 years ago

When running the below script:

Java.perform(function () {
    var str = Java.use("java.lang.String");
    str.equals.overload("java.lang.Object").implementation = function (v) {
        console.log("[*] equals() got called!");
    };
});

I get the following error:

$ frida -U -l test.js --no-pause -f owasp.mstg.uncrackable1                                                  
     ____
    / _  |   Frida 12.6.16 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at http://www.frida.re/docs/home/
Spawned `owasp.mstg.uncrackable1`. Resuming main thread!
[Google Pixel XL::owasp.mstg.uncrackable1]-> Error: access violation accessing 0x10
    at frida/runtime/core.js:144
    at replaceArtImplementation (frida/node_modules/frida-java-bridge/lib/class-factory.js:838)
    at /repl1.js:5
    at frida/node_modules/frida-java-bridge/lib/vm.js:11
    at E (frida/node_modules/frida-java-bridge/index.js:346)
    at frida/node_modules/frida-java-bridge/index.js:334
    at input:1

I use Android 8.1.0 Frida: 12.6.16

oleavr commented 4 years ago

This is a device/ROM-specific issue. What kind of device and ROM are you running?

tungpun commented 4 years ago

@oleavr I tested on Pixel XL, the official ROM (Android 8.1.0) rooted with Magisk