# omonob/mhi2-carplay-maps architecture

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

- Interactive diagram: https://gitdiagram.com/omonob/mhi2-carplay-maps
- Repository: https://github.com/omonob/mhi2-carplay-maps

## Overview

CarPlay Maps VC installs a firmware- and cluster-specific runtime on Volkswagen/Škoda MHI2 systems. The principal workflow is toolbox installation, exact firmware/profile validation, preparation and backup, then deployment; at runtime the wrapper loads the matching core while bridge/supervisor components manage map video and the JAR provides steering-wheel controls. Status and restore are separate maintenance paths. Relationships reflect the README’s documented architecture; source excerpts were unavailable, so implementation-level call details are not inferred.

Main entry points: [`MU1102/791_AID12.3/install.sh`](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh) (Installer), [`MU1102/791_AID12.3/payload/common/dio_manager.wrapper.sh`](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/dio_manager.wrapper.sh) (dio manager wrapper), [`MU1102/791_AID12.3/payload/common/altscreen-most-bridge`](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/altscreen-most-bridge) (AltScreen bridge), [`MU1102/791_AID12.3/payload/common/carplay-cluster-supervisor`](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/carplay-cluster-supervisor) (Cluster supervisor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_install["Installation"]
  node_installer["Installer<br/>[install.sh]"]
  node_runner["Install runner<br/>[run-install.sh]"]
  node_deploy["File deployment<br/>[install.sh]"]
end

subgraph group_safety["Validation &amp; Recovery"]
  node_firmware["Firmware profile<br/>[install.sh]"]
  node_stage["Staging checks<br/>[install.sh]"]
  node_backup["Factory backup<br/>[install.sh]"]
  node_status["Status check"]
  node_restore["Factory restore"]
end

subgraph group_runtime["Runtime Display"]
  node_wrapper["dio manager wrapper"]
  node_core["Cluster core<br/>[791]"]
  node_bridge["AltScreen bridge"]
  node_supervisor["Cluster supervisor"]
  node_pairing["Pairing helper"]
  node_maps["Maps integration"]
end

subgraph group_controls["Steering Controls"]
  node_controls["Cluster controls"]
end

node_mqb(("MQB Toolbox"))
node_mib(("M.I.B. / SWDL"))
node_cockpit(("Virtual cockpit"))

node_mqb -->|"starts install"| node_installer
node_mib -->|"auto-installs"| node_installer
node_installer -.->|"runs"| node_runner
node_installer -->|"identifies profile"| node_firmware
node_installer -->|"prepares and checks"| node_stage
node_installer -->|"saves baseline"| node_backup
node_installer -->|"commits files"| node_deploy
node_status -->|"checks install state"| node_installer
node_restore -->|"restores baseline"| node_backup
node_wrapper -->|"loads matching core"| node_core
node_wrapper -.->|"runs display chain"| node_bridge
node_wrapper -.->|"runs display chain"| node_supervisor
node_bridge -->|"manages map video"| node_cockpit
node_supervisor -->|"manages display"| node_cockpit
node_controls -->|"controls map view"| node_cockpit
node_pairing -.->|"supports runtime"| node_maps

click node_installer "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh"
click node_runner "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/run-install.sh"
click node_firmware "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh"
click node_stage "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh"
click node_backup "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh"
click node_deploy "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh"
click node_status "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/status-carplay-maps.sh"
click node_restore "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/restore-carplay-maps.sh"
click node_wrapper "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/dio_manager.wrapper.sh"
click node_core "https://github.com/omonob/mhi2-carplay-maps/tree/main/MU1102/791_AID12.3/payload/profiles/MU1102/791"
click node_bridge "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/altscreen-most-bridge"
click node_supervisor "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/carplay-cluster-supervisor"
click node_controls "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/CarPlayClusterControls.jar"
click node_pairing "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/carplay-pairing-helper"
click node_maps "https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/install-carplay-maps.sh"

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_installer,node_runner,node_deploy toneBlue
class node_firmware,node_stage,node_backup,node_status,node_restore toneAmber
class node_wrapper,node_core,node_bridge,node_supervisor,node_pairing,node_maps toneMint
class node_controls toneRose
class node_mqb,node_mib,node_cockpit toneIndigo
```

## Components

### Installation

- [Installer](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh): `MU1102/791_AID12.3/install.sh`
- [Install runner](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/run-install.sh): `MU1102/791_AID12.3/run-install.sh`
- [File deployment](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh): `MU1102/791_AID12.3/install.sh`

### Validation & Recovery

- [Firmware profile](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh): `MU1102/791_AID12.3/install.sh`
- [Staging checks](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh): `MU1102/791_AID12.3/install.sh`
- [Factory backup](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/install.sh): `MU1102/791_AID12.3/install.sh`
- [Status check](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/status-carplay-maps.sh): `MU1102/791_AID12.3/status-carplay-maps.sh`
- [Factory restore](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/restore-carplay-maps.sh): `MU1102/791_AID12.3/restore-carplay-maps.sh`

### Runtime Display

- [dio manager wrapper](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/dio_manager.wrapper.sh): `MU1102/791_AID12.3/payload/common/dio_manager.wrapper.sh`
- [Cluster core](https://github.com/omonob/mhi2-carplay-maps/tree/main/MU1102/791_AID12.3/payload/profiles/MU1102/791): `MU1102/791_AID12.3/payload/profiles/MU1102/791`
- [AltScreen bridge](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/altscreen-most-bridge): `MU1102/791_AID12.3/payload/common/altscreen-most-bridge`
- [Cluster supervisor](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/carplay-cluster-supervisor): `MU1102/791_AID12.3/payload/common/carplay-cluster-supervisor`
- [Pairing helper](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/carplay-pairing-helper): `MU1102/791_AID12.3/payload/common/carplay-pairing-helper`
- [Maps integration](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/install-carplay-maps.sh): `MU1102/791_AID12.3/payload/common/install-carplay-maps.sh`

### Steering Controls

- [Cluster controls](https://github.com/omonob/mhi2-carplay-maps/blob/main/MU1102/791_AID12.3/payload/common/CarPlayClusterControls.jar): `MU1102/791_AID12.3/payload/common/CarPlayClusterControls.jar`

### Other components

- **MQB Toolbox**
- **M.I.B. / SWDL**
- **Virtual cockpit**

## Connections

- MQB Toolbox → Installer: starts install (evidence: `README.md`)
- M.I.B. / SWDL → Installer: auto-installs (evidence: `README.md`)
- Installer → Install runner: runs
- Installer → Firmware profile: identifies profile (evidence: `README.md`)
- Installer → Staging checks: prepares and checks (evidence: `README.md`)
- Installer → Factory backup: saves baseline (evidence: `README.md`)
- Installer → File deployment: commits files (evidence: `README.md`)
- Status check → Installer: checks install state (evidence: `README.md`)
- Factory restore → Factory backup: restores baseline (evidence: `README.md`)
- dio manager wrapper → Cluster core: loads matching core (evidence: `README.md`)
- dio manager wrapper → AltScreen bridge: runs display chain
- dio manager wrapper → Cluster supervisor: runs display chain
- AltScreen bridge → Virtual cockpit: manages map video (evidence: `README.md`)
- Cluster supervisor → Virtual cockpit: manages display (evidence: `README.md`)
- Cluster controls → Virtual cockpit: controls map view (evidence: `README.md`)
- Pairing helper → Maps integration: supports runtime
