Objective:
Recently I was using Android studio to confuse the packaged release release, is packaging successful? Naturally thought of anti-compilation. Then Baidu "APK anti-compilation", out of the most is Apktool anti-compilation. Baidu is really more and more water, anyway, Baidu came out of the course is N years ago, and now can not be used. Many bloggers are not with the new blog, and then with the development of the JDK Apktool also with many new generations. All the content of some bloggers is out of the use.
Like what:
http://blog.csdn.net/vipzjyno1/article/details/21039349/#reply
The blogger, in some places, is good. But the Apktool download version and usage have long been outdated, and now it's useless.
Tool Description:
Apktool
Role: Main view of the Res file under XML files, Androidmanifest.xml and pictures. (Note: If you unzip the. apk file directly, the XML file opening is all garbled)
Dex2jar
Role: Decompile the apk into Java source code (Classes.dex into a jar file)
Jd-gui
Role: View the apk in the Classes.dex converted into a jar file, namely the source file
New version Apktool usage: 1, Download: https://ibotpeaches.github.io/Apktool/install/Of course, the above link and picture description may also change. Currently download two files Apktool.bat and Apktool.jar (this if you download the file has a version number, such as Apktool_2.2.1.jar, you have to change the name of Apktool.jar), and then put the above two files to c:// Under Windows. (I am a Windows system, other systems according to their own) 2, how to use https://ibotpeaches.github.io/Apktool/# official website tutorial
$ apktool D test.apkI:Using apktool 2.2.1 on test.apkI:Loading Resource table ... I:decoding Androidmanifest.xml with resources ... I:loading Resource table from File:1.apki:regular manifest ... I:decoding file-resources ... I:decoding Values */* xmls ... I:baksmaling Classes.dex ... I:copying Assets and Libs ... i:copying Unknown files ... i:copying Original files ... $ apktool b testi:using apktool 2.2.1 On testi:checking whether sources have changed ... I:smaling Smali folder into Classes.dex ... I:checking whether resources has changed ... I:building Resources ... i:building apk file ... i:copying unknown files/dir ...
In fact, run the CMD, enter the directory such as APP-RELEASE.APK, and then run Apktool D app-release.apk can be, the default decompression files in the app-release.apk directory.
Finally, if the above method can not be used, please look at the original page of English how to say.
Like what:
http://blog.csdn.net/vipzjyno1/article/details/21039349/#reply
Dex2jar
Role: Decompile the apk into Java source code (Classes.dex into a jar file)
Jd-gui
Role: View the apk in the Classes.dex converted into a jar file, namely the source file
Smali2javauifor Bloggers said, first Dex2jar classes.dex to jar, and then jd-gui the jar into the source *.java file. can now use Smali2javaui this software, one in place. You can turn these two steps into a single step. So, if you just want to counter-compile to see the *.java file, just use the Smali2javaui software. This software can open the ***.apk file directly, and then directly see the *.java file. smali2javaui Latest version download link http://www.hensence.com/cn/smali2java/#Downloadhttp://blog.csdn.net/ysc123shift/article/details/52985435
Android apk anti-compilation apktool using tutorial