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

查看:139
本文介绍了使用.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%正确的

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

不仅如此,人们还可以从Google Play商店

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.

推荐答案

是的,希望有一种方法可以防止他人获得辛苦的项目full source code. 为您的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

More details are here: https://developer.android.com/studio/build/shrink-code.html

Note that enabling ProGuard takes build time much more than normal build time.So better to do it before release of your app.

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

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