# tentex1/adbfastbootgui architecture

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

- Interactive diagram: https://gitdiagram.com/tentex1/adbfastbootgui
- Repository: https://github.com/tentex1/adbfastbootgui

## Overview

ADBFastbootGUI is a Windows WPF desktop tool for managing Android devices over ADB and Fastboot. The user works through the main window to discover devices and perform mode-specific operations; device discovery and status are also represented by the MVVM view model and command services. The README documents additional file, app, screen-mirroring, wireless, and partition workflows. Some feature windows were not shown calling the main services, so those documented capabilities are included without guessed implementation links.

Main entry points: [`src/ADBFastbootGUI/MainWindow.xaml.cs`](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs) (Main window), [`src/ADBFastbootGUI/ViewModels/MainViewModel.cs`](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/ViewModels/MainViewModel.cs) (Device view model), [`src/ADBFastbootGUI/Services/AdbService.cs`](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Services/AdbService.cs) (ADB command service), [`src/ADBFastbootGUI/Services/FastbootService.cs`](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Services/FastbootService.cs) (Fastboot command service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_main["Main window<br/>[MainWindow.xaml.cs]"]
  node_wireless["Wireless pairing"]
  node_files["File transfer"]
  node_apps["App management"]
  node_partitions["Logical partitions"]
  node_settings["Settings and themes"]
end

subgraph group_state["Device state"]
  node_vm["Device view model<br/>[MainViewModel.cs]"]
  node_commands["Command helpers<br/>[RelayCommand.cs]"]
  node_vm_base["Property notifications<br/>[ViewModelBase.cs]"]
  node_theme["Theme state"]
end

subgraph group_adb["ADB operations"]
  node_adb["ADB command service<br/>[AdbService.cs]"]
  node_adb_device["ADB device actions<br/>[MainWindow.xaml.cs]"]
  node_scrcpy["Screen mirroring<br/>[MainWindow.xaml.cs]"]
end

subgraph group_fastboot["Fastboot operations"]
  node_fastboot["Fastboot command service<br/>[FastbootService.cs]"]
  node_fastboot_device["Fastboot actions<br/>[MainWindow.xaml.cs]"]
end

node_user(("Desktop user"))
node_android(("Android device"))

node_user -->|"uses"| node_main
node_main -->|"updates state"| node_vm
node_vm -->|"queries devices"| node_adb
node_vm -->|"queries devices"| node_fastboot
node_vm -->|"creates command"| node_commands
node_vm -->|"inherits"| node_vm_base
node_main -->|"runs commands"| node_adb
node_main -->|"runs commands"| node_fastboot
node_main -->|"uses theme state"| node_theme
node_main -->|"opens window"| node_wireless
node_main -->|"offers operations"| node_adb_device
node_main -->|"offers operations"| node_fastboot_device
node_main -->|"offers transfer"| node_files
node_main -->|"offers management"| node_apps
node_main -->|"offers management"| node_partitions
node_main -->|"offers mirroring"| node_scrcpy
node_settings -->|"changes theme"| node_theme
node_wireless -->|"pairs device"| node_android
node_adb -.->|"controls device"| node_android
node_fastboot -.->|"controls device"| node_android

click node_main "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs"
click node_wireless "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Windows/WirelessConnectionWindow.xaml.cs"
click node_files "https://github.com/tentex1/adbfastbootgui/tree/main/src/ADBFastbootGUI/Windows"
click node_apps "https://github.com/tentex1/adbfastbootgui/tree/main/src/ADBFastbootGUI/Windows"
click node_partitions "https://github.com/tentex1/adbfastbootgui/tree/main/src/ADBFastbootGUI/Windows/PartitionManagement"
click node_settings "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Windows/SettingsWindow.xaml.cs"
click node_vm "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/ViewModels/MainViewModel.cs"
click node_commands "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/ViewModels/RelayCommand.cs"
click node_vm_base "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/ViewModels/ViewModelBase.cs"
click node_theme "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Themes/ThemeManagerHelper.cs"
click node_adb "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Services/AdbService.cs"
click node_fastboot "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Services/FastbootService.cs"
click node_adb_device "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs"
click node_fastboot_device "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs"
click node_scrcpy "https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs"

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_main,node_wireless,node_files,node_apps,node_partitions,node_settings,node_user toneBlue
class node_vm,node_commands,node_vm_base,node_theme toneAmber
class node_adb,node_adb_device,node_scrcpy toneMint
class node_fastboot,node_fastboot_device toneRose
class node_android toneIndigo
```

## Components

### Desktop interface

- [Main window](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs): `src/ADBFastbootGUI/MainWindow.xaml.cs`
- [Wireless pairing](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Windows/WirelessConnectionWindow.xaml.cs): `src/ADBFastbootGUI/Windows/WirelessConnectionWindow.xaml.cs`
- [File transfer](https://github.com/tentex1/adbfastbootgui/tree/main/src/ADBFastbootGUI/Windows): `src/ADBFastbootGUI/Windows`
- [App management](https://github.com/tentex1/adbfastbootgui/tree/main/src/ADBFastbootGUI/Windows): `src/ADBFastbootGUI/Windows`
- [Logical partitions](https://github.com/tentex1/adbfastbootgui/tree/main/src/ADBFastbootGUI/Windows/PartitionManagement): `src/ADBFastbootGUI/Windows/PartitionManagement`
- [Settings and themes](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Windows/SettingsWindow.xaml.cs): `src/ADBFastbootGUI/Windows/SettingsWindow.xaml.cs`

### Device state

- [Device view model](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/ViewModels/MainViewModel.cs): `src/ADBFastbootGUI/ViewModels/MainViewModel.cs`
- [Command helpers](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/ViewModels/RelayCommand.cs): `src/ADBFastbootGUI/ViewModels/RelayCommand.cs`
- [Property notifications](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/ViewModels/ViewModelBase.cs): `src/ADBFastbootGUI/ViewModels/ViewModelBase.cs`
- [Theme state](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Themes/ThemeManagerHelper.cs): `src/ADBFastbootGUI/Themes/ThemeManagerHelper.cs`

### ADB operations

- [ADB command service](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Services/AdbService.cs): `src/ADBFastbootGUI/Services/AdbService.cs`
- [ADB device actions](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs): `src/ADBFastbootGUI/MainWindow.xaml.cs`
- [Screen mirroring](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs): `src/ADBFastbootGUI/MainWindow.xaml.cs`

### Fastboot operations

- [Fastboot command service](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/Services/FastbootService.cs): `src/ADBFastbootGUI/Services/FastbootService.cs`
- [Fastboot actions](https://github.com/tentex1/adbfastbootgui/blob/main/src/ADBFastbootGUI/MainWindow.xaml.cs): `src/ADBFastbootGUI/MainWindow.xaml.cs`

### Other components

- **Desktop user**
- **Android device**

## Connections

- Desktop user → Main window: uses (evidence: `README.md`)
- Main window → Device view model: updates state (evidence: `src/ADBFastbootGUI/MainWindow.xaml.cs`)
- Device view model → ADB command service: queries devices (evidence: `src/ADBFastbootGUI/ViewModels/MainViewModel.cs`)
- Device view model → Fastboot command service: queries devices (evidence: `src/ADBFastbootGUI/ViewModels/MainViewModel.cs`)
- Device view model → Command helpers: creates command (evidence: `src/ADBFastbootGUI/ViewModels/MainViewModel.cs`)
- Device view model → Property notifications: inherits (evidence: `src/ADBFastbootGUI/ViewModels/MainViewModel.cs`)
- Main window → ADB command service: runs commands (evidence: `src/ADBFastbootGUI/MainWindow.xaml.cs`)
- Main window → Fastboot command service: runs commands (evidence: `src/ADBFastbootGUI/MainWindow.xaml.cs`)
- Main window → Theme state: uses theme state (evidence: `src/ADBFastbootGUI/MainWindow.xaml.cs`)
- Main window → Wireless pairing: opens window (evidence: `src/ADBFastbootGUI/MainWindow.xaml.cs`)
- Main window → ADB device actions: offers operations (evidence: `README.md`)
- Main window → Fastboot actions: offers operations (evidence: `README.md`)
- Main window → File transfer: offers transfer (evidence: `README.md`)
- Main window → App management: offers management (evidence: `README.md`)
- Main window → Logical partitions: offers management (evidence: `README.md`)
- Main window → Screen mirroring: offers mirroring (evidence: `README.md`)
- Settings and themes → Theme state: changes theme (evidence: `src/ADBFastbootGUI/Windows/SettingsWindow.xaml.cs`)
- Wireless pairing → Android device: pairs device (evidence: `src/ADBFastbootGUI/Windows/WirelessConnectionWindow.xaml.cs`)
- ADB command service → Android device: controls device (evidence: `README.md`)
- Fastboot command service → Android device: controls device (evidence: `README.md`)
