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

标签 java android android-ndk java-native-interface

我反编译了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/

相关文章:

Android - onCreateDialog 在返回 DatePickerDialog 时崩溃

java - 从 MainActivity 调用时服务未启动

android - Android OpenGL ES 2.0 中的最大纹理创建/删除

java - 使用变量创建类与将变量作为参数传递到方法中

java - 在java主机上写文件

java - 更改Android中EditText的颜色

android - 在 Activity 中的任意位置键入以在 android 中打开 edittext View

android - 如何获取 .so 文件的依赖项列表?

Android - VideoView 需要按 BACK 两次才能退出

java - 是否可以让 Hibernate 通过 ManyToMany 关系执行 OrderBy?