download apktool1.5.1.tar.bz2 (7.9M) and dex2jar-0.0.9.12-a.zip(1.6M)
https://code.google.com/p/android-apktool/downloads/list
http://code.google.com/p/dex2jar/downloads/list
Please refer to
http://blog.youkuaiyun.com/sunboy_2050/article/details/6727581
Then write a bat to run
@echo OFF
set path=c:\jdk16\bin;%path%
set curr_path=D:\program\android_apktool
set outputpath=%curr_path%\output
set tmppath=%curr_path%\tmp
set apkfile1=%1%
set apkfile=%curr_path%\apks\%apkfile1%
echo apkfile=%apkfile%
mkdir %tmppath%
rmdir/q/s %tmppath%
mkdir %outputpath%
rmdir/q/s %outputpath%
unzip -q %apkfile% -d %tmppath%
call %curr_path%\tools\apktool\apktool d %apkfile% %outputpath%
cd %curr_path%\tools\dex2jar
call dex2jar.bat %tmppath%\classes.dex
xcopy %tmppath%\*.jar %outputpath%
cd %curr_path%
rmdir/q/s %tmppath%
rmdir/q/s output_%apkfile1%
rename output output_%apkfile1%
After you can get
classes_dex2jar.jar , it is java source code. ( it is class, you need use JD to decompile to java code)
lib\armeabi\*.so is C libarary.
AndroidManifest.xml is config of Android
Write a shellscript to many apk file
@echo off
rem run all the apk files
for /f %%G in ('dir/b apks\*.apk') do (
call tools\\run.bat %%G
)
rem run one task inly
rem call tools\\run.bat jiashao_android
pause
本文档提供了一种使用apktool和dex2jar工具反编译Android APK文件的方法,包括下载所需工具、设置环境变量及运行批处理脚本的具体步骤。通过这些步骤,可以将APK中的DEX文件转换为Java源代码,并获取AndroidManifest.xml等配置文件。
4640

被折叠的 条评论
为什么被折叠?



