Using scrcpy to Mirror Android to PC: Detailed Steps
scrcpy is a highly popular and efficient open-source application that allows you to control and display the Android device screen via your computer. Here are the specific steps to mirror the Android device screen to your PC:
1. Ensure Prerequisites are Met
- Operating System Support: Ensure your PC runs Windows, macOS, or Linux.
- Android Device Requirements: Android 5.0 or higher.
- Enable USB Debugging: On the Android device, go to Settings > System > Developer Options and enable the 'USB debugging' option.
2. Install scrcpy
-
Windows:
- Download the Windows version of scrcpy (e.g., from GitHub or via Scoop).
- Extract the downloaded files.
- Ensure the ADB (Android Debug Bridge) environment variables are configured.
-
macOS:
- Install via Homebrew: run
brew install scrcpyin the terminal.
- Install via Homebrew: run
-
Linux:
- Most Linux distributions can be installed via package managers; for example, on Ubuntu, use the
sudo apt install scrcpycommand.
- Most Linux distributions can be installed via package managers; for example, on Ubuntu, use the
3. Connect the Android Device
- Connect the Android device to the PC using a USB cable.
- If it's the first connection, the Android device will prompt you to allow USB debugging from this computer; select 'Always allow'.
4. Launch scrcpy
- Open the command-line tool (on Windows, use CMD or PowerShell; on macOS and Linux, use Terminal).
- Enter
scrcpyand press Enter. - Your Android device screen should now appear on the PC.
5. Use Optional Parameters (as needed)
- scrcpy provides various command-line parameters to optimize the experience, such as adjusting resolution and setting frame rate limits. For example, using
scrcpy --bit-rate 2M --max-size 800limits the data transfer rate and sets the maximum resolution width to 800 pixels.
Real-World Application Case
During my previous role, we frequently needed to conduct application demonstrations. Using scrcpy, we could display the real-time operation of mobile applications on a large screen, which was highly beneficial for demonstrations and error diagnosis. Additionally, by adjusting the transmission settings, we ensured smoothness and video quality during demonstrations, enhancing the professionalism of the presentations.
Conclusion
scrcpy is not only simple and user-friendly but also very powerful. It has minimal latency and supports various advanced features, making it an ideal choice for mirroring the Android device screen to PC.