$ apktool d test.apkI: Using Apktool 2.2.4 on test.apkI: Loading resource table...I: Decoding AndroidManifest.xml with resources...I: Loading resource table from file: 1.apkI: Regular manifest package...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.4 on testI: Checking whether sources has 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...
1-从构建菜单中选择分析apk选项并选择apk文件。2-这将导致您classes.dex文件和其他文件。3-单击classes.dex,它将为您提供文件夹,包,库和文件的列表。4-从和Android工作室设置安装一个名为“Dex to Jar”的插件5-单击提取项目的任何活动文件,然后从构建菜单中选择dex to jar。
# i installed apktool before the rest of the stuff, may not need it but here it is$> cd /opt$> sudo mkdir apktool$> cd apktool/$> sudo wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool$> sudo wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.4.1.jar$> sudo mv apktool_2.4.1.jar apktool.jar$> sudo mv apktool* /usr/bin/$> sudo chmod a+x /usr/bin/apktool*
# and enjarify$> cd /opt$> sudo git clone https://github.com/Storyyeller/enjarify.git$> cd enjarify/$> sudo ln -s /opt/enjarify/enjarify.sh /usr/bin/enjarify
# and finally jd-gui$> cd /opt$> sudo git clone https://github.com/java-decompiler/jd-gui.git$> cd jd-gui/$> sudo ./gradlew build
# I made an alias to kick of the jd-gui with short commandline rather than long java -jar blahblahblah :)$> echo "jd-gui='java -jar /opt/jd-gui/build/launch4j/lib/jd-gui-1.6.6.jar'" >> ~/.bashrc