Next-Generation Android-to-Deepin Remote Control Ecosystem
Overview • Key Features • Architecture • Quick Start • Requirements • Security • Protocol
AetherControl turns your Android smartphone or tablet into a powerful, ultra-low-latency wireless controller for your Deepin OS workspace. Emulate touchpads, keyboards, gamepads, stream screen video via H.264, control media playback, synchronize clipboards, and transfer files securely over your local network.
Tip
AetherControl uses Linux uinput kernel drivers on the host to provide hardware-level mouse, keyboard, and Xbox-compatible gamepad emulation without requiring extra software dependencies on client target games or applications.
| Category | Feature | Status | Roadmap Stage |
|---|---|---|---|
| 🖱️ Input | Multi-touch Touchpad & Mouse Gestures | ✅ Complete |
Stage 2 |
| ⌨️ Input | Full QWERTY Keyboard & Hotkey Combos | ✅ Complete |
Stage 2 |
| 🔢 Input | Dedicated Numeric Keypad (Numpad) | ✅ Complete |
Stage 2 |
| 🎮 Gaming | Low-latency Virtual Xbox Gamepad | ✅ Complete |
Stage 3 |
| 🎯 Sensory | Gyroscope & Accelerometer Motion Steering | ✅ Complete |
Stage 3 |
| 📺 Display | Low-Latency H.264 Screen Share Stream | 🔧 In Progress |
Stage 4 |
| 🖥️ Display | Full Remote Desktop Control | 🔧 In Progress |
Stage 4 |
| 🖥️ Display | Virtual Extended Secondary Display | 📋 Planned |
Stage 5 |
| 🎵 Control | MPRIS2 D-Bus Media Player Remote | ✅ Complete |
Stage 6 |
| ⚡ Control | System Power, Volume & Brightness Controls | ✅ Complete |
Stage 6 |
| 🚀 Control | Allowlisted Application Quick Launcher | ✅ Complete |
Stage 6 |
| 📋 Sync | Real-time Bi-directional Clipboard Sync | ✅ Complete |
Stage 7 |
| 📁 Sync | SHA-256 Verified Encrypted File Transfer | ✅ Complete |
Stage 7 |
| 🎨 Custom | Drag-and-Drop Control Layout Designer | 📋 Planned |
Stage 8 |
| 📱 Multi-Dev | Concurrent Multi-Device Session Support | 📋 Planned |
Stage 8 |
AetherControl is built with a dual-tier client-server model communicating over dedicated TCP and UDP channels.
graph TD
subgraph Android_Client["📱 Android Client (Kotlin / Jetpack Compose)"]
UI["Compose UI (Touchpad / Keypad / Gamepad / Remote Desktop)"]
VM["NetworkManager ViewModel"]
Codec["MessagePack Frame Codec"]
Crypto["ECDH / HKDF & HMAC-SHA256 Engine"]
UI --> VM
VM --> Codec
Codec --> Crypto
end
subgraph Network_Transport["🌐 Wi-Fi / Local Area Network"]
ControlCh["TCP 7700 (Control, Auth, File Transfer)"]
StreamCh["TCP 7701 (H.264 Video Stream)"]
FastCh["UDP 7702 (Mouse / Sensor Motion)"]
DiscCh["UDP 7699 (Discovery Broadcast)"]
end
subgraph Deepin_Host["💻 Deepin OS Host (Python 3.11 / PyQt6)"]
PySocket["Async Socket Layer"]
Router["Protocol Command Router"]
Uinput["Linux /dev/uinput Driver"]
Display["Screen Capture & H.264 Encoder"]
DBus["MPRIS2 & D-Bus / Systemctl"]
FS["SHA-256 File Transfer Engine"]
PySocket --> Router
Router --> Uinput
Router --> Display
Router --> DBus
Router --> FS
end
Crypto <--> ControlCh
Crypto <--> FastCh
VM <--> StreamCh
VM <--> DiscCh
ControlCh <--> PySocket
StreamCh <--> PySocket
FastCh <--> PySocket
DiscCh <--> PySocket
AetherControl Repository
├── 💻 desktop/ # Deepin OS Desktop Host Service
│ ├── aether_server/ # Python core server package
│ │ ├── display/ # Screen capture (mss/X11, PipeWire) & H.264 encoder
│ │ ├── input/ # uinput drivers (Mouse, Keyboard, Gamepad)
│ │ ├── media/ # MPRIS2 D-Bus audio/media controls
│ │ ├── network/ # TCP/UDP Socket server, HKDF auth, frame handler
│ │ └── system/ # Power, volume, app launcher allowlist
│ ├── install.sh # Automated dependency & uinput permission setup script
│ └── aethercontrol # Binary starter script
├── 📱 android/ # Android Client Application
│ ├── app/src/main/kotlin/com/aethercontrol/
│ │ ├── network/ # Sockets, Crypto engine, MessagePack codec
│ │ └── ui/ # Jetpack Compose Screens & Theme
│ │ ├── screens/ # Touchpad, Gamepad, Keyboard, Remote Desktop
│ │ └── theme/ # Modern dark-mode color system
│ ├── build.gradle.kts # Gradle build config
│ └── gradlew # Gradle Wrapper script
├── 📜 protocol/ # Wire Protocol Specifications
│ └── PROTOCOL.md # Comprehensive binary framing & packet doc
└── 📖 docs/ # Documentation & Architecture Plans
└── ARCHITECTURE_PLAN.md # 9-Stage Roadmap & Implementation Details
# Navigate to desktop directory
cd desktop/
# Run setup script to install dependencies and configure uinput permissions
./install.sh
# Start the AetherControl server daemon & tray UI
aethercontrolImportant
Linux uinput access (for kernel-level mouse, keyboard, and gamepad simulation) requires your system user to belong to the input group. The install.sh script adds your user automatically, but requires a logout & login (or system reboot) for group privileges to take effect.
The complete Android client source code is located in the android/ directory.
- Open Android Studio.
- Select Open and target the
android/folder. - Click Build > Build Bundle(s) / APK(s) > Build APK(s).
- Locate your APK at:
android/app/build/outputs/apk/debug/app-debug.apk
cd android/
./gradlew assembleDebugThe compiled debug APK will be generated at:
android/app/build/outputs/apk/debug/app-debug.apk
Transfer the .apk file to your Android device and launch the app. It will automatically discover your Deepin desktop on the local Wi-Fi network!
- Operating System: Deepin OS 20+ (or mainstream Linux distribution with X11 or Wayland)
- Python: Python 3.11+
- Dependencies:
PyQt6,mss(X11 capture),cryptography(ECDH/HMAC),msgpack,av(ffmpeg H.264) - Optional Packages:
pipewire(Wayland capture),dbus-python(MPRIS2 media control),xclip/wl-clipboard - Permissions: Read/Write access to
/dev/uinput
- Operating System: Android 8.0 Oreo or higher (API 26+)
- Network: Wi-Fi connection on the same Local Area Network (LAN) as the desktop host
AetherControl incorporates enterprise-grade cryptographic security:
- 🔐 Mutual Device Pairing: First-time connection requires explicit approval on the desktop tray UI.
- 🔑 ECDH Key Exchange: Uses P-256 Elliptic Curve Diffie-Hellman to establish session secrets without sending keys over the wire.
- 🛡️ HMAC-SHA256 Integrity: Every single frame (control and fast UDP channels) is authenticated with a 32-byte HMAC tag derived via HKDF-SHA256.
- 🚫 No Shell Execution: App quick-launch utilizes strict allowlisting; shell commands are never executed directly.
- 📂 Path Traversal Shield: File transfer filenames are sanitized to prevent directory escape attacks.
- 🕵️ Zero Sensitive Logging: Passwords, tokens, nonces, and secret keys are stripped from runtime logs.
Note
Read the complete security architecture in the Security Model section of PROTOCOL.md.
For full specifications on frame headers, MessagePack payload structures, sequence numbers, and byte layouts, refer to protocol/PROTOCOL.md.
Check out docs/ARCHITECTURE_PLAN.md for detailed descriptions of all 9 development stages.
- Stage 1: Core Networking & Protocol Foundation
- Stage 2: Core Input Controls (Touchpad, Keyboard, Numpad)
- Stage 3: Gamepad & Motion Sensor Integration
- Stage 4: Low-Latency Screen Sharing & Remote Desktop (Active)
- Stage 5: Virtual & Extended Display Subsystem
- Stage 6: System & Media Control Integration
- Stage 7: Data & Clipboard Synchronization
- Stage 8: Custom Layout Designer & Multi-Device
- Stage 9: Packaging & Ecosystem Polish
Original implementation. All code is original and created for the AetherControl ecosystem under the MIT License.