48 lines
1.7 KiB
Markdown
48 lines
1.7 KiB
Markdown
scrcpy
|
|
scrcpy demo.mp4 https://small.fileditchstuff.me/s12/qSQYCGYaMlrIBegxchp.mp4
|
|
[scrcpy-master.zip](../../../_resources/scrcpy-master.zip)
|
|
|
|
|
|
|
|
- Installation
|
|
`pacman -S scrcpy` (in extra repo of arch)
|
|
- Wireless connection
|
|
https://www.genymotion.com/blog/open-source-project-scrcpy-now-works-wirelessly/
|
|
Here are the steps:
|
|
1. Connect the device to the same Wi-Fi as your computer
|
|
2. Get your device IP address (in Settings → About phone → Status)
|
|
3. Enable adb over TCP/IP on your device: `adb tcpip 5555`
|
|
4. Connect to your device: `adb connect DEVICE_IP:5555` (replace DEVICE_IP)
|
|
5. Unplug your device
|
|
6. Run scrcpy as usual
|
|
- Multiple ADB devices
|
|
Even for a same device there can be more device like if the `otg` is done through usb and mirroring is done through tcpip.
|
|
Eg: to select thr mirroring after otg is controlled by usb
|
|
`scrcpy --select-tcpip`
|
|
- Commands
|
|
Display and control your Android device on a desktop.
|
|
More information: https://github.com/Genymobile/scrcpy.
|
|
|
|
- Display a mirror of a connected device:
|
|
`scrcpy`
|
|
|
|
- Display a mirror of a specific device based on its ID or IP address (find it under the `adb devices` command):
|
|
`scrcpy --serial 0123456789abcdef|192.168.0.1:5555`
|
|
|
|
- Start display in fullscreen mode:
|
|
`scrcpy --fullscreen`
|
|
|
|
- Rotate the display screen. Each incremental value adds a 90 degree counterclockwise rotation:
|
|
`scrcpy --rotation 0|1|2|3`
|
|
|
|
- Show touches on physical device:
|
|
`scrcpy --show-touches`
|
|
|
|
- Record display screen:
|
|
`scrcpy --record path/to/file.mp4`
|
|
|
|
- Specify the target directory for pushing files to device by drag and drop (non-APK):
|
|
`scrcpy --push-target path/to/directory`
|
|
- to use mouse and keyboard of pc in mobile
|
|
`scrcpy --otg`
|
|
|