Androidoscopy
A developer tool that eliminates the friction of debugging Android applications by providing a persistent, always-on debug service that apps can connect to automatically.
No more adb forward commands, no more port juggling - just start your app and see debug data in your browser.
Features
- Zero Configuration - Once installed, it just works
- Always Available - Runs as background service, ready whenever you need it
- Multi-Device - Handle multiple emulators and physical devices simultaneously
- App-Driven UI - Apps define their own dashboard layout using a Kotlin DSL
- Persistent Sessions - View data even after app closes
- Real-time Updates - See metrics, logs, and execute actions in real-time
Quick Start
1. Start the Server
The server will start on:
- WebSocket:
wss://localhost:8889 - Dashboard:
http://localhost:8880
Install as a Service (optional)
To run the server automatically in the background:
# Install as systemd user service
# Start the service
# Enable on login (optional)
# Check status
# Uninstall
2. Add the SDK to Your Android App
Add the dependency to your app's build.gradle.kts:
dependencies {
implementation(project(":sdk")) // or from Maven when published
}
3. Initialize in Your Application
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
Androidoscopy.init(this) {
// Optional: Specify host IP (auto-detected for emulators)
// hostIp = "192.168.1.100"
// Define your dashboard
dashboard {
// Built-in memory section
memorySection()
// Built-in logs section
logsSection()
// Custom section
section("App Metrics") {
row {
number("Active Users", "$.metrics.active_users")
percent("Cache Hit Rate", "$.metrics.cache_hit_rate")
}
}
}
// Register action handlers
onAction("clear_cache") { args ->
clearCache()
ActionResult.success("Cache cleared")
}
}
}
}
4. Send Data Updates
// Update metrics (debounced automatically)
Androidoscopy.updateData {
put("metrics", mapOf(
"active_users" to 42,
"cache_hit_rate" to 0.95
))
}
// Log messages
Androidoscopy.log(LogLevel.INFO, "NetworkClient", "Request completed")
5. Open the Dashboard
Open http://localhost:8080 in your browser to see connected apps and their data in real-time.
Project Structure
androidoscopy/
├── server/ # Rust WebSocket/HTTP server
├── android/
│ ├── app/ # Demo application
│ └── sdk/ # Android SDK library
├── dashboard/ # Svelte web dashboard
└── e2e/ # End-to-end tests
Architecture
┌────────────────────────────────────────────────────────┐
│ Developer's Machine │
│ │
│ ┌───────────────────────────────────────────────────┐ │
│ │ Androidoscopy Service (Rust + Axum) │ │
│ │ │ │
│ │ WebSocket Hub ────► Session Manager ◄──── HTTP │ │
│ │ (port 9999) (in-memory) (port 8080)│ │
│ └───────────────────────────────────────────────────┘ │
│ ▲ │
└──────────────────────────┼──────────────────────────────┘
│
WebSocket connections (apps → server)
│
┌─────────────────────┼─────────────────────┐
▼ ▼ ▼
┌────────┐ ┌────────┐ ┌────────┐
│Emulator│ │Emulator│ │ Device │
│+ App │ │+ App │ │+ App │
└────────┘ └────────┘ └────────┘
Development
Server
Dashboard
Android SDK
E2E Tests
Configuration
The server can be configured via ~/.androidoscopy/config.toml:
[]
= 8880 # Dashboard HTTP port
= 8889 # Android app WebSocket port
= "0.0.0.0" # Listen on all interfaces (for physical devices)
= true # Broadcast for device discovery
[]
= 1000
= 50000
= 3600
Protocol
Apps communicate with the server via WebSocket using a JSON protocol. See DESIGN.md for full protocol specification.
License
MIT