# qarabaierooom/hyperboot-by-qarabai-ermahan architecture

> Architecture diagram of the GitHub repository qarabaierooom/hyperboot-by-qarabai-ermahan, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/qarabaierooom/hyperboot-by-qarabai-ermahan
- Repository: https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan

## Overview

#### Purpose and Packaging
This repository is a flashable Magisk/KernelSU module that overlays a custom Android boot animation for MIUI and HyperOS. It is an asset-and-installer package, not an application or service. The distributable module root contains metadata, installation logic, and system-path overlay assets: `module.prop`, `customize.sh`, and `system/`.

#### Entry Points
Module managers consume `module.prop` to identify and install the package. During installation, they execute `customize.sh`; Android later loads the overlaid animation archive during device boot. `index.html` is repository-facing presentation content rather than part of device runtime.

Paths: `module.prop`, `customize.sh`, `index.html`.

#### Installation and Overlay Stage
The installer runs with root through Magisk or KernelSU. Its architectural responsibility is to prepare the module overlay, clean the OS resource cache, and apply safe media-file permissions. The module framework mounts the packaged `system/` tree over corresponding device system paths without destructively replacing stock partition contents.

Paths: `customize.sh`, `system/`, `system/media/`.

#### Standard Android Animation Target
The primary compatibility target is Android’s conventional boot-animation lookup location. The packaged archive overlays `/system/media/bootanimation.zip`, allowing MIUI-compatible systems that use the standard path to select the custom animation at boot.

Path: `system/media/bootanimation.zip`.

#### HyperOS Product Override
A second copy of the asset is deliberately placed in the product partition namespace, covering HyperOS builds that resolve boot media from `/system/product/media/bootanimation.zip`. Maintaining both locations is the main compatibility boundary between generic Android/MIUI behavior and HyperOS-specific path resolution.

Paths: `system/product/`, `system/product/media/`, `system/product/media/bootanimation.zip`.

#### Boot-Time Runtime Flow
1. The user installs the ZIP in Magisk or KernelSU and reboots.
2. Root module infrastructure mounts the repository’s `system/` payload as a systemless overlay.
3. Installation cleanup prevents cached theme/resource data from retaining the prior animation.
4. Android’s boot-animation service chooses the applicable standard or product media path.
5. The selected `bootanimation.zip` renders a 1080×2400, 30-FPS animation with a one-time intro (`part0`) followed by an idle loop (`part1`).

#### Runtime and External Dependencies
Runtime depends on rooted Android devices running MIUI or HyperOS and a Magisk or KernelSU-compatible module environment. There are no network APIs, databases, background processes, or third-party hosted services. The only system-facing boundaries are privileged module installation, Android overlay mounting, media-path resolution, and resource-cache invalidation.

