APK Morph

Natural-language AI tool that analyzes APKs and generates intelligent patches from plain-English descriptions

$pip install -e .

Why APK Morph?

Power users and indie Android devs waste hours manually editing Smali to customize apps or remove bloat. Existing patchers are opaque and lack explanation. APK Morph fills the gap with a clean local-LLM interface that translates intent into precise, auditable changes while keeping everything offline.

Features

Everything you need, nothing you don't.

๐Ÿ“ค

Instant Ingestion

Upload any APK for automatic decompilation via Apktool and Androguard metadata extraction

๐Ÿ’ฌ

Natural Language

Type requests like 'disable all analytics' and the LLM builds a targeted modification plan

๐Ÿง 

Code Reasoning

Local Ollama model maps English intent to specific methods, classes and resource IDs

๐Ÿฉน

Precise Patches

Generates minimal Smali edits, XML tweaks and resource swaps while preserving signatures

๐Ÿ“‹

Before/After View

Side-by-side diff with plain-English rationale for every inserted or removed instruction

๐Ÿ“ฆ

One-click Build

Rebuilds, zipaligns and signs the new APK using test or user-provided keys

๐Ÿ“Š

Visual Dashboard

Streamlit UI shows component tree, patch history, confidence scores and export options

๐Ÿ”’

Fully Local

No data leaves your machine; works with any Ollama model and optional GPU acceleration

See it in action

From install to result in seconds.

APK Morph terminal demo

Get started

Three steps. Full docs live in the README.

Install
pip install -e .
Run
apkmorph ui
Test
pytest -q

Like it? Give it a โญ

Stars help other developers discover APK Morph. Issues and PRs are very welcome.

Star on GitHub