博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
apktool+dex2jar+jd_gui
阅读量:7215 次
发布时间:2019-06-29

本文共 1719 字,大约阅读时间需要 5 分钟。

apktool: 可以解析资源文件,比如布局文件xml等,方便查看。

使用方法:

 

Apktool v1.4.1 - a tool 
for reengineering Android apk 
files
Copyright 2010 Ryszard Wi?niewski <brut.alll@gmail.com>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Usage: apktool [-v|--verbose] 
COMMAND [...]
COMMANDs are:
    d[ecode] [OPTS] <file.apk> [<
dir>]
        Decode <file.apk> to <
dir>.
        OPTS:
        -s, --no-src
            
Do 
not decode sources.
        -r, --no-res
            
Do 
not decode resources.
        -d, --
debug
            Decode in 
debug 
mode. Check project page 
for more info.
        -f, --force
            Force delete destination directory.
        -t <tag>, --frame-tag <tag>
            Try to 
use framework 
files tagged by <tag>.
        --keep-broken-res
            
Use 
if there was an error and some resources were dropped, e.g.:
            "Invalid config flags detected. Dropping resources", but you
            want to decode them anyway, even with errors. You will have to
            fix them manually before building.
    b[uild] [OPTS] [<app_path>] [<out_file>]
        Build an apk from already decoded application located in <app_path>.
        It will automatically detect, whether 
files was changed and perform
        needed steps only.
        
If you omit <app_path> 
then current directory will be used.
        
If you omit <out_file> 
then <app_path>/dist/<name_of_original.apk>
        will be used.
        OPTS:
        -f, --force-all
            Skip changes detection and build all 
files.
        -d, --
debug
            Build in 
debug 
mode. Check project page 
for more info.
    
if|install-framework <framework.apk> [<tag>]
        Install framework file to your system.

dex2jar:可以将dex文件转换成jar文件

用法:

1.将apk文件后缀改成rar,然后解压,取出其中的class.dex,放到任意位置;

2.进入cmd,cd到dex2jar所在文件夹,输入命令dex2jar.bat %class.dex所在目录%\class.dex

3. 命令完成后在%class.dex所在目录%就会生成jar文件

 

jd_gui:能够将jar文件反编译成java代码

用法:

打开jd_gui,然后将jar包拖放到主界面,就可以看到源代码了。

转载于:https://www.cnblogs.com/MichaelGuan/archive/2011/10/25/2224578.html

你可能感兴趣的文章
C++ const 理解
查看>>
Linux进程管理 (7)实时调度
查看>>
基于鲁棒图进行概念架构设计
查看>>
Permission denied: exec of '/var/www/html/bugzilla/index.cgi' failed
查看>>
LESS CSS 框架简介与使用
查看>>
2014.09线上课堂报名帖:敏捷个人手机应用使用
查看>>
C# 重启exe
查看>>
Web 服务器 之 简易WWW服务器的架设
查看>>
一种电子病历系统软件框架思想
查看>>
轻松破解NewzCrawler时间限制
查看>>
gDebugger 3.1.1 原版+破解
查看>>
C++ 对象的内存布局(上)
查看>>
在Outlook中用VBA导出HTML格式邮件
查看>>
搭建一个免费的,无限流量的Blog----github Pages和Jekyll入门
查看>>
PHP——通过下拉列表选择时间(转)
查看>>
由1433端口入侵,浅谈sqlserver安全 (转)
查看>>
2个YUV视频拼接技术
查看>>
spring data实现自定义的repository实现类,实现跟jpa联通
查看>>
“惊群”,看看nginx是怎么解决它的
查看>>
Theano3.3-练习之逻辑回归
查看>>