Macos Mac上的Apktools

Macos Mac上的Apktools,macos,apk,apktool,Macos,Apk,Apktool,我从网站上下载了Apktools,得到了两个文件: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:

我从网站上下载了Apktools,得到了两个文件: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$ 
上次登录:ttys000上的3月17日星期五12:08:55
Roberts MBP:~Robert$cd文档
Roberts MBP:文件Robert$cd metronomeapp/apktool
Roberts MBP:apktool Robert$**java-jar apktool.jar**
Apktool v2.2.2-用于重新设计Android apk文件的工具
使用smali v2.1.3和baksmali v2.1.3
版权所有2014 Ryszard Wiśniewski
康纳·塔布森更新
用法:apktool
-高级,--高级打印高级信息。
-version,--version打印版本,然后退出
用法:apktool if |安装框架[选项]
-p、 --框架路径将框架文件存储到。
-t、 --使用标签标记框架。
用法:apktool d[ecode][options]
-f、 --强制删除目标目录。
-o、 --输出要写入的文件夹的名称。默认值为apk.out
-p、 --框架路径使用位于中的框架文件。
-r、 --no res不解码资源。
-s、 --无src不解码源。
-t、 --框架标记使用由标记的框架文件。
用法:apktool b[uild][options]
-f、 --强制检测所有跳过更改并生成所有文件。
-o、 --输出写入的apk的名称。默认值为dist/name.apk
-p、 --框架路径使用位于中的框架文件。
有关其他信息,请参阅:http://ibotpeaches.github.io/Apktool/ 
有关smali/baksmali信息,请参阅:https://github.com/JesusFreke/smali
Roberts MBP:apktool Robert$**./apktool d metronome.apk**
-bash:./apktool:没有这样的文件或目录
Roberts MBP:apktool Robert$**apktool d metronome.apk**
-bash:apktool:未找到命令
Roberts MBP:apktool Robert$
你可以在粗体中看到我输入的内容。在第二个和第三个粗体声明中,我采用了两种方式,因为我发现其中一个可以在windows上运行,另一个可以在mac上运行。由于mac一个不能运行,我想试试windows一个,看看它会说些什么。这两个文件与apk文件(metronome.apk)在同一个目录中。有人知道为什么这不起作用,以及我能做些什么来解决它吗

谢谢。
Robert

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


更详细地说,apktool.jar本身不是一个命令。这是一个java Jar文件,可以由java运行时执行。

试试
java-Jar apktool.Jar d metronome.apk
Awesome!这很有效。如果你愿意,标记答案。所以不赞成回答问题的评论。错误:无法访问jarfile apktool.jar