-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Integrate JNI.h types into the decompiled code #49
Comments
Sample: |
Any clue how to tackle this issue? |
works in r2, but not in r2ghidra-dec, @thestr4ng3r can you take a look?
|
@thestr4ng3r will be good to have tests for this. it is fixed? |
Not entirely yet, it's still missing support for function pointers in structs on r2 side. |
Hi @thestr4ng3r I am using radare2 5.4.2 and it looks like I don't even have jni.h.
|
rz-ghidra does not support radare2. |
Ghidra and IDA produce a clear and beautiful decompiled native code using the JNI types. Further info at https://www.ayrx.me/ghidra-jnianalyzer
Radare2 has built-in the jni.h headers:
Thus, we can set the JNIEnv* for the first argument of the function
Java_xxxx
:However, r2ghidra gives us some warnings about the JNIEnv types:
IDA and Ghidra perform it properly:
![Screenshot from 2019-10-23 14-55-19](https://user-images.githubusercontent.com/14809754/67394865-36d74f80-f5a5-11e9-8a8a-3ea4c2e8dfee.png)
Sample:
libzcloud.zip
Related issue radareorg/radare2#15337 by @radare
The text was updated successfully, but these errors were encountered: