Git Product home page Git Product logo

Comments (5)

chame1eon avatar chame1eon commented on July 18, 2024

Hi,

Thanks for submitting the issue.

-l needs to be the name of the library you are hooking, so -l work()V would not work.

You should be able to run the command as:

jnitrace -l libmyjni.so com.gdufs.xman

Separately, the issue you are seeing is a bash problem as it is trying to interpret the "(" in the command. You can use "(" to escape the bracket if you run into the problem in the future.

Let me know if that helps.

Thanks

from jnitrace.

eternalsakura avatar eternalsakura commented on July 18, 2024

-I - is used to specify the exports from a library that should be traced. This is useful for libraries where you only want to trace a small number of methods. The functions jnitrace considers exported are any functions that are directly callable from the Java side, as such, that includes methods bound using RegisterNatives. The option can be supplied multiple times. For example, -I stringFromJNI -I nativeMethod([B)V could be used to include an export from the library called Java_com_nativetest_MainActivity_stringFromJNI and a method bound using RegisterNames with the signature of nativeMethod([B)V.
maybe I means -I

from jnitrace.

eternalsakura avatar eternalsakura commented on July 18, 2024
-I - is used to specify the exports from a library that should be traced. This is useful for libraries where you only want to 
trace a small number of methods. The functions jnitrace considers exported are any functions that are directly callable from the Java side, as such, that includes methods bound using RegisterNatives. The option can be supplied multiple times. For example, -I stringFromJNI -I nativeMethod([B)V could be used to include an export from the library called Java_com_nativetest_MainActivity_stringFromJNI and a method bound using RegisterNames with the signature of nativeMethod([B)V.

maybe I means -I String
image

from jnitrace.

chame1eon avatar chame1eon commented on July 18, 2024

Thanks for clarifying, sorry for the initial confusion.

Can you trying modifying your command to one of the following to see if that works?

jnitrace -I "work()V" -l....

jnitrace -l work((V -l...

from jnitrace.

chame1eon avatar chame1eon commented on July 18, 2024

Closing this as not heard anything in 2 weeks.

from jnitrace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.