是否有可能从.apk文件得到Android.mk或本地源文件?有可能、源文件、文件、apk

2023-09-07 09:12:20 作者:月夜下的思念♬

看来,这是很容易从.apk文件获取Java源文件。但是,它可能得到的 Android.mk 或本地源从.apk文件的文件,通过工具或技巧方法呢?

It seems that it is quite easy to get Java source files from .apk file. But is it possible to get Android.mk or native source file from .apk file, by tools or tricky methods?

我对Android应用原生code安全做研究,使这些文件对我来说非常重要。谢谢。

I am doing research on Android app native code security so that these files are quite important for me. Thanks.

推荐答案

您无法从APK得到Android.mk,它只是需要建设,因此,它不存储在那里(除非程序员把它的资源/文件夹或类似的东西)。

You cannot get Android.mk from an apk, it's only needed for building, as such, it's not stored in there (unless the programmer put it in the res/ folder or something like that).

所有的本地code为应用程序存储在库/目录下的APK的根源。它的编译ARM或x86 code,或两者兼而有之。您可以在库/ architecture_type / lib_name.so找到它。您可以掩饰的code。与objdump的或GDB。反编译是一个非常困难的任务,但你可以找到一些软件,可以为你工作。

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.

编辑:我注意到你似乎对人的逆向工程的code担心。唯一肯定火的方式来prevent有人反向工程code是不首先把它写。你可以做一些事情,使难以不过的人,但有人够执着可以避开它。

I noticed you seem to be worried about people reverse engineering your code. The only sure fire way to prevent someone from reverse engineering your code is to not write it in the first place. You can do some things to make it difficult for people however, but someone persistent enough can get around it.