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

Support for tracing high-level methods of Java Classes via patterns

Open dpnishant opened this issue 9 years ago • 14 comments

We need to add support for tracing high-level methods of Java Classes via patterns i.e. the Android/Java equivalent of the existing switch, below:

frida-trace -U someApp -m "*[NSFile* write*:*]"

dpnishant avatar Mar 12 '16 08:03 dpnishant

may be we should also rename -m to -ObjC so that when we have the Java support, a switch like -Java would be consistent and self-explanatory. Just my 2 cents.

dpnishant avatar Mar 12 '16 08:03 dpnishant

Any update on this issue?

Piasy avatar Jun 02 '17 02:06 Piasy

@Piasy Nobody is working on this as far as I can know. Are you volunteering? ;)

oleavr avatar Jun 02 '17 03:06 oleavr

@Piasy In the meantime, why don't you give https://github.com/dpnishant/appmon a try? :)

dpnishant avatar Jun 02 '17 03:06 dpnishant

@dpnishant Great work! But why not support wildcard in method name of Android Tracer? btw, I've write a tiny Java program to generate js code to hook all methods in provided classes, I'll release it later :)

Piasy avatar Jun 02 '17 12:06 Piasy

@Piasy Would be awesome if you could implement that in frida-trace 😊 It's still a pretty simple program, less than 900 LOC, so shouldn't take long to understand it and be able to add this new feature to it.

oleavr avatar Jun 02 '17 13:06 oleavr

Sure, I'll try it.

Piasy avatar Jun 03 '17 09:06 Piasy

@oleavr Sorry sir, I'm not very familiar with python, so I can't finish this job in a short time, and I don't have enough time to dive into this job. But I've released the Java program I wrote to generate hook script, hope it could help others, https://github.com/Piasy/FridaAndroidTracer.

Piasy avatar Jun 04 '17 04:06 Piasy

@Piasy Check out this update https://github.com/dpnishant/appmon/commit/bf3cee9e3676ecb1f446c25aa7f6573a85794ace 😊

dpnishant avatar Jun 04 '17 08:06 dpnishant

@dpnishant Awesome!

Piasy avatar Jun 04 '17 09:06 Piasy

Yes, it would be great if frida-trace could track the java method directly.

XhstormR avatar May 30 '19 06:05 XhstormR

As of version 12.10 and frida-tools 8.0 frida-trace supports Android 🎉 https://frida.re/news/2020/06/29/frida-12-10-released/

bitterbit avatar Jul 30 '20 14:07 bitterbit

wow , this thread has been here for almost 6 years , and I'm looking for the same thing , a way to trace methods

Cyph3rex avatar Dec 15 '21 19:12 Cyph3rex

Does frida currently support tracking methods on the JVM?

XhstormR avatar Dec 17 '21 06:12 XhstormR