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

Comments

@dpnishant
Copy link

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

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 commented Jun 2, 2017

Any update on this issue?

@oleavr
Copy link
Member

oleavr commented Jun 2, 2017

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

@dpnishant
Copy link
Author

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

@Piasy
Copy link

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 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 commented Jun 3, 2017

Sure, I'll try it.

@Piasy
Copy link

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

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

@Piasy
Copy link

Piasy commented Jun 4, 2017

@dpnishant Awesome!

@XhstormR
Copy link

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

@bitterbit
Copy link

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

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

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