How qutaiba-khader/morphe-builder works
Morphe Builder is a configured Android APK patching and publishing application. Its main workflow loads app definitions, locates and downloads stock APKs, applies Morphe patches, and produces signed APKs; the README also documents release downloads, Obtainium updates, a generated website, and a patch catalog. The sampled sources show the build orchestration and scraper/network/patcher dependencies. Publishing and catalog-generation details are only documented or visible by path, so those links are left unverified where necessary.
Main entry points: builder.py Build orchestrator · network.py Network manager · main.py CLI entry · apkmirror.py APKMirror scraper
Components 20
Build workflow
- CLI entry
main.py - Build configuration
src/core/config.py - Build orchestrator
src/core/builder.py - Network manager
src/core/network.py
App sources
- Scraper interface
src/scrapers/base.py - APKMirror scraper
src/scrapers/apkmirror.py - GitHub releases scraper
src/scrapers/github.py - Stock APK source
Patch and artifacts
- Morphe patcher CLI
src/core/patcher.py - Patch tool downloads
src/core/prebuilts.py - Signature validation
src/core/patcher.py - Built APK artifacts
src/core/builder.py
Release and discovery
- GitHub releases
- Website and API generator
tools/gen_site.py - Download website
site/static/index.html - Patch catalog generator
tools/gen_catalog.py - Patch catalog data
data/catalog.json
Other components
- Builder user
- App installer
- Obtainium
Connections 31
- Builder user → CLI entry: runs build
main.py - CLI entry → Build configuration: loads settings
main.py - CLI entry → Network manager: opens session
main.py - CLI entry → Build orchestrator: starts build
main.py - Build orchestrator → Build configuration: uses app entries
src/core/builder.py - Build orchestrator → Network manager: uses network
src/core/builder.py - Build orchestrator → Scraper interface: creates scrapers
src/core/builder.py - Build orchestrator → APKMirror scraper: selects scraper
src/core/builder.py - Build orchestrator → GitHub releases scraper: selects scraper
src/core/builder.py - APKMirror scraper → Scraper interface: extends interface
src/scrapers/apkmirror.py - GitHub releases scraper → Scraper interface: extends interface
src/scrapers/github.py - Scraper interface → Network manager: uses requests
src/scrapers/base.py - APKMirror scraper → Network manager: fetches and downloads
src/scrapers/apkmirror.py - GitHub releases scraper → Network manager: fetches and downloads
src/scrapers/github.py - APKMirror scraper → Stock APK source: downloads APK
src/scrapers/apkmirror.py - GitHub releases scraper → Stock APK source: downloads APK
src/scrapers/github.py - Build orchestrator → Morphe patcher CLI: patches APK
src/core/builder.py - Build orchestrator → Stock APK source: selects version
src/core/builder.py - Build orchestrator → Signature validation: checks signature
src/core/builder.py - Morphe patcher CLI → Patch tool downloads: uses patch tools
src/core/patcher.py - Morphe patcher CLI → Built APK artifacts: writes patched APK
src/core/builder.py - Build orchestrator → Built APK artifacts: stores build output
src/core/builder.py - Built APK artifacts → GitHub releases: published automatically
README.md - GitHub releases → Website and API generator: feeds release listings
tools/gen_site.py - Website and API generator → Download website: generates site
tools/gen_site.py - Patch catalog generator → Patch catalog data: generates catalog
- Patch catalog data → Download website: catalog surfaced
README.md - App installer → Download website: browses downloads
README.md - Download website → App installer: offers APK downloads
README.md - App installer → Obtainium: adds app source
README.md - Obtainium → GitHub releases: gets updates
README.md