关于编译和反编译
我想阻止任何人逆向编译apk。我们需要做点什么。上网查了一下,还是不太清楚操作步骤。
谁能告诉我该怎么做?
非常欢迎任何人的帮助!谢谢!!
I want to prevent anyone from apk reverse compilation. We need to do something. I browsed on the internet, but I still don't know the operational steps clearly.
Who can tell me how to do it?
Anyone's help is so welcome!! Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要一个混淆器。如果您运行的是 .NET 或 Java,这些应该很容易找到。
没有什么可以阻止人们反编译您的代码。你所能做的就是让它读起来尽可能地令人讨厌。不要在源代码中执行此操作(因为您将无法自己修改代码),请使用混淆器将其作为构建后步骤来执行。
You need an obfuscator. If you are running .NET or Java, these should be easy to find.
There is nothing to prevent people from decompiling your code. All you can do is make it as nasty to read as possible. Don't do this in source (as you will not be able to modify your code yourself), use an obfuscator to do it as a post build step.
Google 推荐 ProGuard。有关详细信息,请参阅 Android 文档中的此链接。
它不会阻止人们反汇编你的代码(你无法阻止它 - 毕竟,操作系统需要反汇编你的代码才能执行它!),但它会让你很难看到发生了什么。
Google recommends ProGuard. See this link in the Android docs for more information.
It won't prevent people from disassembling your code (you won't be able to stop that - after all, the operating system needs to disassemble your code to execute it!), but it will make it very hard to see what's going on.