# Apktool

> Apktool is an open-source agent skill for security. Lets your agent decode, inspect, patch and rebuild Android APK files with Apktool. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/apktool
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** apktool
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives the agent a working method for reverse engineering Android app packages. It covers decoding binary XML resources such as the manifest and layouts, disassembling classes.dex into Smali, editing resources or Smali instructions, and rebuilding the package. The guidance is framed around third-party and closed binaries, with an owner-oriented security audit checklist covering exported components, backup settings, hardcoded secrets, network security configuration and dynamic class loading.

The workflow runs through the apktool command line, either as apktool.jar invoked with Java or as a wrapper. It also walks through installing OEM framework files for decoding vendor resources, rebuilding with aapt2, and then aligning with zipalign and signing with apksigner, including generating a debug keystore with keytool. Troubleshooting notes cover duplicate resource errors, multidex folders and resource ID conflicts.

It expects a Java runtime of version 11 or higher and the Android SDK build-tools for zipalign and apksigner. The skill itself is a SKILL.md with reference material and no bundled scripts.

## When your agent uses it

> Android application reverse engineering, resource decoding, Smali bytecode disassembly, resource modification, and rebuild toolchain. Decodes binary XML resources (resources.arsc, AndroidManifest.xml, layouts, drawables) to human-readable form, disassembles classes.dex into Smali bytecode for step-by-step logic inspection, enables asset and resource patching, rebuilds modified packages, and integrates with zipalign and apksigner for signature re-alignment. Use when decompiling Android APKs, analyzing Smali code, modifying app manifests or assets, or rebuilding and testing modified Android binaries.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/apktool)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/apktool)

## Features

- **Resource decoding:** Turns binary XML and resources.arsc into readable files, including the manifest, layouts and drawables.
- **Smali disassembly:** Splits classes.dex into Smali files that mirror the package hierarchy, including multidex folders.
- **Smali and resource patching:** Describes editing Smali instructions, manifest flags and assets before a rebuild.
- **Rebuild and signing pipeline:** Covers repackaging with apktool, zipalign alignment, apksigner signing and verification.
- **OEM framework installation:** Explains installing vendor framework files so proprietary resources can be decoded.
- **Owner security audit checklist:** Lists checks for exported components, backup flags, hardcoded secrets and dynamic class loading.

## Good for

- Decode an APK and summarize its activities, permissions and intent filters
- Find hardcoded API keys or tokens in an app's resources and assets
- Enable debugging or cleartext traffic in a manifest and rebuild the app
- Trace a method's logic by reading its Smali bytecode
- Rebuild and sign a modified APK for testing on an emulator

## Install

### Claude Code

This skill ships in the `rea-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/apktool`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/apktool &&
cp -R "$tmp/.agents/skills/apktool" ~/.claude/skills/apktool &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/apktool` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/apktool` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/apktool &&
cp -R "$tmp/.agents/skills/apktool" ~/.agents/skills/apktool &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/apktool` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/apktool` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/apktool &&
cp -R "$tmp/.agents/skills/apktool" ~/.cursor/skills/apktool &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/apktool` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/apktool
```

Or copy the folder to `~/.gemini/skills/apktool` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/apktool`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/apktool &&
cp -R "$tmp/.agents/skills/apktool" ~/.copilot/skills/apktool &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/apktool` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/apktool` into your agent's skills folder as `apktool`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the agent need installed to use Apktool?

A Java runtime of version 11 or higher, the Android SDK build-tools for zipalign and apksigner, and apktool.jar on the PATH or invoked directly with Java.

### Does Apktool modify apps automatically?

No. It describes decoding, patching and rebuilding steps that the agent carries out on files you provide, using the apktool commands shown in the skill.

### Can Apktool decode vendor-specific apps?

It explains how to install OEM framework files, such as Samsung, HTC or Xiaomi frameworks, so proprietary resources can be decoded.

### Does the skill include scripts?

No. The folder contains a SKILL.md and one reference file with no bundled scripts.

### How do I install Apktool in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/apktool to use it in all your projects, or to .claude/skills/apktool in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### Does Apktool run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Apktool?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Apktool?

The closest alternatives to Apktool are Reverse engineer anything, Firebase apk scanner, Android install, Android debug and Android SDK knowledge patch.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Reverse engineer anything](https://ai-powered.com/skills/reverse-engineer-anything): Reverse engineer anything is an open-source agent skill for security.
- [Firebase apk scanner](https://ai-powered.com/skills/firebase-apk-scanner): Firebase apk scanner is an open-source agent skill for security.
- [Android install](https://ai-powered.com/skills/android-install): Android install is an open-source agent skill for developer tools.
- [Android debug](https://ai-powered.com/skills/android-debug): Android debug is an open-source agent skill for developer tools.
- [Android SDK knowledge patch](https://ai-powered.com/skills/android-sdk-knowledge-patch): Android SDK knowledge patch is an open-source agent skill for developer tools.
- [Android](https://ai-powered.com/skills/android-amit-nayar): Android is an open-source agent skill for developer tools.
- [Android test](https://ai-powered.com/skills/android-test): Android test is an open-source agent skill for developer tools.
- [Skill scanner](https://ai-powered.com/skills/skill-scanner): Skill scanner is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/apktool
