# 使用 Homebrew, chocolatey, apt, MacPorts, Nix, scoop 安装 apktool

查看 apktool 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:apktool
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apktool
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install apktool
```

  证据: MacPorts ports tree: java/apktool/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install apktool
```

  证据: Debian stable package indexes: apktool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#apktool
```

  证据: nixpkgs package indexes: pkgs/by-name/ap/apktool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Chocolatey (92%):

```sh
choco install apktool
```

  证据: Chocolatey community package catalog: apktool from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','another-redis-desktop-manager'

- Scoop (92%):

```sh
scoop install main/apktool
```

  证据: Scoop official bucket manifest trees: bucket/apktool.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:apktool
- **软件包管理器:** Homebrew
- **版本:** 3.0.3
- **来源摘要:** Tool for reverse engineering 3rd party, closed, binary Android apps
- **主页:** <https://apktool.org>
- **仓库:** <https://github.com/iBotPeaches/Apktool>
- **最后更新:** 2026-07-20T12:06:45Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- apktool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.0.3
## 项目历史与用法

Apktool is a long-running Java tool for decoding, modifying, and rebuilding Android APK files. It is one of the standard utilities in Android reverse engineering because it turns compiled resources, manifests, and smali code into a project-like tree that can be inspected and rebuilt.

### 项目历史

Apktool's current GitHub repository was created in March 2012, but the official release blog lists releases back to 0.9.0 and 1.0.0 in 2010. The README says the project is for reverse engineering third-party, closed, binary Android apps, especially decoding resources to near-original form and rebuilding after modifications.

The official site preserves a long release line from the 0.9 and 1.x era through 2.x and into 3.x. The 2.x line became the maintenance branch, while main became the 3.x branch. The project also moved its documentation site to Docusaurus-backed pages and keeps release notes on apktool.org.

Version 3.0.0 in 2026 was a major compatibility break. Official release notes describe dropping aapt1 and 32-bit platform support, modernizing resource parsing, changing output format details, replacing some old CLI names, and adopting a new default resource-resolution model. Version 3.0.2 followed as a security and performance patch.

### 采用历史

Apktool has broad package-manager adoption: the supplied metadata records Homebrew, Chocolatey, Debian, MacPorts, Nix, Scoop, and Ubuntu packages. The official site also links downloads, Maven artifacts, GitHub discussions, Stack Overflow, and IRC, reflecting a tool with both distro packaging and a long-lived user support footprint.

GitHub metadata showed nearly 25k stars and thousands of forks at research time. That scale is consistent with Apktool's role as a default dependency in mobile-security, app localization, Android modding, and APK compatibility workflows.

### 使用方式

The basic flow is apktool d file.apk to decode, edit the generated project-like tree, and apktool b folder to rebuild. Official docs explain why simply unzipping an APK leaves binary XML and compiled resource files that are not practical to edit directly.

The CLI exposes decode, build, install-framework, and clean-frameworks command families. Framework files can be stored or read from a user-specified frame path, but the official docs do not present that as a fixed config-file location, so no config-file-location is recorded here.

### 为什么软件包爱好者会关心

Apktool is package-nerd significant because it is both a package and a package unpacker: it lets users explode Android's signed ZIP-based application format into resources, smali, framework references, and rebuild metadata. That makes it the bridge between Android binary distribution and editable source-like trees.

Its long packaging history also makes it a compatibility benchmark. When Android resource formats, smali, aapt/aapt2, Java versions, or Linux distro policies change, Apktool's releases often encode the fallout for reverse-engineering workflows.

### 时间线

- 2010: Official release blog lists Apktool 0.9.x and 1.0.0 releases.
- 2012: Current GitHub repository was created.
- 2015: Official blog records Apktool 2.0.0 and a Google Code shutdown migration note.
- 2026: Apktool 3.0.0 became the major 3.x branch with CLI and resource-processing changes.
- 2026: Apktool 3.0.2 shipped as a patch release for a security regression and disassembly performance.

### Related projects

- Apktool works in the Android reverse-engineering ecosystem alongside smali/baksmali, aapt/aapt2, dex tooling, Android framework files, and APK signing/build tools.

### 来源

- <https://api.github.com/repos/iBotPeaches/Apktool>
- <https://api.github.com/repos/iBotPeaches/Apktool/releases>
- <https://apktool.org/blog>
- <https://apktool.org/docs/cli-parameters>
- <https://apktool.org/wiki/the-basics/intro>
- <https://github.com/iBotPeaches/Apktool#readme>
- source_facts.package-manager


## 安全说明

escape, surveillance, or offensive capability signal.

- **Geiger 风险:** red / 中
- escape, surveillance, or offensive capability signal

## 其他软件包管理器记录

- Debian apt - apktool - 2.7.0+dfsg-7: normalized package name match | Debian stable package indexes: apktool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for reverse engineering Android apk files | https://ibotpeaches.github.io/Apktool/
- Nix - apktool: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apktool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - apktool - 2.7.0+dfsg-7: normalized package name match | Ubuntu 24.04 LTS package indexes: apktool from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for reverse engineering Android apk files | https://ibotpeaches.github.io/Apktool/
- MacPorts - apktool: normalized package name match | MacPorts ports tree: java/apktool/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - apktool: normalized package name match | Chocolatey community package catalog: apktool from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','another-redis-desktop-manager'
- Scoop - main/apktool: normalized package name match | Scoop official bucket manifest trees: bucket/apktool.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/apktool.yml](https://github.com/mxcl/pkgdb/blob/main/combined/apktool.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
