How to use scrcpy to manage and control your Android device

About scrcpy

scrcpy is a management and control tool for Android devices. This tool can help researchers display, manage and control Android devices through USB or TCP/IP. The tool does not require root access and supports GNU/Linux, Windows and macOS systems.

Tool properties

1. Performance: 30~120fps, depending on the device

2. Resolution: 1920×1080 or above

3. Low latency: 35~70ms

4. Low startup time: about 1 second to display the first image

5. Non-intrusive: Nothing is installed on the Android device

6. Tool advantages: no account, no advertising, no need to access the Internet

7. Free & Free: Free and Open Source Software

Features

1. Screen recording

2. Equipment monitoring

3. Clipboard data copy

4. Configurable resolution

5. Use your Android device as a webcam

6. Physical keyboard simulation (HID)

7. Physical mouse simulation (HID)

8. OTG mode

9. Others...

Tool requirements

API 21+(Android 5.0+)

The device turns on ADB debugging mode

Tool download

Linux

Debian or Ubuntu:

apt install scrcpy

Arch Linux:

pacman -S scrcpy

Windows

Click [ here ] to download scrcpy-win64-v1.24.zip (including all dependent components including adb).

SHA-256:

6ccb64cba0a3e75715e85a188daeb4f306a1985f8ce123eba92ba74fc9b27367

Chocolatey installation:

choco install scrcpy

choco install adb

Scoop installation:

scoop install scrcpy

scoop install adb

macOS

brew install scrcpy

brew install android-platform-tools

sudo port install scrcpy

tool run

Connect the Android device to your computer and run the following command:

scrcpy

The command parameter options supported by this tool can be viewed using the following command:

scrcpy --help

Tool usage

Resolution Control

scrcpy --max-size=1024

scrcpy -m 1024  # short version

bit rate modification

scrcpy --bit-rate=2M

scrcpy -b 2M  # short version

Frame rate FPS modification

scrcpy --max-fps=15

Video rotation lock

scrcpy --lock-video-orientation #Initialize orientation

scrcpy --lock-video-orientation=0 # Normal orientation

scrcpy --lock-video-orientation=1 # 90° counterclockwise

scrcpy --lock-video-orientation=2   # 180°

scrcpy --lock-video-orientation=3 # 90° clockwise

screen recording

scrcpy --record=file.mp4

scrcpy -r file.mkv

Buffer display

scrcpy --display-buffer=50

TCP/IP wireless connection

scrcpy --tcpip=192.168.1.1       # default port is 5555

scrcpy --tcpip=192.168.1.1:5555

Screenshot of tool running

License Agreement

The development and release of this project follows the Apache-2.0 open source license agreement.

project address

scrcpy : [ GitHub Portal ]

References

Introducing scrcpy · ~rom1v/blog

Open Source Project - Scrcpy now works wirelessly

Guess you like

Origin blog.csdn.net/FreeBuf_/article/details/128223525