Android: adb shell screencap
Debug 接続している Android device の screenshot を撮る code:sh
-h: this message
-p: save the file as a png.
-d: specify the physical display ID to capture (default: 19261213734341249)
see "dumpsys SurfaceFlinger --display-id" for valid display IDs.
If FILENAME ends with .png it will be saved as a png.
If FILENAME is not given, the results will be printed to stdout.
display ID の確認の仕方
code:sh
adb -s <serial> shell dumpsys SurfaceFlinger --display-id 撮った screenshot は adb pull で持ってくる