ApkTool反汇编工具的介绍和安装

简介: Android apktool是一个用来处理APK文件的工具,可以对APK进行反编译生成程序的源代码和图片、XML配置、语言资源等文件,也可以添加新的功能到APK文件中。用该工具来汉化Android软件然后重新打包发布是相当简单的。

1、安装
   1).首先安装需要JAVA环境,先下载JDK/JRE,点击下载,已经有JAVA环境的可跳过此步

   2).到code.google上下载apktool.jar以及相关文件:http://code.google.com/p/android-apktool/downloads/list
点击下载apktool1.4.3.tar.bz2  和 apktool-install-windows-r04-brut1.tar.bz2

   3).解压apktool-install-windows-r04-brut1.tar.bz2到任意文件夹,然后解压apktool1.4.3.tar.bz2,把apktool.jar拷贝至apktool-install-windows-r04-brut1.tar.bz2解压所在的文件夹下,此时文件下有aapt.exe、apktool.bat及apktool.jar三个应用。

   4).点击开始菜单,运行,输入CMD回车,用cd命令转到刚刚解压的D:\My Documents\Desktop\apktool-install-windows-r04-brut1所在的文件夹,输入apktool,出现如下命令即说明安装成功(以下信息,即apktool使用命令)。
COMMANDs are:  
 
    d[ecode] [OPTS] [ ]  
        Decode to .  
 
        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 , --frame-tag  
            Try to use framework files tagged by .  
        --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] [] []  
        Build an apk from already decoded application located in .  
 
        It will automatically detect, whether files was changed and perform  
        needed steps only.  
 
        If you omit then current directory will be used.  
        If you omit then /dist/  
        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> []  
        Install framework file to your system.  
2、使用

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值