| Crates.io | androidoscopy |
| lib.rs | androidoscopy |
| version | 0.1.0 |
| created_at | 2025-12-17 20:20:12.498813+00 |
| updated_at | 2025-12-17 20:20:12.498813+00 |
| description | Debug server for Android applications with real-time dashboard |
| homepage | |
| repository | https://github.com/lelloman/androidoscopy |
| max_upload_size | |
| id | 1991081 |
| size | 678,338 |
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.
cd server
cargo run --release
The server will start on:
wss://localhost:8889http://localhost:8880To 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 uninstall
Add 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:8080 in your browser to see connected apps and their data in real-time.
androidoscopy/
├── server/ # Rust WebSocket/HTTP server
├── android/
│ ├── app/ # Demo application
│ └── sdk/ # Android SDK library
├── 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 server
cd 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 tests
cd android
./gradlew :sdk:test # Unit tests
./gradlew :sdk:connectedTest # Instrumented tests
cd e2e
cargo test # Run full stack tests
The 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 = 3600
Apps communicate with the server via WebSocket using a JSON protocol. See DESIGN.md for full protocol specification.
MIT