When i run example script showing error. Thank you in advance.
import { JNIInterceptor } from "jnitrace-engine";
// Attach to the JNI FindClass method
JNIInterceptor.attach("FindClass", {
onEnter(args) {
// called whenever the FindClass is about to be called
console.log("FindClass method called");
this.className = Memory.readCString(args[1]);
},
onLeave(retval) {
// called whenever the FindClass method has finished executing
console.log("\tLoading Class:", this.className);
console.log("\tClass ID:", retval.get());
}
});
When i run example script showing error. Thank you in advance.
frida version:
16.1.3
Device:
Nox Emulator, Android Version 7. x86.