# hellveticastandard/hellveticapatches architecture

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

- Interactive diagram: https://gitdiagram.com/hellveticastandard/hellveticapatches
- Repository: https://github.com/hellveticastandard/hellveticapatches

## Overview

HellveticaStandard Patches is a Morphe patch source for Sankaku Channel. Morphe applies the registered patches to compatible APKs: one rewrites Hermes bytecode to suppress the Infinite upsell and OTA update check, and another makes TrendingTags render null. README documents these two user-facing capabilities and supported app versions. The excerpts show each patch’s bundle read, signature matching, byte replacement, and write behavior; Morphe’s discovery and application lifecycle are not shown, so those links are omitted.

Main entry points: [`patches/src/main/kotlin/app/hellvetica/patches/sankaku/DisableInfinitePopupPatch.kt`](https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/sankaku/DisableInfinitePopupPatch.kt) (Disable upsell popup), [`patches/src/main/kotlin/app/hellvetica/patches/sankaku/HideTrendingTagsSectionPatch.kt`](https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/sankaku/HideTrendingTagsSectionPatch.kt) (Hide trending tags), [`patches/src/main/kotlin/app/hellvetica/patches/shared/Constants.kt`](https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/shared/Constants.kt) (Sankaku compatibility)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_patches["Sankaku patches"]
  node_popup["Disable upsell popup"]
  node_trending["Hide trending tags"]
  node_bundle["Hermes app bundle"]
end

subgraph group_compatibility["Target compatibility"]
  node_compat["Sankaku compatibility<br/>[Constants.kt]"]
end

subgraph group_template["Extension template"]
  node_example["Example extension patch<br/>[ExamplePatch.java]"]
end

node_user(("Morphe user"))
node_morphe["Morphe patcher"]
node_sankaku["Sankaku APK"]

node_user -->|"selects patch source"| node_morphe
node_morphe -->|"patches compatible APK"| node_sankaku
node_popup -->|"declares compatibility"| node_compat
node_trending -->|"declares compatibility"| node_compat
node_popup -->|"reads and rewrites"| node_bundle
node_trending -->|"reads and rewrites"| node_bundle

click node_compat "https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/shared/Constants.kt"
click node_popup "https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/sankaku/DisableInfinitePopupPatch.kt"
click node_trending "https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/sankaku/HideTrendingTagsSectionPatch.kt"
click node_example "https://github.com/hellveticastandard/hellveticapatches/blob/main/extensions/extension/src/main/java/app/template/extension/extension/ExamplePatch.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_popup,node_trending,node_bundle,node_user toneBlue
class node_compat toneAmber
class node_example toneMint
class node_morphe,node_sankaku toneIndigo
```

## Components

### Sankaku patches

- [Disable upsell popup](https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/sankaku/DisableInfinitePopupPatch.kt): `patches/src/main/kotlin/app/hellvetica/patches/sankaku/DisableInfinitePopupPatch.kt`
- [Hide trending tags](https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/sankaku/HideTrendingTagsSectionPatch.kt): `patches/src/main/kotlin/app/hellvetica/patches/sankaku/HideTrendingTagsSectionPatch.kt`
- **Hermes app bundle**

### Target compatibility

- [Sankaku compatibility](https://github.com/hellveticastandard/hellveticapatches/blob/main/patches/src/main/kotlin/app/hellvetica/patches/shared/Constants.kt): `patches/src/main/kotlin/app/hellvetica/patches/shared/Constants.kt`

### Extension template

- [Example extension patch](https://github.com/hellveticastandard/hellveticapatches/blob/main/extensions/extension/src/main/java/app/template/extension/extension/ExamplePatch.java): `extensions/extension/src/main/java/app/template/extension/extension/ExamplePatch.java`

### Other components

- **Morphe user**
- **Morphe patcher**
- **Sankaku APK**

## Connections

- Morphe user → Morphe patcher: selects patch source (evidence: `README.md`)
- Morphe patcher → Sankaku APK: patches compatible APK (evidence: `README.md`)
- Disable upsell popup → Sankaku compatibility: declares compatibility (evidence: `patches/src/main/kotlin/app/hellvetica/patches/sankaku/DisableInfinitePopupPatch.kt`)
- Hide trending tags → Sankaku compatibility: declares compatibility (evidence: `patches/src/main/kotlin/app/hellvetica/patches/sankaku/HideTrendingTagsSectionPatch.kt`)
- Disable upsell popup → Hermes app bundle: reads and rewrites (evidence: `patches/src/main/kotlin/app/hellvetica/patches/sankaku/DisableInfinitePopupPatch.kt`)
- Hide trending tags → Hermes app bundle: reads and rewrites (evidence: `patches/src/main/kotlin/app/hellvetica/patches/sankaku/HideTrendingTagsSectionPatch.kt`)
