# d78ui98/apkdeeplens architecture

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

- Interactive diagram: https://gitdiagram.com/d78ui98/apkdeeplens
- Repository: https://github.com/d78ui98/apkdeeplens

## Overview

APKDeepLens is a command-line Android APK static-analysis tool. Its principal workflow takes an APK (or extracted source), decompiles it with bundled JADX, analyzes the manifest and decompiled code for security issues, then exports severity- and OWASP-tagged findings in a selected report format. The main entry point coordinates the sampled analysis modules; the README documents additional scan categories and output formats. Edges reflect visible calls or documented workflow; several scanner details and report wiring are not fully excerpted.

Main entry points: [`APKDeepLens.py`](https://github.com/d78ui98/apkdeeplens/blob/main/APKDeepLens.py) (Scan coordinator), [`report_gen.py`](https://github.com/d78ui98/apkdeeplens/blob/main/report_gen.py) (Report generation), [`static_tools/utility/utility_class.py`](https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/utility/utility_class.py) (Shared utilities), [`static_tools/scan_android_manifest.py`](https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/scan_android_manifest.py) (Manifest analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Scan workflow"]
  node_entry["Scan coordinator<br/>[APKDeepLens.py]"]
  node_jadx["JADX decompiler"]
  node_findings["Finding summary<br/>[APKDeepLens.py]"]
end

subgraph group_analysis["Security analysis"]
  node_manifest["Manifest analysis"]
  node_code["Code pattern scan<br/>[code_scanner.py]"]
  node_secrets["Secret detection"]
  node_communication["Insecure URL detection"]
end

subgraph group_reporting["Results and reports"]
  node_report["Report generation<br/>[report_gen.py]"]
  node_html_template["HTML report template"]
  node_report_files["JSON / HTML / PDF / TXT"]
end

subgraph group_shared["Shared utilities"]
  node_utility["Shared utilities<br/>[utility_class.py]"]
end

node_cli_user(("CLI user"))

node_cli_user -->|"submits APK"| node_entry
node_entry -->|"decompiles APK"| node_jadx
node_entry -->|"analyzes manifest"| node_manifest
node_entry -->|"scans source"| node_code
node_entry -->|"scans secrets"| node_secrets
node_entry -->|"checks URLs"| node_communication
node_entry -->|"summarizes results"| node_findings
node_entry -->|"generates report"| node_report
node_manifest -->|"uses constants"| node_utility
node_code -->|"uses helpers"| node_utility
node_secrets -->|"uses helpers"| node_utility
node_report -->|"uses helpers"| node_utility
node_report -->|"exports formats"| node_report_files
node_report -.->|"renders HTML"| node_html_template

click node_entry "https://github.com/d78ui98/apkdeeplens/blob/main/APKDeepLens.py"
click node_jadx "https://github.com/d78ui98/apkdeeplens/tree/main/static_tools/jadx"
click node_manifest "https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/scan_android_manifest.py"
click node_code "https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/code_scanner.py"
click node_secrets "https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/sensitive_info_extractor.py"
click node_communication "https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/sensitive_info_extractor.py"
click node_findings "https://github.com/d78ui98/apkdeeplens/blob/main/APKDeepLens.py"
click node_report "https://github.com/d78ui98/apkdeeplens/blob/main/report_gen.py"
click node_html_template "https://github.com/d78ui98/apkdeeplens/blob/main/report_template.html"
click node_utility "https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/utility/utility_class.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_entry,node_jadx,node_findings,node_cli_user toneBlue
class node_manifest,node_code,node_secrets,node_communication toneAmber
class node_report,node_html_template,node_report_files toneMint
class node_utility toneRose
```

## Components

### Scan workflow

- [Scan coordinator](https://github.com/d78ui98/apkdeeplens/blob/main/APKDeepLens.py): `APKDeepLens.py`
- [JADX decompiler](https://github.com/d78ui98/apkdeeplens/tree/main/static_tools/jadx): `static_tools/jadx`
- [Finding summary](https://github.com/d78ui98/apkdeeplens/blob/main/APKDeepLens.py): `APKDeepLens.py`

### Security analysis

- [Manifest analysis](https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/scan_android_manifest.py): `static_tools/scan_android_manifest.py`
- [Code pattern scan](https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/code_scanner.py): `static_tools/code_scanner.py`
- [Secret detection](https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/sensitive_info_extractor.py): `static_tools/sensitive_info_extractor.py`
- [Insecure URL detection](https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/sensitive_info_extractor.py): `static_tools/sensitive_info_extractor.py`

### Results and reports

- [Report generation](https://github.com/d78ui98/apkdeeplens/blob/main/report_gen.py): `report_gen.py`
- [HTML report template](https://github.com/d78ui98/apkdeeplens/blob/main/report_template.html): `report_template.html`
- **JSON / HTML / PDF / TXT**

### Shared utilities

- [Shared utilities](https://github.com/d78ui98/apkdeeplens/blob/main/static_tools/utility/utility_class.py): `static_tools/utility/utility_class.py`

### Other components

- **CLI user**

## Connections

- CLI user → Scan coordinator: submits APK (evidence: `README.md`)
- Scan coordinator → JADX decompiler: decompiles APK (evidence: `APKDeepLens.py`)
- Scan coordinator → Manifest analysis: analyzes manifest (evidence: `APKDeepLens.py`)
- Scan coordinator → Code pattern scan: scans source (evidence: `README.md`)
- Scan coordinator → Secret detection: scans secrets (evidence: `README.md`)
- Scan coordinator → Insecure URL detection: checks URLs (evidence: `README.md`)
- Scan coordinator → Finding summary: summarizes results (evidence: `APKDeepLens.py`)
- Scan coordinator → Report generation: generates report (evidence: `README.md`)
- Manifest analysis → Shared utilities: uses constants (evidence: `static_tools/scan_android_manifest.py`)
- Code pattern scan → Shared utilities: uses helpers (evidence: `static_tools/code_scanner.py`)
- Secret detection → Shared utilities: uses helpers (evidence: `static_tools/sensitive_info_extractor.py`)
- Report generation → Shared utilities: uses helpers (evidence: `report_gen.py`)
- Report generation → JSON / HTML / PDF / TXT: exports formats (evidence: `README.md`)
- Report generation → HTML report template: renders HTML
