How to mirror phone screen to PC via ADB with scrcpy
Learn how to stream your Android smartphone screen to your computer with ultra-low latency and pure command line using scrcpy.
Summary
- The scrcpy utility streams Android displays to computers without requiring extra companion apps installed on the phone.
- ADB acts as the essential communication bridge linking the computer to the mobile operating system via USB or Wi-Fi.
- Low latency performance stems from direct H.264 video decoding handled on the host computer hardware.
- Bidirectional control enables users to leverage physical PC keyboards and mice to navigate mobile interfaces freely.
- Adjusting resolution and frame rate parameters ensures smooth streaming even on modest hardware configurations.
Why use scrcpy for mobile screen mirroring
Mirroring a smartphone screen to a computer used to require heavy tools, annoying ads, or risky root privileges. In practice, this means most commercial solutions compromise your data security or introduce frustrating input delays between tapping the screen and seeing the response. scrcpy emerges as an extremely lightweight open-source alternative written in C, focused on delivering fluid performance and high frame rates without cloud intermediaries.
Unlike browser-based solutions or unstable wireless casting tools, scrcpy communicates directly with the Android debugging subsystem. For engineers who regularly handle hardware diagnostics, such as how to diagnose CPU and temperature bottlenecks on Linux via SSH, this command-line approach offers absolute control over the transmission. There is no noticeable visual quality loss, and the host machine resource consumption remains remarkably low throughout the session.
Preparing the ground with ADB
Before launching the mirroring stream, we need to understand the core gear making the magic happen: ADB (Android Debug Bridge). It acts like a digital courier that translates commands from your computer to the mobile operating system. To enable this communication channel, the crucial first step is activating USB debugging mode inside the developer options menu on your Android device, which unlocks after tapping the build number seven times consecutively.
Once the USB cable is plugged in and the security authorization prompt is accepted on the phone, the computer gains seamless access to interact with the mobile hardware. If you frequently handle workbench hardware like how to test crystal oscillators with an oscilloscope, you know that precise physical contact prevents frustrating communication drops. In the digital realm, ensuring the ADB driver is properly installed and recognized in the terminal is the exact equivalent of securing firm oscilloscope probes on a circuit.
Quick scrcpy installation across major systems
Installing scrcpy is remarkably straightforward and varies very little depending on your host computer operating system. On Linux distributions like Ubuntu or Debian, the standard package manager handles the dependency tree immediately. On rolling-release distros like Arch Linux, the utility sits in official repositories, requiring just a single terminal command to make it ready for daily workflow.
For macOS users, the Homebrew package manager simplifies the entire setup by automatically pulling necessary dependencies like the SDL video rendering library. If you use Windows, you can download the compressed archive directly from the official GitHub repository or use the Winget package manager. Regardless of the chosen platform, the binary bundle already embeds the minimal set of ADB tools required to establish a smooth connection.
Running the stream and controlling latency
With everything installed and your phone connected via USB, launching the stream boils down to opening your terminal and typing the main command. The program instantly creates a floating window displaying your smartphone desktop with near-perfect synchronization. If you need to optimize bandwidth usage or improve performance on older host machines, you can pass additional parameters to lower maximum resolution or cap frames per second.
Check out below the basic procedure executed directly in the terminal to initialize the stream and adjust frame rates:
# Check if the device is correctly recognized by ADB
adb devices
# Start scrcpy while limiting resolution to save processing power
scrcpy --max-size=1024
# Run mirroring capping the frame rate to 30 fps
scrcpy --max-fps=30These fine-tuning adjustments prevent visual stuttering and guarantee that the user experience remains pleasant even when utilizing standard USB cables. Every time you execute the tool, a lightweight scrcpy server binary is temporarily pushed to the phone memory and executed in isolation, ensuring no lingering background footprints remain after the session ends.
Advanced control features and useful shortcuts
The standout advantage of scrcpy over alternative viewing utilities is the complete interactivity it provides. You are not merely watching a passive video feed of your mobile screen; you can use your mouse to click, drag, scroll pages, and even type text using your computer physical keyboard. Smart keyboard shortcuts let you quickly toggle full-screen mode, rotate display orientation, or even turn off the physical phone display to save battery while operating it through your monitor.
Beyond cursor control, the utility simplifies daily tasks such as file transfers. Simply drag and drop a compatible file, like an APK or document, directly onto the scrcpy window on your PC, and it will automatically copy over to the Android downloads directory. This deep level of integration transforms your computer into a natural extension of your mobile device, eliminating the constant need to pick up your phone during work hours.
Final thoughts on mobile productivity
Mastering scrcpy through the command line transforms how we interact with Android devices in professional or personal environments. By discarding unnecessary intermediaries and focusing on pure ADB protocol efficiency, we unlock a robust, secure, and lag-free utility. Whether recording tutorials, testing apps under development, or simply replying to messages without looking away from your monitor, this technical solution elevates multi-device workflow standards.
Understanding the mechanics behind video streaming and touch commands reinforces the value of lean, performance-driven tools. Integrating such utilities into your daily workflow secures real gains in time and autonomy, proving that command-line simplicity often outshines bloated graphical interfaces.