Take a screenshot of a mobile display. This command can only be used through adb shell. More information: https://developer.android.com/studio/command-line/adb#screencap.
adb shell
screencap {{path/to/file}}