我反编译了apk文件,发现使用了native
方法。但是我找不到像c/c++文件这样的JNI相关文件。(找不到 native 方法的主体)
如何找到 native 方法的主体?
最佳答案
native 代码可以在 libs
目录中找到。请参阅this所以回答更多信息:
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.
关于java - 如何从反编译的apk中获取JNI文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33598265/