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

Cannot trace any function calls #25

Open
timleg002 opened this issue Dec 26, 2020 · 9 comments
Open

Cannot trace any function calls #25

timleg002 opened this issue Dec 26, 2020 · 9 comments

Comments

@timleg002
Copy link

C:\Users\cooluser>jnitrace -m attach -l * com.coolpackage.app
Tracing. Press any key to quit...

I am debugging an app which uses JNI to do most of its work. When I use jnitrace, there is no function calls I can see. I can do anything in the app, any movement, but it just keeps being stuck. No function calls. What would be the problem? Thanks!

@chame1eon
Copy link
Owner

Hi, thanks for letting me know. Any chance you can let me know the application you are testing, version of Android you are running, and the device you are using? That should allow me to debug it better. Thanks

@chame1eon
Copy link
Owner

Closing as not had a response in over a month.

@timleg002
Copy link
Author

Hey! Sorry, I haven't had any notifications for this so I forgot about this. I'm debugging the Egg NS app, the latest version, and I'm using Android version 11.

@chame1eon chame1eon reopened this Feb 21, 2021
@chame1eon
Copy link
Owner

Thanks. Will take a look.

@chame1eon
Copy link
Owner

Unfortunately, I do not have a device that supports running that app for me to test. Have you run any other Frida scripts against it? I am just trying to figure out if it is a Frida issue more generally or specific to jnitrace.

@timleg002
Copy link
Author

Unfortunately, I do not have a device that supports running that app for me to test. Have you run any other Frida scripts against it? I am just trying to figure out if it is a Frida issue more generally or specific to jnitrace.

Tracing functions with a wildcard runs for a long time, because it wants to trace all functions in Android, by that jI mean not only functions specific to an app, so that's why I decided to use jnitrace.

@chame1eon
Copy link
Owner

Sorry I did not mean, "just use Frida trace". I was trying to work out whether the problem was a jnitrace issue with that app or if there was some kind of issue with Frida hooking that app. I assume from your last message you have been able to run frida-trace against that application? In which case the issue must be with jnitrace and so I will build a debug version of jnitrace for you to test with

@timleg002
Copy link
Author

It hooks well for one function, but hooking "all" functions takes a long time for frida trace. I think that's the problem with my usage of jnitrace as well.

@chame1eon
Copy link
Owner

Have any of the optimisations with newer versions of Frida helped with this?

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

2 participants