| Crates.io | audb-protocol |
| lib.rs | audb-protocol |
| version | 0.1.0 |
| created_at | 2026-01-07 09:37:05.139362+00 |
| updated_at | 2026-01-07 09:37:05.139362+00 |
| description | Protocol definitions for Aurora Debug Bridge (audb) |
| homepage | |
| repository | https://github.com/KotDath/audb |
| max_upload_size | |
| id | 2027884 |
| size | 25,856 |
Development and debugging CLI tool for Aurora OS, similar to Android's ADB.
⚠️ Beta Software
This project is in beta. It may contain bugs or unexpected behavior. If you encounter any issues, please report them in issues.
| Requirement | Version | Notes |
|---|---|---|
| Rust | 1.70+ | For building from source |
| Docker | Any | Required for package sign and package validate |
| Aurora Build Tools | 5.2+ | Docker image for signing/validation |
| Requirement | Notes |
|---|---|
| Aurora OS | SSH access enabled |
| Python 3 | Required for tap, swipe commands |
Install Python on device:
devel-su pkcon install python3
For package signing and validation, you need the Aurora Build Tools Docker image. Download from Aurora OS Developer Portal.
Image names: aurora-build-tools-* or aurora-os-build-engine-*
Signing keys are automatically downloaded from Aurora OS developer portal on first use and cached in ~/.cache/audb/.
To use custom keys:
audb package sign app.rpm --key /path/to/key.pem --cert /path/to/cert.pem
cargo install audb-client audb-server
This installs both binaries:
audb - CLI clientaudb-server - Background server daemongit clone https://github.com/KotDath/audb
cd audb
cargo build --release
Binaries will be at:
target/release/audb - CLI clienttarget/release/audb-server - Background server# Option 1: Copy to /usr/local/bin
sudo cp target/release/audb target/release/audb-server /usr/local/bin/
# Option 2: Add to PATH in ~/.bashrc
export PATH="$PATH:/path/to/audb/target/release"
# 1. Add your device
audb device add
# 2. Select it as active
audb select 0
# 3. Test connection
audb ping
# 4. Run a command
audb shell uname -a
# List all devices
audb device list
# List only connected devices
audb device list --active
# Add new device interactively
audb device add
# Remove device (by index, IP, or name)
audb device remove 0
audb device remove 192.168.2.15
audb device remove my-device
# Select active device
audb select <identifier>
# Install RPM on device
audb package install app.rpm
# Uninstall package
audb package uninstall ru.example.app
# List installed packages
audb package list
audb package list --filter example
# Sign RPM (local, uses Docker)
audb package sign app.rpm
# Validate RPM (local, uses Docker)
audb package validate app.rpm
# Execute command
audb shell ls -la /home/defaultuser
# Execute as root
audb shell --root cat /etc/passwd
# Push file to device
audb push local.txt /home/defaultuser/remote.txt
# Pull file from device
audb pull /home/defaultuser/file.txt
audb pull /home/defaultuser/file.txt --output local.txt
# Tap at coordinates
audb tap 360 720
# Long press (500ms)
audb tap 360 720 --duration 500
# Fast tap (direct evdev, requires correct device)
audb tap 360 720 --event auto
audb tap 360 720 --event /dev/input/event4
# Swipe by direction
audb swipe left
audb swipe right
audb swipe up
audb swipe down
# Swipe by coordinates
audb swipe 100 500 600 500
# Fast swipe
audb swipe left --event auto
# Key events
audb key power
audb key home
audb key back
audb key volumeup # or vol+
audb key volumedown # or vol-
Note: Tap and swipe automatically handle screen rotation. Use --no-rotate to disable.
# Save with auto-generated name
audb screenshot
# Save to specific file
audb screenshot --output screen.png
# Launch app
audb launch ru.example.app
# Stop app
audb stop ru.example.app
# Open URL
audb open https://example.com
audb open file:///home/defaultuser/doc.pdf
# Last 100 lines
audb logs
# Last 500 lines
audb logs -n 500
# Filter by priority
audb logs --priority err
audb logs --priority warning
# Filter by unit
audb logs --unit lipstick
# Grep pattern
audb logs --grep "error"
# Since time
audb logs --since "1 hour ago"
# Kernel messages
audb logs --kernel
# Clear logs
audb logs --clear --force
# All info
audb info
# Specific category
audb info device
audb info cpu
audb info memory
audb info battery
audb info storage
audb info features
# Check server status
audb server-status
# Ping server
audb ping
# Start server manually
audb start-server
audb start-server --foreground
# Stop server
audb kill-server
# Force reconnect
audb reconnect
audb reconnect <device>
# Use specific device for this command
audb -d 192.168.2.15 shell uname -a
audb --device my-device info
~/.config/audb/devices.json:
{
"aurora-devices": [
{
"name": "My Device",
"host": "192.168.2.15",
"port": 22,
"auth": "/home/user/.ssh/id_rsa",
"rootPassword": "password",
"platform": "aurora-arm64",
"enabled": true
}
]
}
~/.config/audb/current_device - stores selected device identifier
~/.config/audb/server.pid - server process ID
┌─────────────┐ Unix Socket ┌─────────────┐ SSH/SFTP ┌────────────┐
│ audb CLI │ ◄─────────────────► │ audb-server │ ◄──────────────► │ Device │
└─────────────┘ └─────────────┘ └────────────┘
Known touchscreen event devices:
/dev/input/event3 (chsc_cap_touch)/dev/input/event5 (himax-touchscreen)Use --event auto to auto-detect, or specify directly for faster input.
audb device list
audb select 0
audb reconnect
# or check device status
audb server-status
# On device:
devel-su pkcon install python3
Download from Aurora OS Developer Portal and load:
docker load -i aurora-build-tools-5.2.0.tar.gz
audb kill-server
audb ping # auto-starts server
MIT License