Android apk decompilation in mac, androidapk
Required tools: apktool dex2jar download jd-gui download
The layout and resource files are obtained by decompiling apktool. The Code bytecode obtained by dex2jar decompilation can be viewed using jd gui.
1.apk tool installation 1) download apktool and apk-install-macosx on mac 2) decompress these two files and copy these three files to the path. (Note that the root permission is required) 3) decompile with apktool d xxx.apk to get a folder with the same name. There is the layout file we need.
2.dex2jardecompilation: 1. Change the suffix of the APK file to. Zip and decompress it. Obtain the classes. dex file, which is compiled by the java source code and packaged by the dx tool. 2) copy the classes. dex file to the folder where dex2jar is located. 3) locate the dex2jar directory under the command line and run sh dex2jar. sh classes. dex to generate classes_dex2jar.jar. Open it with jd gui and you will see the source code.