Skip to content

Instantly share code, notes, and snippets.

@j796160836
Created December 11, 2015 04:35
Show Gist options
  • Select an option

  • Save j796160836/1d7d7a43d92dbdd2465a to your computer and use it in GitHub Desktop.

Select an option

Save j796160836/1d7d7a43d92dbdd2465a to your computer and use it in GitHub Desktop.
Capture Android screenshot and save into desktop folder
#!/bin/bash
export FILE_NAME=`date '+%Y_%m_%d_%H_%M_%S'`_screen
adb shell screencap -p /data/local/tmp/$FILE_NAME.png
adb pull /data/local/tmp/$FILE_NAME.png ~/Desktop/$FILE_NAME.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment