问题描述
我下载 APK管理器,让我解压APK文件。
I downloaded APK Manager that lets me unpack APK files.
但它只是解包并不会反编译.smali文件的.java。
But it only unpacks it and doesn't decompile the .smali file to .java.
是否有可能反编译.smali到的.java?
Is it possible to decompile the .smali to .java?
推荐答案
否,APK管理器反编译的 .dex
文件到 .smali
和二进制的.xml
来人类可读的XML。
No, APK Manager decompiles the .dex
file into .smali
and binary .xml
to human readable xml.
序列(基于APK管理器4.9)是 22 以选择包,然后 9 以反编译。如果preSS 1而不是9,那么你只会解压缩(用于只有当你想交换。PNG图像)。
The sequence (based on APK Manager 4.9) is 22 to select the package, and then 9 to decompile it. If you press 1 instead of 9, then you will just unpack it (useful only if you want to exchange .png images).
没有工具可用来反编译回的.java
文件,很可能不会有任何。有一种替代,这是使用的 dex2jar 以改造DEX文件中的一个的.class
文件,然后用一个罐子反编译器(如免费 JD-GUI ),以纯文本的Java。这个过程是很不理想,虽然,这不会产生工作code,但它足够体面的,能够阅读它。
There is no tool available to decompile back to .java
files and most probably it won't be any. There is an alternative, which is using dex2jar to transform the dex file in to a .class
file, and then use a jar decompiler (such as the free jd-gui) to plain text java. The process is far from optimal, though, and it won't generate working code, but it's decent enough to be able to read it.
dex2jar: HTTP://$c$c.google.com/p/dex2jar/
dex2jar: http://code.google.com/p/dex2jar/
JD-GUI: http://jd.benow.ca/
编辑:我知道有什么地方在这里因此具有非常相似的答案的问题......的
I knew there was somewhere here in SO a question with very similar answers... decompiling DEX into Java sourcecode
这篇关于反编译.smali文件上的APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!