# seci20/positive-tool-dost-version-v1.2-purna-borno architecture

> Architecture diagram of the GitHub repository seci20/positive-tool-dost-version-v1.2-purna-borno, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seci20/positive-tool-dost-version-v1.2-purna-borno
- Repository: https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno

## Overview

Positive Tool is a Windows/Python utility for obtaining temporary root on supported Xiaomi devices through ADB. The user starts either the GUI or command-line workflow; it prepares the device, transfers the payload, obtains a PURNA challenge, calculates a BORNO token, submits it, and checks root access. The GUI uses the bundled ADB executable; the command-line script invokes `adb` from its environment. The README also documents a standalone token calculator. The payload itself is absent from the supplied tree, so its internals are not represented.

Main entry points: [`PositiveToolGUI.py`](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveToolGUI.py) (GUI Workflow), [`PositiveTool.py`](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveTool.py) (CLI Workflow), [`adb.exe`](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/adb.exe) (Bundled ADB), [`purna_keygen.py`](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/purna_keygen.py) (Standalone Token Utility)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_gui["GUI Workflow<br/>[PositiveToolGUI.py]"]
  node_cli["CLI Workflow<br/>[PositiveTool.py]"]
end

subgraph group_rootflow["Temporary Root Workflow"]
  node_gui_token["GUI Token Calculation<br/>[PositiveToolGUI.py]"]
  node_cli_token["CLI Token Calculation<br/>[PositiveTool.py]"]
  node_adb_bundle["Bundled ADB<br/>[adb.exe]"]
  node_adb_cli["ADB Command"]
end

subgraph group_tokens["Token Utilities"]
  node_keygen["Standalone Token Utility<br/>[purna_keygen.py]"]
end

node_user(("User"))
node_device(("Android Device"))

node_user -->|"starts"| node_gui
node_user -->|"runs"| node_cli
node_gui -->|"runs commands"| node_adb_bundle
node_cli -->|"runs commands"| node_adb_cli
node_adb_bundle -->|"transfers and commands"| node_device
node_adb_cli -->|"transfers and commands"| node_device
node_gui -->|"calculates token"| node_gui_token
node_cli -->|"calculates token"| node_cli_token
node_user -->|"runs manually"| node_keygen

click node_gui "https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveToolGUI.py"
click node_cli "https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveTool.py"
click node_gui_token "https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveToolGUI.py"
click node_cli_token "https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveTool.py"
click node_adb_bundle "https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/adb.exe"
click node_keygen "https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/purna_keygen.py"

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_gui,node_cli,node_user toneBlue
class node_gui_token,node_cli_token,node_adb_bundle,node_adb_cli toneAmber
class node_keygen toneMint
class node_device toneIndigo
```

## Components

### User Interfaces

- [GUI Workflow](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveToolGUI.py): `PositiveToolGUI.py`
- [CLI Workflow](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveTool.py): `PositiveTool.py`

### Temporary Root Workflow

- [GUI Token Calculation](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveToolGUI.py): `PositiveToolGUI.py`
- [CLI Token Calculation](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/PositiveTool.py): `PositiveTool.py`
- [Bundled ADB](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/adb.exe): `adb.exe`
- **ADB Command**

### Token Utilities

- [Standalone Token Utility](https://github.com/seci20/positive-tool-dost-version-v1.2-purna-borno/blob/main/purna_keygen.py): `purna_keygen.py`

### Other components

- **User**
- **Android Device**

## Connections

- User → GUI Workflow: starts (evidence: `README.md`)
- User → CLI Workflow: runs (evidence: `README.md`)
- GUI Workflow → Bundled ADB: runs commands (evidence: `PositiveToolGUI.py`)
- CLI Workflow → ADB Command: runs commands (evidence: `PositiveTool.py`)
- Bundled ADB → Android Device: transfers and commands (evidence: `README.md`)
- ADB Command → Android Device: transfers and commands
- GUI Workflow → GUI Token Calculation: calculates token (evidence: `PositiveToolGUI.py`)
- CLI Workflow → CLI Token Calculation: calculates token (evidence: `PositiveTool.py`)
- User → Standalone Token Utility: runs manually (evidence: `README.md`)
