# syqmhmmd-commits/zenith-rosemary architecture

> Architecture diagram of the GitHub repository syqmhmmd-commits/zenith-rosemary, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/syqmhmmd-commits/zenith-rosemary
- Repository: https://github.com/syqmhmmd-commits/zenith-rosemary

## Overview

Zenith Kernel is a release kernel for the Redmi Note 10S / POCO M5s (rosemary), targeting Vendor S. The documented user workflow is to choose the rooted or stock variant and flash its ZIP from custom recovery. The README distinguishes KernelSU Next with a manual hook and a kernel 4.14 SELinux fix from the unpatched non-KSU variant. The file listing contains no kernel sources or release artifacts, so the graph shows only documented capabilities and the flash workflow; implementation details and build internals are not represented.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_release["Kernel Variants"]
  node_ksu["KSU kernel"]
  node_ksu_features["KernelSU Next"]
  node_selinux_fix["SELinux fix"]
  node_nonksu["Non-KSU kernel"]
end

subgraph group_device["Device Environment"]
  node_recovery["Custom recovery"]
  node_rosemary["Rosemary device"]
end

node_user(("Device owner"))

node_user -->|"boots into"| node_recovery
node_user -->|"selects root variant"| node_ksu
node_user -->|"selects stock variant"| node_nonksu
node_recovery -->|"flashes ZIP"| node_ksu
node_recovery -->|"flashes ZIP"| node_nonksu
node_ksu -->|"includes"| node_ksu_features
node_ksu -->|"includes"| node_selinux_fix
node_recovery -->|"installs on"| node_rosemary

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_ksu,node_ksu_features,node_selinux_fix,node_nonksu toneBlue
class node_recovery,node_rosemary toneAmber
class node_user toneIndigo
```

## Components

### Kernel Variants

- **KSU kernel**
- **KernelSU Next**
- **SELinux fix**
- **Non-KSU kernel**

### Device Environment

- **Custom recovery**
- **Rosemary device**

### Other components

- **Device owner**

## Connections

- Device owner → Custom recovery: boots into (evidence: `README.md`)
- Device owner → KSU kernel: selects root variant (evidence: `README.md`)
- Device owner → Non-KSU kernel: selects stock variant (evidence: `README.md`)
- Custom recovery → KSU kernel: flashes ZIP (evidence: `README.md`)
- Custom recovery → Non-KSU kernel: flashes ZIP (evidence: `README.md`)
- KSU kernel → KernelSU Next: includes (evidence: `README.md`)
- KSU kernel → SELinux fix: includes (evidence: `README.md`)
- Custom recovery → Rosemary device: installs on (evidence: `README.md`)
