frida / frida-tools

Frida CLI tools
Other
348 stars 97 forks source link

Auto insert Java.perform when connecting to an Android application #74

Closed yotamN closed 2 years ago

yotamN commented 2 years ago

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?

forensicmike commented 2 years ago

i'm nobody but having written Java.perform a LOT i like this idea :)

s1341 commented 2 years ago

I’m in favor. @yotamN care to submit a pr?