WARNING: This GitHub repo (https://github.com/TheRealRexo/SNDCPY) is the only official source for SNDCPY. Do not download releases from random websites.
pronounced "sound copy"
SNDCPY mirrors Android devices (video and audio) over Wi-Fi and allows control with a keyboard and mouse. Inspired by scrcpy, it is built from scratch for low-latency, production-grade remote control on a local network.
It focuses on:
- lightness: native where it matters, Python where it's pragmatic
- performance: 30~60 fps H.264, 128 kbps AAC, ~35–70 ms latency on a good LAN
- quality: 720p by default, up to 1080p with
SET_BITRATE - low startup: ~1 s to first frame after pairing
- non-intrusiveness: nothing left installed on the controlled device after the server stops
- security: ECDH + AES-GCM per-session encryption with one-time pairing codes
Its features include:
- audio forwarding (Android 10+)
- screen recording via the H.264 stream
- mDNS discovery (
_sndcpy._tcp.) - LAN UDP beacon discovery (port
27184, alongside mDNS) - telemetry (fps, heap, uptime every 5 s)
- configurable quality (
SET_BITRATE,SET_FPS) - physical keyboard/mouse simulation via AccessibilityService
- and more…
# Build
cd androidserver
./gradlew assembleRelease
# Install (minSdk 26)
adb install app/build/outputs/apk/release/app-release.apkOpen the app → Issue pairing code → Start screen share → note the IP.
The server is also auto-discoverable on the LAN via UDP beacon (port
27184) and mDNS (_sndcpy._tcp.). Most clients can find it with--discoverinstead of typing an IP.
Android
cd androidclient
./gradlew assembleRelease
adb install build/outputs/apk/release/app-release.apk
# Enter the server IP in the app and tap ConnectiOS
# Download SNDCPY-iOS-v1.0.0.ipa from Releases
unzip SNDCPY-iOS-v1.0.0.ipa -d /tmp/SNDCPY-iOS
# Install via sideloader (AltStore) or re-sign with your Apple ID:
# xcrun codesign --force --sign "YOUR_DEVELOPER_ID" \
# /tmp/SNDCPY-iOS/Payload/SNDCPYClient.app
# zip -r SNDCPY-iOS-signed.ipa /tmp/SNDCPY-iOS/PayloadmacOS
# Download SNDCPY-macos-v1.0.0-arm64.zip from Releases, then:
unzip SNDCPY-macos-v1.0.0-arm64.zip -d /tmp
open /tmp/SNDCPY.app --args --host 192.168.1.42Linux
cd linuxclient
pip install -r requirements.txt
python3 sndcpy_client.py --host 192.168.1.42Windows
cd windowsclient
py -3 sndcpy_client.py --host 192.168.1.42- Android device API 26+ (Android 8.0) for the server
- Audio forwarding needs API 29+ (Android 10+)
- Enable Developer options → USB debugging if you need
adb; Wi-Fi control itself needs no USB after install - Clients and server must be on the same Wi-Fi/LAN (port 27183)
On some devices (notably Xiaomi) you may need to enable USB debugging (Security Settings) to allow input injection. Reboot after toggling.
- Android Server — APK from Releases or
assembleRelease - Android Client — APK from Releases or
assembleRelease - iOS Client — Unsigned device IPA for iPhone/iPad, built in Xcode
- macOS Client — Standalone
.appbundle (SNDCPY-macos-v1.0.0-arm64.zip) built with PyInstaller - Linux Client —
sndcpy_client.py+.deb,.AppImage,.rpmpackages - Windows Client —
sndcpy_client.py+.exeinstaller - Flatpak — Flathub-ready manifest (
flatpak install flatpak/flatpakref/SNDCPY.flatpakref)
Prebuilt 1.0.0 artifacts are on the Releases page.
- Lowering resolution greatly helps performance: send
SET_BITRATE 2000000before starting capture HOME/BACK/RECENTSare global actions — reliable even when the foreground app blocks inputPING→PONGkeeps a session alive through idle timeouts- If input stops working, re-enable the Accessibility service via Enable remote input in the server app
There are many options — see androidserver/README.md for the full wire spec.
Mirror at 720p, 30 fps (default) and send a tap:
# linux / windows / mac (python)
python3 sndcpy_client.py --host 192.168.1.42
> TAP 500 800Swipe and scroll:
> SWIPE 100 600 900 600 200
> SCROLL DOWN
> SCROLL UP 500 400
Tune quality on the fly (applies on next capture start):
> SET_BITRATE 4000000
> SET_FPS 60
> GET_CONFIG
Pair a new client (first time only):
>> HELLO SNDCPY
<< PAIRING_REQUIRED <serverKey> <nonce>
> PAIR 123456
<< PAIRED
TCP :27183
HELLO SNDCPY <clientPub> <clientNonce>
├─ paired → SECURE <serverPub> <serverNonce>
└─ new → PAIRING_REQUIRED … → PAIR <code> → PAIRED
── ECDH + HKDF → AES-256-GCM session ──
encrypted frames [u32 len][12B IV][ciphertext]
plaintext envelope [u8 channel][i64 pts][payload]
0x01 control 0x02 video-H264 0x03 audio-AAC 0x04 telemetry
See androidserver/README.md for channel details.
SNDCPY/
├── androidserver/ → Android server (Kotlin, MediaProjection, MediaCodec)
├── androidclient/ → Android client (Kotlin, NW + handshake)
├── iosclient/ → iOS client (SwiftUI, Network.framework)
├── macosclient/ → macOS client (Python + PyQt6, PyInstaller bundle)
├── linuxclient/ → Cross-platform Python client (also builds macOS binaries)
├── windowsclient/ → Windows client (Python, sockets)
├── flatpak/ → Flatpak manifest for Flathub
├── README.md → this file
└── LICENSE
Each folder is an independent build:
| Component | Build |
|---|---|
androidserver |
cd androidserver && ./gradlew assembleDebug |
androidclient |
cd androidclient && ./gradlew assembleDebug |
iosclient |
xcodebuild -project iosclient/SNDCPYClient.xcodeproj -scheme SNDCPYClient -sdk iphoneos -configuration Release build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=YES (no developer cert required for unsigned device IPA) |
macosclient |
cd macosclient && pyinstaller SNDCPY-macos-arm64.spec |
linuxclient |
pip install -r linuxclient/requirements.txt && python3 linuxclient/sndcpy_gui_client.py --host 192.168.1.42 |
windowsclient |
py -3 windowsclient/sndcpy_gui_client.py --host 192.168.1.42 |
SNDCPY now supports exactly 3 pairing methods, selectable from the client UI:
| Method | Platforms | Description |
|---|---|---|
| Code | All platforms (Android, iOS, macOS, Linux, Windows) | 6-digit code entered via alert dialog when connecting |
| Bluetooth | All platforms | Mutual confirmation — both sides must have matching 6-digit codes (like Bluetooth pairing) |
| USB | Desktop only (macOS, Linux, Windows) | USB cable connection — no code needed, just connect via cable |
iOS: USB pairing method is filtered out (desktop only). Bluetooth and Code methods are available.
- macOS client: Automatic light/dark theme via QPalette
- Android server:
Theme.Material3.DayNight.NoActionBar(follows system theme) - iOS client:
preferredColorScheme(.dark)— default dark mode
- Server details
- Android client
- iOS client
- macOS client
- Linux client
- Windows client
- Flatpak
- Releases
- Inspired by scrcpy
Open an issue for bugs or feature requests.
Copyright 2024 TheRealRexo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0
