Skip to content

Instantly share code, notes, and snippets.

@brettmcginnis
Created August 17, 2020 23:20
Show Gist options
  • Save brettmcginnis/d35bba2d75f53051f7f20b657455fe42 to your computer and use it in GitHub Desktop.
Save brettmcginnis/d35bba2d75f53051f7f20b657455fe42 to your computer and use it in GitHub Desktop.
# Android Screenshot
function ass() {
file_name="android-$(date "+%Y.%m.%d-%H.%M.%S")"
if [ ! -z "$1" ]; then
file_name="$1"
fi
adb exec-out screencap -p > $file_name.png
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment