# rushiranpise/morphe-patches architecture

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

- Interactive diagram: https://gitdiagram.com/rushiranpise/morphe-patches
- Repository: https://github.com/rushiranpise/morphe-patches

## Overview

Doom’s Morphe Patches is a collection of Android-app patches consumed by Morphe, not a standalone end-user application. The documented workflow is to add this repository as a patch source, select compatible patches, and use Morphe to create a patched APK. The patch catalog spans premium and subscription changes, app-specific customization, ad and tracking controls, privacy, and compatibility adjustments. The tree and sampled patches show bytecode modifications and extension helpers; the exact runtime orchestration is Morphe’s, not present in the sampled source.

Main entry points: [`patches/src/main/kotlin/app/template/patches`](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches) (Patch source), [`patches/src/main/kotlin/app/template/patches/amazon`](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/amazon) (Amazon changes), [`patches/src/main/kotlin/app/template/patches/messenger`](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/messenger) (Messenger changes), [`patches/src/main/kotlin/app/template/patches/googlephotos`](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/googlephotos) (Google Photos)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Patch catalog"]
  node_source["Patch source"]
end

subgraph group_premium["Premium changes"]
  node_premium_apps["Premium unlocks"]
  node_subscription_apps["Subscription features"]
end

subgraph group_custom["App customization"]
  node_amazon["Amazon changes"]
  node_messenger["Messenger changes"]
  node_photos["Google Photos"]
  node_misc_custom["Other app changes"]
end

subgraph group_privacy["Privacy and compatibility"]
  node_ads_tracking["Ads and tracking"]
  node_security["Security adjustments"]
  node_app_compat["App compatibility"]
end

subgraph group_extensions["Injected helpers"]
  node_extension_helpers["Runtime helpers"]
  node_internal_docs["Internal documents"]
end

node_user(("Morphe user"))
node_morphe["Morphe patcher"]
node_target["Target APK"]
node_patched["Patched APK"]

node_user -->|"selects patches"| node_morphe
node_morphe -->|"loads source"| node_source
node_morphe -->|"reads APK"| node_target
node_source -->|"offers patches"| node_premium_apps
node_source -->|"offers patches"| node_subscription_apps
node_source -->|"offers patches"| node_amazon
node_source -->|"offers patches"| node_messenger
node_source -->|"offers patches"| node_photos
node_source -->|"offers patches"| node_misc_custom
node_source -->|"offers patches"| node_ads_tracking
node_source -->|"offers patches"| node_security
node_source -->|"offers patches"| node_app_compat
node_morphe -->|"produces APK"| node_patched

click node_source "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches"
click node_premium_apps "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches"
click node_subscription_apps "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches"
click node_amazon "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/amazon"
click node_messenger "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/messenger"
click node_photos "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/googlephotos"
click node_misc_custom "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches"
click node_ads_tracking "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches"
click node_security "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches"
click node_app_compat "https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches"
click node_extension_helpers "https://github.com/rushiranpise/morphe-patches/tree/main/extensions/extension/src/main/java/app/template/extension/extension"
click node_internal_docs "https://github.com/rushiranpise/morphe-patches/blob/main/extensions/extension/src/main/java/app/template/extension/extension/InternalDataDocumentsProvider.java"

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_source,node_user toneBlue
class node_premium_apps,node_subscription_apps toneAmber
class node_amazon,node_messenger,node_photos,node_misc_custom toneMint
class node_ads_tracking,node_security,node_app_compat toneRose
class node_extension_helpers,node_internal_docs,node_morphe,node_target,node_patched toneIndigo
```

## Components

### Patch catalog

- [Patch source](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches): `patches/src/main/kotlin/app/template/patches`

### Premium changes

- [Premium unlocks](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches): `patches/src/main/kotlin/app/template/patches`
- [Subscription features](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches): `patches/src/main/kotlin/app/template/patches`

### App customization

- [Amazon changes](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/amazon): `patches/src/main/kotlin/app/template/patches/amazon`
- [Messenger changes](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/messenger): `patches/src/main/kotlin/app/template/patches/messenger`
- [Google Photos](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches/googlephotos): `patches/src/main/kotlin/app/template/patches/googlephotos`
- [Other app changes](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches): `patches/src/main/kotlin/app/template/patches`

### Privacy and compatibility

- [Ads and tracking](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches): `patches/src/main/kotlin/app/template/patches`
- [Security adjustments](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches): `patches/src/main/kotlin/app/template/patches`
- [App compatibility](https://github.com/rushiranpise/morphe-patches/tree/main/patches/src/main/kotlin/app/template/patches): `patches/src/main/kotlin/app/template/patches`

### Injected helpers

- [Runtime helpers](https://github.com/rushiranpise/morphe-patches/tree/main/extensions/extension/src/main/java/app/template/extension/extension): `extensions/extension/src/main/java/app/template/extension/extension`
- [Internal documents](https://github.com/rushiranpise/morphe-patches/blob/main/extensions/extension/src/main/java/app/template/extension/extension/InternalDataDocumentsProvider.java): `extensions/extension/src/main/java/app/template/extension/extension/InternalDataDocumentsProvider.java`

### Other components

- **Morphe user**
- **Morphe patcher**
- **Target APK**
- **Patched APK**

## Connections

- Morphe user → Morphe patcher: selects patches
- Morphe patcher → Patch source: loads source
- Morphe patcher → Target APK: reads APK
- Patch source → Premium unlocks: offers patches
- Patch source → Subscription features: offers patches
- Patch source → Amazon changes: offers patches
- Patch source → Messenger changes: offers patches
- Patch source → Google Photos: offers patches
- Patch source → Other app changes: offers patches
- Patch source → Ads and tracking: offers patches
- Patch source → Security adjustments: offers patches
- Patch source → App compatibility: offers patches
- Morphe patcher → Patched APK: produces APK
