ScreenShare your Android device to PC with scrcpy!
Sep 30, 2022, 10:10 PM
ScreenShare and Control your Android devices on your PC over usb and TCP/IP with scrcpy and guiscrcpy!
tech
.webp)
okay but what is scrcpy?
Scrcpy (pronounced "screen copy") is a command line utility that connects to your android device via USB or TCP/IP and allows you to share it's screen to your computer and control it remotely.
Here are some of it's main features (directly taken from their github):
- recording
- mirroring with Android device screen off
- copy-paste in both directions
- configurable quality
- Android device as a webcam (V4L2) (Linux-only)
- physical keyboard simulation (HID)
- physical mouse simulation (HID)
- OTG mode
How 2 use itt!
First you will need to enable the developer options on your android device.
After that you will have to plug it up on your computer with a usb cable and enable USB Tethering in your device's config's.
Then you run scrcpy on your terminal with: scrcpy
And after that a pop up asking for permission will appear on your android device. Once you accept it, a new window with the device's screen mirrored will appear on your desktop.
Other commands i like:
scrcpy -n
The -n option will disable remote input to your device.
scrcpy -e
The -e option will use the Wireless connection instead of the USB one. (Beware that you'll have to accept another permission pop up on your device.)
This is streaming my tablet's screen with the thumbnail art for this blogg lol.
Remember you can always use the --help
option or check their github for a more in depth explanation of how it works!
guiscrcpy
There's also a gui front end for scrcpy called guiscrcpy! It is pretty straightfoward to use and configure!
Here's what it looks like:
Conclusion
Welp this is a very useful tool, i use it to stream the screen of my tablet to obs so i can stream/record art stuffs.
Hope it helps ya!
Their Github
Don't forget to check out their githubs: