Original topic:

Want to mirror Android to your pc via USB?

(Topic created on: 11-24-2023 10:48 PM)
2684 Views
BunnyGirl
Expert Level 4
Options
Tech Talk

scrcpy-post-header.jpg

 

Control your Android device from your PC.

 

This application mirrors Android devices' video and audio connected via USB or over TCP/IP. It enables controlling the device with the computer's keyboard and mouse without requiring any root access. Compatible with Linux, Windows, and macOS.

It focuses on:

  • Lightness: Native, displays only the device screen
  • Performance: 30~120fps, depending on the device
  • Quality: 1920×1080 or above
  • Low Latency: 35~70ms
  • Low Startup Time: ~1 second to display the first image
  • Non-intrusiveness: Leaves nothing installed on the Android device
  • User Benefits: No account, ads, or internet connection required
  • Freedom: Free and open-source software

Its features include:

Prerequisites

The Android device requires at least API 21 (Android 5.0).

Audio forwarding is supported for API >= 30 (Android 11+).

Make sure you enabled USB debugging on your device(s).

On some devices, you also need to enable an additional option USB debugging (Security Settings) (this is different from USB debugging) to control it using a keyboard and mouse. Rebooting the device is necessary once this option is set.

Note that USB debugging is not required to run scrcpy in OTG mode.

Get the app

 

How to install it?

  1. Step 1: Enable Developer Options and USB Debugging on your Android device.

    a. Navigate to 

 

 

"Settings" > "About Phone."

 

 


b. Tap on 

 

 

"Build number"

 

 

multiple times until prompted as a developer.


c. Go to 

 

"Settings" > "System" > "Developer options."

 

 


d. Enable 

 

"USB debugging."

 

 

BunnyGirl_0-1700846702902.jpeg
 
  • Step 2: Install scrcpy on your computer.

    a. Visit the GitHub page of scrcpy.
    b. Scroll down to the Windows section (or your respective OS).
    c. Download the zip file and extract it to your preferred location.

 

BunnyGirl_1-1700846702674.jpeg

 

 

  • Step 3: Start scrcpy.

     To start scrcpy, locate and double-click on one of these files:

 

scrcpy-console.bat

 

start with a terminal open

(it will close when scrcpy terminates, unless an error occurs).

 

 

 

scrcpy-noconsole.vbs

 

 

start without a terminal

(but you won't see any error message).


Avoid double-clicking on 

 

scrcpy.exe

 

directly:  On error, the terminal would close immediately and you won't have time to read any error message. Use 

 

scrcpy-console.bat​

 

instead.

 

 

BunnyGirl_2-1700846702685.jpeg

 

  • Step 4: Use scrcpy to control your Android device.

    a. After allowing USB debugging, your phone screen will be displayed on your computer.
    b. You can now interact with your phone using your computer's keyboard and mouse.

 

BunnyGirl_3-1700846702888.jpeg

 

1 Comment
Litaiyab
Beginner Level 2
Tech Talk
scrcpy --otg --hid-keyboard # keyboard only
scrcpy --otg --hid-mouse # mouse only
scrcpy --otg --hid-keyboard --hid-mouse # keyboard and mouse
# for convenience, enable both by default
scrcpy --otg # keyboard and mouse