Main entry points: [`customize.sh`](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/customize.sh) (Installer script), [`system/media/bootanimation.zip`](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/system/media/bootanimation.zip) (Standard boot animation), [`system/product/media/bootanimation.zip`](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/system/product/media/bootanimation.zip) (HyperOS boot animation), [`module.prop`](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/module.prop) (Module metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_package["Module Package"]
  node_module_metadata["Module metadata<br/>Magisk module manifest<br/>[module.prop]"]
  node_installer["Installer script<br/>shell installer<br/>[customize.sh]"]
  node_overlay_payload["System overlay payload<br/>systemless payload"]
  node_standard_media["Standard media payload<br/>media overlay directory"]
  node_standard_animation["Standard boot animation<br/>bootanimation archive<br/>[bootanimation.zip]"]
  node_product_payload["HyperOS product payload<br/>product overlay directory"]
  node_product_media["Product media payload<br/>media overlay directory"]
  node_product_animation["HyperOS boot animation<br/>bootanimation archive<br/>[bootanimation.zip]"]
  node_repository_page["Repository page<br/>presentation content<br/>[index.html]"]
end

subgraph group_install["Installation"]
  node_module_manager{{"Magisk or KernelSU<br/>root module environment"}}
  node_systemless_overlay["Systemless overlay mount<br/>module framework mount"]
  node_resource_cache["Theme/resource cache<br/>Android cached resources"]
end

subgraph group_android["Android Boot Runtime"]
  node_boot_animation_service{{"Android boot-animation service<br/>Android system service"}}
  node_miui_device["MIUI standard path<br/>Android media target"]
  node_hyperos_device["HyperOS product path<br/>Android media target"]
end

node_module_manager -->|"reads"| node_module_metadata
node_module_manager -->|"executes as root"| node_installer
node_installer -->|"cleans"| node_resource_cache
node_installer -->|"prepares"| node_overlay_payload
node_overlay_payload -->|"contains"| node_standard_media
node_standard_media -->|"contains"| node_standard_animation
node_overlay_payload -->|"contains"| node_product_payload
node_product_payload -->|"contains"| node_product_media
node_product_media -->|"contains"| node_product_animation
node_module_manager -->|"mounts"| node_systemless_overlay
node_systemless_overlay -->|"exposes"| node_overlay_payload
node_miui_device -->|"boots with"| node_boot_animation_service
node_hyperos_device -->|"boots with"| node_boot_animation_service
node_boot_animation_service -->|"loads standard path"| node_standard_animation
node_boot_animation_service -->|"loads product path"| node_product_animation

click node_module_metadata "https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/module.prop"
click node_installer "https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/customize.sh"
click node_standard_animation "https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/system/media/bootanimation.zip"
click node_product_animation "https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/system/product/media/bootanimation.zip"
click node_repository_page "https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/index.html"

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_module_metadata,node_installer,node_overlay_payload,node_standard_media,node_standard_animation,node_product_payload,node_product_media,node_product_animation,node_repository_page toneBlue
class node_module_manager,node_systemless_overlay,node_resource_cache toneAmber
class node_boot_animation_service,node_miui_device,node_hyperos_device toneMint
```

## Components

### Module Package

Flashable module contents.

- [Module metadata](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/module.prop): Magisk module manifest · `module.prop`
- [Installer script](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/customize.sh): shell installer · Cleans resource cache and applies media permissions. · `customize.sh`
- **System overlay payload**: systemless payload
- **Standard media payload**: media overlay directory
- [Standard boot animation](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/system/media/bootanimation.zip): bootanimation archive · 1080×2400, 30-FPS intro and looping idle animation. · `system/media/bootanimation.zip`
- **HyperOS product payload**: product overlay directory
- **Product media payload**: media overlay directory
- [HyperOS boot animation](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/system/product/media/bootanimation.zip): bootanimation archive · `system/product/media/bootanimation.zip`
- [Repository page](https://github.com/qarabaierooom/hyperboot-by-qarabai-ermahan/blob/main/index.html): presentation content · Not used on the device runtime path. · `index.html`

### Installation

Privileged module setup and overlay mounting.

- **Magisk or KernelSU**: root module environment
- **Systemless overlay mount**: module framework mount · Mounts payload paths without replacing stock partitions.
- **Theme/resource cache**: Android cached resources · Invalidated during installation to avoid retaining the prior animation.

### Android Boot Runtime

Boot animation resolution on MIUI and HyperOS.

- **Android boot-animation service**: Android system service · Selects the applicable media path at boot.
- **MIUI standard path**: Android media target · Resolves the conventional /system/media animation location.
- **HyperOS product path**: Android media target · May resolve boot media from the product namespace.

## Connections

- Magisk or KernelSU → Module metadata: reads
- Magisk or KernelSU → Installer script: executes as root
- Installer script → Theme/resource cache: cleans
- Installer script → System overlay payload: prepares
- System overlay payload → Standard media payload: contains
- Standard media payload → Standard boot animation: contains
- System overlay payload → HyperOS product payload: contains
- HyperOS product payload → Product media payload: contains
- Product media payload → HyperOS boot animation: contains
- Magisk or KernelSU → Systemless overlay mount: mounts
- Systemless overlay mount → System overlay payload: exposes
- MIUI standard path → Android boot-animation service: boots with
- HyperOS product path → Android boot-animation service: boots with
- Android boot-animation service → Standard boot animation: loads standard path
- Android boot-animation service → HyperOS boot animation: loads product path
