I'm tried to replace the $init method in the java.lang.String class, but when I load the script I get an error: "Error: Unable to make thread_from_jni_environment() helper for the current architecture"
____
/ _ | Frida 16.2.1 - A world-class dynamic instrumentation toolkit
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at https://frida.re/docs/home/
. . . .
. . . . Connected to Local System (id=local)
Attaching...
java status: true
[
{
"loader": null,
"classes": [
{
"name": "java.lang.String",
"methods": [
/* Methods */
]
}
]
}
]
Error: Unable to make thread_from_jni_environment() helper for the current architecture
at Object.JavaThread::thread_from_jni_environment (frida/node_modules/frida-java-bridge/lib/jvm.js:191:1)
at frida/node_modules/frida-java-bridge/lib/jvm.js:235:1
at c.perform (frida/node_modules/frida-java-bridge/lib/vm.js:12:1)
at R (frida/node_modules/frida-java-bridge/lib/jvm.js:234:1)
I'm tried to replace the $init method in the java.lang.String class, but when I load the script I get an error: "Error: Unable to make thread_from_jni_environment() helper for the current architecture"
Script:
Ouput: