拥有 .apk 可以提取其源代码.Android 应用程序安全吗? [英] Having .apk can extract its source code. Does Android app is secure?

查看:49
本文介绍了拥有 .apk 可以提取其源代码.Android 应用程序安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了 Android 应用,其中一些代码非常私密且保密.我在我的代码中加入了加密算法以提高安全性.

I develop Android app and some of the codes are very private and confidential. I make encryption algorithm into my code to increase the safety.

但最近我读到,当人们拥有 .apk 文件时,他们可以 100% 正确提取 java 源代码 来源.

But recently I read, when people having an .apk file, they can extract the java source code with 100% correct Source.

不仅如此,人们还可以从 Google Play 商店获取 .apk 来源

Not just that, people also can get .apk from Google Play Store Source

这是否意味着拥有我的 .apk 的人可以查看我的所有源代码(java、.xml 布局、库)?如果是的话,我为拥有一个安全的应用程序所做的所有努力都没有实现.

Does it means people who has my .apk can view all my source code(java, .xml layout, library)? If yes, all my hard work to have a secure app is not achieved.

推荐答案

是的,希望有一种方法可以防止其他人获得您的艰苦劳动项目完整源代码.为您的 android 应用程序启用 ProGuard.ant 会调用 ProGuard 来混淆你的代码.您的代码将尽可能缩小.许多函数和变量名称将被替换为任何人都无法解码或理解的缩小形式:)

Yes,hopefully There is a way of preventing other from getting your hard labor projects full source code . Enable ProGuard for your android application. ant will call ProGuard to obfuscate your code. Your code will be than shrinked as much as possible.Many functions and variables name will be replaced with shrinked form that nobody can decode or understand at all :)

更多细节在这里:https://developer.android.com/studio/build/shrink-code.html

请注意,启用 ProGuard 所需的构建时间比正常的构建时间要长得多.因此最好在应用发布之前进行.

这篇关于拥有 .apk 可以提取其源代码.Android 应用程序安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