Background :google android SDK platform provide emulator & ADB utility tools,it's very useful to
decompile the apk file to dump byte readable file.
Summary:
if you are ready for it, the sequences as following,
- create/launch emulator from command line
- launch the ADB utility toolfrom command line
- install apk file from local directory from command line
- list all system application apk file from command line
- dexdump selected.dex file from emulator
- pull dump file to local directory
Detail Section:
step 1: create your own emulator if you still not create one and then launch the emulator
launch the windows command line console, then chnage root directory to your android
SDK Platform/tools directory, for me
C:/>cd /d D:/android-sdk-windows/tools
D:/android-sdk-windows/tools>android create -avd -n my_android1.5 -t 2
D:/android-sdk-windows/tools>emulator -avd my_android1.5
step 2: after emulator launched,
go to windowns console to start ADB Shell utility tool
make sure your
emulator is running before you start ADB. if it's successful
D:/android-sdk-windows/tools>adb shell
# cd /system/app
cd /system/app
# ls
ls
Mms.apk
ApplicationsProvider.apk
GlobalSearch.apk
Calculator.apk
SpareParts.apk
GestureBuilder.apk
Music.apk
SdkSetup.apk
PackageInstaller.apk
Fallback.apk
SettingsProvider.apk
DrmProvider.apk
Development.apk
TelephonyProvider.apk
PinyinIME.apk
HTMLViewer.apk
Settings.apk
NetSpeed.apk
if you want to see how many user applications have beeninstalled on your emulator, just
cd /data/app,and then ls
step 3: install your apk file using adb shell commands, if you still not install your application
on
emulator
D:/android-sdk-windows/tools>adb
install D:/android-sdk-windows/tools/a.apk
after install successfully, you will see your apk file using above command line
step 4: get the cached dex file from your emulator, we have to enter dalvik VM cache using command
# cd /data/dalvik-cache
#
ls
..........
data@app@a.apk@classes.dex
step 5: use dexdump file to generate the dump file then use pull command to copy to local directory
#dexdump
-d -f -h data@app@a.apk@classes.dex >> a.apk.dump
finally
you will get a bit-readable dump file, based on dalvik class format knowledge, the more you dig
the
more you
get. normally *.apk file is a .zip file, could be open by any winzip tool.
Reference: SDK platform documentation
分享到:
相关推荐
windows使用:将apk文件放到android-apk-decompile目录下然后apk文件拖拽到decompile.bat上 mac使用: 复制apk到android-apk-decompile目录 执行shell脚本 sh /x/android-apk-decompile/decompile.sh /x/android-...
Decompile_OS.zip
To decompile an Android .apk file, you must follow the next steps: Download the app from the Android Market to your smartphone and backup the app with a tool like Titanium to get the .apk file
decompile-apk 工具由一些脚本和不同的工具组成,它可以提供自动反编译功能,用于从显示在 GUI 上的 Android Apk 文件生成 Java 源代码和资源。 jd-gui 杰德 优雅的鲨鱼 字节码查看器 工具 : v2.4.1 : v2.1 : v1.6.6...
end systems, as they don’t realize how easy it is to decompile their Android code. In depth examination of the Java and Android class file structures Tools and techniques for decompiling Android ...
SWF Decompile Expert 3.0.2.88 ...软件介绍:SWF Decompile Expert是一款最快、最可靠的flash反编译和转换软件,你可以将编译好的图像保存成flash影片到您的硬盘上。 软件下载:http://www.newhua.com/soft/89199.htm
Remove framework file $HOME/apktool/framework/1.apk due to internal API update (Android Marshmallow) v1.5.x -> v2.0.0 Java 1.7 is required Update apktool to v2.0.0 aapt is now included inside ...
The authors describe how to write Android bots in JAVA and how to use reversing tools to decompile any Android application. They also cover the Android file system, including import directories and ...
onekey-decompile-apk-1.0.1.zip apk反编译工具包
版本 AndroidKiller_v1.3.1 onekey-decompile-apk-1.0.1
Easy way to decompile or compile and sign application , can be used for modification of Android applications Included all functions no need to install any extra apart from Java
【Free】Windows版Jar反编译工具jd-gui
android apk反编译所需要的3个工具:dex2jar,jdgui,apktool。 反编译步骤: http://blog.sina.com.cn/s/blog_7a9ade2c0100yfud.html
2. 将apk文件放到onekey-decompile-apk目录下 3. 将apk文件拖拽到_onekey-decompile-apk.bat上 4. 执行完成后 会在onekey-decompile-apk目录下生成和apk同名的目录(放置了apktools反编译出来的东西) 会在onekey-...
该工具包包含解压apk命令,dex2jar工具以及一个jd-gui工具,方便大家解压apk文件查看包含class文件源码。 解压后包含内容如下: drwx------@ 24 hangl staff 768B 1 19 19:51 dex2jar-2.0 drwxr-xr-x@ 6 hangl ...
Currently available as a BETA, JustDecompile builds on years of experience in code analysis and development productivity originally created for JustCode, Telerik's Visual Studio productivity add-in....
java -jar procyon-decompiler-0.5.36.jar xxx.class -o filename
onekey-decompile-apk, 这个是Android反编译工具,一步到位:从资源文件的反编译,dex到class的反编译以及class到java文件的反编译,欢迎下载使用。
DecompileApk - 一键反编译 APK,输出所有反编译后的代码、资源,使用方便