# isaluki/uncreep architecture

> Architecture diagram of the GitHub repository isaluki/uncreep, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/isaluki/uncreep
- Repository: https://github.com/isaluki/uncreep

## Overview

uncreep is an AI-agent toolkit for analyzing Android APKs, letting the user choose privacy or dark-pattern changes, and producing a rebuilt APK. Its workflow runs from acquisition and signer identification through decompilation and analysis, user-approved recipe creation, patching, rebuilding, verification, and delivery. The README documents the overall stages and capabilities; sampled source confirms acquisition/identity, analysis tools, and patchkit internals. Several orchestration details are documented but their source was not sampled.

Main entry points: [`patchkit/build.py`](https://github.com/isaluki/uncreep/blob/main/patchkit/build.py) (Patch and build), [`uncreep`](https://github.com/isaluki/uncreep/blob/main/uncreep) (Decompile APK), [`scripts/summarise.py`](https://github.com/isaluki/uncreep/blob/main/scripts/summarise.py) (Analysis summary), [`scripts/acquire.py`](https://github.com/isaluki/uncreep/blob/main/scripts/acquire.py) (Acquire APK)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["App intake"]
  node_acquire["Acquire APK<br/>[acquire.py]"]
  node_identity["Check identity<br/>[identity.py]"]
end

subgraph group_analysis["App analysis"]
  node_decompile["Decompile APK"]
  node_manifest_audit["Manifest audit<br/>[manifest_audit.py]"]
  node_tracker_scan["Tracker scan<br/>[tracker_scan.py]"]
  node_pattern_scan["Pattern scan<br/>[scan_patterns.py]"]
  node_summary["Analysis summary<br/>[summarise.py]"]
  node_findings["Findings review"]
end

subgraph group_patch["Recipe and patching"]
  node_recipe["App recipe<br/>[recipe.py]"]
  node_manifest_editor["Manifest edits<br/>[manifest.py]"]
  node_binary_xml["Binary XML editor<br/>[axml.py]"]
  node_smali_editor["Smali edits<br/>[smali.py]"]
end

subgraph group_output["Build and delivery"]
  node_build["Patch and build<br/>[build.py]"]
  node_verify["Verify APK<br/>[verify.py]"]
  node_deliver["Deliver APK<br/>[deliver.sh]"]
end

node_user(("App owner"))
node_agent(("Coding agent"))
node_choice(("Removal choices"))
node_apk_sources["APK sources"]
node_apk_tools["Android build tools"]
node_delivery_target["Install or release"]

node_user -->|"requests app"| node_agent
node_agent -->|"acquires app"| node_acquire
node_apk_sources -->|"provides APK"| node_acquire
node_acquire -->|"checks signer"| node_identity
node_agent -->|"decompiles app"| node_decompile
node_decompile -.->|"supplies APK"| node_manifest_audit
node_decompile -.->|"supplies code"| node_tracker_scan
node_decompile -->|"supplies code"| node_pattern_scan
node_agent -->|"audits manifest"| node_manifest_audit
node_agent -->|"scans trackers"| node_tracker_scan
node_manifest_audit -.->|"contributes findings"| node_summary
node_tracker_scan -.->|"contributes findings"| node_summary
node_pattern_scan -.->|"contributes findings"| node_summary
node_agent -->|"writes findings"| node_findings
node_summary -.->|"informs review"| node_findings
node_agent -->|"presents tradeoffs"| node_choice
node_user -->|"chooses removals"| node_choice
node_choice -->|"guides edits"| node_recipe
node_recipe -->|"provides patch steps"| node_build
node_build -->|"edits manifest"| node_manifest_editor
node_manifest_editor -->|"uses XML editor"| node_binary_xml
node_build -->|"patches code"| node_smali_editor
node_build -->|"rebuilds and signs"| node_apk_tools
node_agent -->|"verifies output"| node_verify
node_build -->|"checks APK"| node_verify
node_verify -->|"clears for delivery"| node_deliver
node_agent -->|"delivers APK"| node_deliver
node_deliver -->|"installs or publishes"| node_delivery_target

click node_acquire "https://github.com/isaluki/uncreep/blob/main/scripts/acquire.py"
click node_identity "https://github.com/isaluki/uncreep/blob/main/scripts/identity.py"
click node_decompile "https://github.com/isaluki/uncreep/blob/main/uncreep"
click node_manifest_audit "https://github.com/isaluki/uncreep/blob/main/scripts/manifest_audit.py"
click node_tracker_scan "https://github.com/isaluki/uncreep/blob/main/scripts/tracker_scan.py"
click node_pattern_scan "https://github.com/isaluki/uncreep/blob/main/scripts/scan_patterns.py"
click node_summary "https://github.com/isaluki/uncreep/blob/main/scripts/summarise.py"
click node_findings "https://github.com/isaluki/uncreep/blob/main/docs/findings-template.md"
click node_recipe "https://github.com/isaluki/uncreep/blob/main/recipes/_template/recipe.py"
click node_build "https://github.com/isaluki/uncreep/blob/main/patchkit/build.py"
click node_manifest_editor "https://github.com/isaluki/uncreep/blob/main/patchkit/manifest.py"
click node_binary_xml "https://github.com/isaluki/uncreep/blob/main/patchkit/axml.py"
click node_smali_editor "https://github.com/isaluki/uncreep/blob/main/patchkit/smali.py"
click node_verify "https://github.com/isaluki/uncreep/blob/main/scripts/verify.py"
click node_deliver "https://github.com/isaluki/uncreep/blob/main/scripts/deliver.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_acquire,node_identity toneBlue
class node_decompile,node_manifest_audit,node_tracker_scan,node_pattern_scan,node_summary,node_findings toneAmber
class node_recipe,node_manifest_editor,node_binary_xml,node_smali_editor toneMint
class node_build,node_verify,node_deliver toneRose
class node_user,node_agent,node_choice,node_apk_sources,node_apk_tools,node_delivery_target toneIndigo
```

## Components

### App intake

- [Acquire APK](https://github.com/isaluki/uncreep/blob/main/scripts/acquire.py): `scripts/acquire.py`
- [Check identity](https://github.com/isaluki/uncreep/blob/main/scripts/identity.py): `scripts/identity.py`

### App analysis

- [Decompile APK](https://github.com/isaluki/uncreep/blob/main/uncreep): `uncreep`
- [Manifest audit](https://github.com/isaluki/uncreep/blob/main/scripts/manifest_audit.py): `scripts/manifest_audit.py`
- [Tracker scan](https://github.com/isaluki/uncreep/blob/main/scripts/tracker_scan.py): `scripts/tracker_scan.py`
- [Pattern scan](https://github.com/isaluki/uncreep/blob/main/scripts/scan_patterns.py): `scripts/scan_patterns.py`
- [Analysis summary](https://github.com/isaluki/uncreep/blob/main/scripts/summarise.py): `scripts/summarise.py`
- [Findings review](https://github.com/isaluki/uncreep/blob/main/docs/findings-template.md): `docs/findings-template.md`

### Recipe and patching

- [App recipe](https://github.com/isaluki/uncreep/blob/main/recipes/_template/recipe.py): `recipes/_template/recipe.py`
- [Manifest edits](https://github.com/isaluki/uncreep/blob/main/patchkit/manifest.py): `patchkit/manifest.py`
- [Binary XML editor](https://github.com/isaluki/uncreep/blob/main/patchkit/axml.py): `patchkit/axml.py`
- [Smali edits](https://github.com/isaluki/uncreep/blob/main/patchkit/smali.py): `patchkit/smali.py`

### Build and delivery

- [Patch and build](https://github.com/isaluki/uncreep/blob/main/patchkit/build.py): `patchkit/build.py`
- [Verify APK](https://github.com/isaluki/uncreep/blob/main/scripts/verify.py): `scripts/verify.py`
- [Deliver APK](https://github.com/isaluki/uncreep/blob/main/scripts/deliver.sh): `scripts/deliver.sh`

### Other components

- **App owner**
- **Coding agent**
- **Removal choices**
- **APK sources**
- **Android build tools**
- **Install or release**

## Connections

- App owner → Coding agent: requests app (evidence: `README.md`)
- Coding agent → Acquire APK: acquires app (evidence: `README.md`)
- APK sources → Acquire APK: provides APK (evidence: `README.md`)
- Acquire APK → Check identity: checks signer (evidence: `scripts/acquire.py`)
- Coding agent → Decompile APK: decompiles app (evidence: `README.md`)
- Decompile APK → Manifest audit: supplies APK
- Decompile APK → Tracker scan: supplies code
- Decompile APK → Pattern scan: supplies code (evidence: `README.md`)
- Coding agent → Manifest audit: audits manifest (evidence: `README.md`)
- Coding agent → Tracker scan: scans trackers (evidence: `README.md`)
- Manifest audit → Analysis summary: contributes findings
- Tracker scan → Analysis summary: contributes findings
- Pattern scan → Analysis summary: contributes findings
- Coding agent → Findings review: writes findings (evidence: `README.md`)
- Analysis summary → Findings review: informs review
- Coding agent → Removal choices: presents tradeoffs (evidence: `README.md`)
- App owner → Removal choices: chooses removals (evidence: `README.md`)
- Removal choices → App recipe: guides edits (evidence: `README.md`)
- App recipe → Patch and build: provides patch steps (evidence: `patchkit/build.py`)
- Patch and build → Manifest edits: edits manifest (evidence: `patchkit/build.py`)
- Manifest edits → Binary XML editor: uses XML editor (evidence: `patchkit/manifest.py`)
- Patch and build → Smali edits: patches code (evidence: `patchkit/build.py`)
- Patch and build → Android build tools: rebuilds and signs (evidence: `README.md`)
- Coding agent → Verify APK: verifies output (evidence: `README.md`)
- Patch and build → Verify APK: checks APK (evidence: `README.md`)
- Verify APK → Deliver APK: clears for delivery (evidence: `README.md`)
- Coding agent → Deliver APK: delivers APK (evidence: `README.md`)
- Deliver APK → Install or release: installs or publishes (evidence: `README.md`)
