I understand that you might not always want to attach a thread to the JVM with Frida so Java.perform is being used to make it explicit but in the repl it gets a bit tiresome to type it out each time I want to run something. Assuming there isn't a risk with doing automatically I suggest adding a feature that will wrap the repl prompt with Java.perform.
Of course it will be configurable with a command from the repl (%autoperform and %noautoperform I think) and can be off by default if it seems risky (in that case we should probably add a prompt to tell the user about this feature). What do you think @oleavr?
I understand that you might not always want to attach a thread to the JVM with Frida so
Java.perform
is being used to make it explicit but in the repl it gets a bit tiresome to type it out each time I want to run something. Assuming there isn't a risk with doing automatically I suggest adding a feature that will wrap the repl prompt withJava.perform
.Of course it will be configurable with a command from the repl (
%autoperform
and%noautoperform
I think) and can be off by default if it seems risky (in that case we should probably add a prompt to tell the user about this feature). What do you think @oleavr?