pureapk (pyapk)
Pure Python engine for building, modifying, repacking, and signing Android APKs without Java, Android Studio, or SDK. Includes full Android 15 16KB ELF page alignment (tag 0xd935), v1/v2/v3 signatures, and multi-store packaging.
- 16KB Page Alignment for Android 15 (API 35+ Google Play compliance)
- Zero JVM, zero Android SDK/NDK, zero native tool requirements
- Multi-Store packager: APK, Google Play AAB, iOS IPA stub, Windows 11 MSIX
- In-place APK modification, wheel extraction, and release-ready signing
pip install pureapk
Show Code Example
from pureapk import APKBuilder, sign_apk, align_zip_entry
# Build APK in pure Python with 16KB page alignment
builder = APKBuilder("app.apk")
builder.add_file("AndroidManifest.xml", manifest_bytes)
builder.add_file("classes.dex", dex_bytes)
builder.build()
# Sign with APK Signature Scheme v1 + v2
sign_apk("app.apk", "key.pk8", "cert.x509.pem")