Comments (5)
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.
-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.
-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.
from jnitrace.
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.
Closing this as not heard anything in 2 weeks.
from jnitrace.
Related Issues (20)
- filters not working? HOT 5
- APP has stopped HOT 2
- App stopped when spawn mode HOT 1
- Jinitrace with frida gadget HOT 5
- Is there an implementation library for C++? HOT 2
- app 直接闪退了,打印输出如下,什么都没有? HOT 1
- Error after attach, spawn app crashing HOT 4
- jnitrace 怎么打印返回的jstring值 HOT 1
- jnitrace为何无法attach? HOT 1
- “jntrace -l *” unrecognized arguments HOT 2
- jnitrace blank response HOT 1
- npm run watch error -> build error HOT 1
- 安装了jnitrace,却提示commond no found HOT 2
- Attach mode maybe has some bugs HOT 1
- frida error HOT 1
- Not work / empty response HOT 2
- Tracing. Press any key to quit... HOT 6
- App crashing - Tracing. Press any key to quit... HOT 2
- the err and break whta happend? HOT 1
- Error when running script line 1: expecting '(' at <anonymous> (/frida/repl-2.js:1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jnitrace.