frida / frida-java-bridge

Java runtime interop from Frida
327 stars 124 forks source link

When using spawn, Java.Perform doesn't work before resume. #25

Closed olifozzy closed 7 years ago

olifozzy commented 7 years ago

I tried both using Node app, and REPL. Agent code :


send('> Agent Start');
Java.perform(function () {
    send('>> Java perform');
    var Activity = Java.use("android.app.Activity");
    Activity.onResume.implementation = function () {
        send("onResume() got called! Let's call the original implementation");
        this.onResume();
    };
});
send('< Agent End');

I do see the "Agent Start" and "Agent End", but no "Java perform" message.

firda-server 9.1.20
frida repl 9.1.20
enovella commented 7 years ago

Hi,

are you using an emulator or a physical device? take a peek at https://github.com/frida/frida-java/issues/29

oleavr commented 7 years ago

Same as #29, let's keep tracking it there since it has more details.

giorgos-pieri commented 5 years ago

same here. frida 12.2.25, frida-server 12.2.6