# openhandheldcollective/openabl architecture

> Architecture diagram of the GitHub repository openhandheldcollective/openabl, 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/openhandheldcollective/openabl
- Repository: https://github.com/openhandheldcollective/openabl

## Overview

OpenABL is a graphical boot menu and Linux/Android boot manager embedded in Qualcomm’s ABL. At power-on, the ABL launches the menu program, which reads settings and boot context, presents choices, and either starts Android through the Qualcomm boot path or discovers and attempts Linux boot targets. Linux boot spans entry discovery, image preparation, and firmware handover. The graph also captures settings, device-model selection, USB, splash/display, and maintenance capabilities documented in the README. Several subsystem paths are directories because their specific implementation files were not sampled; edges reflect README statements or shown source references.

Main entry points: [`Menu/Main.c`](https://github.com/openhandheldcollective/openabl/blob/main/Menu/Main.c) (Menu entry point), [`Boot/BootEntries.c`](https://github.com/openhandheldcollective/openabl/blob/main/Boot/BootEntries.c) (Entry discovery), [`Menu/Menu.c`](https://github.com/openhandheldcollective/openabl/blob/main/Menu/Menu.c) (Menu actions), [`Boot/LinuxBoot.c`](https://github.com/openhandheldcollective/openabl/blob/main/Boot/LinuxBoot.c) (Linux image boot)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["ABL and menu"]
  node_abl["ABL menu host<br/>[OpenAblMenu.c]"]
  node_main["Menu entry point<br/>[Main.c]"]
end

subgraph group_boot["Boot selection"]
  node_boot_decision["Boot decision<br/>[BootDecision.c]"]
  node_boot_entries["Entry discovery<br/>[BootEntries.c]"]
  node_boot_manager["Target planning<br/>[BootManager.c]"]
  node_linux_boot["Linux image boot<br/>[LinuxBoot.c]"]
  node_booter["Image loading<br/>[Booter.c]"]
  node_handover["OS handover<br/>[Handover.c]"]
  node_android_boot["Android boot<br/>[Bli.c]"]
end

subgraph group_platform["Device platform"]
  node_files["EFI file access<br/>[Files.c]"]
  node_device_tree["Device-tree support<br/>[DeviceTree.c]"]
  node_usb["USB host and drives<br/>[UsbHost.c]"]
  node_models["Device models<br/>[Models.c]"]
  node_display["Display handover<br/>[DisplayHandover.c]"]
  node_firmware["Qualcomm firmware"]
  node_storage[("Device storage")]
end

subgraph group_experience["Menu experience"]
  node_menu["Menu actions<br/>[Menu.c]"]
  node_app["Application state<br/>[App.c]"]
  node_view["Screen rendering<br/>[View.c]"]
  node_languages["Translations<br/>[Lang.c]"]
  node_splash["Boot splash<br/>[BootSplash.c]"]
end

subgraph group_support["Settings and support"]
  node_settings["Settings logic<br/>[Settings.c]"]
  node_settings_store[("Persistent settings<br/>[SettingsStore.c]")]
  node_uninstall["Linux uninstall<br/>[Uninstall.c]"]
  node_device_info["Device information<br/>[SysInfo.c]"]
end

node_poweron(("Power-on user"))
node_linux["Linux kernel"]
node_android["Android system"]

node_poweron -->|"starts device"| node_abl
node_abl -->|"launches menu"| node_main
node_main -->|"sets up"| node_settings
node_menu -->|"updates state"| node_app
node_view -->|"renders state"| node_app
node_view -->|"uses strings"| node_languages
node_settings -->|"reads and saves"| node_settings_store
node_app -->|"changes options"| node_settings
node_main -->|"selects boot mode"| node_boot_decision
node_main -->|"scans drives"| node_boot_entries
node_boot_entries -->|"reads boot files"| node_files
node_main -->|"plans targets"| node_boot_manager
node_boot_manager -->|"orders entries"| node_boot_entries
node_main -->|"starts Linux flow"| node_linux_boot
node_linux_boot -->|"tries planned targets"| node_boot_manager
node_linux_boot -->|"loads kernel image"| node_booter
node_booter -->|"prepares handover"| node_handover
node_handover -->|"starts OS"| node_linux
node_main -->|"starts Android path"| node_android_boot
node_android_boot -->|"uses Android boot"| node_firmware
node_firmware -->|"loads system"| node_android
node_boot_entries -->|"scans boot sources"| node_storage
node_main -->|"starts USB host"| node_usb
node_usb -->|"provides USB drives"| node_storage
node_main -->|"scans device models"| node_models
node_models -->|"selects Linux tree"| node_device_tree
node_main -->|"shows boot logo"| node_splash
node_main -->|"arms display handover"| node_display
node_display -->|"preserves splash"| node_linux
node_menu -->|"offers removal"| node_uninstall
node_menu -->|"shows device details"| node_device_info
node_main -->|"requests boot preparation"| node_firmware

click node_abl "https://github.com/openhandheldcollective/openabl/blob/main/Abl/QcomModulePkg/Library/BootLib/OpenAblMenu.c"
click node_main "https://github.com/openhandheldcollective/openabl/blob/main/Menu/Main.c"
click node_menu "https://github.com/openhandheldcollective/openabl/blob/main/Menu/Menu.c"
click node_app "https://github.com/openhandheldcollective/openabl/blob/main/Ui/App.c"
click node_view "https://github.com/openhandheldcollective/openabl/blob/main/View/View.c"
click node_languages "https://github.com/openhandheldcollective/openabl/blob/main/Ui/Lang.c"
click node_settings "https://github.com/openhandheldcollective/openabl/blob/main/Core/Settings.c"
click node_settings_store "https://github.com/openhandheldcollective/openabl/blob/main/Core/SettingsStore.c"
click node_boot_decision "https://github.com/openhandheldcollective/openabl/blob/main/Core/BootDecision.c"
click node_boot_entries "https://github.com/openhandheldcollective/openabl/blob/main/Boot/BootEntries.c"
click node_boot_manager "https://github.com/openhandheldcollective/openabl/blob/main/Boot/BootManager.c"
click node_linux_boot "https://github.com/openhandheldcollective/openabl/blob/main/Boot/LinuxBoot.c"
click node_booter "https://github.com/openhandheldcollective/openabl/blob/main/Boot/Booter.c"
click node_handover "https://github.com/openhandheldcollective/openabl/blob/main/Efi/Handover.c"
click node_android_boot "https://github.com/openhandheldcollective/openabl/blob/main/Boot/Bli.c"
click node_files "https://github.com/openhandheldcollective/openabl/blob/main/Efi/Files.c"
click node_device_tree "https://github.com/openhandheldcollective/openabl/blob/main/Core/DeviceTree.c"
click node_usb "https://github.com/openhandheldcollective/openabl/blob/main/Efi/UsbHost.c"
click node_models "https://github.com/openhandheldcollective/openabl/blob/main/Efi/Models.c"
click node_splash "https://github.com/openhandheldcollective/openabl/blob/main/Menu/BootSplash.c"
click node_uninstall "https://github.com/openhandheldcollective/openabl/blob/main/Efi/Uninstall.c"
click node_device_info "https://github.com/openhandheldcollective/openabl/blob/main/Efi/SysInfo.c"
click node_display "https://github.com/openhandheldcollective/openabl/blob/main/Efi/DisplayHandover.c"

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_abl,node_main,node_poweron toneBlue
class node_boot_decision,node_boot_entries,node_boot_manager,node_linux_boot,node_booter,node_handover,node_android_boot toneAmber
class node_files,node_device_tree,node_usb,node_models,node_display,node_firmware,node_storage toneMint
class node_menu,node_app,node_view,node_languages,node_splash toneRose
class node_settings,node_settings_store,node_uninstall,node_device_info,node_linux,node_android toneIndigo
```

## Components

### ABL and menu

- [ABL menu host](https://github.com/openhandheldcollective/openabl/blob/main/Abl/QcomModulePkg/Library/BootLib/OpenAblMenu.c): `Abl/QcomModulePkg/Library/BootLib/OpenAblMenu.c`
- [Menu entry point](https://github.com/openhandheldcollective/openabl/blob/main/Menu/Main.c): `Menu/Main.c`

### Boot selection

- [Boot decision](https://github.com/openhandheldcollective/openabl/blob/main/Core/BootDecision.c): `Core/BootDecision.c`
- [Entry discovery](https://github.com/openhandheldcollective/openabl/blob/main/Boot/BootEntries.c): `Boot/BootEntries.c`
- [Target planning](https://github.com/openhandheldcollective/openabl/blob/main/Boot/BootManager.c): `Boot/BootManager.c`
- [Linux image boot](https://github.com/openhandheldcollective/openabl/blob/main/Boot/LinuxBoot.c): `Boot/LinuxBoot.c`
- [Image loading](https://github.com/openhandheldcollective/openabl/blob/main/Boot/Booter.c): `Boot/Booter.c`
- [OS handover](https://github.com/openhandheldcollective/openabl/blob/main/Efi/Handover.c): `Efi/Handover.c`
- [Android boot](https://github.com/openhandheldcollective/openabl/blob/main/Boot/Bli.c): `Boot/Bli.c`

### Device platform

- [EFI file access](https://github.com/openhandheldcollective/openabl/blob/main/Efi/Files.c): `Efi/Files.c`
- [Device-tree support](https://github.com/openhandheldcollective/openabl/blob/main/Core/DeviceTree.c): `Core/DeviceTree.c`
- [USB host and drives](https://github.com/openhandheldcollective/openabl/blob/main/Efi/UsbHost.c): `Efi/UsbHost.c`
- [Device models](https://github.com/openhandheldcollective/openabl/blob/main/Efi/Models.c): `Efi/Models.c`
- [Display handover](https://github.com/openhandheldcollective/openabl/blob/main/Efi/DisplayHandover.c): `Efi/DisplayHandover.c`
- **Qualcomm firmware**
- **Device storage**

### Menu experience

- [Menu actions](https://github.com/openhandheldcollective/openabl/blob/main/Menu/Menu.c): `Menu/Menu.c`
- [Application state](https://github.com/openhandheldcollective/openabl/blob/main/Ui/App.c): `Ui/App.c`
- [Screen rendering](https://github.com/openhandheldcollective/openabl/blob/main/View/View.c): `View/View.c`
- [Translations](https://github.com/openhandheldcollective/openabl/blob/main/Ui/Lang.c): `Ui/Lang.c`
- [Boot splash](https://github.com/openhandheldcollective/openabl/blob/main/Menu/BootSplash.c): `Menu/BootSplash.c`

### Settings and support

- [Settings logic](https://github.com/openhandheldcollective/openabl/blob/main/Core/Settings.c): `Core/Settings.c`
- [Persistent settings](https://github.com/openhandheldcollective/openabl/blob/main/Core/SettingsStore.c): `Core/SettingsStore.c`
- [Linux uninstall](https://github.com/openhandheldcollective/openabl/blob/main/Efi/Uninstall.c): `Efi/Uninstall.c`
- [Device information](https://github.com/openhandheldcollective/openabl/blob/main/Efi/SysInfo.c): `Efi/SysInfo.c`

### Other components

- **Power-on user**
- **Linux kernel**
- **Android system**

## Connections

- Power-on user → ABL menu host: starts device
- ABL menu host → Menu entry point: launches menu
- Menu entry point → Settings logic: sets up (evidence: `Menu/Main.c`)
- Menu actions → Application state: updates state (evidence: `Menu/Menu.c`)
- Screen rendering → Application state: renders state (evidence: `View/View.c`)
- Screen rendering → Translations: uses strings (evidence: `View/View.c`)
- Settings logic → Persistent settings: reads and saves (evidence: `Core/Settings.c`)
- Application state → Settings logic: changes options (evidence: `Ui/App.c`)
- Menu entry point → Boot decision: selects boot mode (evidence: `Menu/Main.c`)
- Menu entry point → Entry discovery: scans drives
- Entry discovery → EFI file access: reads boot files
- Menu entry point → Target planning: plans targets
- Target planning → Entry discovery: orders entries
- Menu entry point → Linux image boot: starts Linux flow (evidence: `Menu/Main.c`)
- Linux image boot → Target planning: tries planned targets
- Linux image boot → Image loading: loads kernel image
- Image loading → OS handover: prepares handover
- OS handover → Linux kernel: starts OS
- Menu entry point → Android boot: starts Android path
- Android boot → Qualcomm firmware: uses Android boot
- Qualcomm firmware → Android system: loads system
- Entry discovery → Device storage: scans boot sources
- Menu entry point → USB host and drives: starts USB host (evidence: `Menu/Main.c`)
- USB host and drives → Device storage: provides USB drives
- Menu entry point → Device models: scans device models (evidence: `Menu/Main.c`)
- Device models → Device-tree support: selects Linux tree
- Menu entry point → Boot splash: shows boot logo
- Menu entry point → Display handover: arms display handover (evidence: `Menu/Main.c`)
- Display handover → Linux kernel: preserves splash
- Menu actions → Linux uninstall: offers removal
- Menu actions → Device information: shows device details
- Menu entry point → Qualcomm firmware: requests boot preparation (evidence: `Menu/Main.c`)
