Scrcpy profile

Note: The spelling is scrcpy, not Python crawler framework Scrapy.

Simply put, SCRCPy is a way to use ADB debugging to throw your phone’s screen onto your computer and control your Android device from your computer. It can be connected via USB or Wifi (similar to an airdrop screen), and doesn’t require any root permissions or programs to be installed on the phone. Scrcpy works on GNU/Linux, Windows, and macOS.

Some of its features:

  • Brightness (native, display device screen only)
  • Performance (30-60 FPS)
  • Mass (1920×1080 or above)
  • Low latency (35~70ms)
  • Short startup time (about 1 second to display the first image)
  • Non-invasive (nothing is installed on the device)

Genymobile/ Scrcpy: Display and Control your Android device

Use of SCRCPY requirements

  1. Android devices require at least API 21 (Android 5.0 or later);
  2. Make sure adb debugging is enabled on your device;
  3. On some devices, you also need to enable additional options to control it using the keyboard and mouse.

Adb debugging is usually enabled by clicking the mobile system version several times. For example, I use MIUI10. The opening method is “Settings” -> “My Device” -> “All Parameters” -> click 7 MIUI version to open “Developer options”. Then go to Settings -> More Settings -> Developer Options to enable both USB debugging and USB debugging (Security Settings).

Note: USB debugging (security Settings) must be enabled, otherwise you cannot use the computer to control the phone, which is the third requirement above.

Use your computer to connect to your phone

With USB debugging turned on on your Android phone, you can use ADB to debug on your computer.

I’m using Windows10, for example, MacOS or Linux please click here.

The program uses the Java language, we need to build the Java running environment in the computer, refer to: Windows10 configuration Java development environment

Start with scrCPy and then release the latest version, which is currently V1.10.

Download: github.com/Genymobile/…

Decompressed directory:

Open CMD to locate the directory (enter CMD in the address bar), or add the directory such as D:\Github_Run\scrcpy-win64-v1.10 to the system environment variable, use the program in the CMD command line operation.

Use USB to connect

This method is recommended to use, relatively more smooth.

  1. The mobile phone is connected to the PC through USB, and the first connection will pop up whether to trust the computer, click Always Trust.
  2. runadb usbCheck whether the connection is successful
D:\Github_Run\scrcpy-win64-v1.10> ADB USB Restarting in USB modeCopy the code
  1. runscrcpyCan.

Use a wireless connection

Passage 3 Open Source Project – Scrcpy Now Works, Passage 3

This connection mode is more convenient and fast, if the broadband speed is high, the use effect is better, the use method is also very simple.

  1. Make sure your PC and phone are on the same Wifi
  2. The phone first connects to a PC via USB
  3. Run adb tcpIP service port on the PC, such as port 5555
D:\Github_Run\scrcpy-win64-v1.10> ADB tcpIP 5555 restarting in TCP mode port: 5555Copy the code
  1. Unplug your device and disconnect the USB connection
  2. Run ADB Connect on a PC mobile IP: service port (mobile IP is available through the mobile phoneState informationView, or log in to the router to view, usually starting with 192.168)
D: Github_Run\scrcpy-win64-v1.10>adb connect connected to 192.168.0.4:5555Copy the code
  1. Run scrcpy and type in CMDscrcpy.exe

This popup mobile phone screen, mobile phone screen success! As expected, performance differs from USB, and the default SCRCPy bit rate is 8Mbps, which may be too much for a Wi-Fi connection. Depending on usage, lowering the bit rate and resolution may be a good compromise.

Scrcpy --bit-rate 2M --max-size 800 # or abbreviated scrcpy-b2m-m800Copy the code
  • 1
  • 2
  • 3

To switch back to USB mode: ADB USB

Common Shortcut Keys (Important)

describe shortcuts
Switch to the full-screen mode Ctrl+f
Tap your phone’s power supply Ctrl+p
return Ctrl+b
Return to the HOME Ctrl+h
multitasking Ctrl+s
More operations Long press the left mouse button
Display optimal window Ctrl+g
Adjust the volume Ctrl + up and down keys
Turn off the device screen (keep mirroring) Ctrl+o
Copy the device clipboard to the computer Ctrl+c
Paste the computer clipboard to the device Ctrl+v

Adb Devices: Device: connected; offline: offline

D:\Github_Run\scrcpy-win64-v1.10>adb devices
List of devices attached
192.168.0.4:5555        device
Copy the code

It is also useful to use the command line option to turn off the device screen while mirroring at startup:

scrcpy --turn-screen-off
scrcpy -S
Copy the code

In this way, we use two ways (USB connection and Wifi connection) to use SCRCPy, other methods see: README, such as direct drag APK installation, mobile phone recording screen, etc.

Passage 3 Keeping Tabs on your Phone on The ScrCPY