Skip to main content

getAPK

Pull an installed app off your Android phone as an .apk (or an .apks bundle for split apps) — in one command.

getapk talks to your device through adb, finds where an app is installed, copies every APK file it consists of, checks each one is a real APK, and writes a single ready-to-analyse file with its SHA-256. It is the Android counterpart of getIPA.

A tool by rudranetra.com · website: rudranetra.com/tools/getapk · more tools at rudranetra.com/tools

Why not just adb pull?

Most Play Store apps are installed as split APKs: base.apk plus one file per CPU architecture, language and screen density. Pulling only base.apk gives you something that will not install and is missing native libraries and resources. getapk pulls them all and bundles them, base first, into one .apks file that AppSleuth and bundletool-style tools understand.

Install

pipx install getapk

Requires Python 3.9+ and Android platform-tools (adb) on your PATH. Works on macOS, Linux and Windows. No Python dependencies.

On the phone: enable Developer options → USB debugging, connect, and accept the authorisation prompt. No root needed.

Use

getapk --list                         # user-installed apps with versions and installer
getapk --list -m bank                 # filter by text
getapk com.example.app -o ./apps      # one app
getapk com.a.app com.b.app            # several
getapk --all -o ./apps                # every user-installed app
getapk --all --include-system         # include preinstalled apps
getapk -s SERIAL com.example.app      # pick a device when several are connected

Single-APK apps are written as <package>-<version>.apk; split apps as <package>-<version>.apks. Use --format apks to always bundle. Then:

appsleuth scan com.example.app-1.2.3.apks

Security

  • Package names, device serials and every path reported by the device are validated before use; nothing is passed through a shell on your computer, and the one command run on the phone only ever receives a validated package name.
  • Output file names are sanitised, so a hostile device cannot write outside the output directory.
  • Each pulled file must be a valid APK (a zip containing AndroidManifest.xml).
  • Files are written to a temporary directory and moved into place only when complete.

Only use getapk on devices and apps you own or are authorised to analyse. Apps may be copyrighted; extraction is for your own security analysis.

Banner and colour

On a terminal each run starts with a short logo, the version and links. It goes to stderr, so piped output and --json stay clean. Hide it with --no-banner or NO_BANNER=1; NO_COLOR=1 turns colour off and NO_ANIM=1 skips the animation.

Tests

python -m unittest discover -s tests -t .

MIT licence · © Rudranetra India Private Limited

Metadata

Release files for getapk 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getapk 1.0.2
File Size Uploaded Provenance Actions
getapk-1.0.2.tar.gz 10.3 kB With provenance Details for getapk-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for getapk 1.0.2
File Interpreter ABI Platform Actions
getapk-1.0.2-py3-none-any.whl Python 3 none any Details for getapk-1.0.2-py3-none-any.whl

Total release size: 20.7 kB

Release files / getapk-1.0.2.tar.gz

Download URL getapk-1.0.2.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1b143913c92c360c1df144a3b9590a546e8d220e66e04712ce198ce01f15db2f
BLAKE2b-256 checksum
How to use checksums
3cebce2d170edaaa2d63c5d1ad0c0d90e0c65f3221739702213b17a61d465945
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / getapk-1.0.2-py3-none-any.whl

Download URL getapk-1.0.2-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11bc9a4f856a7584954643924f4b032a099d33078d41016ca24e5e0a975ebecd
BLAKE2b-256 checksum
How to use checksums
39d5b9356c6b2dc4c2943bb6d82f2110a57ce3c3ffbed17b1a199cb99d6daf3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for getapk 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for getapk-1.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page