我从网站上下载了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$
Run Code Online (Sandbox Code Playgroud)
您可以粗体看到我输入的内容。在第2和第3个粗体语句中,我做了两种方式,因为我发现信息之一是在Windows上可以运行,而另一种在mac上可以运行,并且由于mac不能运行,我想尝试在Windows上查看会说什么。这两个文件与apk文件(metronome.apk)都位于同一目录中。有人知道为什么这不起作用吗?我能做些什么来解决呢?
谢谢。罗伯特
尝试 java -jar apktool.jar d metronome.apk
详细地说,apktool.jar本身不是命令。这是一个Java Jar文件,可以由Java运行时执行。
| 归档时间: |
|
| 查看次数: |
3517 次 |
| 最近记录: |