| 341 | | adb pull /sdcard/screenshot.png screenshot.png |
| 342 | | }}} |
| 343 | | |
| 344 | | An extended version that saves screenshots with a timestamp: |
| 345 | | {{{ |
| 346 | | adb shell /system/bin/screencap -p /sdcard/screenshot.png |
| 347 | | adb pull /sdcard/screenshot.png temp.png |
| 348 | | touch screenshot |
| 349 | | mv --backup=simple --suffix=$(date +%Y%m%d%H%M%S).png temp.png screenshot |
| 350 | | rm screenshot |
| 351 | | }}} |
| | 341 | adb pull /sdcard/screenshot.png screenshot-$(date +%Y%m%d%H%M%S).png |
| | 342 | }}} |
| | 343 | The resulting screenshot is saved in the current directory with a timestamp, so these commands can be run multiple times without overwriting the resulting file. |