2025-03-14 21:59:59 -06:00
|
|
|
# screencap
|
|
|
|
|
|
|
|
|
|
> Take a screenshot of a mobile display.
|
2026-07-08 16:22:34 -06:00
|
|
|
> Note: This command can only be used through `adb shell`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://developer.android.com/tools/adb#screencap>.
|
|
|
|
|
|
|
|
|
|
- Take a screenshot:
|
|
|
|
|
|
2026-07-08 16:22:34 -06:00
|
|
|
`screencap {{path/to/image.png}}`
|
|
|
|
|
|
|
|
|
|
- Print file contents to `stdout` as PNG:
|
|
|
|
|
|
|
|
|
|
`screencap -p`
|
|
|
|
|
|
|
|
|
|
- Take a screenshot and save it over an `adb` connection:
|
|
|
|
|
|
|
|
|
|
`adb shell screencap -p > {{path/to/image.png}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`screencap -h`
|