# afarhandanu/zephyrkernel-test architecture

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

- Interactive diagram: https://gitdiagram.com/afarhandanu/zephyrkernel-test
- Repository: https://github.com/afarhandanu/zephyrkernel-test

## Overview

ZephyrKernel is an Android GKI kernel distribution, documented for Linux 6.1.190 and 6.1.193 devices. Its user-facing flow is to select a root/LTO release, download the AnyKernel ZIP, flash it, and boot Android. The checked-in tree does not include the kernel source, so the feature nodes represent README-documented capabilities rather than inspected implementation. The visible repository also contains release-note generation and Telegram post-building code; source excerpts do not show the staging or publishing orchestration, so those links are intentionally limited.

Main entry points: [`zephyr_defconfig`](https://github.com/afarhandanu/zephyrkernel-test/blob/main/zephyr_defconfig) (Kernel feature configuration), [`release/telegram/post_card.py`](https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/post_card.py) (Telegram payload builder), [`release/telegram/rich_message.py`](https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/rich_message.py) (Rich message composer), [`README.md`](https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md) (CPU and I/O tuning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_kernel["Kernel Configuration"]
  node_kernel_config["Kernel feature configuration"]
  node_cpu_io["CPU and I/O tuning<br/>[README.md]"]
  node_memory["Memory and compression<br/>[README.md]"]
  node_network_storage["Network and storage<br/>[README.md]"]
  node_hardware["Hardware and gaming<br/>[README.md]"]
  node_root_variants["Root and stealth variants<br/>[README.md]"]
end

subgraph group_patches["Kernel Addons"]
  node_susfs_patch["ZephyrSU SUSFS patch"]
  node_adios_patch["ADIOS scheduler patch"]
  node_mptcp_patch["MPTCP KABI fix"]
end

subgraph group_release["Release Experience"]
  node_notes["Release notes generator"]
end

subgraph group_telegram["Telegram Publishing"]
  node_post_payload["Telegram payload builder<br/>[post_card.py]"]
  node_rich_message["Rich message composer<br/>[rich_message.py]"]
  node_caption_data["Feature labels and metadata<br/>[caption.py]"]
end

node_user(("Android device user"))
node_releases["GitHub Releases"]
node_telegram["Telegram"]

node_user -->|"downloads ZIP"| node_releases
node_releases -->|"offers variants"| node_user
node_kernel_config -.->|"configures features"| node_cpu_io
node_kernel_config -.->|"configures features"| node_memory
node_kernel_config -.->|"configures features"| node_network_storage
node_kernel_config -.->|"configures features"| node_hardware
node_kernel_config -.->|"selects variants"| node_root_variants
node_susfs_patch -.->|"adds SUSFS"| node_root_variants
node_adios_patch -.->|"adjusts scheduler"| node_cpu_io
node_mptcp_patch -.->|"fixes KABI"| node_network_storage
node_post_payload -->|"composes message"| node_rich_message
node_rich_message -->|"uses feature labels"| node_caption_data
node_post_payload -.->|"prepares attachments"| node_telegram

click node_kernel_config "https://github.com/afarhandanu/zephyrkernel-test/blob/main/zephyr_defconfig"
click node_cpu_io "https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md"
click node_memory "https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md"
click node_network_storage "https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md"
click node_hardware "https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md"
click node_root_variants "https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md"
click node_susfs_patch "https://github.com/afarhandanu/zephyrkernel-test/blob/main/patches/10_enable_susfs_for_zephyrsu.patch"
click node_adios_patch "https://github.com/afarhandanu/zephyrkernel-test/blob/main/patches/adios_over_mq_deadline.patch"
click node_mptcp_patch "https://github.com/afarhandanu/zephyrkernel-test/blob/main/patches/fix_mptcp_kabi.patch"
click node_notes "https://github.com/afarhandanu/zephyrkernel-test/blob/main/scripts/generate_release_notes.py"
click node_post_payload "https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/post_card.py"
click node_rich_message "https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/rich_message.py"
click node_caption_data "https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/caption.py"

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_kernel_config,node_cpu_io,node_memory,node_network_storage,node_hardware,node_root_variants,node_user toneBlue
class node_susfs_patch,node_adios_patch,node_mptcp_patch toneAmber
class node_notes toneMint
class node_post_payload,node_rich_message,node_caption_data toneRose
class node_releases,node_telegram toneIndigo
```

## Components

### Kernel Configuration

- [Kernel feature configuration](https://github.com/afarhandanu/zephyrkernel-test/blob/main/zephyr_defconfig): `zephyr_defconfig`
- [CPU and I/O tuning](https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md): `README.md`
- [Memory and compression](https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md): `README.md`
- [Network and storage](https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md): `README.md`
- [Hardware and gaming](https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md): `README.md`
- [Root and stealth variants](https://github.com/afarhandanu/zephyrkernel-test/blob/main/README.md): `README.md`

### Kernel Addons

- [ZephyrSU SUSFS patch](https://github.com/afarhandanu/zephyrkernel-test/blob/main/patches/10_enable_susfs_for_zephyrsu.patch): `patches/10_enable_susfs_for_zephyrsu.patch`
- [ADIOS scheduler patch](https://github.com/afarhandanu/zephyrkernel-test/blob/main/patches/adios_over_mq_deadline.patch): `patches/adios_over_mq_deadline.patch`
- [MPTCP KABI fix](https://github.com/afarhandanu/zephyrkernel-test/blob/main/patches/fix_mptcp_kabi.patch): `patches/fix_mptcp_kabi.patch`

### Release Experience

- [Release notes generator](https://github.com/afarhandanu/zephyrkernel-test/blob/main/scripts/generate_release_notes.py): `scripts/generate_release_notes.py`

### Telegram Publishing

- [Telegram payload builder](https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/post_card.py): `release/telegram/post_card.py`
- [Rich message composer](https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/rich_message.py): `release/telegram/rich_message.py`
- [Feature labels and metadata](https://github.com/afarhandanu/zephyrkernel-test/blob/main/release/telegram/caption.py): `release/telegram/caption.py`

### Other components

- **Android device user**
- **GitHub Releases**
- **Telegram**

## Connections

- Android device user → GitHub Releases: downloads ZIP (evidence: `README.md`)
- GitHub Releases → Android device user: offers variants (evidence: `README.md`)
- Kernel feature configuration → CPU and I/O tuning: configures features
- Kernel feature configuration → Memory and compression: configures features
- Kernel feature configuration → Network and storage: configures features
- Kernel feature configuration → Hardware and gaming: configures features
- Kernel feature configuration → Root and stealth variants: selects variants
- ZephyrSU SUSFS patch → Root and stealth variants: adds SUSFS
- ADIOS scheduler patch → CPU and I/O tuning: adjusts scheduler
- MPTCP KABI fix → Network and storage: fixes KABI
- Telegram payload builder → Rich message composer: composes message (evidence: `release/telegram/post_card.py`)
- Rich message composer → Feature labels and metadata: uses feature labels (evidence: `release/telegram/rich_message.py`)
- Telegram payload builder → Telegram: prepares attachments
