【问题标题】:Apktools on MacMac 上的 Apktools
【发布时间】:2017-08-08 22:33:19
【问题描述】:

我从网站上下载了 Apktools,得到了 2 个文件:Apktool.txt 和 Apktool_2.2.2。我按照说明将 Apktool_2.2.2 重命名为 Apktools.jar。然后我去了终端,这就是我所做的:

Last login: Fri Mar 17 12:08:55 on ttys000
Roberts-MBP:~ Robert$ cd documents
Roberts-MBP:documents Robert$ cd metronomeapp/apktool
Roberts-MBP:apktool Robert$ **java -jar apktool.jar**
Apktool v2.2.2 - a tool for reengineering Android apk files
with smali v2.1.3 and baksmali v2.1.3
Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
Updated by Connor Tumbleson <connor.tumbleson@gmail.com>

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

For additional info, see: http://ibotpeaches.github.io/Apktool/ 
For smali/baksmali info, see: https://github.com/JesusFreke/smali
Roberts-MBP:apktool Robert$ **./apktool d metronome.apk**
-bash: ./apktool: No such file or directory
Roberts-MBP:apktool Robert$ **apktool d metronome.apk**
-bash: apktool: command not found
Roberts-MBP:apktool Robert$ 

你可以看到我输入的粗体字。在第 2 和第 3 个粗体声明中,我采用了两种方式,因为我发现其中一个在 windows 上工作,一个在 mac 上工作,并且由于 mac 一个不工作,我想尝试 windows 一个,看看它会说什么.这两个文件与 apk 文件 (metronome.apk) 位于同一目录中 有谁知道为什么这不起作用以及我可以做些什么来解决它?

谢谢。 罗伯特

【问题讨论】:

  • 试试java -jar apktool.jar d metronome.apk
  • 太棒了!这行得通。
  • 如果您愿意,请标记答案。 SO 对回答问题的 cmets 皱眉。

标签: macos apk apktool


【解决方案1】:

试试java -jar apktool.jar d metronome.apk

详细地说,apktool.jar 本身并不是一个命令。它是一个java Jar文件,可以被Java运行时执行。

【讨论】:

  • 错误:无法访问 jarfile apktool.jar
猜你喜欢
  • 2015-07-15
  • 1970-01-01
  • 2019-09-23
  • 2014-05-13
  • 2014-11-21
  • 2012-08-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多