scrcpy allows you to mirror the screen of an Android phone to a computer through adb debugging, and you can also operate the phone.
It does not require root access and does not need to install any software on the phone. It supports Windows, MacOS, and Linux operating systems.
There are two connection methods: USB wired connection and Wifi wireless connection.
Use cases:
- When the phone screen is broken and not visible, connect the phone to the computer for backup operations.
- When it is inconvenient to use the phone at work, use scrcpy to mirror the phone to the computer and pretend to work on the computer while actually playing with the phone.
- When you need to operate the phone with a computer.
Prerequisites#
- Download scrcpy software for your computer (https://github.com/Genymobile/scrcpy)
- Android 5.0 or above, enable Developer options and USB debugging
- Connect the phone to the computer via USB and allow USB debugging, trust this computer
Download Software#
Download the installation package for your corresponding platform from Github
https://github.com/Genymobile/scrcpy
Here, I will take the Windows platform as an example and extract it to the local:
Configure the Phone#
First, prepare an Android phone with version 5.0 or above (most phones nowadays support it), and enable Developer options (I won't go into detail on how to enable it, it's simple, you can search it on your own), and enable USB debugging.
If you cannot operate the phone on the computer during screen mirroring, it may be because your phone has a USB simulated click option, which also needs to be enabled.
Start Screen Mirroring (Wired Connection)#
Connect the phone to the computer via USB, open cmd and navigate to the scrcpy folder
# Check devices with adb
adb.exe devices
# Start screen mirroring
scrcpy.exe
Shortcut keys:
- Alt + O Turn off the phone screen, and the computer can still control the phone (more secure when slacking off)
- Alt + F Switch to fullscreen
- Alt + Up/Down Adjust volume
Wireless Connection (WIFI)#
Wireless connection requires that the device has been connected via USB before, and the phone and computer are on the same local network. After the above operations are successful, press Ctrl + C to end the screen mirroring.
Now, let's proceed with the WIFI wireless operation:
# Find the IP address of your phone and make sure it is on the same local network
ping IP address
# For example, if the IP address of your phone is 192.168.0.69
scrcpy --tcpip=192.168.0.69
Conclusion#
Continuously explore more features.