# ramneet4002/stb-comprehensive-guide architecture

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

- Interactive diagram: https://gitdiagram.com/ramneet4002/stb-comprehensive-guide
- Repository: https://github.com/ramneet4002/stb-comprehensive-guide

## Overview

This repository guides Jio STB owners through two product stages: enabling developer access and blocking FOTA, then deploying and configuring the CleanYourTV launcher. The first stage sets up a local network and ACS interception flow; the second uses an AI-assisted ADB workflow to inspect apps, preserve essential packages, customize launcher settings, and verify the result. The graph combines sampled Python behavior with README-documented capabilities; stage1, launcher deployment, and configuration internals were not sampled, so their links rely on the README.

Main entry points: [`Enable DeveloperOptions/eth_server.py`](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/eth_server.py) (Ethernet Helper), [`Enable DeveloperOptions/tls/pass_front.py`](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/tls/pass_front.py) (TLS Front), [`Enable DeveloperOptions/restore_and_protect.py`](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/restore_and_protect.py) (Package Curator), [`Enable DeveloperOptions/tls`](https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions/tls) (GenieACS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Developer Access"]
  node_acs["GenieACS"]
  node_mongo[("MongoDB")]
  node_injector["Task Injector"]
  node_developer["Developer Access"]
end

subgraph group_network["Local Network"]
  node_eth["Ethernet Helper<br/>[eth_server.py]"]
  node_fake_dns["DNS Alternative<br/>[fake_dns.py]"]
  node_proxy["TLS Front<br/>[pass_front.py]"]
end

subgraph group_launcher["Launcher Setup"]
  node_prompt["Setup Instructions<br/>[PROMPT.md]"]
  node_inventory["App Inspection"]
  node_launcher_config["Launcher Settings<br/>[config.xml]"]
  node_theme["Wallpaper Theme<br/>[config.json]"]
  node_deployment["Launcher Deployment"]
  node_apk["CleanYourTV APK<br/>[app-release.apk]"]
  node_verification["Live Verification<br/>[PROMPT.md]"]
end

subgraph group_device["Device Management"]
  node_curator["Package Curator"]
end

node_owner(("STB Owner"))
node_assistant(("AI Assistant"))
node_stb["Jio STB"]

node_owner -->|"starts setup"| node_eth
node_eth -->|"offers DHCP, DNS"| node_stb
node_eth -->|"starts if needed"| node_proxy
node_stb -->|"sends TLS"| node_proxy
node_proxy -->|"forwards CWMP"| node_acs
node_acs -.->|"uses stack"| node_mongo
node_stb -->|"receives tasks"| node_injector
node_injector -->|"enables options"| node_developer
node_owner -.->|"chooses alternative"| node_fake_dns
node_owner -->|"runs protection"| node_curator
node_curator -->|"manages packages"| node_stb
node_owner -->|"provides prompt"| node_assistant
node_assistant -->|"follows workflow"| node_prompt
node_assistant -->|"connects over ADB"| node_stb
node_assistant -->|"scans installed apps"| node_inventory
node_assistant -->|"configures mappings"| node_launcher_config
node_assistant -->|"sets rotation"| node_theme
node_assistant -->|"deploys launcher"| node_deployment
node_deployment -.->|"installs release"| node_apk
node_assistant -->|"disables telemetry"| node_curator
node_assistant -->|"checks screenshots"| node_verification

click node_eth "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/eth_server.py"
click node_fake_dns "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/fake_dns.py"
click node_proxy "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/tls/pass_front.py"
click node_acs "https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions/tls"
click node_mongo "https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions/tls"
click node_injector "https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions"
click node_developer "https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions"
click node_curator "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/restore_and_protect.py"
click node_prompt "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/PROMPT.md"
click node_inventory "https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Custom%20Launcher"
click node_launcher_config "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/config.xml"
click node_theme "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/theme/config.json"
click node_deployment "https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Custom%20Launcher"
click node_apk "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/app-release.apk"
click node_verification "https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/PROMPT.md"

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_acs,node_mongo,node_injector,node_developer toneBlue
class node_eth,node_fake_dns,node_proxy toneAmber
class node_prompt,node_inventory,node_launcher_config,node_theme,node_deployment,node_apk,node_verification toneMint
class node_curator toneRose
class node_owner,node_assistant,node_stb toneIndigo
```

## Components

### Developer Access

- [GenieACS](https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions/tls): `Enable DeveloperOptions/tls`
- [MongoDB](https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions/tls): `Enable DeveloperOptions/tls`
- [Task Injector](https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions): `Enable DeveloperOptions`
- [Developer Access](https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Enable%20DeveloperOptions): `Enable DeveloperOptions`

### Local Network

- [Ethernet Helper](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/eth_server.py): `Enable DeveloperOptions/eth_server.py`
- [DNS Alternative](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/fake_dns.py): `Enable DeveloperOptions/fake_dns.py`
- [TLS Front](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/tls/pass_front.py): `Enable DeveloperOptions/tls/pass_front.py`

### Launcher Setup

- [Setup Instructions](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/PROMPT.md): `Custom Launcher/PROMPT.md`
- [App Inspection](https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Custom%20Launcher): `Custom Launcher`
- [Launcher Settings](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/config.xml): `Custom Launcher/config.xml`
- [Wallpaper Theme](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/theme/config.json): `Custom Launcher/theme/config.json`
- [Launcher Deployment](https://github.com/ramneet4002/stb-comprehensive-guide/tree/main/Custom%20Launcher): `Custom Launcher`
- [CleanYourTV APK](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/app-release.apk): `Custom Launcher/app-release.apk`
- [Live Verification](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Custom%20Launcher/PROMPT.md): `Custom Launcher/PROMPT.md`

### Device Management

- [Package Curator](https://github.com/ramneet4002/stb-comprehensive-guide/blob/main/Enable%20DeveloperOptions/restore_and_protect.py): `Enable DeveloperOptions/restore_and_protect.py`

### Other components

- **STB Owner**
- **AI Assistant**
- **Jio STB**

## Connections

- STB Owner → Ethernet Helper: starts setup (evidence: `README.md`)
- Ethernet Helper → Jio STB: offers DHCP, DNS (evidence: `Enable DeveloperOptions/eth_server.py`)
- Ethernet Helper → TLS Front: starts if needed (evidence: `Enable DeveloperOptions/eth_server.py`)
- Jio STB → TLS Front: sends TLS (evidence: `README.md`)
- TLS Front → GenieACS: forwards CWMP (evidence: `Enable DeveloperOptions/tls/pass_front.py`)
- GenieACS → MongoDB: uses stack (evidence: `README.md`)
- Jio STB → Task Injector: receives tasks (evidence: `README.md`)
- Task Injector → Developer Access: enables options (evidence: `README.md`)
- STB Owner → DNS Alternative: chooses alternative (evidence: `README.md`)
- STB Owner → Package Curator: runs protection (evidence: `Enable DeveloperOptions/restore_and_protect.py`)
- Package Curator → Jio STB: manages packages (evidence: `Enable DeveloperOptions/restore_and_protect.py`)
- STB Owner → AI Assistant: provides prompt (evidence: `README.md`)
- AI Assistant → Setup Instructions: follows workflow (evidence: `README.md`)
- AI Assistant → Jio STB: connects over ADB (evidence: `README.md`)
- AI Assistant → App Inspection: scans installed apps (evidence: `README.md`)
- AI Assistant → Launcher Settings: configures mappings (evidence: `README.md`)
- AI Assistant → Wallpaper Theme: sets rotation (evidence: `README.md`)
- AI Assistant → Launcher Deployment: deploys launcher (evidence: `README.md`)
- Launcher Deployment → CleanYourTV APK: installs release (evidence: `README.md`)
- AI Assistant → Package Curator: disables telemetry (evidence: `README.md`)
- AI Assistant → Live Verification: checks screenshots (evidence: `README.md`)
