Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dpnishant opened this issue Mar 12, 2016 · 14 comments
Open

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

dpnishant opened this issue Mar 12, 2016 · 14 comments

Comments

@dpnishant
Copy link

@dpnishant dpnishant commented Mar 12, 2016

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
Copy link
Author

@dpnishant dpnishant commented Mar 12, 2016

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.

@Piasy
Copy link

@Piasy Piasy commented Jun 2, 2017

Any update on this issue?

@oleavr
Copy link
Member

@oleavr oleavr commented Jun 2, 2017

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

@dpnishant
Copy link
Author

@dpnishant dpnishant commented Jun 2, 2017

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

@Piasy
Copy link

@Piasy Piasy commented Jun 2, 2017

@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 :)

@oleavr
Copy link
Member

@oleavr oleavr commented Jun 2, 2017

@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.

@Piasy
Copy link

@Piasy Piasy commented Jun 3, 2017

Sure, I'll try it.

@Piasy
Copy link

@Piasy Piasy commented Jun 4, 2017

@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.

@dpnishant
Copy link
Author

@dpnishant dpnishant commented Jun 4, 2017

@Piasy Check out this update dpnishant/appmon@bf3cee9 😊

@Piasy
Copy link

@Piasy Piasy commented Jun 4, 2017

@dpnishant Awesome!

@XhstormR
Copy link

@XhstormR XhstormR commented May 30, 2019

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

@bitterbit
Copy link

@bitterbit bitterbit commented Jul 30, 2020

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/

@Cyph3rex
Copy link

@Cyph3rex Cyph3rex commented Dec 15, 2021

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

@XhstormR
Copy link

@XhstormR XhstormR commented Dec 17, 2021

Does frida currently support tracking methods on the JVM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants