Awesome Open Source
Awesome Open Source

JNI Helper

CI

Find JNI function signatures in APK and apply to reverse tools.

Basic Usage

  1. Use JadxFindJNI.jar to generate signature.json
  2. Load signature.json into Ghidra/IDA/Radare2

JadxFindJNI.jar

Build:

$ make jni

Or you can just download the latest release.

Usage:

$ java -jar JadxFindJNI/JadxFindJNI.jar
Usage: JadxFindJNI.jar <file.apk> <output.json>

Ghidra

See Ghidra

Before:

g1

After:

g2

IDA

See IDA

Before:

i1

After:

i2

Radare2

See Radare2

Demo

Tested with app-debug.apk.

$ make demo

TODO

  • [x] support both C/C++ JNI functions
  • [x] support overloaded JNI functions
  • [ ] support env->RegisterNatives JNI functions

LINKS


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
c-plus-plus (18,765
apk (116
ida (53
ghidra (39
radare2 (23