frida-core icon indicating copy to clipboard operation
frida-core copied to clipboard

'setTimeout' is not working in frida-gadget on 'script' mode?

Open te3 opened this issue 2 years ago • 6 comments

rpc.exports = {
  init: (stage, parameters) => {
    Java.perform(function () {
      const Log = Java.use("android.util.Log");
      Log.e("script", "step-1");

      setTimeout(() => Log.e("script", "step-2"), 2000);
      Log.e("script", "step-3");
    });
  },
};

logs: 04-18 11:19:29.270 21742 21811 E script : step-1 04-18 11:19:29.270 21742 21811 E script : step-3 //no step-2

environment: frida-gadget-15.1.17-android-arm64.so

te3 avatar Apr 18 '22 03:04 te3