# olegos2/mobox architecture

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

- Interactive diagram: https://gitdiagram.com/olegos2/mobox
- Repository: https://github.com/olegos2/mobox

## Overview

Mobox is a Termux-based Android environment for running Windows x86 applications through Box64 and Wine. The documented workflow is to install it in Termux, launch its menu, configure or install a Wine environment, then run applications with display and optional touch-input support. The README also documents graphics options, compatibility and system settings, root memory adjustment, logging, and backup/restore. Source excerpts were unavailable, so paths use only the supplied tree and links reflect documented behavior rather than inferred internal calls.

Main entry points: [`install`](https://github.com/olegos2/mobox/blob/main/install) (Mobox menu), [`components/termux-x11.apk`](https://github.com/olegos2/mobox/blob/main/components/termux-x11.apk) (Termux-X11), [`components`](https://github.com/olegos2/mobox/tree/main/components) (Box64), [`components/inputbridge.apk`](https://github.com/olegos2/mobox/blob/main/components/inputbridge.apk) (Input Bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and launch"]
  node_installer["Installer"]
  node_mobox["Mobox menu"]
  node_backup["Backup and restore"]
end

subgraph group_runtime["Windows runtime"]
  node_wine["Wine environment"]
  node_box64["Box64"]
  node_box86["Box86"]
  node_graphics["Graphics options"]
end

subgraph group_config["Configuration and support"]
  node_dynarec["Dynarec settings"]
  node_systemsettings["System settings"]
  node_compatibility["Compatibility settings"]
  node_oom["OOM Adjuster"]
  node_logging["Debug logging"]
end

subgraph group_display["Display and input"]
  node_x11["Termux-X11<br/>[termux-x11.apk]"]
  node_inputbridge["Input Bridge<br/>[inputbridge.apk]"]
end

node_user(("User"))
node_termux["Termux"]
node_android["Android device"]
node_windowsapp["Windows x86 app"]

node_user -->|"runs installer"| node_installer
node_installer -->|"installs into"| node_termux
node_user -->|"launches in Termux"| node_mobox
node_mobox -->|"manages packages"| node_wine
node_mobox -->|"offers backup"| node_backup
node_mobox -->|"opens settings"| node_dynarec
node_mobox -->|"opens settings"| node_systemsettings
node_mobox -->|"opens settings"| node_compatibility
node_mobox -->|"offers adjustment"| node_oom
node_mobox -->|"enables logging"| node_logging
node_user -->|"runs through Wine"| node_windowsapp
node_wine -->|"uses translation"| node_box64
node_wine -->|"uses translation"| node_box86
node_wine -->|"supports graphics"| node_graphics
node_wine -->|"displays through"| node_x11
node_user -.->|"uses touch controls"| node_inputbridge
node_x11 -->|"shows display"| node_android

click node_installer "https://github.com/olegos2/mobox/blob/main/install"
click node_mobox "https://github.com/olegos2/mobox/blob/main/install"
click node_backup "https://github.com/olegos2/mobox/blob/main/install"
click node_wine "https://github.com/olegos2/mobox/blob/main/install"
click node_box64 "https://github.com/olegos2/mobox/tree/main/components"
click node_box86 "https://github.com/olegos2/mobox/tree/main/components"
click node_graphics "https://github.com/olegos2/mobox/tree/main/components"
click node_dynarec "https://github.com/olegos2/mobox/blob/main/install"
click node_systemsettings "https://github.com/olegos2/mobox/blob/main/install"
click node_compatibility "https://github.com/olegos2/mobox/blob/main/install"
click node_oom "https://github.com/olegos2/mobox/blob/main/install"
click node_logging "https://github.com/olegos2/mobox/blob/main/install"
click node_x11 "https://github.com/olegos2/mobox/blob/main/components/termux-x11.apk"
click node_inputbridge "https://github.com/olegos2/mobox/blob/main/components/inputbridge.apk"

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_mobox,node_backup,node_user toneBlue
class node_wine,node_box64,node_box86,node_graphics toneAmber
class node_dynarec,node_systemsettings,node_compatibility,node_oom,node_logging toneMint
class node_x11,node_inputbridge toneRose
class node_termux,node_android,node_windowsapp toneIndigo
```

## Components

### Setup and launch

- [Installer](https://github.com/olegos2/mobox/blob/main/install): `install`
- [Mobox menu](https://github.com/olegos2/mobox/blob/main/install): `install`
- [Backup and restore](https://github.com/olegos2/mobox/blob/main/install): `install`

### Windows runtime

- [Wine environment](https://github.com/olegos2/mobox/blob/main/install): `install`
- [Box64](https://github.com/olegos2/mobox/tree/main/components): `components`
- [Box86](https://github.com/olegos2/mobox/tree/main/components): `components`
- [Graphics options](https://github.com/olegos2/mobox/tree/main/components): `components`

### Configuration and support

- [Dynarec settings](https://github.com/olegos2/mobox/blob/main/install): `install`
- [System settings](https://github.com/olegos2/mobox/blob/main/install): `install`
- [Compatibility settings](https://github.com/olegos2/mobox/blob/main/install): `install`
- [OOM Adjuster](https://github.com/olegos2/mobox/blob/main/install): `install`
- [Debug logging](https://github.com/olegos2/mobox/blob/main/install): `install`

### Display and input

- [Termux-X11](https://github.com/olegos2/mobox/blob/main/components/termux-x11.apk): `components/termux-x11.apk`
- [Input Bridge](https://github.com/olegos2/mobox/blob/main/components/inputbridge.apk): `components/inputbridge.apk`

### Other components

- **User**
- **Termux**
- **Android device**
- **Windows x86 app**

## Connections

- User → Installer: runs installer
- Installer → Termux: installs into
- User → Mobox menu: launches in Termux
- Mobox menu → Wine environment: manages packages
- Mobox menu → Backup and restore: offers backup
- Mobox menu → Dynarec settings: opens settings
- Mobox menu → System settings: opens settings
- Mobox menu → Compatibility settings: opens settings
- Mobox menu → OOM Adjuster: offers adjustment
- Mobox menu → Debug logging: enables logging
- User → Windows x86 app: runs through Wine
- Wine environment → Box64: uses translation
- Wine environment → Box86: uses translation
- Wine environment → Graphics options: supports graphics
- Wine environment → Termux-X11: displays through
- User → Input Bridge: uses touch controls
- Termux-X11 → Android device: shows display
