mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-24 23:11:29 +08:00
444 B
444 B
screencap
Take a screenshot of a mobile display. Note: This command can only be used through
adb shell. More information: https://developer.android.com/tools/adb#screencap.
- Take a screenshot:
screencap {{path/to/image.png}}
- Print file contents to
stdoutas PNG:
screencap -p
- Take a screenshot and save it over an
adbconnection:
adb shell screencap -p > {{path/to/image.png}}
- Display help:
screencap -h