# meowdump/integrity-box architecture

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

- Interactive diagram: https://gitdiagram.com/meowdump/integrity-box
- Repository: https://github.com/meowdump/integrity-box

## Overview

Integrity Box is a flashable Android root module for Play Integrity compatibility and system-signal management. Users configure features in its WebUI; the UI opens feature pages or invokes shell scripts, which apply spoofing, masking, cleanup, keybox, and target-management operations. The README documents additional capabilities whose individual implementations were not sampled, so those are represented at the documented subsystem-directory level. The supplied source excerpts show UI dispatch and shell execution, but not the internal calls of most feature scripts.

Main entry points: [`webroot/script.js`](https://github.com/meowdump/integrity-box/blob/main/webroot/script.js) (WebUI dashboard), [`webroot/common_scripts/key.sh`](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/key.sh) (Keybox management), [`customize.sh`](https://github.com/meowdump/integrity-box/blob/main/customize.sh) (Module setup), [`post-fs-data.sh`](https://github.com/meowdump/integrity-box/blob/main/post-fs-data.sh) (Boot setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Web interface"]
  node_dashboard["WebUI dashboard<br/>[script.js]"]
  node_featureui["Feature pages"]
  node_uihelpers["UI controls<br/>[script.js]"]
end

subgraph group_runtime["Module runtime"]
  node_moduleinstall["Module setup<br/>[customize.sh]"]
  node_bootsetup["Boot setup<br/>[post-fs-data.sh]"]
  node_service["Runtime service<br/>[service.sh]"]
  node_shellcommon["Shell utilities<br/>[common_func.sh]"]
end

subgraph group_signals["Signal management"]
  node_propertyspoof["Property spoofing<br/>[prop.sh]"]
  node_signalmask["Environment masking"]
  node_romspoof["ROM compatibility"]
  node_bootrepair["Boot hash repair<br/>[extract_boot.sh]"]
end

subgraph group_integrity["Integrity support"]
  node_keybox["Keybox management<br/>[key.sh]"]
  node_autopilot["Automatic updates<br/>[autopilot.sh]"]
  node_targeting["Target management<br/>[target.sh]"]
  node_tee["TEE integration"]
  node_keyboxstate["Keybox status"]
end

subgraph group_maintenance["Maintenance tools"]
  node_cleanup["Log cleanup<br/>[cleanup.sh]"]
  node_downloader["Verified downloads"]
  node_diagnostics["Detection and reports<br/>[Report.sh]"]
  node_gms["GMS controls<br/>[gms.sh]"]
end

node_user(("Device owner"))
node_optionaldownloads["Release sources"]

node_user -->|"opens"| node_dashboard
node_dashboard -->|"runs commands"| node_uihelpers
node_dashboard -->|"opens pages"| node_featureui
node_dashboard -->|"executes scripts"| node_shellcommon
node_user -->|"flashes module"| node_moduleinstall
node_moduleinstall -.->|"sets up module"| node_bootsetup
node_bootsetup -.->|"starts runtime"| node_service
node_dashboard -.->|"configures signals"| node_propertyspoof
node_dashboard -.->|"configures masking"| node_signalmask
node_dashboard -.->|"configures ROM spoofing"| node_romspoof
node_dashboard -->|"opens hash tools"| node_bootrepair
node_dashboard -->|"opens key tools"| node_keybox
node_dashboard -->|"opens autopilot"| node_autopilot
node_dashboard -.->|"opens target tools"| node_targeting
node_keybox -.->|"maintains status"| node_keyboxstate
node_tee -.->|"injects keyboxes"| node_keybox
node_targeting -.->|"checks status"| node_tee
node_dashboard -.->|"opens cleanup"| node_cleanup
node_dashboard -->|"opens downloads"| node_downloader
node_downloader -.->|"downloads tools"| node_optionaldownloads
node_dashboard -->|"opens reports"| node_diagnostics
node_dashboard -.->|"opens GMS controls"| node_gms

click node_dashboard "https://github.com/meowdump/integrity-box/blob/main/webroot/script.js"
click node_featureui "https://github.com/meowdump/integrity-box/tree/main/webroot"
click node_uihelpers "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/UI/script.js"
click node_moduleinstall "https://github.com/meowdump/integrity-box/blob/main/customize.sh"
click node_bootsetup "https://github.com/meowdump/integrity-box/blob/main/post-fs-data.sh"
click node_service "https://github.com/meowdump/integrity-box/blob/main/service.sh"
click node_shellcommon "https://github.com/meowdump/integrity-box/blob/main/common_func.sh"
click node_propertyspoof "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/prop.sh"
click node_signalmask "https://github.com/meowdump/integrity-box/tree/main/webroot/common_scripts"
click node_romspoof "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/override_lineage.sh"
click node_bootrepair "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/extract_boot.sh"
click node_keybox "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/key.sh"
click node_autopilot "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/autopilot.sh"
click node_targeting "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/target.sh"
click node_keyboxstate "https://github.com/meowdump/integrity-box/blob/main/keybox/key-status"
click node_cleanup "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/cleanup.sh"
click node_downloader "https://github.com/meowdump/integrity-box/tree/main/webroot/common_scripts"
click node_diagnostics "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/Report.sh"
click node_gms "https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/gms.sh"

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_dashboard,node_featureui,node_uihelpers toneBlue
class node_moduleinstall,node_bootsetup,node_service,node_shellcommon toneAmber
class node_propertyspoof,node_signalmask,node_romspoof,node_bootrepair toneMint
class node_keybox,node_autopilot,node_targeting,node_tee,node_keyboxstate toneRose
class node_cleanup,node_downloader,node_diagnostics,node_gms,node_user,node_optionaldownloads toneIndigo
```

## Components

### Web interface

- [WebUI dashboard](https://github.com/meowdump/integrity-box/blob/main/webroot/script.js): `webroot/script.js`
- [Feature pages](https://github.com/meowdump/integrity-box/tree/main/webroot): `webroot`
- [UI controls](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/UI/script.js): `webroot/common_scripts/UI/script.js`

### Module runtime

- [Module setup](https://github.com/meowdump/integrity-box/blob/main/customize.sh): `customize.sh`
- [Boot setup](https://github.com/meowdump/integrity-box/blob/main/post-fs-data.sh): `post-fs-data.sh`
- [Runtime service](https://github.com/meowdump/integrity-box/blob/main/service.sh): `service.sh`
- [Shell utilities](https://github.com/meowdump/integrity-box/blob/main/common_func.sh): `common_func.sh`

### Signal management

- [Property spoofing](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/prop.sh): `webroot/common_scripts/prop.sh`
- [Environment masking](https://github.com/meowdump/integrity-box/tree/main/webroot/common_scripts): `webroot/common_scripts`
- [ROM compatibility](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/override_lineage.sh): `webroot/common_scripts/override_lineage.sh`
- [Boot hash repair](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/extract_boot.sh): `webroot/common_scripts/extract_boot.sh`

### Integrity support

- [Keybox management](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/key.sh): `webroot/common_scripts/key.sh`
- [Automatic updates](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/autopilot.sh): `webroot/common_scripts/autopilot.sh`
- [Target management](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/target.sh): `webroot/common_scripts/target.sh`
- **TEE integration**
- [Keybox status](https://github.com/meowdump/integrity-box/blob/main/keybox/key-status): `keybox/key-status`

### Maintenance tools

- [Log cleanup](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/cleanup.sh): `webroot/common_scripts/cleanup.sh`
- [Verified downloads](https://github.com/meowdump/integrity-box/tree/main/webroot/common_scripts): `webroot/common_scripts`
- [Detection and reports](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/Report.sh): `webroot/common_scripts/Report.sh`
- [GMS controls](https://github.com/meowdump/integrity-box/blob/main/webroot/common_scripts/gms.sh): `webroot/common_scripts/gms.sh`

### Other components

- **Device owner**
- **Release sources**

## Connections

- Device owner → WebUI dashboard: opens (evidence: `README.md`)
- WebUI dashboard → UI controls: runs commands (evidence: `webroot/script.js`)
- WebUI dashboard → Feature pages: opens pages (evidence: `webroot/script.js`)
- WebUI dashboard → Shell utilities: executes scripts (evidence: `webroot/script.js`)
- Device owner → Module setup: flashes module (evidence: `README.md`)
- Module setup → Boot setup: sets up module
- Boot setup → Runtime service: starts runtime
- WebUI dashboard → Property spoofing: configures signals
- WebUI dashboard → Environment masking: configures masking
- WebUI dashboard → ROM compatibility: configures ROM spoofing
- WebUI dashboard → Boot hash repair: opens hash tools (evidence: `webroot/script.js`)
- WebUI dashboard → Keybox management: opens key tools (evidence: `webroot/script.js`)
- WebUI dashboard → Automatic updates: opens autopilot (evidence: `webroot/script.js`)
- WebUI dashboard → Target management: opens target tools
- Keybox management → Keybox status: maintains status
- TEE integration → Keybox management: injects keyboxes (evidence: `README.md`)
- Target management → TEE integration: checks status (evidence: `README.md`)
- WebUI dashboard → Log cleanup: opens cleanup
- WebUI dashboard → Verified downloads: opens downloads (evidence: `webroot/script.js`)
- Verified downloads → Release sources: downloads tools (evidence: `README.md`)
- WebUI dashboard → Detection and reports: opens reports (evidence: `webroot/script.js`)
- WebUI dashboard → GMS controls: opens GMS controls
