Decompling一个Android APK? [英] Decompling an android apk?

查看:178
本文介绍了Decompling一个Android APK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/3593420/android-getting-source-$c$c-from-an-apk-file">Android:获取源$ C ​​$ C从APK文件

是否有可能有人反编译我的Andr​​oid APK文件,看在我的包中声明的公共变量或常量?

Is it possible for someone to de-compile my android apk file and see the public variables or constants declared in my packages?

我的共享密钥然后将得到曝光...

My shared key that i have defined as public static constant will then get exposed...

推荐答案

在反混淆code(这里有一个视频教程,可能会给见解:的如何阅读混淆code ),你就可以看到所有的硬codeD值,例如

When you deobfuscate code (here's a video tutorial that might give insight: How to read obfuscated code), you will be able to see all hard-coded values such as

private String key = "Au8aujEWS(jol#9jSd9";

除非他们将不会看到变量名:

Except they won't be seeing variable names:

private String a = "Au8aujEWS(jol#9jSd9";


通过使用工具,如阳光提到,你就可以得到所有code到接近它的原始状态。


By using tools like Sunny mentioned, you'll be able to get all code to near it's original state.

我来举个例子;如果你有下列原来的code:

I'll give an example; If you had the following original code:

public class MainActivity extends Activity { 
    private String key = "Au8aujEWS(jol#9jSd9";

    public void onCreate(Bundle savedInstance) {
        //Some code here
    }
}

public class OtherActivity extends Activity { ... }

被编译,反编译回的java code之后,它看起来是这样的:

After being compiled, and decompiled back into java code, it would look something like this:

public class A extends B {
    private String a = "Au8aujEWS(jol#9jSd9";

    public void a (C b) {
        //Some code here
    }
}
public class D extends B { ... }

和使用教育猜测和重构工具,你就可以反混淆code,所以有足够的奉献和辛勤工作的人们将能够看到所有的code。

and by using educated guesswork and refactoring tools, you'll be able to deobfuscate code, so with enough dedication and hard work people will be able to see all your code.

我强烈建议不要让您的安全完全取决于事物codeD插入客户端应用程序。当然,这取决于它是多么重要,你的情况不给黑客访问你想,以确保信息的可能性。

I strongly recommend to not make your security entirely depending on things coded into the client applications. Of course it depends on how important it is for your situation to not give hackers the possibility to access the information you're trying to secure.

这篇关于Decompling一个Android APK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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