# 0x192/universal-android-debloater architecture

> Architecture diagram of the GitHub repository 0x192/universal-android-debloater, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/0x192/universal-android-debloater
- Repository: https://github.com/0x192/universal-android-debloater

## Overview

Universal Android Debloater GUI is a Rust desktop app for reviewing Android system packages and disabling, uninstalling, restoring, or enabling them over ADB. The main workflow is device discovery, loading debloat-list metadata and device package state, then selecting packages and applying actions; package browsing includes user and list filters. Settings cover themes, device behavior, and backups, while the README also documents selection import/export and action logging. The graph preserves those documented capabilities; unsampled implementation details are represented only where their subsystem path is clear.

Main entry points: [`src/gui/mod.rs`](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/mod.rs) (GUI coordinator), [`src/gui/views/list.rs`](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/list.rs) (Package browser), [`src/gui/views/settings.rs`](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/settings.rs) (Settings view), [`src/core/sync.rs`](https://github.com/0x192/universal-android-debloater/blob/main/src/core/sync.rs) (ADB and device state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and UI"]
  node_app["GUI coordinator<br/>[mod.rs]"]
  node_nav["Navigation menu<br/>[navigation_menu.rs]"]
  node_about["About and updates<br/>[about.rs]"]
end

subgraph group_packages["Package management"]
  node_listview["Package browser<br/>[list.rs]"]
  node_row["Package row<br/>[package_row.rs]"]
  node_metadata["Debloat-list metadata<br/>[uad_lists.rs]"]
  node_adb["ADB and device state<br/>[sync.rs]"]
end

subgraph group_settings["Settings and backups"]
  node_settingsview["Settings view<br/>[settings.rs]"]
  node_config[("Configuration<br/>[config.rs]")]
  node_backup["Device backups<br/>[save.rs]"]
end

subgraph group_support["Shared services"]
  node_theme["Theme palettes<br/>[theme.rs]"]
  node_style["UI styling<br/>[style.rs]"]
  node_utils["Package utilities<br/>[utils.rs]"]
  node_updater["Release updater<br/>[update.rs]"]
end

node_user(("UAD user"))
node_android(("Android devices"))
node_github["GitHub releases"]
node_listservice["Debloat-list source"]

node_user -->|"uses"| node_app
node_app -->|"discovers devices"| node_adb
node_app -->|"dispatches actions"| node_listview
node_app -->|"dispatches actions"| node_settingsview
node_app -->|"opens view"| node_about
node_app -->|"checks releases"| node_updater
node_app -->|"renders navigation"| node_nav
node_listview -->|"requests package actions"| node_adb
node_listview -->|"loads list data"| node_metadata
node_listview -->|"builds package view"| node_utils
node_listview -->|"renders packages"| node_row
node_adb -->|"runs ADB commands"| node_android
node_metadata -->|"fetches list"| node_listservice
node_settingsview -->|"saves settings"| node_config
node_settingsview -->|"backs up and restores"| node_backup
node_settingsview -->|"queries device"| node_adb
node_settingsview -->|"selects theme"| node_theme
node_style -->|"uses palette"| node_theme
node_nav -->|"shows update status"| node_updater
node_about -->|"checks update"| node_updater
node_updater -->|"checks releases"| node_github
node_user -.->|"imports or exports selection"| node_listview
node_listview -.->|"logs package actions"| node_adb

click node_app "https://github.com/0x192/universal-android-debloater/blob/main/src/gui/mod.rs"
click node_nav "https://github.com/0x192/universal-android-debloater/blob/main/src/gui/widgets/navigation_menu.rs"
click node_about "https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/about.rs"
click node_listview "https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/list.rs"
click node_row "https://github.com/0x192/universal-android-debloater/blob/main/src/gui/widgets/package_row.rs"
click node_metadata "https://github.com/0x192/universal-android-debloater/blob/main/src/core/uad_lists.rs"
click node_adb "https://github.com/0x192/universal-android-debloater/blob/main/src/core/sync.rs"
click node_settingsview "https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/settings.rs"
click node_config "https://github.com/0x192/universal-android-debloater/blob/main/src/core/config.rs"
click node_backup "https://github.com/0x192/universal-android-debloater/blob/main/src/core/save.rs"
click node_theme "https://github.com/0x192/universal-android-debloater/blob/main/src/core/theme.rs"
click node_style "https://github.com/0x192/universal-android-debloater/blob/main/src/gui/style.rs"
click node_utils "https://github.com/0x192/universal-android-debloater/blob/main/src/core/utils.rs"
click node_updater "https://github.com/0x192/universal-android-debloater/blob/main/src/core/update.rs"

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_app,node_nav,node_about,node_user toneBlue
class node_listview,node_row,node_metadata,node_adb toneAmber
class node_settingsview,node_config,node_backup toneMint
class node_theme,node_style,node_utils,node_updater toneRose
class node_android,node_github,node_listservice toneIndigo
```

## Components

### Application and UI

- [GUI coordinator](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/mod.rs): `src/gui/mod.rs`
- [Navigation menu](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/widgets/navigation_menu.rs): `src/gui/widgets/navigation_menu.rs`
- [About and updates](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/about.rs): `src/gui/views/about.rs`

### Package management

- [Package browser](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/list.rs): `src/gui/views/list.rs`
- [Package row](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/widgets/package_row.rs): `src/gui/widgets/package_row.rs`
- [Debloat-list metadata](https://github.com/0x192/universal-android-debloater/blob/main/src/core/uad_lists.rs): `src/core/uad_lists.rs`
- [ADB and device state](https://github.com/0x192/universal-android-debloater/blob/main/src/core/sync.rs): `src/core/sync.rs`

### Settings and backups

- [Settings view](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/views/settings.rs): `src/gui/views/settings.rs`
- [Configuration](https://github.com/0x192/universal-android-debloater/blob/main/src/core/config.rs): `src/core/config.rs`
- [Device backups](https://github.com/0x192/universal-android-debloater/blob/main/src/core/save.rs): `src/core/save.rs`

### Shared services

- [Theme palettes](https://github.com/0x192/universal-android-debloater/blob/main/src/core/theme.rs): `src/core/theme.rs`
- [UI styling](https://github.com/0x192/universal-android-debloater/blob/main/src/gui/style.rs): `src/gui/style.rs`
- [Package utilities](https://github.com/0x192/universal-android-debloater/blob/main/src/core/utils.rs): `src/core/utils.rs`
- [Release updater](https://github.com/0x192/universal-android-debloater/blob/main/src/core/update.rs): `src/core/update.rs`

### Other components

- **UAD user**
- **Android devices**
- **GitHub releases**
- **Debloat-list source**

## Connections

- UAD user → GUI coordinator: uses (evidence: `README.md`)
- GUI coordinator → ADB and device state: discovers devices (evidence: `src/gui/mod.rs`)
- GUI coordinator → Package browser: dispatches actions (evidence: `src/gui/mod.rs`)
- GUI coordinator → Settings view: dispatches actions (evidence: `src/gui/mod.rs`)
- GUI coordinator → About and updates: opens view (evidence: `src/gui/mod.rs`)
- GUI coordinator → Release updater: checks releases (evidence: `src/gui/mod.rs`)
- GUI coordinator → Navigation menu: renders navigation (evidence: `src/gui/widgets/navigation_menu.rs`)
- Package browser → ADB and device state: requests package actions (evidence: `src/gui/views/list.rs`)
- Package browser → Debloat-list metadata: loads list data (evidence: `src/gui/views/list.rs`)
- Package browser → Package utilities: builds package view (evidence: `src/gui/views/list.rs`)
- Package browser → Package row: renders packages (evidence: `src/gui/widgets/package_row.rs`)
- ADB and device state → Android devices: runs ADB commands (evidence: `src/core/sync.rs`)
- Debloat-list metadata → Debloat-list source: fetches list (evidence: `src/core/uad_lists.rs`)
- Settings view → Configuration: saves settings (evidence: `src/gui/views/settings.rs`)
- Settings view → Device backups: backs up and restores (evidence: `src/gui/views/settings.rs`)
- Settings view → ADB and device state: queries device (evidence: `src/gui/views/settings.rs`)
- Settings view → Theme palettes: selects theme (evidence: `src/gui/views/settings.rs`)
- UI styling → Theme palettes: uses palette (evidence: `src/gui/style.rs`)
- Navigation menu → Release updater: shows update status (evidence: `src/gui/widgets/navigation_menu.rs`)
- About and updates → Release updater: checks update (evidence: `src/gui/views/about.rs`)
- Release updater → GitHub releases: checks releases (evidence: `src/core/update.rs`)
- UAD user → Package browser: imports or exports selection (evidence: `README.md`)
- Package browser → ADB and device state: logs package actions (evidence: `README.md`)
