如何从反编译的apk中获取JNI文件

How can I get JNI file from decompiled apk

我反编译apk文件发现使用了native方法。但是我找不到 JNI 相关文件,如 c/c++ 文件。(找不到本机方法的主体)

如何找到本地方法的主体?

本机代码可以在 libs 目录中找到。有关详细信息,请参阅 this SO 答案:

All of the native code for an app is stored in the libs/ directory in the root of the apk. It's compiled ARM or x86 code, or both. You can find it in libs/architecture_type/lib_name.so. You can dissemble the code with objdump or gdb. Decompiling is a much harder task, but you can find some software that might work for you.