Wired ConnectionsADB Reverse · 60 FPS

Android USB Gaming & ADB

Tournament-grade USB streaming with reverse port tunneling, 48kHz internal game audio, and locked 60 FPS.

Source Device
Android 8.0+ (Audio requires Android 10+)
Host Receivers
macOS, Windows 10/11, Linux (x86_64)
Protocol
CastSprint Protocol V1 over ADB Reverse
Default Port
TCP 27183 (TCP_NODELAY)
Audio Pipeline
AudioPlaybackCapture 48kHz Stereo
Measured Latency
25 – 35 ms end-to-end

CastSprint’s native Android USB pipeline establishes a local reverse TCP socket over Android Debug Bridge (ADB). This guarantees zero Wi-Fi packet jitter, immunity to crowded router channels, and pure internal game audio capture via Android 10+ AudioPlaybackCapture.

ADB Reverse Tunnel Architecture

Unlike cloud-based screen sharing or Wi-Fi mirrors, the Android stream flows exclusively through the physical USB wire:

Signal Flow
[Android: MediaCodec H.264 Encoder + AudioPlaybackCapture]
 ↓ (Local TCP socket to 127.0.0.1:27183)
[Android ADB Daemon (adbd)]
 ↓ (USB Type-C Cable)
[Host PC ADB Server]
 ↓ (Port 27183 reversed mapping)
[CastSprint Desktop Receiver: Direct3D 11 / Metal / PipeWire]

Enabling USB Debugging by OEM

Before CastSprint can communicate over USB, enable USB Debugging in Android Developer Options. Follow the specific instructions for your manufacturer:

Samsung One UI (Galaxy S / A / Tab)

  1. Open Settings > About phone > Software information.
  2. Tap Build number 7 times until "Developer mode has been enabled" appears.
  3. Return to Settings > Developer options.
  4. Turn on USB debugging.

Xiaomi / Redmi / POCO (HyperOS / MIUI)

  1. Open Settings > About phone.
  2. Tap OS version or MIUI version 7 times.
  3. Go to Settings > Additional settings > Developer options.
  4. Enable USB debugging and USB debugging (Security settings).

Google Pixel / Motorola / Sony (Stock Android)

  1. Open Settings > About phone.
  2. Tap Build number 7 times.
  3. Navigate to Settings > System > Developer options.
  4. Enable USB debugging.

OnePlus / OPPO / Realme (OxygenOS / ColorOS)

  1. Open Settings > About device > Version.
  2. Tap Build number 7 times.
  3. Navigate to Settings > Additional settings > Developer options.
  4. Turn on USB debugging.

Android USB Preferences: Which Mode to Select?

When you connect your Android device to a Mac or Windows PC via USB cable, Android displays a prompt titled "USB preferences" or "Use USB for". Selecting the correct mode determines whether CastSprint can mirror at 1080p60/4K with internal sound:

Option 1 (Recommended): File transfer / Android Auto

Fastest Sub-15ms ADB Tunnel

Ideal for competitive mobile gaming (Free Fire, PUBG, COD Mobile, Wild Rift).

  1. Select File transfer from the USB preferences list.
  2. Ensure USB Debugging is enabled in Settings > System > Developer Options.
  3. When your phone displays "Allow USB debugging?", tick "Always allow from this computer" and tap Allow.
  4. CastSprint Desktop detects the phone automatically via ADB, mapping tcp:27183 for zero-configuration, zero-jitter capture.

Option 2 (Alternative): USB tethering

High-Speed Wired Network

Use this if you prefer not to enable Developer Options or work in an enterprise environment where ADB is blocked.

  1. Select USB tethering in Android USB preferences. This creates a dedicated local USB Ethernet interface between phone and computer.
  2. Open the CastSprint Android app and tap the prominent [ 📷 Scan Desktop QR Code ] button.
  3. Point your phone camera at the QR code displayed on CastSprint Desktop to connect instantly over the wired network interface.
Avoid "No data transfer" or "PTP": These modes disable standard USB multiplexing, preventing both ADB tunneling and network mirroring. Always select File transfer or USB tethering.

USB Gaming vs USB Quick Mirror

CastSprint provides two distinct USB workflows for Android:

Recommended

Android — USB Gaming

  • ✓ Full internal game audio via AudioPlaybackCapture
  • ✓ Hardware MediaCodec 60 FPS locked stream
  • ✓ 6-digit cryptographic session authentication
  • ✓ Sub-35ms tournament latency
  • Requires CastSprint Android companion app
Fallback

Android — USB Quick Mirror

  • ✓ Zero mobile app needed on phone
  • ✓ Native ADB screenrecord stream
  • ✗ Video only (Game audio is unsupported)
  • ✗ ~60–90ms latency
  • Great for quick demonstrations and non-gaming use

Port Forwarding & Connection

CastSprint Desktop automatically attempts to detect your connected Android phone and run reverse port forwarding. If you prefer manual setup or troubleshooting:

  1. Connect your Android phone via USB and allow the RSA debugging prompt.
  2. Verify your device is recognized by running in your terminal:
Terminal
adb devices

Your device should show as device (not unauthorized or offline).

3. Execute the reverse tunnel command:

Terminal
adb reverse tcp:27183 tcp:27183

4. Open CastSprint Android, choose USB (ADB reverse), and tap Start Mirroring. Approve the screen capture prompt.

Internal Game Audio Setup

On Android 10 and newer, CastSprint taps into Google's native AudioPlaybackCaptureConfiguration. This captures mobile game audio directly from apps that allow audio recording, completely bypassing the microphone:

  • No ambient room noise, clicking buttons, or phone vibrations on your stream.
  • Mute your physical phone speaker; internal game audio still streams digitally to PC.
  • Full 48 kHz stereo reproduction with zero distortion.

Android Troubleshooting Checklist

Common ADB Pitfalls
  • "unauthorized" in adb devices: Unplug the USB cable, reconnect, unlock the phone screen, and check "Always allow from this computer" on the popup.
  • App says "Waiting for receiver": Ensure CastSprint Desktop is open and that adb reverse tcp:27183 tcp:27183 succeeded.
  • Micro-stutters: Plug into a rear USB 3.0/3.1 port on your motherboard. Avoid unpowered USB hubs or keyboard passthrough ports.