How lsnbm/linux-android-arm64 works
LuckyStar is an Android ARM64 kernel memory-debugging driver with Android and Windows user-facing tools. The principal workflow is: a user operates a client, the client sends an operation over the documented fixed-address shared-memory protocol, and the kernel dispatcher invokes the requested memory, breakpoint, input, or monitoring capability. The graph also preserves the documented ARM64 instruction and Windows MCP branches. Some connections are based on README documentation or the SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: lsdriver.c Request Dispatcher · main.cpp Android App · break_point.h Breakpoints · memory_tool.h Memory Tools
Components 28
Kernel Driver
- Shared Protocol
lsdriver/io_struct.h - Request Dispatcher
lsdriver/lsdriver.c - Process Memory I/O
lsdriver/virtual_memory_rw.h - Memory Layout
lsdriver/virtual_memory_enum.h - Virtual Input
lsdriver/virtual_input.h - Sensors and Monitors
lsdriver/virtual_gyro.h
ARM64 Debugging
- Breakpoints
lsdriver/break_point.h - Hardware Debug
lsdriver/arm64_hwdbg.h - PTE Debug
lsdriver/arm64_ptedbg-20260822-000439.h - Step and DPT
lsdriver/arm64_stepdbg.h - Hook Framework
lsdriver/inline_hook_frame.h - ARM64 Decoder
lsdriver/arm64_decode/arm64_decode.h - ARM64 Encoder
lsdriver/arm64_encode/arm64_encode.h - Instruction Emulator
lsdriver/arm64_emulate/emulate_inst.h
Android Client
- Android App
android/jni/src/main.cpp - Memory Tools
android/jni/include/memory_tool.h - Driver API
android/jni/driver/driver.h - HTTP Server
android/jni/include/http_server.h - Touch Input
android/jni/android_imgui_input/imgui_touch_input.h - Surface Control
android/jni/android_surface/surface_control_manager.h - ImGui Renderers
android/jni/android_draw/opengl_imgui_renderer.h
Windows Clients
- Windows UI
windows/LuckyStar.py - HTTP Bridge
windows/http_bridge.py - MCP Server
windows/LuckyStarMcp.py - Go Client UI
windows/go_client/internal/ui/app.go - Go Bridge Client
windows/go_client/internal/bridge/client.go - Go MCP Server
windows/go_client/internal/mcp/server.go
Other components
- User
Connections 34
- User → Android App: uses
README.md - Android App → Memory Tools: presents tools
android/jni/src/main.cpp - Memory Tools → Driver API: calls
android/jni/include/memory_tool.h - Memory Tools → ARM64 Decoder: uses disassembly
android/jni/include/memory_tool.h - Android App → HTTP Server: starts service
android/jni/src/main.cpp - HTTP Server → Memory Tools: uses
android/jni/include/http_server.h - Android App → Touch Input: uses
android/jni/src/main.cpp - Android App → ImGui Renderers: uses
android/jni/src/main.cpp - ImGui Renderers → Surface Control: uses
android/jni/android_draw/opengl_imgui_renderer.h - Touch Input → User: accepts touch
- User → Windows UI: uses
README.md - Windows UI → HTTP Bridge: uses
windows/LuckyStar.py - Windows UI → HTTP Server: sends requests
README.md - User → MCP Server: uses
README.md - MCP Server → HTTP Bridge: bridges requests
- User → Go Client UI: uses
- Go Client UI → Go Bridge Client: delegates
- Go MCP Server → Go Bridge Client: uses
- Driver API → Shared Protocol: matches protocol
README.md - Shared Protocol → Request Dispatcher: carries requests
README.md - Request Dispatcher → Process Memory I/O: dispatches
README.md - Request Dispatcher → Memory Layout: dispatches
README.md - Request Dispatcher → Virtual Input: dispatches
README.md - Request Dispatcher → Sensors and Monitors: dispatches
README.md - Request Dispatcher → Breakpoints: dispatches
README.md - Breakpoints → Hardware Debug: uses
README.md - Breakpoints → PTE Debug: uses
README.md - Breakpoints → Step and DPT: uses
README.md - Hardware Debug → Hook Framework: uses hooks
- PTE Debug → ARM64 Decoder: decodes instructions
- PTE Debug → Instruction Emulator: emulates instructions
lsdriver/arm64_ptedbg-20260822-000439.h - Hook Framework → ARM64 Decoder: decodes instructions
lsdriver/inline_hook_frame.h - Hook Framework → ARM64 Encoder: encodes instructions
lsdriver/inline_hook_frame.h - Instruction Emulator → ARM64 Decoder: uses decoder
lsdriver/arm64_emulate/emulate_inst.h