# realkarthiknair/realme-ui-debloater architecture

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

- Interactive diagram: https://gitdiagram.com/realkarthiknair/realme-ui-debloater
- Repository: https://github.com/realkarthiknair/realme-ui-debloater

## Overview

This repository is a cross-platform Realme UI debloating utility. The main workflow is: a user runs the platform-specific debloat script, ADB communicates with the Android device, and the user can later run the corresponding undo script to revert changes. Windows also includes scripts for reinstalling selected apps. The README documents the supported platforms and usage, but the platform scripts were not sampled, so their internal command sequences and package-level effects cannot be verified here.

Main entry points: [`Windows Version/adb.exe`](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/adb.exe) (Windows ADB), [`Linux Version/adb`](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Linux%20Version/adb) (Linux ADB), [`MacOS Version/adb`](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/MacOS%20Version/adb) (macOS ADB), [`Windows Version/DebloatRealme.bat`](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/DebloatRealme.bat) (Windows debloat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform_workflows["Platform workflows"]
  node_windows_debloat["Windows debloat<br/>[DebloatRealme.bat]"]
  node_windows_undo["Windows undo"]
  node_windows_reinstall["App reinstallers"]
  node_linux_debloat["Linux debloat<br/>[debloat.sh]"]
  node_linux_undo["Linux undo"]
  node_macos_debloat["macOS debloat<br/>[debloat.sh]"]
  node_macos_undo["macOS undo"]
  node_bsd_debloat["BSD debloat<br/>[debloat.sh]"]
  node_bsd_undo["BSD undo"]
end

subgraph group_adb_tools["ADB tools"]
  node_windows_adb["Windows ADB<br/>[adb.exe]"]
  node_linux_adb["Linux ADB"]
  node_macos_adb["macOS ADB"]
  node_bsd_adb["BSD ADB"]
end

subgraph group_android_device["Android device"]
  node_device["Realme device"]
end

node_user(("User"))

node_user -->|"runs"| node_windows_debloat
node_user -->|"runs"| node_windows_undo
node_user -.->|"runs"| node_windows_reinstall
node_user -->|"runs"| node_linux_debloat
node_user -->|"runs"| node_linux_undo
node_user -->|"runs"| node_macos_debloat
node_user -->|"runs"| node_macos_undo
node_user -->|"runs"| node_bsd_debloat
node_user -->|"runs"| node_bsd_undo
node_windows_debloat -->|"uses"| node_windows_adb
node_windows_undo -->|"uses"| node_windows_adb
node_linux_debloat -->|"uses"| node_linux_adb
node_linux_undo -->|"uses"| node_linux_adb
node_macos_debloat -->|"uses"| node_macos_adb
node_macos_undo -->|"uses"| node_macos_adb
node_bsd_debloat -->|"uses"| node_bsd_adb
node_bsd_undo -->|"uses"| node_bsd_adb
node_windows_reinstall -.->|"restores apps"| node_device
node_windows_adb -->|"communicates with"| node_device
node_linux_adb -->|"communicates with"| node_device
node_macos_adb -->|"communicates with"| node_device
node_bsd_adb -->|"communicates with"| node_device

click node_windows_debloat "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/DebloatRealme.bat"
click node_windows_undo "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/Undo_all_actions.bat"
click node_windows_reinstall "https://github.com/realkarthiknair/realme-ui-debloater/tree/main/Windows%20Version/Reinstall%20Some%20apps"
click node_linux_debloat "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Linux%20Version/debloat.sh"
click node_linux_undo "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Linux%20Version/undo_all_actions.sh"
click node_macos_debloat "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/MacOS%20Version/debloat.sh"
click node_macos_undo "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/MacOS%20Version/undo_all_actions.sh"
click node_bsd_debloat "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/BSD%20Version/debloat.sh"
click node_bsd_undo "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/BSD%20Version/undo_all_actions.sh"
click node_windows_adb "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/adb.exe"
click node_linux_adb "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Linux%20Version/adb"
click node_macos_adb "https://github.com/realkarthiknair/realme-ui-debloater/blob/main/MacOS%20Version/adb"

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_windows_debloat,node_windows_undo,node_windows_reinstall,node_linux_debloat,node_linux_undo,node_macos_debloat,node_macos_undo,node_bsd_debloat,node_bsd_undo,node_user toneBlue
class node_windows_adb,node_linux_adb,node_macos_adb,node_bsd_adb toneAmber
class node_device toneMint
```

## Components

### Platform workflows

- [Windows debloat](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/DebloatRealme.bat): `Windows Version/DebloatRealme.bat`
- [Windows undo](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/Undo_all_actions.bat): `Windows Version/Undo_all_actions.bat`
- [App reinstallers](https://github.com/realkarthiknair/realme-ui-debloater/tree/main/Windows%20Version/Reinstall%20Some%20apps): `Windows Version/Reinstall Some apps`
- [Linux debloat](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Linux%20Version/debloat.sh): `Linux Version/debloat.sh`
- [Linux undo](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Linux%20Version/undo_all_actions.sh): `Linux Version/undo_all_actions.sh`
- [macOS debloat](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/MacOS%20Version/debloat.sh): `MacOS Version/debloat.sh`
- [macOS undo](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/MacOS%20Version/undo_all_actions.sh): `MacOS Version/undo_all_actions.sh`
- [BSD debloat](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/BSD%20Version/debloat.sh): `BSD Version/debloat.sh`
- [BSD undo](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/BSD%20Version/undo_all_actions.sh): `BSD Version/undo_all_actions.sh`

### ADB tools

- [Windows ADB](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Windows%20Version/adb.exe): `Windows Version/adb.exe`
- [Linux ADB](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/Linux%20Version/adb): `Linux Version/adb`
- [macOS ADB](https://github.com/realkarthiknair/realme-ui-debloater/blob/main/MacOS%20Version/adb): `MacOS Version/adb`
- **BSD ADB**

### Android device

- **Realme device**

### Other components

- **User**

## Connections

- User → Windows debloat: runs (evidence: `README.md`)
- User → Windows undo: runs (evidence: `README.md`)
- User → App reinstallers: runs
- User → Linux debloat: runs (evidence: `README.md`)
- User → Linux undo: runs (evidence: `README.md`)
- User → macOS debloat: runs (evidence: `README.md`)
- User → macOS undo: runs (evidence: `README.md`)
- User → BSD debloat: runs (evidence: `README.md`)
- User → BSD undo: runs (evidence: `README.md`)
- Windows debloat → Windows ADB: uses (evidence: `README.md`)
- Windows undo → Windows ADB: uses (evidence: `README.md`)
- Linux debloat → Linux ADB: uses (evidence: `README.md`)
- Linux undo → Linux ADB: uses (evidence: `README.md`)
- macOS debloat → macOS ADB: uses (evidence: `README.md`)
- macOS undo → macOS ADB: uses (evidence: `README.md`)
- BSD debloat → BSD ADB: uses (evidence: `README.md`)
- BSD undo → BSD ADB: uses (evidence: `README.md`)
- App reinstallers → Realme device: restores apps
- Windows ADB → Realme device: communicates with (evidence: `README.md`)
- Linux ADB → Realme device: communicates with (evidence: `README.md`)
- macOS ADB → Realme device: communicates with (evidence: `README.md`)
- BSD ADB → Realme device: communicates with (evidence: `README.md`)
