下载两个文件
解压这两个文件

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的更多相关文章

  1. Ubuntu 18.04上安装 phpMyAdmin

    我们将安装 phpMyAdmin 在 Ubuntu18.04 上配合 Apache 一起工作. 在安装 phpMyAdmin 之前需要已经安装了LAMP栈并提供了web页面. 如果没有安装可以参照 U ...

  2. Ubuntu 18.04上安装Apache, MySQL, PHP, LAMP

    1.安装 Apache $ sudo apt update && sudo apt install apache2 中间会遇到停顿询问是否继续, 输入 y 然后 回车. 2.测试 Ap ...

  3. 翻译:在Ubuntu 14.04上安装FTP服务器的方法

    说明: 1.原文地址:http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/ 2.今天要做一个网络日志的迁移程序,搬 ...

  4. 如何在Ubuntu 18.04上安装Pip

    一.简介: Pip是一个软件包管理系统,它简化了用Python编写的软件包(如Python包索引(PyPI)中的软件包)的安装和管理. 在Ubuntu 18.04上缺省没有安装Pip,但安装非常简单. ...

  5. Ubuntu 12.04上安装R语言

    Ubuntu 12.04上安装R语言 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ R的安装 sudo gedit /etc/apt/sources. ...

  6. Ubuntu 12.04上安装HBase并运行

    Ubuntu 12.04上安装HBase并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 一.HBase的安装 在官网上下载HBase-1.1.2 ...

  7. Ubuntu 12.04上安装MySQL并运行

    Ubuntu 12.04上安装MySQL并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 安装MySQL数据库 sudo apt-get upda ...

  8. Ubuntu 12.04上安装Hadoop并运行

    Ubuntu 12.04上安装Hadoop并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 在官网上下载好四个文件 在Ubuntu的/home/w ...

  9. Ubuntu 12.04上安装 MongoDB并运行

    Ubuntu 12.04上安装 MongoDB并运行 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 在Terminal输入 sudo apt-key ...

  10. 如何在Ubuntu 18.04上安装Django

    Django是一个免费的开源高级Python Web框架,旨在帮助开发人员构建安全,可扩展和可维护的Web应用程序. 根据您的需要,有不同的方法来安装Django.它可以使用pip在系统范围内安装或在 ...

随机推荐

  1. Netsharp快速入门(之6) 基础档案(创建导航菜单)

    作者:秋时 杨昶   时间:2014-02-15  转载须说明出处 1.1     创建导航菜单 1.在Demo节点下,录入路径名称,并在下方录入两个导航页签名 2.建立分类,只要填路径名 3.双击基 ...

  2. spring--注入类型--构造方法(不常用)

    3.3.1.1. Constructor Injection Constructor-based DI is effected by invoking a constructor with a num ...

  3. [转载]Extjs中的dom,Ext.Element和Ext.Component对象的关系

    原文地址:http://www.cnblogs.com/lwzz/archive/2011/01/30/1948106.html   Ext.Element对象是对dom对象的封装,目的是为了跨平台以 ...

  4. shiro中unauthorizedUrl不起作用

    解决方法: 在shiro配置文件中添加(异常全路径做key,错误页面做value) <bean class="org.springframework.web.servlet.handl ...

  5. LCA 笔记

    简述这几天的LCA 心得: LCA有两种做法:离线 or 在线 先学的离线: 原理博客很多. 我写得两道题,已经模板. HDU:http://acm.hdu.edu.cn/showproblem.ph ...

  6. Codeforces Round #283 (Div. 2)

    A:暴力弄就好,怎么方便怎么来. B:我们知道最多加10次, 然后每次加1后我们求能移动的最小值,大概O(N)的效率. #include<bits/stdc++.h> using name ...

  7. Codeforces Round #268 (Div. 2)

    补题解: E:只会第四种解法:也只看懂了这一种. PS:F[X+10^18]=F[X]+1;F[X]表示X的数字之和; 假设X,F[10^18+X]+F[10^18+X-1]+......F[10^1 ...

  8. 关于java调用linux shell 的问题

    问题的提出: shell脚本要做离线的数据处理任务 java调用脚本,将这种处理任务封装成webservice 特点: shell处理单个时间长 每次要处理文件量大 这里目前只做调用分析: 原来的: ...

  9. HDOJ 3486 Interviewe

    人生中第一次写RMQ....一看就知道 RMQ+2分但是题目文不对题....不知道到底在问什么东西....各种WA,TLE,,RE...后就过了果然无论错成什么样都可以过的,就是 上层的样例 啊  I ...

  10. sql盲注及其相关方法

    Sql注入过程数据(后台数据不能回显到页面)不回显采用方法 1:构造逻辑判断 ▲left(database(),1)>’s’             //left()函数 ▲and ascii( ...