Sign inSign up
apktool logo

ragedunicorn/apktool

By ragedunicorn

•Updated 18 days ago

Public repository for ragedunicorn docker apktool images

Image
Security
Developer tools
0

1.1K

ragedunicorn/apktool repository overview

⁠Apktool Alpine Docker Image

Docker Apktool

A lightweight Apktool⁠ installation on Alpine Linux with an Eclipse Temurin 21 JRE, for decoding and rebuilding Android APKs.

⁠Quick Start

# Pull latest version
docker pull ragedunicorn/apktool:latest

# Or pull specific version (see the Tags tab for the available versions)
docker pull ragedunicorn/apktool:<apktool-version>-alpine<alpine-version>-<build>

# Decode an APK
docker run -v $(pwd):/workspace ragedunicorn/apktool:latest d app.apk -o app

On Windows, use the PowerShell form - ${PWD} with braces and the colon inside the quotes (without braces PowerShell parses $PWD: as a scope-qualified variable, as in $env:PATH, and rejects the argument):

# Decode an APK
docker run -v "${PWD}:/workspace" ragedunicorn/apktool:latest d app.apk -o app

⁠Features

  • 🚀 Small footprint: Alpine Linux base with a JRE-only Temurin 21 runtime
  • 🔐 Verified artifact: Apktool jar pinned by version and SHA-256 checksum at build time
  • 🛠️ Complete tooling: gcompat glibc shim included so Apktool's bundled aapt2 works for rebuilds (amd64)
  • 🔒 Non-root: Runs as the unprivileged apktool user by default
  • 🏗️ Multi-platform: linux/amd64 (decode + rebuild) and linux/arm64 (decode only — upstream ships no arm64 aapt2)

⁠Usage Examples

⁠Decode an APK
docker run -v $(pwd):/workspace ragedunicorn/apktool:latest \
  d app.apk -o app

PowerShell:

docker run -v "${PWD}:/workspace" ragedunicorn/apktool:latest d app.apk -o app
⁠Decode resources only (skip disassembling code)
docker run -v $(pwd):/workspace ragedunicorn/apktool:latest \
  d -s app.apk -o app

PowerShell:

docker run -v "${PWD}:/workspace" ragedunicorn/apktool:latest d -s app.apk -o app
⁠Rebuild a decoded project
docker run -v $(pwd):/workspace ragedunicorn/apktool:latest \
  b app -o app-rebuilt.apk

PowerShell:

docker run -v "${PWD}:/workspace" ragedunicorn/apktool:latest b app -o app-rebuilt.apk

The rebuilt APK is unsigned — sign it with apksigner or a similar tool before installing it on a device.

⁠Raise the JVM heap for large APKs
docker run -e APKTOOL_JAVA_OPTS="-Xmx4G -Dfile.encoding=utf-8" \
  -v $(pwd):/workspace ragedunicorn/apktool:latest d big-app.apk -o big-app

PowerShell (a backtick continues the line):

docker run -e APKTOOL_JAVA_OPTS="-Xmx4G -Dfile.encoding=utf-8" `
  -v "${PWD}:/workspace" ragedunicorn/apktool:latest d big-app.apk -o big-app

⁠Tags

This image uses semantic versioning that includes all component versions:

Format: {apktool_version}-alpine{alpine_version}-{build_number}

⁠Version Examples

X.Y.Z is the Apktool version, A.B.C the Alpine version:

  • X.Y.Z-alpineA.B.C-1 - Apktool X.Y.Z on Alpine A.B.C, first build
  • X.Y.Z-alpineA.B.C-2 - Rebuild of same versions (bug fixes, security patches)
  • X.Y.Z-alpineA.B.D-1 - Alpine Linux patch update
  • X.Y+1.0-alpineA.B.C-1 - Apktool version update
  • X.Y.Z - Most recent build of Apktool X.Y.Z
  • latest - Most recent stable release

The available versions are listed in the Tags tab⁠.

When updates are available through automated dependency management, new releases are created with appropriate version tags.

⁠License

MIT License - See GitHub repository⁠ for details. Apktool itself is licensed under the Apache License 2.0.

Tag summary

Content type

Image

Digest

sha256:6846fb8ab…

Size

69 MB

Last updated

18 days ago

docker pull ragedunicorn/apktool