2020-10-07 20:29:43 +00:00
|
|
|
# scrcpy
|
|
|
|
|
|
|
|
> Display and control your Android device on a desktop.
|
|
|
|
> More information: <https://github.com/Genymobile/scrcpy>.
|
|
|
|
|
|
|
|
- Display a mirror of a connected device:
|
|
|
|
|
|
|
|
`scrcpy`
|
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
- Turn the device screen off and prevent it from sleeping while mirroring:
|
2020-10-28 21:19:43 +07:00
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
`scrcpy {{[-S|--turn-screen-off]}} {{[-w|--stay-awake]}}`
|
2020-10-28 21:19:43 +07:00
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
- Display a mirror of a specific device based on its ID or IP address (find it under the `adb devices` command):
|
2020-10-07 20:29:43 +00:00
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
`scrcpy {{[-s|--serial]}} {{0123456789abcdef|192.168.0.1:5555}}`
|
2020-10-07 20:29:43 +00:00
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
- Start display in fullscreen mode:
|
2020-10-07 20:29:43 +00:00
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
`scrcpy {{[-f|--fullscreen]}}`
|
2020-10-07 20:29:43 +00:00
|
|
|
|
|
|
|
- Show touches on physical device:
|
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
`scrcpy {{[-t|--show-touches]}}`
|
2020-10-07 20:29:43 +00:00
|
|
|
|
|
|
|
- Record display screen:
|
|
|
|
|
2025-07-07 10:58:21 +08:00
|
|
|
`scrcpy {{[-r|--record]}} {{path/to/file.mp4}}`
|
2020-10-07 20:29:43 +00:00
|
|
|
|
2024-02-09 10:55:36 -03:00
|
|
|
- Specify the target directory for pushing files to device by drag and drop (non-APK):
|
2020-10-07 20:29:43 +00:00
|
|
|
|
|
|
|
`scrcpy --push-target {{path/to/directory}}`
|