栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

移动安全工具-apktool

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

移动安全工具-apktool

1 需求

  • 获取smali/dex:默认获取smali,-s后,获取dex
    • -s,--no-src             Do not decode sources.
  • xx
    • -r,--no-res             Do not decode resources.
  • 输出到指定目录
    • -o,--output       The name of folder that gets written. Default is apk.out
  • 静默输出,即输出是不显示详细信息,该参数必须作为第一个参数
    • -q,–quiet
    • Apktool反编译APK时,有warning信息,Java调用Runtime.getRuntime.exec()方法生成子进程反编译APK时,getErrorStream()如果一直不被读取,会导致缓存信息存满,该子进程卡死
    • 解决方案一:使用-q参数,不输出详细信息
    • 解决方案二:
    • Apktool 命令大全,不全你来打我
    • Java process.waitFor() 卡死问题

官网地址:

https://github.com/iBotPeaches/Apktool


2 语法

D:>java -jar apktool.jar
Apktool v2.6.1 - a tool for reengineering Android apk files
with smali v2.5.2 and baksmali v2.5.2
Copyright 2010 Ryszard Wi?niewski 
Copyright 2010 Connor Tumbleson 

usage: apktool
 -advance,--advanced   prints advance information.
 -version,--version    prints the version then exits
usage: apktool if|install-framework [options] 
 -p,--frame-path    Stores framework files into .
 -t,--tag           Tag frameworks using .
usage: apktool d[ecode] [options] 
 -f,--force              Force delete destination directory.
 -o,--output        The name of folder that gets written. Default is apk.out
 -p,--frame-path    Uses framework files located in .
 -r,--no-res             Do not decode resources.
 -s,--no-src             Do not decode sources.
 -t,--frame-tag     Uses framework files tagged by .
usage: apktool b[uild] [options] 
 -f,--force-all          Skip changes detection and build all files.
 -o,--output        The name of apk that gets written. Default is dist/name.apk
 -p,--frame-path    Uses framework files located in .

For additional info, see: https://ibotpeaches.github.io/Apktool/
For smali/baksmali info, see: https://github.com/JesusFreke/smali

3 示例


4 参考资料

Apktool 命令大全,不全你来打我_北京朝阳区精神病院院长的博客-CSDN博客_apktool命令


5 异常

  • I:getInputStream()
  • W:getErrorStream()

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/992903.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号