`
piperzero
  • 浏览: 3456028 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

How to decompile Google Android .apk file as readable dump【原创】

 
阅读更多

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

分享到:
评论

相关推荐

    安卓apk反编译工具,一键反编译

    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

    Decompile_OS.zip

    baidu python 用户采集脚本

    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

    java查看函数源码-decompile-apk::fire:DecompileAPK(反编译APK)

    decompile-apk 工具由一些脚本和不同的工具组成,它可以提供自动反编译功能,用于从显示在 GUI 上的 Android Apk 文件生成 Java 源代码和资源。 jd-gui 杰德 优雅的鲨鱼 字节码查看器 工具 : v2.4.1 : v2.1 : v1.6.6...

    Decompiling Android

    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 3.0.2.88 ...软件介绍:SWF Decompile Expert是一款最快、最可靠的flash反编译和转换软件,你可以将编译好的图像保存成flash影片到您的硬盘上。 软件下载:http://www.newhua.com/soft/89199.htm

    apktool documentation

    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 ...

    Android Security- Attacks and Defenses

    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

    onekey-decompile-apk-1.0.1.zip apk反编译工具包

    AndroidKiller+onekey-decompile-apk

    版本 AndroidKiller_v1.3.1 onekey-decompile-apk-1.0.1

    Android APK decompile with complete package

    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

    jar-decompile-tool.zip

    【Free】Windows版Jar反编译工具jd-gui

    Android apk decompile(android反编译工具)

    android apk反编译所需要的3个工具:dex2jar,jdgui,apktool。 反编译步骤: http://blog.sina.com.cn/s/blog_7a9ade2c0100yfud.html

    反编译apk(一键反编译)

    2. 将apk文件放到onekey-decompile-apk目录下 3. 将apk文件拖拽到_onekey-decompile-apk.bat上 4. 执行完成后 会在onekey-decompile-apk目录下生成和apk同名的目录(放置了apktools反编译出来的东西) 会在onekey-...

    apkdecompile-tool.tar.gz

    该工具包包含解压apk命令,dex2jar工具以及一个jd-gui工具,方便大家解压apk文件查看包含class文件源码。 解压后包含内容如下: drwx------@ 24 hangl staff 768B 1 19 19:51 dex2jar-2.0 drwxr-xr-x@ 6 hangl ...

    Telerik Just Decompile 2012.2.905.0

    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....

    procyon-decompile-xxxxa.zip

    java -jar procyon-decompiler-0.5.36.jar xxx.class -o filename

    onekey-decompile-apk

    onekey-decompile-apk, 这个是Android反编译工具,一步到位:从资源文件的反编译,dex到class的反编译以及class到java文件的反编译,欢迎下载使用。

    Android-DecompileApk-一键反编译APK

    DecompileApk - 一键反编译 APK,输出所有反编译后的代码、资源,使用方便

Global site tag (gtag.js) - Google Analytics