# anggorodhanumurti/droneview architecture

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

- Interactive diagram: https://gitdiagram.com/anggorodhanumurti/droneview
- Repository: https://github.com/anggorodhanumurti/droneview

## Overview

This Android shared-library mod hooks the game’s EGL rendering and Unity input paths, builds an ImGui overlay, and applies Drone View FOV changes through resolved IL2CPP symbols. The principal workflow is autostart, asynchronous game-library/symbol resolution, hook installation, menu rendering and input handling, then camera updates. README documents the FOV presets and EGL-context recovery. Several runtime files were not excerpted, so links between those stages are included only where the README explicitly describes them.

Main entry points: [`src/frontend/menu.cpp`](https://github.com/anggorodhanumurti/droneview/blob/main/src/frontend/menu.cpp) (ImGui menu), [`src/backend/runtime.cpp`](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/runtime.cpp) (Runtime lifecycle), [`src/backend/input_hook.cpp`](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/input_hook.cpp) (Unity input hook), [`src/backend/overlay_hook.cpp`](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/overlay_hook.cpp) (EGL swap hook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and hooks"]
  node_entry["Autostart entry<br/>[entry.cpp]"]
  node_jni["JNI startup<br/>[jni_onload.cpp]"]
  node_runtime["Runtime lifecycle<br/>[runtime.cpp]"]
  node_overlayhook["EGL swap hook<br/>[overlay_hook.cpp]"]
  node_inputhook["Unity input hook<br/>[input_hook.cpp]"]
  node_hookengine["Hook engine<br/>[hook_engine.cpp]"]
end

subgraph group_resolution["Game binding"]
  node_elf["ELF module access<br/>[elf_module.cpp]"]
  node_symbols["Symbol resolution"]
  node_targets["Target symbols<br/>[target_symbols.cpp]"]
  node_il2cpp["IL2CPP API<br/>[il2cpp_api.cpp]"]
  node_helpers["IL2CPP helpers<br/>[il2cpp_helpers.cpp]"]
  node_platform["Android platform"]
end

subgraph group_overlay["Overlay and input"]
  node_frontend["ImGui menu<br/>[menu.cpp]"]
  node_imgui["Dear ImGui<br/>[imgui_widgets.cpp]"]
  node_glbackend["OpenGL3 renderer"]
  node_console["Menu console<br/>[imgui_console.cpp]"]
  node_softkbd["Soft keyboard bridge<br/>[soft_keyboard.cpp]"]
end

subgraph group_camera["Camera control"]
  node_drone["Drone camera control<br/>[drone_backend.cpp]"]
  node_cameraapi["Unity camera API<br/>[il2cpp_api.h]"]
  node_gamecamera[("Game camera")]
end

node_game(("MLBB process"))

node_game -.->|"loads library"| node_entry
node_game -.->|"loads library"| node_jni
node_entry -.->|"starts"| node_runtime
node_jni -.->|"starts"| node_runtime
node_runtime -.->|"installs hook"| node_overlayhook
node_runtime -.->|"installs hook"| node_inputhook
node_overlayhook -.->|"installs via"| node_hookengine
node_inputhook -->|"installs via"| node_hookengine
node_hookengine -->|"protects memory"| node_platform
node_runtime -.->|"starts worker"| node_symbols
node_symbols -.->|"resolves modules"| node_elf
node_symbols -.->|"merges symbols"| node_targets
node_targets -->|"provides bindings"| node_il2cpp
node_il2cpp -.->|"supports calls"| node_helpers
node_il2cpp -->|"uses platform"| node_platform
node_overlayhook -.->|"renders frame"| node_frontend
node_inputhook -->|"queues input"| node_frontend
node_frontend -.->|"draws widgets"| node_imgui
node_frontend -.->|"renders OpenGL"| node_glbackend
node_frontend -->|"displays console"| node_console
node_frontend -->|"applies state"| node_drone
node_inputhook -->|"bridges keyboard"| node_softkbd
node_drone -.->|"calls camera methods"| node_cameraapi
node_cameraapi -.->|"sets FOV"| node_gamecamera

click node_entry "https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/entry.cpp"
click node_jni "https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/jni_onload.cpp"
click node_runtime "https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/runtime.cpp"
click node_overlayhook "https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/overlay_hook.cpp"
click node_inputhook "https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/input_hook.cpp"
click node_elf "https://github.com/anggorodhanumurti/droneview/blob/main/src/app/elf/elf_module.cpp"
click node_symbols "https://github.com/anggorodhanumurti/droneview/blob/main/src/app/core/symbol_resolver.cpp"
click node_targets "https://github.com/anggorodhanumurti/droneview/blob/main/src/app/core/target_symbols.cpp"
click node_il2cpp "https://github.com/anggorodhanumurti/droneview/blob/main/src/app/il2cpp/il2cpp_api.cpp"
click node_helpers "https://github.com/anggorodhanumurti/droneview/blob/main/src/app/il2cpp/il2cpp_helpers.cpp"
click node_hookengine "https://github.com/anggorodhanumurti/droneview/blob/main/src/app/hooks/hook_engine.cpp"
click node_platform "https://github.com/anggorodhanumurti/droneview/blob/main/src/app/platform/platform_android.cpp"
click node_frontend "https://github.com/anggorodhanumurti/droneview/blob/main/src/frontend/menu.cpp"
click node_imgui "https://github.com/anggorodhanumurti/droneview/blob/main/dependencies/imgui/imgui_widgets.cpp"
click node_glbackend "https://github.com/anggorodhanumurti/droneview/blob/main/dependencies/imgui/backends/imgui_impl_opengl3.cpp"
click node_console "https://github.com/anggorodhanumurti/droneview/blob/main/dependencies/imgui-console/src/imgui_console.cpp"
click node_softkbd "https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/soft_keyboard.cpp"
click node_drone "https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/drone_backend.cpp"
click node_cameraapi "https://github.com/anggorodhanumurti/droneview/blob/main/include/app/il2cpp/il2cpp_api.h"

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_jni,node_runtime,node_overlayhook,node_inputhook,node_hookengine toneBlue
class node_elf,node_symbols,node_targets,node_il2cpp,node_helpers,node_platform toneAmber
class node_frontend,node_imgui,node_glbackend,node_console,node_softkbd toneMint
class node_drone,node_cameraapi,node_gamecamera toneRose
class node_game toneIndigo
```

## Components

### Startup and hooks

- [Autostart entry](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/entry.cpp): `src/backend/entry.cpp`
- [JNI startup](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/jni_onload.cpp): `src/backend/jni_onload.cpp`
- [Runtime lifecycle](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/runtime.cpp): `src/backend/runtime.cpp`
- [EGL swap hook](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/overlay_hook.cpp): `src/backend/overlay_hook.cpp`
- [Unity input hook](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/input_hook.cpp): `src/backend/input_hook.cpp`
- [Hook engine](https://github.com/anggorodhanumurti/droneview/blob/main/src/app/hooks/hook_engine.cpp): `src/app/hooks/hook_engine.cpp`

### Game binding

- [ELF module access](https://github.com/anggorodhanumurti/droneview/blob/main/src/app/elf/elf_module.cpp): `src/app/elf/elf_module.cpp`
- [Symbol resolution](https://github.com/anggorodhanumurti/droneview/blob/main/src/app/core/symbol_resolver.cpp): `src/app/core/symbol_resolver.cpp`
- [Target symbols](https://github.com/anggorodhanumurti/droneview/blob/main/src/app/core/target_symbols.cpp): `src/app/core/target_symbols.cpp`
- [IL2CPP API](https://github.com/anggorodhanumurti/droneview/blob/main/src/app/il2cpp/il2cpp_api.cpp): `src/app/il2cpp/il2cpp_api.cpp`
- [IL2CPP helpers](https://github.com/anggorodhanumurti/droneview/blob/main/src/app/il2cpp/il2cpp_helpers.cpp): `src/app/il2cpp/il2cpp_helpers.cpp`
- [Android platform](https://github.com/anggorodhanumurti/droneview/blob/main/src/app/platform/platform_android.cpp): `src/app/platform/platform_android.cpp`

### Overlay and input

- [ImGui menu](https://github.com/anggorodhanumurti/droneview/blob/main/src/frontend/menu.cpp): `src/frontend/menu.cpp`
- [Dear ImGui](https://github.com/anggorodhanumurti/droneview/blob/main/dependencies/imgui/imgui_widgets.cpp): `dependencies/imgui/imgui_widgets.cpp`
- [OpenGL3 renderer](https://github.com/anggorodhanumurti/droneview/blob/main/dependencies/imgui/backends/imgui_impl_opengl3.cpp): `dependencies/imgui/backends/imgui_impl_opengl3.cpp`
- [Menu console](https://github.com/anggorodhanumurti/droneview/blob/main/dependencies/imgui-console/src/imgui_console.cpp): `dependencies/imgui-console/src/imgui_console.cpp`
- [Soft keyboard bridge](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/soft_keyboard.cpp): `src/backend/soft_keyboard.cpp`

### Camera control

- [Drone camera control](https://github.com/anggorodhanumurti/droneview/blob/main/src/backend/drone_backend.cpp): `src/backend/drone_backend.cpp`
- [Unity camera API](https://github.com/anggorodhanumurti/droneview/blob/main/include/app/il2cpp/il2cpp_api.h): `include/app/il2cpp/il2cpp_api.h`
- **Game camera**

### Other components

- **MLBB process**

## Connections

- MLBB process → Autostart entry: loads library
- MLBB process → JNI startup: loads library
- Autostart entry → Runtime lifecycle: starts
- JNI startup → Runtime lifecycle: starts
- Runtime lifecycle → EGL swap hook: installs hook
- Runtime lifecycle → Unity input hook: installs hook
- EGL swap hook → Hook engine: installs via
- Unity input hook → Hook engine: installs via (evidence: `src/backend/input_hook.cpp`)
- Hook engine → Android platform: protects memory (evidence: `src/app/hooks/hook_engine.cpp`)
- Runtime lifecycle → Symbol resolution: starts worker
- Symbol resolution → ELF module access: resolves modules
- Symbol resolution → Target symbols: merges symbols
- Target symbols → IL2CPP API: provides bindings
- IL2CPP API → IL2CPP helpers: supports calls
- IL2CPP API → Android platform: uses platform (evidence: `src/app/il2cpp/il2cpp_api.cpp`)
- EGL swap hook → ImGui menu: renders frame
- Unity input hook → ImGui menu: queues input (evidence: `src/backend/input_hook.cpp`)
- ImGui menu → Dear ImGui: draws widgets
- ImGui menu → OpenGL3 renderer: renders OpenGL
- ImGui menu → Menu console: displays console (evidence: `src/frontend/menu.cpp`)
- ImGui menu → Drone camera control: applies state (evidence: `src/frontend/menu.cpp`)
- Unity input hook → Soft keyboard bridge: bridges keyboard (evidence: `src/backend/input_hook.cpp`)
- Drone camera control → Unity camera API: calls camera methods
- Unity camera API → Game camera: sets FOV
