【玩转Ubuntu】09. Ubuntu上安装apktool
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/下载$ ls
apktool1.5.2.tar.bz2 apktool-install-linux-r05-ibot.tar.bz2 book.pdf spark_2.4_h5.apk
# 解压bz2文件的方法1,先使用bunzip2转成tar文件,再使用tar xvf 进行解压
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/下载$ bunzip2 apktool1.5.2.tar.bz2
bunzip2: apktool1.5.2.tar.bz2: trailing garbage after EOF ignored
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/下载$ ls
apktool1.5.2.tar apktool-install-linux-r05-ibot.tar.bz2 book.pdf spark_2.4_h5.apk
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/下载$ tar xvf apktool1.5.2.tar
apktool1.5.2/
apktool1.5.2/apktool.jar
# 解压bz2文件的方法2,直接解压:tar jxvf 文件.bz2
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/下载$ tar jxvf apktool-install-linux-r05-ibot.tar.bz2
apktool-install-linux-r05-ibot/aapt
bzip2: (stdin): trailing garbage after EOF ignored
apktool-install-linux-r05-ibot/
apktool-install-linux-r05-ibot/apktool
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/下载$ ls -al
总用量 11740
drwxr-xr-x 4 bixiaopeng bixiaopeng 4096 10月 12 10:42 .
drwxr-xr-x 35 bixiaopeng bixiaopeng 4096 10月 12 10:38 ..
drwxrwxr-x 2 bixiaopeng bixiaopeng 4096 2月 3 2013 apktool1.5.2
-rw------- 1 bixiaopeng bixiaopeng 2658304 10月 12 10:37 apktool1.5.2.tar
drwxrwxr-x 2 bixiaopeng bixiaopeng 4096 12月 23 2012 apktool-install-linux-r05-ibot
-rw-rw-r-- 1 bixiaopeng bixiaopeng 419840 10月 12 10:37 apktool-install-linux-r05-ibot.tar.bz2
-rw-rw-r-- 1 bixiaopeng bixiaopeng 943231 10月 12 09:13 book.pdf
-rw-rw-r-- 1 bixiaopeng bixiaopeng 7963744 10月 11 15:21 spark_2.4_h5.apk
#将解压后得到的三个文件apktool.jar /aapt /apktool copy 到 /usr/local/bin/目录下
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/下载/apktool-install-linux-r05-ibot$ cd /usr/local/bin/
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:/usr/local/bin$ ls -al
总用量 3704
drwxr-xr-x 2 root root 4096 10月 12 10:51 .
drwxr-xr-x 10 root root 4096 4月 25 01:11 ..
-rwxr-x--- 1 root root 1119899 10月 12 10:51 aapt
-rwxr-xr-x 1 root root 2320 10月 12 10:51 apktool
-rw-r--r-- 1 root root 2655843 10月 12 10:50 apktool.jar
#下面就可以直接使用apktool了,先查看一下帮助文件
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~$ apktool
Apktool v1.5.2 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>
with smali v1.4.1, and baksmali v1.4.1
Updated by @iBotPeaches <connor.tumbleson@gmail.com>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...] COMMANDs are: d[ecode] [OPTS] <file.apk> [<dir>]
Decode <file.apk> to <dir>. 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.
-b, --no-debug-info
Baksmali -- don't write out debug info (.local, .param, .line, etc.)
-f, --force
Force delete destination directory.
-t <tag>, --frame-tag <tag>
Try to use framework files tagged by <tag>.
--frame-path <dir>
Use the specified directory for framework files
--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] [<app_path>] [<out_file>]
Build an apk from already decoded application located in <app_path>. It will automatically detect, whether files was changed and perform
needed steps only. If you omit <app_path> then current directory will be used.
If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
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.
-a, --aapt
Loads aapt from specified location. if|install-framework <framework.apk> [<tag>] --frame-path [<location>]
Install framework file to your system. For additional info, see: http://code.google.com/p/android-apktool/
For smali/baksmali info, see: http://code.google.com/p/smali/
至于如何使用apktool,请参考我的另一篇博客http://blog.csdn.net/wirelessqa/article/details/8997168
【玩转Ubuntu】09. Ubuntu上安装apktool的更多相关文章
- Ubuntu 18.04上安装 phpMyAdmin
我们将安装 phpMyAdmin 在 Ubuntu18.04 上配合 Apache 一起工作. 在安装 phpMyAdmin 之前需要已经安装了LAMP栈并提供了web页面. 如果没有安装可以参照 U ...
- Ubuntu 18.04上安装Apache, MySQL, PHP, LAMP
1.安装 Apache $ sudo apt update && sudo apt install apache2 中间会遇到停顿询问是否继续, 输入 y 然后 回车. 2.测试 Ap ...
- 翻译:在Ubuntu 14.04上安装FTP服务器的方法
说明: 1.原文地址:http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/ 2.今天要做一个网络日志的迁移程序,搬 ...
- 如何在Ubuntu 18.04上安装Pip
一.简介: Pip是一个软件包管理系统,它简化了用Python编写的软件包(如Python包索引(PyPI)中的软件包)的安装和管理. 在Ubuntu 18.04上缺省没有安装Pip,但安装非常简单. ...
- Ubuntu 12.04上安装R语言
Ubuntu 12.04上安装R语言 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ R的安装 sudo gedit /etc/apt/sources. ...
- Ubuntu 12.04上安装HBase并运行
Ubuntu 12.04上安装HBase并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 一.HBase的安装 在官网上下载HBase-1.1.2 ...
- Ubuntu 12.04上安装MySQL并运行
Ubuntu 12.04上安装MySQL并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 安装MySQL数据库 sudo apt-get upda ...
- Ubuntu 12.04上安装Hadoop并运行
Ubuntu 12.04上安装Hadoop并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 在官网上下载好四个文件 在Ubuntu的/home/w ...
- Ubuntu 12.04上安装 MongoDB并运行
Ubuntu 12.04上安装 MongoDB并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 在Terminal输入 sudo apt-key ...
- 如何在Ubuntu 18.04上安装Django
Django是一个免费的开源高级Python Web框架,旨在帮助开发人员构建安全,可扩展和可维护的Web应用程序. 根据您的需要,有不同的方法来安装Django.它可以使用pip在系统范围内安装或在 ...
随机推荐
- Javascript对象的创建模式 -- 深入了解Javascript
/* 一.模式1:命名空间(namespace) 优点:减少全局命名所需的数量,避免命名冲突或过度 */ // 更简洁的方式 var MYAPP = MYAPP || {}; //定义通用方法 MYA ...
- python-转换成exe文件(py2exe)
一.简介: py2exe是一个将python脚本转换成windows上的可独立执行的可执行程序(*.exe)的工具,这样,你就可以不用装python而在windows系统上运行这个可执行程序.py2e ...
- 【BZOJ】【1037】【ZJOI2008】生日聚会party
DP orz iwtwiioi 这种题居然是DP……原来统计方案数是可以用动态规划来做的啊= =用一些变量来维护一些信息,保证方案可行性/合法性 人太弱实在是有些忧伤…… /************* ...
- 日志:slf4j+log4j+maven配置
代码的日志输出,前前后后折腾了我好几次. 本着会用,快速配置的原则,还是将配置过程记录下来,以便复用. 参考:http://blog.csdn.net/anialy/article/details/8 ...
- 引擎设计跟踪(九.14.2b) 骨骼动画基本完成
首先贴一个介绍max的sdk和骨骼动画的文章, 虽然很早的文章, 但是很有用, 感谢前辈们的贡献: 3Ds MAX骨骼动画导出插件编写 1.Dual Quaternion 关于Dual Quatern ...
- IE如何兼容placeholder属性
在前端开发中,经常需要为input设置placeholder属性,但是placeholder是HTML5新属性,在IE10以下不兼容,那么如何完美兼容呢? 网上搜索了一下,其实也挺简单的,可以采用以下 ...
- ios 聊天demo 和nsoperationdemo
http://blog.csdn.net/zhibudefeng/article/details/7991649 http://blog.csdn.net/kangx6/article/details ...
- Mac OS 上设置 JAVA_HOME
Mac OS 上设置 JAVA_HOME 原文链接:http://han.guokai.blog.163.com/blog/static/136718271201301183938165/ 由于需要, ...
- 解决Flash和html在多标签浏览器中互访问题
在Flash播放器运行时,将不同来源的资源划分到独立的沙箱(sandbox)内,不同沙箱之间不能 彼此操作数据(除非目标沙箱做过一些设置,授权其他沙箱可访问),这就是Flash的跨沙箱问题.当Flas ...
- RDLC报表BC4000错误
如果RDLC报表报 BC4000错误,那是因为在矩阵外上面添加了文本框的缘故,导致系统不能读到RDLC报表表体,告诉你报表没有定义: 解决办法: 把表头文字放入矩阵中.