Repository navigation
Screen Mirroring Guide
Note
Screen Mirroring in aShellYou integrates a low-latency Scrcpy client directly into the application, allowing you to mirror and interact with target devices connected via USB OTG or Wireless ADB with hardware-accelerated video decoding.
Screen Mirroring enables seamless visual control of secondary Android devices without requiring a computer. Once an ADB session is established, a lightweight Scrcpy server executable is deployed onto the target device. Video frames are streamed back through an ADB socket channel, decoded by Android's MediaCodec framework, and rendered in real time.
Key capabilities include:
- Low-Latency Streaming: Hardware-accelerated H.264, H.265 (HEVC), and AV1 decoding.
- Bi-Directional Touch Control: Natural multi-touch and gesture translation mapped directly to the target device screen coordinates.
- Virtual Device Navigation Keys: Hardware navigation bar providing Back, Home, App Switcher (Recents), Power, Volume Down, Volume Up, and Quick Settings shortcuts.
- Configurable Video Profiles: Dynamic presets (Auto, Saver, Balanced, Sharp, Custom) with custom resolution, frame rate (30 to 120 FPS), and bitrate limits (2 to 40 Mbps).
- Diagnostics Overlay: Real-time Heads-Up Display (HUD) displaying decoded frame rate, dropped frames, bitrate, and codec details.
The screen mirroring interface consists of the video viewport, top status controls, and bottom physical device keys:
-
Top Application Bar:
-
Device Identifier: Displays target device model name (
Pixel 8 Pro (husky)) and active transport badge (OTGorWireless ADB). - Back Navigation: Safely terminates the video stream session and returns to the base shell terminal.
- View-Only Mode Indicator: Displayed when touch injection is unavailable or restricted.
- Full Screen Toggle: Hides system bars and navigation chrome for an immersive display experience.
-
Device Identifier: Displays target device model name (
-
Virtual Device Key Bar:
- Navigation Group: Triangular Back button, circular Home button, and square Recents (App Switcher) button formatted to standard Android system navigation geometry.
- Action Group: Power toggle, Volume Down, Volume Up, and Quick Settings pulldown.
- Video Quality Trigger: Opens the stream tuning bottom sheet.
You can fine-tune streaming parameters to suit high-speed USB connections or fluctuating wireless networks.
| Live Active Stream | Video Quality Configuration |
|---|---|
![]() |
![]() |
- Auto: Automatically selects recommended resolution and bitrate based on connection transport and host device display refresh rate.
- Saver: Optimizes for bandwidth conservation and battery efficiency; recommended for weak Wi-Fi networks.
- Balanced (Default): Streams at 1920 long edge up to 60 FPS and 8 Mbps. Delivers an optimal balance of sharp visual quality and low latency.
- Sharp: Maximize clarity with high-bitrate streaming up to 120 FPS on supported hardware.
- Custom: Allows manual specification of max long edge (800 to 2560 px), fixed FPS caps (30, 60, 90, 120), bitrate caps (2 to 40 Mbps), and preferred video codec.
Toggling Show stream statistics activates an unobtrusive real-time HUD positioned at the top-start corner of the mirrored screen:
1080x2400 · 60 fps · 0 dropped · 8.2 Mbps · H.264
This HUD monitors:
- Target resolution dimensions.
- Effective decoded frames per second.
- Cumulative count of dropped or skipped frames.
- Instantaneous network transmission bitrate.
- Active video codec utilized by the decoder pipeline.
-
Establish ADB Connection:
- Connect the target device via OTG-ADB-Setup-Guide or Wireless-Debugging-Setup.
- Ensure the connection status indicator confirms active communication.
-
Launch Screen Mirror:
- Open the navigation drawer from the shell screen.
- Tap Screen Mirroring.
- aShellYou pushes the embedded
scrcpy-serverbinary to/data/local/tmp/on the target device and launches the server process.
-
Interact and Control:
- Tap, swipe, or drag across the video surface to navigate the remote device.
- Use the bottom navigation keys to invoke system functions.
- Tap the settings icon on the key bar to adjust stream quality if latency or frame drops are observed.
-
Terminate Session:
- Tap the Back button on the top app bar to cleanly stop the Scrcpy background process and release local media decoders.
Tip
- If experiencing video stuttering over Wireless ADB, open the Video Quality Sheet, choose Balanced or lower the bitrate to 4 Mbps.
- On Android 14+ devices, ensure Disable adb authorization timeout is enabled in Developer Options to prevent session drops during long mirroring sessions.
If you run into any issues or want to ask questions, feel free to:
- Join our Telegram Community
- Open an Issue on GitHub
- Local ADB Guide
- TCP/IP Setup Guide
- Wireless Debugging Setup
- OTG ADB Setup Guide
- Fastboot over OTG Guide
- USB Debugging Setup
