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.
- 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
cd server
cargo run --releaseThe server will start on:
- WebSocket:
wss://localhost:8889 - Dashboard:
http://localhost:8880
To run the server automatically in the background:
# Install as systemd user service
androidoscopy install
# Start the service
systemctl --user start androidoscopy
# Enable on login (optional)
systemctl --user enable androidoscopy
# Check status
androidoscopy status
# Uninstall
androidoscopy uninstallAdd the dependency to your app's build.gradle.kts:
dependencies {
implementation(project(":sdk")) // or from Maven when published
}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")
}
}
}
}// 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")Open http://localhost:8880 in your browser to see connected apps and their data in real-time.
If you want to view the dashboard directly on the device, add the optional UI module:
dependencies {
implementation(project(":sdk"))
implementation(project(":sdk-ui")) // Adds embedded dashboard Activity
}This adds a separate launcher entry called "π Dashboard" that opens the dashboard directly on the device. You can also launch it programmatically:
import com.lelloman.androidoscopy.ui.DashboardActivity
// Launch from anywhere
DashboardActivity.launch(context)androidoscopy/
βββ server/ # Rust WebSocket/HTTP server
βββ android/
β βββ app/ # Demo application
β βββ sdk/ # Android SDK library (core)
β βββ sdk-ui/ # Embedded dashboard Activity (optional)
βββ dashboard/ # Svelte web dashboard
βββ e2e/ # End-to-end tests
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 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 β
ββββββββββ ββββββββββ ββββββββββ
cd server
cargo fmt # Format code
cargo clippy # Lint
cargo test # Run tests
cargo run # Start development servercd dashboard
npm install
npm run dev # Start dev server
npm run check # Type check
npm test # Run unit tests
npm run test:e2e # Run E2E testscd android
./gradlew :sdk:test # Unit tests
./gradlew :sdk:connectedTest # Instrumented testscd e2e
cargo test # Run full stack testsThe server can be configured via ~/.androidoscopy/config.toml:
[server]
http_port = 8880 # Dashboard HTTP port
websocket_port = 8889 # Android app WebSocket port
bind_address = "0.0.0.0" # Listen on all interfaces (for physical devices)
udp_discovery_enabled = true # Broadcast for device discovery
[session]
data_buffer_size = 1000
log_buffer_size = 50000
ended_session_ttl_seconds = 3600Apps communicate with the server via WebSocket using a JSON protocol. See DESIGN.md for full protocol specification.
MIT